From c5c8a887e6313dca4c67455710c446371f958061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Jel=C3=ADnek?= Date: Fri, 18 Aug 2023 14:04:09 +0200 Subject: [PATCH] Improve linting --- actions_build/index.js | 629873 ++++++++++++++++++-------- lib/checkPullRequestJob.js | 2 +- lib/checkPullRequestLabels.js | 4 +- spec/checkNewCronJobSpec.js | 2 +- spec/checkPullRequestJobSpec.js | 20 +- spec/checkPullRequestLabelsSpec.js | 7 +- 6 files changed, 447122 insertions(+), 182786 deletions(-) diff --git a/actions_build/index.js b/actions_build/index.js index 3baada64..4a44ac68 100644 --- a/actions_build/index.js +++ b/actions_build/index.js @@ -40,167 +40,66 @@ module.exports = /******/ // the startup function /******/ function startup() { /******/ // Load entry module and return exports -/******/ return __webpack_require__(682); +/******/ return __webpack_require__(9682); /******/ }; /******/ /******/ // run startup /******/ return startup(); /******/ }) /************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Hash-based Message Authentication Code implementation. Requires a message - * digest object that can be obtained, for example, from forge.md.sha1 or - * forge.md.md5. - * - * @author Dave Longley - * - * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved. - */ -var forge = __webpack_require__(239); -__webpack_require__(220); -__webpack_require__(54); - -/* HMAC API */ -var hmac = module.exports = forge.hmac = forge.hmac || {}; - -/** - * Creates an HMAC object that uses the given message digest object. - * - * @return an HMAC object. - */ -hmac.create = function() { - // the hmac key to use - var _key = null; - - // the message digest to use - var _md = null; - - // the inner padding - var _ipadding = null; - - // the outer padding - var _opadding = null; - - // hmac context - var ctx = {}; +/******/ ({ - /** - * Starts or restarts the HMAC with the given key and message digest. - * - * @param md the message digest to use, null to reuse the previous one, - * a string to use builtin 'sha1', 'md5', 'sha256'. - * @param key the key to use as a string, array of bytes, byte buffer, - * or null to reuse the previous key. - */ - ctx.start = function(md, key) { - if(md !== null) { - if(typeof md === 'string') { - // create builtin message digest - md = md.toLowerCase(); - if(md in forge.md.algorithms) { - _md = forge.md.algorithms[md].create(); - } else { - throw new Error('Unknown hash algorithm "' + md + '"'); - } - } else { - // store message digest - _md = md; - } - } +/***/ 0: +/***/ (function(module, __unusedexports, __webpack_require__) { - if(key === null) { - // reuse previous key - key = _key; - } else { - if(typeof key === 'string') { - // convert string into byte buffer - key = forge.util.createBuffer(key); - } else if(forge.util.isArray(key)) { - // convert byte array into byte buffer - var tmp = key; - key = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - key.putByte(tmp[i]); - } - } +const { requestLog } = __webpack_require__(8916); +const { + restEndpointMethods +} = __webpack_require__(842); - // if key is longer than blocksize, hash it - var keylen = key.length(); - if(keylen > _md.blockLength) { - _md.start(); - _md.update(key.bytes()); - key = _md.digest(); - } +const Core = __webpack_require__(9529); - // mix key into inner and outer padding - // ipadding = [0x36 * blocksize] ^ key - // opadding = [0x5C * blocksize] ^ key - _ipadding = forge.util.createBuffer(); - _opadding = forge.util.createBuffer(); - keylen = key.length(); - for(var i = 0; i < keylen; ++i) { - var tmp = key.at(i); - _ipadding.putByte(0x36 ^ tmp); - _opadding.putByte(0x5C ^ tmp); - } +const CORE_PLUGINS = [ + __webpack_require__(4190), + __webpack_require__(8019), // deprecated: remove in v17 + requestLog, + __webpack_require__(8148), + restEndpointMethods, + __webpack_require__(4430), - // if key is shorter than blocksize, add additional padding - if(keylen < _md.blockLength) { - var tmp = _md.blockLength - keylen; - for(var i = 0; i < tmp; ++i) { - _ipadding.putByte(0x36); - _opadding.putByte(0x5C); - } - } - _key = key; - _ipadding = _ipadding.bytes(); - _opadding = _opadding.bytes(); - } + __webpack_require__(850) // deprecated: remove in v17 +]; - // digest is done like so: hash(opadding | hash(ipadding | message)) +const OctokitRest = Core.plugin(CORE_PLUGINS); - // prepare to do inner hash - // hash(ipadding | message) - _md.start(); - _md.update(_ipadding); - }; +function DeprecatedOctokit(options) { + const warn = + options && options.log && options.log.warn + ? options.log.warn + : console.warn; + warn( + '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead' + ); + return new OctokitRest(options); +} - /** - * Updates the HMAC with the given message bytes. - * - * @param bytes the bytes to update with. - */ - ctx.update = function(bytes) { - _md.update(bytes); - }; +const Octokit = Object.assign(DeprecatedOctokit, { + Octokit: OctokitRest +}); - /** - * Produces the Message Authentication Code (MAC). - * - * @return a byte buffer containing the digest value. - */ - ctx.getMac = function() { - // digest is done like so: hash(opadding | hash(ipadding | message)) - // here we do the outer hashing - var inner = _md.digest().bytes(); - _md.start(); - _md.update(_opadding); - _md.update(inner); - return _md.digest(); - }; - // alias for getMac - ctx.digest = ctx.getMac; +Object.keys(OctokitRest).forEach(key => { + /* istanbul ignore else */ + if (OctokitRest.hasOwnProperty(key)) { + Octokit[key] = OctokitRest[key]; + } +}); - return ctx; -}; +module.exports = Octokit; /***/ }), -/* 1 */ + +/***/ 1: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -218,194 +117,50 @@ hmac.create = function() { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.policytroubleshooter_v1 = void 0; +exports.ids_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 = __webpack_require__(927); -var policytroubleshooter_v1; -(function (policytroubleshooter_v1) { +var ids_v1; +(function (ids_v1) { /** - * Policy Troubleshooter API - * + * Cloud IDS API * + * Cloud IDS (Cloud Intrusion Detection System) detects malware, spyware, command-and-control attacks, and other network-based threats. Its security efficacy is industry leading, built with Palo Alto Networks technologies. When you use this product, your organization name and consumption levels will be shared with Palo Alto Networks. * * @example + * ```js * const {google} = require('googleapis'); - * const policytroubleshooter = google.policytroubleshooter('v1'); - * - * @namespace policytroubleshooter - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Policytroubleshooter + * const ids = google.ids('v1'); + * ``` */ - class Policytroubleshooter { + class Ids { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.iam = new Resource$Iam(this.context); + this.projects = new Resource$Projects(this.context); } } - policytroubleshooter_v1.Policytroubleshooter = Policytroubleshooter; - class Resource$Iam { + ids_v1.Ids = Ids; + class Resource$Projects { constructor(context) { this.context = context; - } - troubleshoot(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://policytroubleshooter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/iam:troubleshoot').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); - } - } - } - policytroubleshooter_v1.Resource$Iam = Resource$Iam; -})(policytroubleshooter_v1 = exports.policytroubleshooter_v1 || (exports.policytroubleshooter_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 2 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const os = __webpack_require__(87); -const macosRelease = __webpack_require__(118); -const winRelease = __webpack_require__(49); - -const osName = (platform, release) => { - if (!platform && release) { - throw new Error('You can\'t specify a `release` without specifying `platform`'); - } - - platform = platform || os.platform(); - - let id; - - if (platform === 'darwin') { - if (!release && os.platform() === 'darwin') { - release = os.release(); - } - - const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS'; - id = release ? macosRelease(release).name : ''; - return prefix + (id ? ' ' + id : ''); - } - - if (platform === 'linux') { - if (!release && os.platform() === 'linux') { - release = os.release(); - } - - id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : ''; - return 'Linux' + (id ? ' ' + id : ''); - } - - if (platform === 'win32') { - if (!release && os.platform() === 'win32') { - release = os.release(); - } - - id = release ? winRelease(release) : ''; - return 'Windows' + (id ? ' ' + id : ''); - } - - return platform; -}; - -module.exports = osName; - - -/***/ }), -/* 3 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.binaryauthorization_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 = __webpack_require__(927); -var binaryauthorization_v1; -(function (binaryauthorization_v1) { - /** - * Binary Authorization API - * - * The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters. - * - * @example - * const {google} = require('googleapis'); - * const binaryauthorization = google.binaryauthorization('v1'); - * - * @namespace binaryauthorization - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Binaryauthorization - */ - class Binaryauthorization { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - binaryauthorization_v1.Binaryauthorization = Binaryauthorization; - class Resource$Projects { + ids_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; - this.attestors = new Resource$Projects$Attestors(this.context); - this.policy = new Resource$Projects$Policy(this.context); + this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } - getPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418,7 +173,7 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -430,13 +185,13 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449,11 +204,11 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -461,15 +216,15 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - binaryauthorization_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Attestors { + ids_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Endpoints { constructor(context) { this.context = context; } @@ -486,10 +241,10 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -498,10 +253,10 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -517,7 +272,7 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -529,10 +284,10 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -548,7 +303,7 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -560,10 +315,10 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -572,14 +327,15 @@ var binaryauthorization_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -591,10 +347,10 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -610,10 +366,10 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -622,13 +378,13 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -641,7 +397,39 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ids.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -653,10 +441,10 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -665,14 +453,15 @@ var binaryauthorization_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -684,13 +473,19 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + ids_v1.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -703,11 +498,11 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -715,19 +510,13 @@ var binaryauthorization_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - binaryauthorization_v1.Resource$Projects$Attestors = Resource$Projects$Attestors; - class Resource$Projects$Policy { - constructor(context) { - this.context = context; - } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -740,25 +529,25 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -771,25 +560,25 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -802,32 +591,32 @@ var binaryauthorization_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - binaryauthorization_v1.Resource$Projects$Policy = Resource$Projects$Policy; -})(binaryauthorization_v1 = exports.binaryauthorization_v1 || (exports.binaryauthorization_v1 = {})); -//# sourceMappingURL=v1.js.map + ids_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(ids_v1 = exports.ids_v1 || (exports.ids_v1 = {})); + /***/ }), -/* 4 */, -/* 5 */ + +/***/ 2: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -845,127 +634,45 @@ var binaryauthorization_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.analytics_v3 = void 0; +exports.secretmanager_v1beta1 = 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 = __webpack_require__(927); -var analytics_v3; -(function (analytics_v3) { +var secretmanager_v1beta1; +(function (secretmanager_v1beta1) { /** - * Google Analytics API + * Secret Manager API * - * Views and manages your Google Analytics data. + * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. * * @example + * ```js * const {google} = require('googleapis'); - * const analytics = google.analytics('v3'); - * - * @namespace analytics - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Analytics + * const secretmanager = google.secretmanager('v1beta1'); + * ``` */ - class Analytics { + class Secretmanager { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.data = new Resource$Data(this.context); - this.management = new Resource$Management(this.context); - this.metadata = new Resource$Metadata(this.context); - this.provisioning = new Resource$Provisioning(this.context); - this.userDeletion = new Resource$Userdeletion(this.context); - } - } - analytics_v3.Analytics = Analytics; - class Resource$Data { - constructor(context) { - this.context = context; - this.ga = new Resource$Data$Ga(this.context); - this.mcf = new Resource$Data$Mcf(this.context); - this.realtime = new Resource$Data$Realtime(this.context); - } - } - analytics_v3.Resource$Data = Resource$Data; - class Resource$Data$Ga { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/analytics/v3/data/ga').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.projects = new Resource$Projects(this.context); } } - analytics_v3.Resource$Data$Ga = Resource$Data$Ga; - class Resource$Data$Mcf { + secretmanager_v1beta1.Secretmanager = Secretmanager; + class Resource$Projects { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/analytics/v3/data/mcf').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.locations = new Resource$Projects$Locations(this.context); + this.secrets = new Resource$Projects$Secrets(this.context); } } - analytics_v3.Resource$Data$Mcf = Resource$Data$Mcf; - class Resource$Data$Realtime { + secretmanager_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; } @@ -982,93 +689,24 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/analytics/v3/data/realtime').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['ids', 'metrics'], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - analytics_v3.Resource$Data$Realtime = Resource$Data$Realtime; - class Resource$Management { - constructor(context) { - this.context = context; - this.accounts = new Resource$Management$Accounts(this.context); - this.accountSummaries = new Resource$Management$Accountsummaries(this.context); - this.accountUserLinks = new Resource$Management$Accountuserlinks(this.context); - this.clientId = new Resource$Management$Clientid(this.context); - this.customDataSources = new Resource$Management$Customdatasources(this.context); - this.customDimensions = new Resource$Management$Customdimensions(this.context); - this.customMetrics = new Resource$Management$Custommetrics(this.context); - this.experiments = new Resource$Management$Experiments(this.context); - this.filters = new Resource$Management$Filters(this.context); - this.goals = new Resource$Management$Goals(this.context); - this.profileFilterLinks = new Resource$Management$Profilefilterlinks(this.context); - this.profiles = new Resource$Management$Profiles(this.context); - this.profileUserLinks = new Resource$Management$Profileuserlinks(this.context); - this.remarketingAudience = new Resource$Management$Remarketingaudience(this.context); - this.segments = new Resource$Management$Segments(this.context); - this.unsampledReports = new Resource$Management$Unsampledreports(this.context); - this.uploads = new Resource$Management$Uploads(this.context); - this.webproperties = new Resource$Management$Webproperties(this.context); - this.webPropertyAdWordsLinks = new Resource$Management$Webpropertyadwordslinks(this.context); - this.webpropertyUserLinks = new Resource$Management$Webpropertyuserlinks(this.context); - } - } - analytics_v3.Resource$Management = Resource$Management; - class Resource$Management$Accounts { - 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Accounts = Resource$Management$Accounts; - class Resource$Management$Accountsummaries { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -1082,63 +720,32 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Management$Accountsummaries = Resource$Management$Accountsummaries; - class Resource$Management$Accountuserlinks { + secretmanager_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Secrets { constructor(context) { this.context = context; + this.versions = new Resource$Projects$Secrets$Versions(this.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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['accountId', 'linkId'], - pathParams: ['accountId', 'linkId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { + addVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1151,96 +758,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['accountId', 'linkId'], - pathParams: ['accountId', 'linkId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Accountuserlinks = Resource$Management$Accountuserlinks; - class Resource$Management$Clientid { - constructor(context) { - this.context = context; - } - hashClientId(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1253,31 +789,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/clientId:hashClientId').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Clientid = Resource$Management$Clientid; - class Resource$Management$Customdatasources { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1290,31 +820,24 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Customdatasources = Resource$Management$Customdatasources; - class Resource$Management$Customdimensions { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -1328,26 +851,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], - pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1360,23 +882,22 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -1392,23 +913,22 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -1424,64 +944,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], - pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], - pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Customdimensions = Resource$Management$Customdimensions; - class Resource$Management$Custommetrics { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1494,26 +975,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], - pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1526,26 +1006,31 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + secretmanager_v1beta1.Resource$Projects$Secrets = Resource$Projects$Secrets; + class Resource$Projects$Secrets$Versions { + constructor(context) { + this.context = context; + } + access(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1558,26 +1043,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + destroy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1590,26 +1074,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], - pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1622,32 +1105,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], - pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Custommetrics = Resource$Management$Custommetrics; - class Resource$Management$Experiments { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1660,28 +1136,22 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -1697,60 +1167,22 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -1766,106 +1198,433 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], - context: this.context, + } + secretmanager_v1beta1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; +})(secretmanager_v1beta1 = exports.secretmanager_v1beta1 || (exports.secretmanager_v1beta1 = {})); + + +/***/ }), + +/***/ 12: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Secure Hash Algorithm with 256-bit digest (SHA-256) implementation. + * + * See FIPS 180-2 for details. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(1220); +__webpack_require__(7152); + +var sha256 = module.exports = forge.sha256 = forge.sha256 || {}; +forge.md.sha256 = forge.md.algorithms.sha256 = sha256; + +/** + * Creates a SHA-256 message digest object. + * + * @return a message digest object. + */ +sha256.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + // SHA-256 state contains eight 32-bit integers + var _state = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for word storage + var _w = new Array(64); + + // message digest object + var md = { + algorithm: 'sha256', + blockLength: 64, + digestLength: 32, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x6A09E667, + h1: 0xBB67AE85, + h2: 0x3C6EF372, + h3: 0xA54FF53A, + h4: 0x510E527F, + h5: 0x9B05688C, + h6: 0x1F83D9AB, + h7: 0x5BE0CD19 + }; + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_state, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-256 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); + + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3, + h4: _state.h4, + h5: _state.h5, + h6: _state.h6, + h7: _state.h7 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32(s2.h0); + rval.putInt32(s2.h1); + rval.putInt32(s2.h2); + rval.putInt32(s2.h3); + rval.putInt32(s2.h4); + rval.putInt32(s2.h5); + rval.putInt32(s2.h6); + rval.putInt32(s2.h7); + return rval; + }; + + return md; +}; + +// sha-256 padding bytes not initialized yet +var _padding = null; +var _initialized = false; + +// table of constants +var _k = null; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + + // create K table for SHA-256 + _k = [ + 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, + 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, + 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, + 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, + 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, + 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, + 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, + 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, + 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, + 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, + 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, + 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, + 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, + 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, + 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, + 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; + + // now initialized + _initialized = true; +} + +/** + * Updates a SHA-256 state with the given byte buffer. + * + * @param s the SHA-256 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t1, t2, s0, s1, ch, maj, i, a, b, c, d, e, f, g, h; + var len = bytes.length(); + while(len >= 64) { + // the w array will be populated with sixteen 32-bit big-endian words + // and then extended into 64 32-bit words according to SHA-256 + for(i = 0; i < 16; ++i) { + w[i] = bytes.getInt32(); + } + for(; i < 64; ++i) { + // XOR word 2 words ago rot right 17, rot right 19, shft right 10 + t1 = w[i - 2]; + t1 = + ((t1 >>> 17) | (t1 << 15)) ^ + ((t1 >>> 19) | (t1 << 13)) ^ + (t1 >>> 10); + // XOR word 15 words ago rot right 7, rot right 18, shft right 3 + t2 = w[i - 15]; + t2 = + ((t2 >>> 7) | (t2 << 25)) ^ + ((t2 >>> 18) | (t2 << 14)) ^ + (t2 >>> 3); + // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^32 + w[i] = (t1 + w[i - 7] + t2 + w[i - 16]) | 0; + } + + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + e = s.h4; + f = s.h5; + g = s.h6; + h = s.h7; + + // round function + for(i = 0; i < 64; ++i) { + // Sum1(e) + s1 = + ((e >>> 6) | (e << 26)) ^ + ((e >>> 11) | (e << 21)) ^ + ((e >>> 25) | (e << 7)); + // Ch(e, f, g) (optimized the same way as SHA-1) + ch = g ^ (e & (f ^ g)); + // Sum0(a) + s0 = + ((a >>> 2) | (a << 30)) ^ + ((a >>> 13) | (a << 19)) ^ + ((a >>> 22) | (a << 10)); + // Maj(a, b, c) (optimized the same way as SHA-1) + maj = (a & b) | (c & (a ^ b)); + + // main algorithm + t1 = h + s1 + ch + _k[i] + w[i]; + t2 = s0 + maj; + h = g; + g = f; + f = e; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + // can't truncate with `| 0` + e = (d + t1) >>> 0; + d = c; + c = b; + b = a; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + // can't truncate with `| 0` + a = (t1 + t2) >>> 0; + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + s.h4 = (s.h4 + e) | 0; + s.h5 = (s.h5 + f) | 0; + s.h6 = (s.h6 + g) | 0; + s.h7 = (s.h7 + h) | 0; + len -= 64; + } +} + + +/***/ }), + +/***/ 18: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudbuild_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudbuild_v1beta1; +(function (cloudbuild_v1beta1) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1beta1'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.projects = new Resource$Projects(this.context); } } - analytics_v3.Resource$Management$Experiments = Resource$Management$Experiments; - class Resource$Management$Filters { + cloudbuild_v1beta1.Cloudbuild = Cloudbuild; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.workerPools = new Resource$Projects$Locations$Workerpools(this.context); + } + } + cloudbuild_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1878,23 +1637,22 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'filterId'], - pathParams: ['accountId', 'filterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -1910,26 +1668,31 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'filterId'], - pathParams: ['accountId', 'filterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1942,25 +1705,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -1973,25 +1736,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2004,26 +1767,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'filterId'], - pathParams: ['accountId', 'filterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2036,32 +1798,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'filterId'], - pathParams: ['accountId', 'filterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Filters = Resource$Management$Filters; - class Resource$Management$Goals { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2074,26 +1829,139 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], - pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1beta1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; +})(cloudbuild_v1beta1 = exports.cloudbuild_v1beta1 || (exports.cloudbuild_v1beta1 = {})); + + +/***/ }), + +/***/ 22: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(__webpack_require__(8078)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +var _default = parse; +exports.default = _default; + +/***/ }), + +/***/ 42: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.accessapproval_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var accessapproval_v1; +(function (accessapproval_v1) { + /** + * Access Approval API + * + * An API for controlling access to data by Google personnel. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const accessapproval = google.accessapproval('v1'); + * ``` + */ + class Accessapproval { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + accessapproval_v1.Accessapproval = Accessapproval; + class Resource$Folders { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2106,26 +1974,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2138,26 +2005,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2170,26 +2036,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], - pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2202,64 +2067,31 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], - pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Management$Goals = Resource$Management$Goals; - class Resource$Management$Profilefilterlinks { + accessapproval_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Approvalrequests { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { + approve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2272,26 +2104,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + dismiss(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2304,26 +2135,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2336,26 +2166,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + invalidate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2368,26 +2197,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2400,64 +2228,64 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Management$Profilefilterlinks = Resource$Management$Profilefilterlinks; - class Resource$Management$Profiles { + accessapproval_v1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; + class Resource$Organizations { constructor(context) { this.context = context; + this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2470,26 +2298,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2502,58 +2329,63 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + accessapproval_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2566,26 +2398,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + dismiss(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2598,32 +2429,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Profiles = Resource$Management$Profiles; - class Resource$Management$Profileuserlinks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2636,55 +2460,54 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + invalidate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -2700,26 +2523,32 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + accessapproval_v1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; + class Resource$Projects { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2732,32 +2561,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Profileuserlinks = Resource$Management$Profileuserlinks; - class Resource$Management$Remarketingaudience { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2770,26 +2592,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2802,26 +2623,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2834,26 +2654,31 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + accessapproval_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2866,26 +2691,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + dismiss(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2898,26 +2722,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2930,32 +2753,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Remarketingaudience = Resource$Management$Remarketingaudience; - class Resource$Management$Segments { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + invalidate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -2968,31 +2784,25 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/segments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Segments = Resource$Management$Segments; - class Resource$Management$Unsampledreports { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3005,38 +2815,502 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'unsampledReportId', - ], - pathParams: [ - 'accountId', - 'profileId', - 'unsampledReportId', - 'webPropertyId', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; +})(accessapproval_v1 = exports.accessapproval_v1 || (exports.accessapproval_v1 = {})); + + +/***/ }), + +/***/ 48: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0; +const stream = __webpack_require__(2413); +const authclient_1 = __webpack_require__(5616); +const sts = __webpack_require__(5732); +/** + * The required token exchange grant_type: rfc8693#section-2.1 + */ +const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +/** + * The requested token exchange requested_token_type: rfc8693#section-2.1 + */ +const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** The default OAuth scope to request when none is provided. */ +const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; +/** Default impersonated token lifespan in seconds.*/ +const DEFAULT_TOKEN_LIFESPAN = 3600; +/** + * Offset to take into account network delays and server clock skews. + */ +exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +/** + * The credentials JSON file type for external account clients. + * There are 3 types of JSON configs: + * 1. authorized_user => Google end user credential + * 2. service_account => Google service account credential + * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s) + */ +exports.EXTERNAL_ACCOUNT_TYPE = 'external_account'; +/** Cloud resource manager URL used to retrieve project information. */ +exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/'; +/** The workforce audience pattern. */ +const WORKFORCE_AUDIENCE_PATTERN = '//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+'; +/** + * Base external account client. This is used to instantiate AuthClients for + * exchanging external account credentials for GCP access token and authorizing + * requests to GCP APIs. + * The base class implements common logic for exchanging various type of + * external credentials for GCP access token. The logic of determining and + * retrieving the external credential based on the environment and + * credential_source will be left for the subclasses. + */ +class BaseExternalAccountClient extends authclient_1.AuthClient { + /** + * Instantiate a BaseExternalAccountClient instance using the provided JSON + * object loaded from an external account credentials file. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + var _a, _b; + super(); + if (options.type !== exports.EXTERNAL_ACCOUNT_TYPE) { + throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` + + `received "${options.type}"`); + } + this.clientAuth = options.client_id + ? { + confidentialClientType: 'basic', + clientId: options.client_id, + clientSecret: options.client_secret, + } + : undefined; + this.stsCredential = new sts.StsCredentials(options.token_url, this.clientAuth); + // Default OAuth scope. This could be overridden via public property. + this.scopes = [DEFAULT_OAUTH_SCOPE]; + this.cachedAccessToken = null; + this.audience = options.audience; + this.subjectTokenType = options.subject_token_type; + this.quotaProjectId = options.quota_project_id; + this.workforcePoolUserProject = options.workforce_pool_user_project; + const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN); + if (this.workforcePoolUserProject && + !this.audience.match(workforceAudiencePattern)) { + throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' + + 'credentials.'); + } + this.serviceAccountImpersonationUrl = + options.service_account_impersonation_url; + this.serviceAccountImpersonationLifetime = + (_b = (_a = options.service_account_impersonation) === null || _a === void 0 ? void 0 : _a.token_lifetime_seconds) !== null && _b !== void 0 ? _b : DEFAULT_TOKEN_LIFESPAN; + // As threshold could be zero, + // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the + // zero value. + if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { + this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; + } + else { + this.eagerRefreshThresholdMillis = additionalOptions + .eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); + this.projectId = null; + this.projectNumber = this.getProjectNumber(this.audience); + } + /** The service account email to be impersonated, if available. */ + getServiceAccountEmail() { + var _a; + if (this.serviceAccountImpersonationUrl) { + // Parse email from URL. The formal looks as follows: + // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken + const re = /serviceAccounts\/(?[^:]+):generateAccessToken$/; + const result = re.exec(this.serviceAccountImpersonationUrl); + return ((_a = result === null || result === void 0 ? void 0 : result.groups) === null || _a === void 0 ? void 0 : _a.email) || null; + } + return null; + } + /** + * Provides a mechanism to inject GCP access tokens directly. + * When the provided credential expires, a new credential, using the + * external account options, is retrieved. + * @param credentials The Credentials object to set on the current client. + */ + setCredentials(credentials) { + super.setCredentials(credentials); + this.cachedAccessToken = credentials; + } + /** + * @return A promise that resolves with the current GCP access token + * response. If the current credential is expired, a new one is retrieved. + */ + async getAccessToken() { + // If cached access token is unavailable or expired, force refresh. + if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return GCP access token in GetAccessTokenResponse format. + return { + token: this.cachedAccessToken.access_token, + res: this.cachedAccessToken.res, + }; + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * The result has the form: + * { Authorization: 'Bearer ' } + */ + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * @return A promise that resolves with the project ID corresponding to the + * current workload identity pool or current workforce pool if + * determinable. For workforce pool credential, it returns the project ID + * corresponding to the workforcePoolUserProject. + * This is introduced to match the current pattern of using the Auth + * library: + * const projectId = await auth.getProjectId(); + * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; + * const res = await client.request({ url }); + * The resource may not have permission + * (resourcemanager.projects.get) to call this API or the required + * scopes may not be selected: + * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes + */ + async getProjectId() { + const projectNumber = this.projectNumber || this.workforcePoolUserProject; + if (this.projectId) { + // Return previously determined project ID. + return this.projectId; + } + else if (projectNumber) { + // Preferable not to use request() to avoid retrial policies. + const headers = await this.getRequestHeaders(); + const response = await this.transporter.request({ + headers, + url: `${exports.CLOUD_RESOURCE_MANAGER}${projectNumber}`, + responseType: 'json', + }); + this.projectId = response.data.projectId; + return this.projectId; + } + return null; + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param retry Whether the current attempt is a retry after a failed attempt. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, retry = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * External credentials are exchanged for GCP access tokens via the token + * exchange endpoint and other settings provided in the client options + * object. + * If the service_account_impersonation_url is provided, an additional + * step to exchange the external account GCP access token for a service + * account impersonated token is performed. + * @return A promise that resolves with the fresh GCP access tokens. + */ + async refreshAccessTokenAsync() { + // Retrieve the external credential. + const subjectToken = await this.retrieveSubjectToken(); + // Construct the STS credentials options. + const stsCredentialsOptions = { + grantType: STS_GRANT_TYPE, + audience: this.audience, + requestedTokenType: STS_REQUEST_TOKEN_TYPE, + subjectToken, + subjectTokenType: this.subjectTokenType, + // generateAccessToken requires the provided access token to have + // scopes: + // https://www.googleapis.com/auth/iam or + // https://www.googleapis.com/auth/cloud-platform + // The new service account access token scopes will match the user + // provided ones. + scope: this.serviceAccountImpersonationUrl + ? [DEFAULT_OAUTH_SCOPE] + : this.getScopesArray(), + }; + // Exchange the external credentials for a GCP access token. + // Client auth is prioritized over passing the workforcePoolUserProject + // parameter for STS token exchange. + const additionalOptions = !this.clientAuth && this.workforcePoolUserProject + ? { userProject: this.workforcePoolUserProject } + : undefined; + const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, additionalOptions); + if (this.serviceAccountImpersonationUrl) { + this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token); + } + else if (stsResponse.expires_in) { + // Save response in cached access token. + this.cachedAccessToken = { + access_token: stsResponse.access_token, + expiry_date: new Date().getTime() + stsResponse.expires_in * 1000, + res: stsResponse.res, + }; + } + else { + // Save response in cached access token. + this.cachedAccessToken = { + access_token: stsResponse.access_token, + res: stsResponse.res, + }; + } + // Save credentials. + this.credentials = {}; + Object.assign(this.credentials, this.cachedAccessToken); + delete this.credentials.res; + // Trigger tokens event to notify external listeners. + this.emit('tokens', { + refresh_token: null, + expiry_date: this.cachedAccessToken.expiry_date, + access_token: this.cachedAccessToken.access_token, + token_type: 'Bearer', + id_token: null, + }); + // Return the cached access token. + return this.cachedAccessToken; + } + /** + * Returns the workload identity pool project number if it is determinable + * from the audience resource name. + * @param audience The STS audience used to determine the project number. + * @return The project number associated with the workload identity pool, if + * this can be determined from the STS audience field. Otherwise, null is + * returned. + */ + getProjectNumber(audience) { + // STS audience pattern: + // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... + const match = audience.match(/\/projects\/([^/]+)/); + if (!match) { + return null; + } + return match[1]; + } + /** + * Exchanges an external account GCP access token for a service + * account impersonated access token using iamcredentials + * GenerateAccessToken API. + * @param token The access token to exchange for a service account access + * token. + * @return A promise that resolves with the service account impersonated + * credentials response. + */ + async getImpersonatedAccessToken(token) { + const opts = { + url: this.serviceAccountImpersonationUrl, + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${token}`, + }, + data: { + scope: this.getScopesArray(), + lifetime: this.serviceAccountImpersonationLifetime + 's', + }, + responseType: 'json', + }; + const response = await this.transporter.request(opts); + const successResponse = response.data; + return { + access_token: successResponse.accessToken, + // Convert from ISO format to timestamp. + expiry_date: new Date(successResponse.expireTime).getTime(), + res: response, + }; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param accessToken The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(accessToken) { + const now = new Date().getTime(); + return accessToken.expiry_date + ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis + : false; + } + /** + * @return The list of scopes for the requested GCP access token. + */ + getScopesArray() { + // Since scopes can be provided as string or array, the type should + // be normalized. + if (typeof this.scopes === 'string') { + return [this.scopes]; + } + else if (typeof this.scopes === 'undefined') { + return [DEFAULT_OAUTH_SCOPE]; + } + else { + return this.scopes; + } + } +} +exports.BaseExternalAccountClient = BaseExternalAccountClient; +//# sourceMappingURL=baseexternalclient.js.map + +/***/ }), + +/***/ 77: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.adsensehost_v4_1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var adsensehost_v4_1; +(function (adsensehost_v4_1) { + /** + * AdSense Host API + * + * Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adsensehost = google.adsensehost('v4.1'); + * ``` + */ + class Adsensehost { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.adclients = new Resource$Adclients(this.context); + this.associationsessions = new Resource$Associationsessions(this.context); + this.customchannels = new Resource$Customchannels(this.context); + this.reports = new Resource$Reports(this.context); + this.urlchannels = new Resource$Urlchannels(this.context); + } + } + adsensehost_v4_1.Adsensehost = Adsensehost; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.adclients = new Resource$Accounts$Adclients(this.context); + this.adunits = new Resource$Accounts$Adunits(this.context); + this.reports = new Resource$Accounts$Reports(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -3050,35 +3324,23 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'unsampledReportId', - ], - pathParams: [ - 'accountId', - 'profileId', - 'unsampledReportId', - 'webPropertyId', - ], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -3092,23 +3354,28 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['filterAdClientId'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + adsensehost_v4_1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adclients { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3125,28 +3392,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Unsampledreports = Resource$Management$Unsampledreports; - class Resource$Management$Uploads { - constructor(context) { - this.context = context; - } - deleteUploadData(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3162,23 +3423,28 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], - pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + adsensehost_v4_1.Resource$Accounts$Adclients = Resource$Accounts$Adclients; + class Resource$Accounts$Adunits { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3195,32 +3461,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'customDataSourceId', - 'uploadId', - ], - pathParams: [ - 'accountId', - 'customDataSourceId', - 'uploadId', - 'webPropertyId', - ], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3237,22 +3493,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], - pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadData(paramsOrCallback, optionsOrCallback, callback) { + getAdCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3269,30 +3525,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], - pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Uploads = Resource$Management$Uploads; - class Resource$Management$Webproperties { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3309,22 +3557,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3341,22 +3589,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3373,22 +3621,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3405,22 +3653,28 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + adsensehost_v4_1.Resource$Accounts$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3436,31 +3690,29 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['accountId', 'startDate', 'endDate'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Management$Webproperties = Resource$Management$Webproperties; - class Resource$Management$Webpropertyadwordslinks { + adsensehost_v4_1.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Adclients { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -3474,29 +3726,23 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -3510,27 +3756,28 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsensehost/v4.1/adclients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + adsensehost_v4_1.Resource$Adclients = Resource$Adclients; + class Resource$Associationsessions { + constructor(context) { + this.context = context; + } + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3546,23 +3793,22 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsensehost/v4.1/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['productCode', 'websiteUrl'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3578,23 +3824,28 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['token'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + adsensehost_v4_1.Resource$Associationsessions = Resource$Associationsessions; + class Resource$Customchannels { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3611,26 +3862,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3647,32 +3894,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Webpropertyadwordslinks = Resource$Management$Webpropertyadwordslinks; - class Resource$Management$Webpropertyuserlinks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3689,22 +3926,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'linkId'], - pathParams: ['accountId', 'linkId', 'webPropertyId'], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3721,22 +3958,22 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3753,19 +3990,19 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -3785,37 +4022,29 @@ var analytics_v3; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'linkId'], - pathParams: ['accountId', 'linkId', 'webPropertyId'], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Management$Webpropertyuserlinks = Resource$Management$Webpropertyuserlinks; - class Resource$Metadata { - constructor(context) { - this.context = context; - this.columns = new Resource$Metadata$Columns(this.context); - } - } - analytics_v3.Resource$Metadata = Resource$Metadata; - class Resource$Metadata$Columns { + adsensehost_v4_1.Resource$Customchannels = Resource$Customchannels; + class Resource$Reports { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -3829,28 +4058,28 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/metadata/{reportType}/columns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportType'], - pathParams: ['reportType'], + requiredParams: ['startDate', 'endDate'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Metadata$Columns = Resource$Metadata$Columns; - class Resource$Provisioning { + adsensehost_v4_1.Resource$Reports = Resource$Reports; + class Resource$Urlchannels { constructor(context) { this.context = context; } - createAccountTicket(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3866,22 +4095,23 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/provisioning/createAccountTicket').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['adClientId', 'urlChannelId'], + pathParams: ['adClientId', 'urlChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAccountTree(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -3897,37 +4127,23 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/provisioning/createAccountTree').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Provisioning = Resource$Provisioning; - class Resource$Userdeletion { - constructor(context) { - this.context = context; - this.userDeletionRequest = new Resource$Userdeletion$Userdeletionrequest(this.context); - } - } - analytics_v3.Resource$Userdeletion = Resource$Userdeletion; - class Resource$Userdeletion$Userdeletionrequest { - constructor(context) { - this.context = context; - } - upsert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -3941,28 +4157,29 @@ var analytics_v3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/userDeletion/userDeletionRequests:upsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - analytics_v3.Resource$Userdeletion$Userdeletionrequest = Resource$Userdeletion$Userdeletionrequest; -})(analytics_v3 = exports.analytics_v3 || (exports.analytics_v3 = {})); -//# sourceMappingURL=v3.js.map + adsensehost_v4_1.Resource$Urlchannels = Resource$Urlchannels; +})(adsensehost_v4_1 = exports.adsensehost_v4_1 || (exports.adsensehost_v4_1 = {})); + /***/ }), -/* 6 */ + +/***/ 81: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -3980,158 +4197,65 @@ var analytics_v3; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.pagespeedonline = exports.VERSIONS = void 0; +exports.AuthPlus = exports.chat_v1 = exports.auth = exports.chat = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(730); -const v4_1 = __webpack_require__(520); -const v5_1 = __webpack_require__(521); +const v1_1 = __webpack_require__(5939); +Object.defineProperty(exports, "chat_v1", { enumerable: true, get: function () { return v1_1.chat_v1; } }); exports.VERSIONS = { - v2: v2_1.pagespeedonline_v2.Pagespeedonline, - v4: v4_1.pagespeedonline_v4.Pagespeedonline, - v5: v5_1.pagespeedonline_v5.Pagespeedonline, + v1: v1_1.chat_v1.Chat, }; -function pagespeedonline(versionOrOptions) { - return googleapis_common_1.getAPI('pagespeedonline', versionOrOptions, exports.VERSIONS, this); +function chat(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('chat', versionOrOptions, exports.VERSIONS, this); } -exports.pagespeedonline = pagespeedonline; +exports.chat = chat; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 7 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rng; - -var _crypto = _interopRequireDefault(__webpack_require__(417)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate - -let poolPtr = rnds8Pool.length; - -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - - poolPtr = 0; - } +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} /***/ }), -/* 8 */, -/* 9 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var once = __webpack_require__(969); - -var noop = function() {}; - -var isRequest = function(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -}; - -var isChildProcess = function(stream) { - return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 -}; - -var eos = function(stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts); - if (!opts) opts = {}; - - callback = once(callback || noop); - - var ws = stream._writableState; - var rs = stream._readableState; - var readable = opts.readable || (opts.readable !== false && stream.readable); - var writable = opts.writable || (opts.writable !== false && stream.writable); - var cancelled = false; - - var onlegacyfinish = function() { - if (!stream.writable) onfinish(); - }; - - var onfinish = function() { - writable = false; - if (!readable) callback.call(stream); - }; - - var onend = function() { - readable = false; - if (!writable) callback.call(stream); - }; - - var onexit = function(exitCode) { - callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); - }; - - var onerror = function(err) { - callback.call(stream, err); - }; - - var onclose = function() { - process.nextTick(onclosenexttick); - }; - - var onclosenexttick = function() { - if (cancelled) return; - if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); - if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); - }; - var onrequest = function() { - stream.req.on('finish', onfinish); - }; - - if (isRequest(stream)) { - stream.on('complete', onfinish); - stream.on('abort', onclose); - if (stream.req) onrequest(); - else stream.on('request', onrequest); - } else if (writable && !ws) { // legacy streams - stream.on('end', onlegacyfinish); - stream.on('close', onlegacyfinish); - } - - if (isChildProcess(stream)) stream.on('exit', onexit); +/***/ 85: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - stream.on('end', onend); - stream.on('finish', onfinish); - if (opts.error !== false) stream.on('error', onerror); - stream.on('close', onclose); +"use strict"; - return function() { - cancelled = true; - stream.removeListener('complete', onfinish); - stream.removeListener('abort', onclose); - stream.removeListener('request', onrequest); - if (stream.req) stream.req.removeListener('finish', onfinish); - stream.removeListener('end', onlegacyfinish); - stream.removeListener('close', onlegacyfinish); - stream.removeListener('finish', onfinish); - stream.removeListener('exit', onexit); - stream.removeListener('end', onend); - stream.removeListener('error', onerror); - stream.removeListener('close', onclose); - }; +// 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.AuthPlus = exports.dataflow_v1b3 = exports.auth = exports.dataflow = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1b3_1 = __webpack_require__(4954); +Object.defineProperty(exports, "dataflow_v1b3", { enumerable: true, get: function () { return v1b3_1.dataflow_v1b3; } }); +exports.VERSIONS = { + v1b3: v1b3_1.dataflow_v1b3.Dataflow, }; - -module.exports = eos; +function dataflow(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dataflow', versionOrOptions, exports.VERSIONS, this); +} +exports.dataflow = dataflow; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 10 */ + +/***/ 106: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -4149,79 +4273,115 @@ module.exports = eos; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudasset_v1 = void 0; +exports.policysimulator_v1alpha = 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 = __webpack_require__(927); -var cloudasset_v1; -(function (cloudasset_v1) { +var policysimulator_v1alpha; +(function (policysimulator_v1alpha) { /** - * Cloud Asset API + * Policy Simulator API * - * The cloud asset API manages the history and inventory of cloud resources. + * Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A `Replay` is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a `Replay`, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudasset = google.cloudasset('v1'); - * - * @namespace cloudasset - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudasset + * const policysimulator = google.policysimulator('v1alpha'); + * ``` */ - class Cloudasset { + class Policysimulator { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.feeds = new Resource$Feeds(this.context); + this.folders = new Resource$Folders(this.context); this.operations = new Resource$Operations(this.context); - this.v1 = new Resource$V1(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } } - cloudasset_v1.Cloudasset = Cloudasset; - class Resource$Feeds { + policysimulator_v1alpha.Policysimulator = Policysimulator; + class Resource$Folders { constructor(context) { this.context = context; + this.locations = new Resource$Folders$Locations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + policysimulator_v1alpha.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Folders$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Folders$Locations$Replays(this.context); + } + } + policysimulator_v1alpha.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1alpha.Resource$Folders$Locations$Orgpolicyviolationspreviews = Resource$Folders$Locations$Orgpolicyviolationspreviews; + class Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + policysimulator_v1alpha.Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations = Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Folders$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1alpha.Resource$Folders$Locations$Replays = Resource$Folders$Locations$Replays; + class Resource$Folders$Locations$Replays$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -4232,11 +4392,11 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -4244,12 +4404,50 @@ var cloudasset_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1alpha.Resource$Folders$Locations$Replays$Operations = Resource$Folders$Locations$Replays$Operations; + class Resource$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -4262,10 +4460,10 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -4274,10 +4472,10 @@ var cloudasset_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -4292,41 +4490,73 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + policysimulator_v1alpha.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + policysimulator_v1alpha.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Organizations$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Organizations$Locations$Replays(this.context); + } + } + policysimulator_v1alpha.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1alpha.Resource$Organizations$Locations$Orgpolicyviolationspreviews = Resource$Organizations$Locations$Orgpolicyviolationspreviews; + class Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -4334,34 +4564,75 @@ var cloudasset_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudasset_v1.Resource$Feeds = Resource$Feeds; - class Resource$Operations { + policysimulator_v1alpha.Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations = Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Organizations$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1alpha.Resource$Organizations$Locations$Replays = Resource$Organizations$Locations$Replays; + class Resource$Organizations$Locations$Replays$Operations { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -4370,458 +4641,159 @@ var cloudasset_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudasset_v1.Resource$Operations = Resource$Operations; - class Resource$V1 { + policysimulator_v1alpha.Resource$Organizations$Locations$Replays$Operations = Resource$Organizations$Locations$Replays$Operations; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Projects$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Projects$Locations$Replays(this.context); + } + } + policysimulator_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1alpha.Resource$Projects$Locations$Orgpolicyviolationspreviews = Resource$Projects$Locations$Orgpolicyviolationspreviews; + class Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + policysimulator_v1alpha.Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations = Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Projects$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1alpha.Resource$Projects$Locations$Replays = Resource$Projects$Locations$Replays; + class Resource$Projects$Locations$Replays$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudasset_v1.Resource$V1 = Resource$V1; -})(cloudasset_v1 = exports.cloudasset_v1 || (exports.cloudasset_v1 = {})); -//# sourceMappingURL=v1.js.map + policysimulator_v1alpha.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; +})(policysimulator_v1alpha = exports.policysimulator_v1alpha || (exports.policysimulator_v1alpha = {})); + /***/ }), -/* 11 */ -/***/ (function(module) { - -// Returns a wrapper function that returns a wrapped callback -// The wrapper function should do some stuff, and return a -// presumably different callback function. -// This makes sure that own properties are retained, so that -// decorations and such are not lost along the way. -module.exports = wrappy -function wrappy (fn, cb) { - if (fn && cb) return wrappy(fn)(cb) - - if (typeof fn !== 'function') - throw new TypeError('need wrapper function') - - Object.keys(fn).forEach(function (k) { - wrapper[k] = fn[k] - }) - - return wrapper - - function wrapper() { - var args = new Array(arguments.length) - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] - } - var ret = fn.apply(this, args) - var cb = args[args.length-1] - if (typeof ret === 'function' && ret !== cb) { - Object.keys(cb).forEach(function (k) { - ret[k] = cb[k] - }) - } - return ret - } -} - - -/***/ }), -/* 12 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Secure Hash Algorithm with 256-bit digest (SHA-256) implementation. - * - * See FIPS 180-2 for details. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(220); -__webpack_require__(54); - -var sha256 = module.exports = forge.sha256 = forge.sha256 || {}; -forge.md.sha256 = forge.md.algorithms.sha256 = sha256; - -/** - * Creates a SHA-256 message digest object. - * - * @return a message digest object. - */ -sha256.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } - - // SHA-256 state contains eight 32-bit integers - var _state = null; - - // input buffer - var _input = forge.util.createBuffer(); - - // used for word storage - var _w = new Array(64); - - // message digest object - var md = { - algorithm: 'sha256', - blockLength: 64, - digestLength: 32, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; - - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x6A09E667, - h1: 0xBB67AE85, - h2: 0x3C6EF372, - h3: 0xA54FF53A, - h4: 0x510E527F, - h5: 0x9B05688C, - h6: 0x1F83D9AB, - h7: 0x5BE0CD19 - }; - return md; - }; - // start digest automatically for first time - md.start(); - - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = ((len[1] / 0x100000000) >>> 0); - } - - // add bytes to input buffer - _input.putBytes(msg); - - // process bytes - _update(_state, _w, _input); - - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } - - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate SHA-256 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in big-endian order; since length - // is stored in bytes we multiply by 8 and add carry from next int - var next, carry; - var bits = md.fullMessageLength[0] * 8; - for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { - next = md.fullMessageLength[i + 1] * 8; - carry = (next / 0x100000000) >>> 0; - bits += carry; - finalBlock.putInt32(bits >>> 0); - bits = next >>> 0; - } - finalBlock.putInt32(bits); - - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3, - h4: _state.h4, - h5: _state.h5, - h6: _state.h6, - h7: _state.h7 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32(s2.h0); - rval.putInt32(s2.h1); - rval.putInt32(s2.h2); - rval.putInt32(s2.h3); - rval.putInt32(s2.h4); - rval.putInt32(s2.h5); - rval.putInt32(s2.h6); - rval.putInt32(s2.h7); - return rval; - }; - - return md; -}; - -// sha-256 padding bytes not initialized yet -var _padding = null; -var _initialized = false; - -// table of constants -var _k = null; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); - - // create K table for SHA-256 - _k = [ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, - 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, - 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, - 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, - 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, - 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, - 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, - 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, - 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; - - // now initialized - _initialized = true; -} - -/** - * Updates a SHA-256 state with the given byte buffer. - * - * @param s the SHA-256 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t1, t2, s0, s1, ch, maj, i, a, b, c, d, e, f, g, h; - var len = bytes.length(); - while(len >= 64) { - // the w array will be populated with sixteen 32-bit big-endian words - // and then extended into 64 32-bit words according to SHA-256 - for(i = 0; i < 16; ++i) { - w[i] = bytes.getInt32(); - } - for(; i < 64; ++i) { - // XOR word 2 words ago rot right 17, rot right 19, shft right 10 - t1 = w[i - 2]; - t1 = - ((t1 >>> 17) | (t1 << 15)) ^ - ((t1 >>> 19) | (t1 << 13)) ^ - (t1 >>> 10); - // XOR word 15 words ago rot right 7, rot right 18, shft right 3 - t2 = w[i - 15]; - t2 = - ((t2 >>> 7) | (t2 << 25)) ^ - ((t2 >>> 18) | (t2 << 14)) ^ - (t2 >>> 3); - // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^32 - w[i] = (t1 + w[i - 7] + t2 + w[i - 16]) | 0; - } - - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - e = s.h4; - f = s.h5; - g = s.h6; - h = s.h7; - - // round function - for(i = 0; i < 64; ++i) { - // Sum1(e) - s1 = - ((e >>> 6) | (e << 26)) ^ - ((e >>> 11) | (e << 21)) ^ - ((e >>> 25) | (e << 7)); - // Ch(e, f, g) (optimized the same way as SHA-1) - ch = g ^ (e & (f ^ g)); - // Sum0(a) - s0 = - ((a >>> 2) | (a << 30)) ^ - ((a >>> 13) | (a << 19)) ^ - ((a >>> 22) | (a << 10)); - // Maj(a, b, c) (optimized the same way as SHA-1) - maj = (a & b) | (c & (a ^ b)); - - // main algorithm - t1 = h + s1 + ch + _k[i] + w[i]; - t2 = s0 + maj; - h = g; - g = f; - f = e; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - // can't truncate with `| 0` - e = (d + t1) >>> 0; - d = c; - c = b; - b = a; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - // can't truncate with `| 0` - a = (t1 + t2) >>> 0; - } - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; - s.h4 = (s.h4 + e) | 0; - s.h5 = (s.h5 + f) | 0; - s.h6 = (s.h6 + g) | 0; - s.h7 = (s.h7 + h) | 0; - len -= 64; - } -} - - -/***/ }), -/* 13 */ +/***/ 116: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -4839,23 +4811,27 @@ function _update(s, w, bytes) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.books = exports.VERSIONS = void 0; +exports.AuthPlus = exports.androidmanagement_v1 = exports.auth = exports.androidmanagement = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(613); +const v1_1 = __webpack_require__(1901); +Object.defineProperty(exports, "androidmanagement_v1", { enumerable: true, get: function () { return v1_1.androidmanagement_v1; } }); exports.VERSIONS = { - v1: v1_1.books_v1.Books, + v1: v1_1.androidmanagement_v1.Androidmanagement, }; -function books(versionOrOptions) { - return googleapis_common_1.getAPI('books', versionOrOptions, exports.VERSIONS, this); +function androidmanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('androidmanagement', versionOrOptions, exports.VERSIONS, this); } -exports.books = books; +exports.androidmanagement = androidmanagement; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 14 */ + +/***/ 118: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -4873,45 +4849,40 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudfunctions_v1 = void 0; +exports.gmailpostmastertools_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 = __webpack_require__(927); -var cloudfunctions_v1; -(function (cloudfunctions_v1) { +var gmailpostmastertools_v1; +(function (gmailpostmastertools_v1) { /** - * Cloud Functions API + * Gmail Postmaster Tools API * - * Manages lightweight user-provided functions executed in response to events. + * The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudfunctions = google.cloudfunctions('v1'); - * - * @namespace cloudfunctions - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudfunctions + * const gmailpostmastertools = google.gmailpostmastertools('v1'); + * ``` */ - class Cloudfunctions { + class Gmailpostmastertools { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); + this.domains = new Resource$Domains(this.context); } } - cloudfunctions_v1.Cloudfunctions = Cloudfunctions; - class Resource$Operations { + gmailpostmastertools_v1.Gmailpostmastertools = Gmailpostmastertools; + class Resource$Domains { constructor(context) { this.context = context; + this.trafficStats = new Resource$Domains$Trafficstats(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -4925,7 +4896,7 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -4937,10 +4908,10 @@ var cloudfunctions_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -4955,10 +4926,10 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -4967,218 +4938,18 @@ var cloudfunctions_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - cloudfunctions_v1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - cloudfunctions_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.functions = new Resource$Projects$Locations$Functions(this.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://cloudfunctions.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudfunctions_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Functions { + gmailpostmastertools_v1.Resource$Domains = Resource$Domains; + class Resource$Domains$Trafficstats { constructor(context) { this.context = context; } - call(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://cloudfunctions.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:call').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); - } - } - 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://cloudfunctions.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['location'], - pathParams: ['location'], - 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://cloudfunctions.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); - } - } - generateDownloadUrl(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://cloudfunctions.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateDownloadUrl').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); - } - } - generateUploadUrl(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://cloudfunctions.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl').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); - } - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -5192,7 +4963,7 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -5204,41 +4975,10 @@ var cloudfunctions_v1; 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://cloudfunctions.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -5254,10 +4994,10 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/trafficStats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -5266,304 +5006,977 @@ var cloudfunctions_v1; 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://cloudfunctions.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } - } - 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://cloudfunctions.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); - } - } - 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://cloudfunctions.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudfunctions_v1.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; -})(cloudfunctions_v1 = exports.cloudfunctions_v1 || (exports.cloudfunctions_v1 = {})); -//# sourceMappingURL=v1.js.map + gmailpostmastertools_v1.Resource$Domains$Trafficstats = Resource$Domains$Trafficstats; +})(gmailpostmastertools_v1 = exports.gmailpostmastertools_v1 || (exports.gmailpostmastertools_v1 = {})); + /***/ }), -/* 15 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; +/***/ 126: +/***/ (function(module) { -// 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.auth = exports.doubleclicksearch = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(311); -exports.VERSIONS = { - v2: v2_1.doubleclicksearch_v2.Doubleclicksearch, -}; -function doubleclicksearch(versionOrOptions) { - return googleapis_common_1.getAPI('doubleclicksearch', versionOrOptions, exports.VERSIONS, this); -} -exports.doubleclicksearch = doubleclicksearch; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ -/***/ }), -/* 16 */ -/***/ (function(module) { +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; -module.exports = require("tls"); +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/***/ }), -/* 17 */, -/* 18 */ -/***/ (function(module) { +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; -module.exports = eval("require")("encoding"); +/** `Object#toString` result references. */ +var funcTag = '[object Function]', + genTag = '[object GeneratorFunction]'; +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -/***/ }), -/* 19 */, -/* 20 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; -"use strict"; +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -const cp = __webpack_require__(129); -const parse = __webpack_require__(568); -const enoent = __webpack_require__(881); +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); -function spawn(command, args, options) { - // Parse the arguments - const parsed = parse(command, args, options); +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array ? array.length : 0; + return !!length && baseIndexOf(array, value, 0) > -1; +} - // Spawn the child process - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array ? array.length : 0; - // Hook into child process "exit" event to emit an error if the command - // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - enoent.hookChildProcess(spawned, parsed); + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} - return spawned; +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; } -function spawnSync(command, args, options) { - // Parse the arguments - const parsed = parse(command, args, options); +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + if (value !== value) { + return baseFindIndex(array, baseIsNaN, fromIndex); + } + var index = fromIndex - 1, + length = array.length; - // Spawn the child process - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} - // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} - return result; +/** + * Checks if a cache value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); } -module.exports = spawn; -module.exports.spawn = spawn; -module.exports.sync = spawnSync; +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} -module.exports._parse = parse; -module.exports._enoent = enoent; +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); -/***/ }), -/* 21 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} -"use strict"; +/** Used for built-in method references. */ +var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; -// 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.manufacturers_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 = __webpack_require__(927); -var manufacturers_v1; -(function (manufacturers_v1) { - /** - * Manufacturer Center API - * - * Public API for managing Manufacturer Center related data. - * - * @example - * const {google} = require('googleapis'); - * const manufacturers = google.manufacturers('v1'); - * - * @namespace manufacturers - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Manufacturers - */ - class Manufacturers { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - } - } - manufacturers_v1.Manufacturers = Manufacturers; - class Resource$Accounts { - constructor(context) { - this.context = context; - this.products = new Resource$Accounts$Products(this.context); - } - } - manufacturers_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Products { - 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://manufacturers.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['parent', 'name'], - pathParams: ['name', 'parent'], - context: this.context, +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'), + Set = getNative(root, 'Set'), + nativeCreate = getNative(Object, 'create'); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; +} + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; +} + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; +} + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); +} + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; +} + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; +} + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + return getMapData(this, key)['delete'](key); +} + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; +} + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values ? values.length : 0; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +/** + * The base implementation of `_.uniqBy` without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ +function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = true, + result = [], + seen = result; + + if (comparator) { + isCommon = false; + includes = arrayIncludesWith; + } + else if (length >= LARGE_ARRAY_SIZE) { + var set = iteratee ? null : createSet(array); + if (set) { + return setToArray(set); + } + isCommon = false; + includes = cacheHas; + seen = new SetCache; + } + else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} + +/** + * Creates a set object of `values`. + * + * @private + * @param {Array} values The values to add to the set. + * @returns {Object} Returns the new set. + */ +var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { + return new Set(values); +}; + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to process. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +/** + * Creates a duplicate-free version of an array, using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons, in which only the first occurrence of each + * element is kept. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.uniq([2, 1, 2]); + * // => [2, 1] + */ +function uniq(array) { + return (array && array.length) + ? baseUniq(array) + : []; +} + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * This method returns `undefined`. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Util + * @example + * + * _.times(2, _.noop); + * // => [undefined, undefined] + */ +function noop() { + // No operation performed. +} + +module.exports = uniq; + + +/***/ }), + +/***/ 128: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.abusiveexperiencereport_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var abusiveexperiencereport_v1; +(function (abusiveexperiencereport_v1) { + /** + * Abusive Experience Report API + * + * Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const abusiveexperiencereport = google.abusiveexperiencereport('v1'); + * ``` + */ + class Abusiveexperiencereport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.sites = new Resource$Sites(this.context); + this.violatingSites = new Resource$Violatingsites(this.context); + } + } + abusiveexperiencereport_v1.Abusiveexperiencereport = Abusiveexperiencereport; + class Resource$Sites { + constructor(context) { + this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -5574,24 +5987,30 @@ var manufacturers_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'name'], - pathParams: ['name', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + abusiveexperiencereport_v1.Resource$Sites = Resource$Sites; + class Resource$Violatingsites { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -5605,62 +6024,32 @@ var manufacturers_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/violatingSites').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://manufacturers.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['parent', 'name'], - pathParams: ['name', 'parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - manufacturers_v1.Resource$Accounts$Products = Resource$Accounts$Products; -})(manufacturers_v1 = exports.manufacturers_v1 || (exports.manufacturers_v1 = {})); -//# sourceMappingURL=v1.js.map + abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; +})(abusiveexperiencereport_v1 = exports.abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = {})); + /***/ }), -/* 22 */ + +/***/ 130: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -5678,53 +6067,94 @@ var manufacturers_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.iamcredentials_v1 = void 0; +exports.AuthPlus = exports.firebasestorage_v1beta = exports.auth = exports.firebasestorage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta_1 = __webpack_require__(308); +Object.defineProperty(exports, "firebasestorage_v1beta", { enumerable: true, get: function () { return v1beta_1.firebasestorage_v1beta; } }); +exports.VERSIONS = { + v1beta: v1beta_1.firebasestorage_v1beta.Firebasestorage, +}; +function firebasestorage(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebasestorage', versionOrOptions, exports.VERSIONS, this); +} +exports.firebasestorage = firebasestorage; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 140: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.assuredworkloads_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 = __webpack_require__(927); -var iamcredentials_v1; -(function (iamcredentials_v1) { +var assuredworkloads_v1; +(function (assuredworkloads_v1) { /** - * IAM Service Account Credentials API + * Assured Workloads API + * * - * Creates short-lived, limited-privilege credentials for IAM service accounts. * * @example + * ```js * const {google} = require('googleapis'); - * const iamcredentials = google.iamcredentials('v1'); - * - * @namespace iamcredentials - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Iamcredentials + * const assuredworkloads = google.assuredworkloads('v1'); + * ``` */ - class Iamcredentials { + class Assuredworkloads { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.organizations = new Resource$Organizations(this.context); } } - iamcredentials_v1.Iamcredentials = Iamcredentials; - class Resource$Projects { + assuredworkloads_v1.Assuredworkloads = Assuredworkloads; + class Resource$Organizations { constructor(context) { this.context = context; - this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); + this.locations = new Resource$Organizations$Locations(this.context); } } - iamcredentials_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Serviceaccounts { + assuredworkloads_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { constructor(context) { this.context = context; + this.operations = new Resource$Organizations$Locations$Operations(this.context); + this.workloads = new Resource$Organizations$Locations$Workloads(this.context); } - generateAccessToken(paramsOrCallback, optionsOrCallback, callback) { + } + assuredworkloads_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -5737,11 +6167,11 @@ var iamcredentials_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -5749,13 +6179,13 @@ var iamcredentials_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateIdToken(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -5768,11 +6198,11 @@ var iamcredentials_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateIdToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -5780,13 +6210,21 @@ var iamcredentials_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signBlob(paramsOrCallback, optionsOrCallback, callback) { + } + assuredworkloads_v1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Organizations$Locations$Workloads { + constructor(context) { + this.context = context; + this.violations = + new Resource$Organizations$Locations$Workloads$Violations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -5799,25 +6237,25 @@ var iamcredentials_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signJwt(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -5830,11 +6268,11 @@ var iamcredentials_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -5842,81 +6280,13 @@ var iamcredentials_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - iamcredentials_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; -})(iamcredentials_v1 = exports.iamcredentials_v1 || (exports.iamcredentials_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 23 */, -/* 24 */, -/* 25 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.doubleclickbidmanager_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 = __webpack_require__(927); -var doubleclickbidmanager_v1; -(function (doubleclickbidmanager_v1) { - /** - * DoubleClick Bid Manager API - * - * API for viewing and managing your reports in DoubleClick Bid Manager. - * - * @example - * const {google} = require('googleapis'); - * const doubleclickbidmanager = google.doubleclickbidmanager('v1'); - * - * @namespace doubleclickbidmanager - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Doubleclickbidmanager - */ - class Doubleclickbidmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.lineitems = new Resource$Lineitems(this.context); - this.queries = new Resource$Queries(this.context); - this.reports = new Resource$Reports(this.context); - this.sdf = new Resource$Sdf(this.context); - } - } - doubleclickbidmanager_v1.Doubleclickbidmanager = Doubleclickbidmanager; - class Resource$Lineitems { - constructor(context) { - this.context = context; - } - downloadlineitems(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -5929,25 +6299,25 @@ var doubleclickbidmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/lineitems/downloadlineitems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadlineitems(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -5960,62 +6330,57 @@ var doubleclickbidmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/lineitems/uploadlineitems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - doubleclickbidmanager_v1.Resource$Lineitems = Resource$Lineitems; - class Resource$Queries { - constructor(context) { - this.context = context; - } - createquery(paramsOrCallback, optionsOrCallback, callback) { + mutatePartnerPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:mutatePartnerPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletequery(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6028,666 +6393,1347 @@ var doubleclickbidmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getquery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + restrictAllowedResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:restrictAllowedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listqueries(paramsOrCallback, optionsOrCallback, callback) { + } + assuredworkloads_v1.Resource$Organizations$Locations$Workloads = Resource$Organizations$Locations$Workloads; + class Resource$Organizations$Locations$Workloads$Violations { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/queries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:acknowledge').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); - } - } - runquery(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - doubleclickbidmanager_v1.Resource$Queries = Resource$Queries; - class Resource$Reports { - constructor(context) { - this.context = context; - } - listreports(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - doubleclickbidmanager_v1.Resource$Reports = Resource$Reports; - class Resource$Sdf { - constructor(context) { - this.context = context; - } - download(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1/sdf/download').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - doubleclickbidmanager_v1.Resource$Sdf = Resource$Sdf; -})(doubleclickbidmanager_v1 = exports.doubleclickbidmanager_v1 || (exports.doubleclickbidmanager_v1 = {})); -//# sourceMappingURL=v1.js.map + assuredworkloads_v1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations; +})(assuredworkloads_v1 = exports.assuredworkloads_v1 || (exports.assuredworkloads_v1 = {})); + /***/ }), -/* 26 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; +/***/ 158: +/***/ (function(module, __unusedexports, __webpack_require__) { -// Copyright 2018 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 }); -const gcpMetadata = __webpack_require__(479); -var GCPEnv; -(function (GCPEnv) { - GCPEnv["APP_ENGINE"] = "APP_ENGINE"; - GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; - GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; - GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; - GCPEnv["NONE"] = "NONE"; -})(GCPEnv = exports.GCPEnv || (exports.GCPEnv = {})); -let envPromise; -function clear() { - envPromise = undefined; -} -exports.clear = clear; -async function getEnv() { - if (envPromise) { - return envPromise; +/** + * Supported cipher modes. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +forge.cipher = forge.cipher || {}; + +// supported cipher modes +var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {}; + +/** Electronic codebook (ECB) (Don't use this; it's not secure) **/ + +modes.ecb = function(options) { + options = options || {}; + this.name = 'ECB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); +}; + +modes.ecb.prototype.start = function(options) {}; + +modes.ecb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } +}; + +modes.ecb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // decrypt block + this.cipher.decrypt(this._inBlock, this._outBlock); + + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } +}; + +modes.ecb.prototype.pad = function(input, options) { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (input.length() === this.blockSize ? + this.blockSize : (this.blockSize - input.length())); + input.fillWithByte(padding, padding); + return true; +}; + +modes.ecb.prototype.unpad = function(output, options) { + // check for error: input data not a multiple of blockSize + if(options.overflow > 0) { + return false; + } + + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } + + // trim off padding bytes + output.truncate(count); + return true; +}; + +/** Cipher-block Chaining (CBC) **/ + +modes.cbc = function(options) { + options = options || {}; + this.name = 'CBC'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); +}; + +modes.cbc.prototype.start = function(options) { + // Note: legacy support for using IV residue (has security flaws) + // if IV is null, reuse block from previous processing + if(options.iv === null) { + // must have a previous block + if(!this._prev) { + throw new Error('Invalid IV parameter.'); } - envPromise = getEnvMemoized(); - return envPromise; -} -exports.getEnv = getEnv; -async function getEnvMemoized() { - let env = GCPEnv.NONE; - if (isAppEngine()) { - env = GCPEnv.APP_ENGINE; + this._iv = this._prev.slice(0); + } else if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } else { + // save IV as "previous" block + this._iv = transformIV(options.iv, this.blockSize); + this._prev = this._iv.slice(0); + } +}; + +modes.cbc.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + // CBC XOR's IV (or previous block) with plaintext + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._prev[i] ^ input.getInt32(); + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // write output, save previous block + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } + this._prev = this._outBlock; +}; + +modes.cbc.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // decrypt block + this.cipher.decrypt(this._inBlock, this._outBlock); + + // write output, save previous ciphered block + // CBC XOR's IV (or previous block) with ciphertext + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._prev[i] ^ this._outBlock[i]); + } + this._prev = this._inBlock.slice(0); +}; + +modes.cbc.prototype.pad = function(input, options) { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (input.length() === this.blockSize ? + this.blockSize : (this.blockSize - input.length())); + input.fillWithByte(padding, padding); + return true; +}; + +modes.cbc.prototype.unpad = function(output, options) { + // check for error: input data not a multiple of blockSize + if(options.overflow > 0) { + return false; + } + + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } + + // trim off padding bytes + output.truncate(count); + return true; +}; + +/** Cipher feedback (CFB) **/ + +modes.cfb = function(options) { + options = options || {}; + this.name = 'CFB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.cfb.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.cfb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output, write input as output + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32() ^ this._outBlock[i]; + output.putInt32(this._inBlock[i]); } - else if (isCloudFunction()) { - env = GCPEnv.CLOUD_FUNCTIONS; + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output, write input as partial output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialBlock[i] = input.getInt32() ^ this._outBlock[i]; + this._partialOutput.putInt32(this._partialBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._partialBlock[i]; } - else if (await isComputeEngine()) { - if (await isKubernetesEngine()) { - env = GCPEnv.KUBERNETES_ENGINE; - } - else { - env = GCPEnv.COMPUTE_ENGINE; - } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +modes.cfb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block (CFB always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output, write input as output + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + output.putInt32(this._inBlock[i] ^ this._outBlock[i]); } - else { - env = GCPEnv.NONE; + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output, write input as partial output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialBlock[i] = input.getInt32(); + this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._partialBlock[i]; } - return env; -} -function isAppEngine() { - return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); -} -function isCloudFunction() { - return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); -} -async function isKubernetesEngine() { - try { - await gcpMetadata.instance('attributes/cluster-name'); - return true; + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +/** Output feedback (OFB) **/ + +modes.ofb = function(options) { + options = options || {}; + this.name = 'OFB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.ofb.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.ofb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(input.length() === 0) { + return true; + } + + // encrypt block (OFB always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output and update next input + for(var i = 0; i < this._ints; ++i) { + output.putInt32(input.getInt32() ^ this._outBlock[i]); + this._inBlock[i] = this._outBlock[i]; } - catch (e) { - return false; + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._outBlock[i]; } -} -async function isComputeEngine() { - return gcpMetadata.isAvailable(); -} -//# sourceMappingURL=envDetect.js.map + } -/***/ }), -/* 27 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } -"use strict"; + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } -// 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.groupsmigration_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 = __webpack_require__(927); -var groupsmigration_v1; -(function (groupsmigration_v1) { - /** - * Groups Migration API - * - * Groups Migration Api. - * - * @example - * const {google} = require('googleapis'); - * const groupsmigration = google.groupsmigration('v1'); - * - * @namespace groupsmigration - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Groupsmigration - */ - class Groupsmigration { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.archive = new Resource$Archive(this.context); - } + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt; + +/** Counter (CTR) **/ + +modes.ctr = function(options) { + options = options || {}; + this.name = 'CTR'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.ctr.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.ctr.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block (CTR always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(input.getInt32() ^ this._outBlock[i]); } - groupsmigration_v1.Groupsmigration = Groupsmigration; - class Resource$Archive { - constructor(context) { - this.context = context; - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - mediaUrl: (rootUrl + '/upload/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['groupId'], - pathParams: ['groupId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; } - groupsmigration_v1.Resource$Archive = Resource$Archive; -})(groupsmigration_v1 = exports.groupsmigration_v1 || (exports.groupsmigration_v1 = {})); -//# sourceMappingURL=v1.js.map -/***/ }), -/* 28 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } -"use strict"; + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } -// 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.auth = exports.cloudiot = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(210); -exports.VERSIONS = { - v1: v1_1.cloudiot_v1.Cloudiot, + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; + } + + // block complete, increment counter (input block) + inc32(this._inBlock); }; -function cloudiot(versionOrOptions) { - return googleapis_common_1.getAPI('cloudiot', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudiot = cloudiot; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 29 */, -/* 30 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt; -"use strict"; +/** Galois/Counter Mode (GCM) **/ -// 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.jobs_v3p1beta1 = 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 = __webpack_require__(927); -var jobs_v3p1beta1; -(function (jobs_v3p1beta1) { - /** - * Cloud Talent Solution API - * - * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. - * - * @example - * const {google} = require('googleapis'); - * const jobs = google.jobs('v3p1beta1'); - * - * @namespace jobs - * @type {Function} - * @version v3p1beta1 - * @variation v3p1beta1 - * @param {object=} options Options for Jobs - */ - class Jobs { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } +modes.gcm = function(options) { + options = options || {}; + this.name = 'GCM'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; + + // R is actually this value concatenated with 120 more zero bits, but + // we only XOR against R so the other zeros have no effect -- we just + // apply this value to the first integer in a block + this._R = 0xE1000000; +}; + +modes.gcm.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // ensure IV is a byte buffer + var iv = forge.util.createBuffer(options.iv); + + // no ciphered data processed yet + this._cipherLength = 0; + + // default additional data is none + var additionalData; + if('additionalData' in options) { + additionalData = forge.util.createBuffer(options.additionalData); + } else { + additionalData = forge.util.createBuffer(); + } + + // default tag length is 128 bits + if('tagLength' in options) { + this._tagLength = options.tagLength; + } else { + this._tagLength = 128; + } + + // if tag is given, ensure tag matches tag length + this._tag = null; + if(options.decrypt) { + // save tag to check later + this._tag = forge.util.createBuffer(options.tag).getBytes(); + if(this._tag.length !== (this._tagLength / 8)) { + throw new Error('Authentication tag does not match tag length.'); } - jobs_v3p1beta1.Jobs = Jobs; - class Resource$Projects { - constructor(context) { - this.context = context; - this.clientEvents = new Resource$Projects$Clientevents(this.context); - this.companies = new Resource$Projects$Companies(this.context); - this.jobs = new Resource$Projects$Jobs(this.context); - this.operations = new Resource$Projects$Operations(this.context); - } - complete(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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}:complete').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); - } - } + } + + // create tmp storage for hash calculation + this._hashBlock = new Array(this._ints); + + // no tag generated yet + this.tag = null; + + // generate hash subkey + // (apply block cipher to "zero" block) + this._hashSubkey = new Array(this._ints); + this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); + + // generate table M + // use 4-bit tables (32 component decomposition of a 16 byte value) + // 8-bit tables take more space and are known to have security + // vulnerabilities (in native implementations) + this.componentBits = 4; + this._m = this.generateHashTable(this._hashSubkey, this.componentBits); + + // Note: support IV length different from 96 bits? (only supporting + // 96 bits is recommended by NIST SP-800-38D) + // generate J_0 + var ivLength = iv.length(); + if(ivLength === 12) { + // 96-bit IV + this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1]; + } else { + // IV is NOT 96-bits + this._j0 = [0, 0, 0, 0]; + while(iv.length() > 0) { + this._j0 = this.ghash( + this._hashSubkey, this._j0, + [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]); } - jobs_v3p1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Clientevents { - 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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/clientEvents').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); - } - } + this._j0 = this.ghash( + this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8))); + } + + // generate ICB (initial counter block) + this._inBlock = this._j0.slice(0); + inc32(this._inBlock); + this._partialBytes = 0; + + // consume authentication data + additionalData = forge.util.createBuffer(additionalData); + // save additional data length as a BE 64-bit number + this._aDataLength = from64To32(additionalData.length() * 8); + // pad additional data to 128 bit (16 byte) block size + var overflow = additionalData.length() % this.blockSize; + if(overflow) { + additionalData.fillWithByte(0, this.blockSize - overflow); + } + this._s = [0, 0, 0, 0]; + while(additionalData.length() > 0) { + this._s = this.ghash(this._hashSubkey, this._s, [ + additionalData.getInt32(), + additionalData.getInt32(), + additionalData.getInt32(), + additionalData.getInt32() + ]); + } +}; + +modes.gcm.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i] ^= input.getInt32()); } - jobs_v3p1beta1.Resource$Projects$Clientevents = Resource$Projects$Clientevents; - class Resource$Projects$Companies { - 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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/companies').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://jobs.googleapis.com/'; + this._cipherLength += this.blockSize; + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes <= 0 || finish) { + // handle overflow prior to hashing + if(finish) { + // get block overflow + var overflow = inputLength % this.blockSize; + this._cipherLength += overflow; + // truncate for hash function + this._partialOutput.truncate(this.blockSize - overflow); + } else { + this._cipherLength += this.blockSize; + } + + // get output block for hashing + for(var i = 0; i < this._ints; ++i) { + this._outBlock[i] = this._partialOutput.getInt32(); + } + this._partialOutput.read -= this.blockSize; + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + // block still incomplete, restore input buffer, get partial output, + // and return early + input.read -= this.blockSize; + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; + } + + // update hash block S + this._s = this.ghash(this._hashSubkey, this._s, this._outBlock); + + // increment counter (input block) + inc32(this._inBlock); +}; + +modes.gcm.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + var inputLength = input.length(); + if(inputLength < this.blockSize && !(finish && inputLength > 0)) { + return true; + } + + // encrypt block (GCM always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // increment counter (input block) + inc32(this._inBlock); + + // update hash block S + this._hashBlock[0] = input.getInt32(); + this._hashBlock[1] = input.getInt32(); + this._hashBlock[2] = input.getInt32(); + this._hashBlock[3] = input.getInt32(); + this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock); + + // XOR hash input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i] ^ this._hashBlock[i]); + } + + // increment cipher data length + if(inputLength < this.blockSize) { + this._cipherLength += inputLength % this.blockSize; + } else { + this._cipherLength += this.blockSize; + } +}; + +modes.gcm.prototype.afterFinish = function(output, options) { + var rval = true; + + // handle overflow + if(options.decrypt && options.overflow) { + output.truncate(this.blockSize - options.overflow); + } + + // handle authentication tag + this.tag = forge.util.createBuffer(); + + // concatenate additional data length with cipher length + var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8)); + + // include lengths in hash + this._s = this.ghash(this._hashSubkey, this._s, lengths); + + // do GCTR(J_0, S) + var tag = []; + this.cipher.encrypt(this._j0, tag); + for(var i = 0; i < this._ints; ++i) { + this.tag.putInt32(this._s[i] ^ tag[i]); + } + + // trim tag to length + this.tag.truncate(this.tag.length() % (this._tagLength / 8)); + + // check authentication tag + if(options.decrypt && this.tag.bytes() !== this._tag) { + rval = false; + } + + return rval; +}; + +/** + * See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois + * field multiplication. The field, GF(2^128), is defined by the polynomial: + * + * x^128 + x^7 + x^2 + x + 1 + * + * Which is represented in little-endian binary form as: 11100001 (0xe1). When + * the value of a coefficient is 1, a bit is set. The value R, is the + * concatenation of this value and 120 zero bits, yielding a 128-bit value + * which matches the block size. + * + * This function will multiply two elements (vectors of bytes), X and Y, in + * the field GF(2^128). The result is initialized to zero. For each bit of + * X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd) + * by the current value of Y. For each bit, the value of Y will be raised by + * a power of x (multiplied by the polynomial x). This can be achieved by + * shifting Y once to the right. If the current value of Y, prior to being + * multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial. + * Otherwise, we must divide by R after shifting to find the remainder. + * + * @param x the first block to multiply by the second. + * @param y the second block to multiply by the first. + * + * @return the block result of the multiplication. + */ +modes.gcm.prototype.multiply = function(x, y) { + var z_i = [0, 0, 0, 0]; + var v_i = y.slice(0); + + // calculate Z_128 (block has 128 bits) + for(var i = 0; i < 128; ++i) { + // if x_i is 0, Z_{i+1} = Z_i (unchanged) + // else Z_{i+1} = Z_i ^ V_i + // get x_i by finding 32-bit int position, then left shift 1 by remainder + var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32)); + if(x_i) { + z_i[0] ^= v_i[0]; + z_i[1] ^= v_i[1]; + z_i[2] ^= v_i[2]; + z_i[3] ^= v_i[3]; + } + + // if LSB(V_i) is 1, V_i = V_i >> 1 + // else V_i = (V_i >> 1) ^ R + this.pow(v_i, v_i); + } + + return z_i; +}; + +modes.gcm.prototype.pow = function(x, out) { + // if LSB(x) is 1, x = x >>> 1 + // else x = (x >>> 1) ^ R + var lsb = x[3] & 1; + + // always do x >>> 1: + // starting with the rightmost integer, shift each integer to the right + // one bit, pulling in the bit from the integer to the left as its top + // most bit (do this for the last 3 integers) + for(var i = 3; i > 0; --i) { + out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31); + } + // shift the first integer normally + out[0] = x[0] >>> 1; + + // if lsb was not set, then polynomial had a degree of 127 and doesn't + // need to divided; otherwise, XOR with R to find the remainder; we only + // need to XOR the first integer since R technically ends w/120 zero bits + if(lsb) { + out[0] ^= this._R; + } +}; + +modes.gcm.prototype.tableMultiply = function(x) { + // assumes 4-bit tables are used + var z = [0, 0, 0, 0]; + for(var i = 0; i < 32; ++i) { + var idx = (i / 8) | 0; + var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF; + var ah = this._m[i][x_i]; + z[0] ^= ah[0]; + z[1] ^= ah[1]; + z[2] ^= ah[2]; + z[3] ^= ah[3]; + } + return z; +}; + +/** + * A continuing version of the GHASH algorithm that operates on a single + * block. The hash block, last hash value (Ym) and the new block to hash + * are given. + * + * @param h the hash block. + * @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash. + * @param x the block to hash. + * + * @return the hashed value (Ym). + */ +modes.gcm.prototype.ghash = function(h, y, x) { + y[0] ^= x[0]; + y[1] ^= x[1]; + y[2] ^= x[2]; + y[3] ^= x[3]; + return this.tableMultiply(y); + //return this.multiply(y, h); +}; + +/** + * Precomputes a table for multiplying against the hash subkey. This + * mechanism provides a substantial speed increase over multiplication + * performed without a table. The table-based multiplication this table is + * for solves X * H by multiplying each component of X by H and then + * composing the results together using XOR. + * + * This function can be used to generate tables with different bit sizes + * for the components, however, this implementation assumes there are + * 32 components of X (which is a 16 byte vector), therefore each component + * takes 4-bits (so the table is constructed with bits=4). + * + * @param h the hash subkey. + * @param bits the bit size for a component. + */ +modes.gcm.prototype.generateHashTable = function(h, bits) { + // TODO: There are further optimizations that would use only the + // first table M_0 (or some variant) along with a remainder table; + // this can be explored in the future + var multiplier = 8 / bits; + var perInt = 4 * multiplier; + var size = 16 * multiplier; + var m = new Array(size); + for(var i = 0; i < size; ++i) { + var tmp = [0, 0, 0, 0]; + var idx = (i / perInt) | 0; + var shft = ((perInt - 1 - (i % perInt)) * bits); + tmp[idx] = (1 << (bits - 1)) << shft; + m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits); + } + return m; +}; + +/** + * Generates a table for multiplying against the hash subkey for one + * particular component (out of all possible component values). + * + * @param mid the pre-multiplied value for the middle key of the table. + * @param bits the bit size for a component. + */ +modes.gcm.prototype.generateSubHashTable = function(mid, bits) { + // compute the table quickly by minimizing the number of + // POW operations -- they only need to be performed for powers of 2, + // all other entries can be composed from those powers using XOR + var size = 1 << bits; + var half = size >>> 1; + var m = new Array(size); + m[half] = mid.slice(0); + var i = half >>> 1; + while(i > 0) { + // raise m0[2 * i] and store in m0[i] + this.pow(m[2 * i], m[i] = []); + i >>= 1; + } + i = 2; + while(i < half) { + for(var j = 1; j < i; ++j) { + var m_i = m[i]; + var m_j = m[j]; + m[i + j] = [ + m_i[0] ^ m_j[0], + m_i[1] ^ m_j[1], + m_i[2] ^ m_j[2], + m_i[3] ^ m_j[3] + ]; + } + i *= 2; + } + m[0] = [0, 0, 0, 0]; + /* Note: We could avoid storing these by doing composition during multiply + calculate top half using composition by speed is preferred. */ + for(i = half + 1; i < size; ++i) { + var c = m[i ^ half]; + m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]]; + } + return m; +}; + +/** Utility functions */ + +function transformIV(iv, blockSize) { + if(typeof iv === 'string') { + // convert iv string into byte buffer + iv = forge.util.createBuffer(iv); + } + + if(forge.util.isArray(iv) && iv.length > 4) { + // convert iv byte array into byte buffer + var tmp = iv; + iv = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + iv.putByte(tmp[i]); + } + } + + if(iv.length() < blockSize) { + throw new Error( + 'Invalid IV length; got ' + iv.length() + + ' bytes and expected ' + blockSize + ' bytes.'); + } + + if(!forge.util.isArray(iv)) { + // convert iv byte buffer into 32-bit integer array + var ints = []; + var blocks = blockSize / 4; + for(var i = 0; i < blocks; ++i) { + ints.push(iv.getInt32()); + } + iv = ints; + } + + return iv; +} + +function inc32(block) { + // increment last 32 bits of block only + block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; +} + +function from64To32(num) { + // convert 64-bit number to two BE Int32s + return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; +} + + +/***/ }), + +/***/ 164: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.displayvideo_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var displayvideo_v1; +(function (displayvideo_v1) { + /** + * Display & Video 360 API + * + * Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const displayvideo = google.displayvideo('v1'); + * ``` + */ + class Displayvideo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.advertisers = new Resource$Advertisers(this.context); + this.combinedAudiences = new Resource$Combinedaudiences(this.context); + this.customBiddingAlgorithms = new Resource$Custombiddingalgorithms(this.context); + this.customLists = new Resource$Customlists(this.context); + this.firstAndThirdPartyAudiences = + new Resource$Firstandthirdpartyaudiences(this.context); + this.floodlightGroups = new Resource$Floodlightgroups(this.context); + this.googleAudiences = new Resource$Googleaudiences(this.context); + this.guaranteedOrders = new Resource$Guaranteedorders(this.context); + this.inventorySourceGroups = new Resource$Inventorysourcegroups(this.context); + this.inventorySources = new Resource$Inventorysources(this.context); + this.media = new Resource$Media(this.context); + this.partners = new Resource$Partners(this.context); + this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); + this.targetingTypes = new Resource$Targetingtypes(this.context); + this.users = new Resource$Users(this.context); + } + } + displayvideo_v1.Displayvideo = Displayvideo; + class Resource$Advertisers { + constructor(context) { + this.context = context; + this.assets = new Resource$Advertisers$Assets(this.context); + this.campaigns = new Resource$Advertisers$Campaigns(this.context); + this.channels = new Resource$Advertisers$Channels(this.context); + this.creatives = new Resource$Advertisers$Creatives(this.context); + this.insertionOrders = new Resource$Advertisers$Insertionorders(this.context); + this.invoices = new Resource$Advertisers$Invoices(this.context); + this.lineItems = new Resource$Advertisers$Lineitems(this.context); + this.locationLists = new Resource$Advertisers$Locationlists(this.context); + this.manualTriggers = new Resource$Advertisers$Manualtriggers(this.context); + this.negativeKeywordLists = new Resource$Advertisers$Negativekeywordlists(this.context); + this.targetingTypes = new Resource$Advertisers$Targetingtypes(this.context); + } + audit(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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/advertisers/{+advertiserId}:audit').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + bulkEditAdvertiserAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}:bulkEditAdvertiserAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + bulkListAdvertiserAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}:bulkListAdvertiserAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6700,31 +7746,25 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v3p1beta1.Resource$Projects$Companies = Resource$Projects$Companies; - class Resource$Projects$Jobs { - constructor(context) { - this.context = context; - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6737,25 +7777,85 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6768,25 +7868,31 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers = Resource$Advertisers; + class Resource$Advertisers$Assets { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6799,56 +7905,66 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers$Assets = Resource$Advertisers$Assets; + class Resource$Advertisers$Campaigns { + constructor(context) { + this.context = context; + this.targetingTypes = new Resource$Advertisers$Campaigns$Targetingtypes(this.context); + } + bulkListCampaignAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}:bulkListCampaignAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6861,25 +7977,25 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6892,25 +8008,26 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6923,25 +8040,26 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6954,31 +8072,25 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v3p1beta1.Resource$Projects$Jobs = Resource$Projects$Jobs; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -6991,150 +8103,123 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - jobs_v3p1beta1.Resource$Projects$Operations = Resource$Projects$Operations; -})(jobs_v3p1beta1 = exports.jobs_v3p1beta1 || (exports.jobs_v3p1beta1 = {})); -//# sourceMappingURL=v3p1beta1.js.map - -/***/ }), -/* 31 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.language_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 = __webpack_require__(927); -var language_v1; -(function (language_v1) { - /** - * Cloud Natural Language API - * - * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. - * - * @example - * const {google} = require('googleapis'); - * const language = google.language('v1'); - * - * @namespace language - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Language - */ - class Language { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.documents = new Resource$Documents(this.context); + displayvideo_v1.Resource$Advertisers$Campaigns = Resource$Advertisers$Campaigns; + class Resource$Advertisers$Campaigns$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions(this.context); } } - language_v1.Language = Language; - class Resource$Documents { + displayvideo_v1.Resource$Advertisers$Campaigns$Targetingtypes = Resource$Advertisers$Campaigns$Targetingtypes; + class Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions { constructor(context) { this.context = context; } - analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: [ + 'advertiserId', + 'campaignId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'campaignId', + 'targetingType', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId', 'campaignId', 'targetingType'], + pathParams: ['advertiserId', 'campaignId', 'targetingType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Channels { + constructor(context) { + this.context = context; + this.sites = new Resource$Advertisers$Channels$Sites(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7147,25 +8232,25 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7178,25 +8263,25 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - annotateText(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7209,25 +8294,25 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - classifyText(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7240,89 +8325,33 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - language_v1.Resource$Documents = Resource$Documents; -})(language_v1 = exports.language_v1 || (exports.language_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 32 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.groupssettings_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 = __webpack_require__(927); -var groupssettings_v1; -(function (groupssettings_v1) { - /** - * Groups Settings API - * - * Manages permission levels and related settings of a group. - * - * @example - * const {google} = require('googleapis'); - * const groupssettings = google.groupssettings('v1'); - * - * @namespace groupssettings - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Groupssettings - */ - class Groupssettings { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.groups = new Resource$Groups(this.context); - } - } - groupssettings_v1.Groupssettings = Groupssettings; - class Resource$Groups { + displayvideo_v1.Resource$Advertisers$Channels = Resource$Advertisers$Channels; + class Resource$Advertisers$Channels$Sites { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + bulkEdit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -7333,26 +8362,28 @@ var groupssettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupUniqueId'], - pathParams: ['groupUniqueId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -7363,26 +8394,28 @@ var groupssettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupUniqueId'], - pathParams: ['groupUniqueId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -7393,90 +8426,28 @@ var groupssettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['groupUniqueId'], - pathParams: ['groupUniqueId'], + requiredParams: ['advertiserId', 'channelId', 'urlOrAppId'], + pathParams: ['advertiserId', 'channelId', 'urlOrAppId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - groupssettings_v1.Resource$Groups = Resource$Groups; -})(groupssettings_v1 = exports.groupssettings_v1 || (exports.groupssettings_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 33 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.texttospeech_v1beta1 = 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 = __webpack_require__(927); -var texttospeech_v1beta1; -(function (texttospeech_v1beta1) { - /** - * Cloud Text-to-Speech API - * - * Synthesizes natural-sounding speech by applying powerful neural network models. - * - * @example - * const {google} = require('googleapis'); - * const texttospeech = google.texttospeech('v1beta1'); - * - * @namespace texttospeech - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Texttospeech - */ - class Texttospeech { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.text = new Resource$Text(this.context); - this.voices = new Resource$Voices(this.context); - } - } - texttospeech_v1beta1.Texttospeech = Texttospeech; - class Resource$Text { - constructor(context) { - this.context = context; - } - synthesize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -7487,32 +8458,28 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - texttospeech_v1beta1.Resource$Text = Resource$Text; - class Resource$Voices { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + replace(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -7523,205 +8490,34 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/voices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - texttospeech_v1beta1.Resource$Voices = Resource$Voices; -})(texttospeech_v1beta1 = exports.texttospeech_v1beta1 || (exports.texttospeech_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 34 */ -/***/ (function(module) { - -module.exports = require("https"); - -/***/ }), -/* 35 */ -/***/ (function(module) { - -module.exports = {"releaseCoordinators":["nithusha21","aks681","vojtechjelinek","ankita240796","DubeySandeep","BenHenning","kevintab95","seanlip","U8NWXD"],"goodFirstIssue":["U8NWXD","kevintab95","seanlip","ankita240796","DubeySandeep","bansalnitish","vojtechjelinek","marianazangrossi","brianrodri","nithusha21","aks681","srijanreddy98"],"codeOwnerFileReviewer":"DubeySandeep","teamLeads":{"onboardingTeam":"DubeySandeep","releaseTeam":"vojtechjelinek","welfareTeam":"DubeySandeep"},"oppiaMaintainers":"oppia/core-maintainers","oppiaReleaseCoordinators":"oppia/release-coordinators","oppiaDevWorkflowTeam":"oppia/dev-workflow-team","serverJobAdmins":["vojtechjelinek"]}; - -/***/ }), -/* 36 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = parseOptions; - -const { Deprecation } = __webpack_require__(692); -const { getUserAgent } = __webpack_require__(422); -const once = __webpack_require__(969); - -const pkg = __webpack_require__(919); - -const deprecateOptionsTimeout = once((log, deprecation) => - log.warn(deprecation) -); -const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation)); -const deprecateOptionsHeaders = once((log, deprecation) => - log.warn(deprecation) -); - -function parseOptions(options, log, hook) { - if (options.headers) { - options.headers = Object.keys(options.headers).reduce((newObj, key) => { - newObj[key.toLowerCase()] = options.headers[key]; - return newObj; - }, {}); - } - - const clientDefaults = { - headers: options.headers || {}, - request: options.request || {}, - mediaType: { - previews: [], - format: "" - } - }; - - if (options.baseUrl) { - clientDefaults.baseUrl = options.baseUrl; - } - - if (options.userAgent) { - clientDefaults.headers["user-agent"] = options.userAgent; - } - - if (options.previews) { - clientDefaults.mediaType.previews = options.previews; - } - - if (options.timeZone) { - clientDefaults.headers["time-zone"] = options.timeZone; - } - - if (options.timeout) { - deprecateOptionsTimeout( - log, - new Deprecation( - "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request" - ) - ); - clientDefaults.request.timeout = options.timeout; - } - - if (options.agent) { - deprecateOptionsAgent( - log, - new Deprecation( - "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request" - ) - ); - clientDefaults.request.agent = options.agent; - } - - if (options.headers) { - deprecateOptionsHeaders( - log, - new Deprecation( - "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request" - ) - ); - } - - const userAgentOption = clientDefaults.headers["user-agent"]; - const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`; - - clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent] - .filter(Boolean) - .join(" "); - - clientDefaults.request.hook = hook.bind(null, "request"); - - return clientDefaults; -} - - -/***/ }), -/* 37 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -const factory = __webpack_require__(513); - -module.exports = factory(); - - -/***/ }), -/* 38 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.kgsearch_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 = __webpack_require__(927); -var kgsearch_v1; -(function (kgsearch_v1) { - /** - * Knowledge Graph Search API - * - * Searches the Google Knowledge Graph for entities. - * - * @example - * const {google} = require('googleapis'); - * const kgsearch = google.kgsearch('v1'); - * - * @namespace kgsearch - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Kgsearch - */ - class Kgsearch { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.entities = new Resource$Entities(this.context); - } - } - kgsearch_v1.Kgsearch = Kgsearch; - class Resource$Entities { + displayvideo_v1.Resource$Advertisers$Channels$Sites = Resource$Advertisers$Channels$Sites; + class Resource$Advertisers$Creatives { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -7732,146 +8528,25 @@ var kgsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://kgsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/entities:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - kgsearch_v1.Resource$Entities = Resource$Entities; -})(kgsearch_v1 = exports.kgsearch_v1 || (exports.kgsearch_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 39 */ -/***/ (function(module) { - -"use strict"; - -module.exports = opts => { - opts = opts || {}; - - const env = opts.env || process.env; - const platform = opts.platform || process.platform; - - if (platform !== 'win32') { - return 'PATH'; - } - - return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path'; -}; - - -/***/ }), -/* 40 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.people = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(258); -exports.VERSIONS = { - v1: v1_1.people_v1.People, -}; -function people(versionOrOptions) { - return googleapis_common_1.getAPI('people', versionOrOptions, exports.VERSIONS, this); -} -exports.people = people; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 41 */, -/* 42 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.accessapproval_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 = __webpack_require__(927); -var accessapproval_v1; -(function (accessapproval_v1) { - /** - * Access Approval API - * - * An API for controlling access to data by Google personnel. - * - * @example - * const {google} = require('googleapis'); - * const accessapproval = google.accessapproval('v1'); - * - * @namespace accessapproval - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Accessapproval - */ - class Accessapproval { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.folders = new Resource$Folders(this.context); - this.organizations = new Resource$Organizations(this.context); - this.projects = new Resource$Projects(this.context); - } - } - accessapproval_v1.Accessapproval = Accessapproval; - class Resource$Folders { - constructor(context) { - this.context = context; - this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); - } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7884,25 +8559,26 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7915,25 +8591,26 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7946,31 +8623,25 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1.Resource$Folders = Resource$Folders; - class Resource$Folders$Approvalrequests { - constructor(context) { - this.context = context; - } - approve(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -7983,56 +8654,67 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers$Creatives = Resource$Advertisers$Creatives; + class Resource$Advertisers$Insertionorders { + constructor(context) { + this.context = context; + this.targetingTypes = + new Resource$Advertisers$Insertionorders$Targetingtypes(this.context); + } + bulkListInsertionOrderAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:bulkListInsertionOrderAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8045,25 +8727,25 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8076,32 +8758,26 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); - } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8114,25 +8790,26 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8145,25 +8822,25 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8176,93 +8853,122 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accessapproval_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Approvalrequests { + displayvideo_v1.Resource$Advertisers$Insertionorders = Resource$Advertisers$Insertionorders; + class Resource$Advertisers$Insertionorders$Targetingtypes { constructor(context) { this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions(this.context); } - approve(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers$Insertionorders$Targetingtypes = Resource$Advertisers$Insertionorders$Targetingtypes; + class Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'insertionOrderId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'insertionOrderId', + 'targetingType', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Invoices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8275,125 +8981,131 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + lookupInvoiceCurrency(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/invoices:lookupInvoiceCurrency').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accessapproval_v1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; - class Resource$Projects { + displayvideo_v1.Resource$Advertisers$Invoices = Resource$Advertisers$Invoices; + class Resource$Advertisers$Lineitems { constructor(context) { this.context = context; - this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); + this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + bulkEditLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + bulkListLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkListLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8406,31 +9118,25 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Approvalrequests { - constructor(context) { - this.context = context; - } - approve(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8443,25 +9149,26 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + generateDefault(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8474,22 +9181,23 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems:generateDefault').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -8505,22 +9213,23 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -8536,157 +9245,101 @@ var accessapproval_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; -})(accessapproval_v1 = exports.accessapproval_v1 || (exports.accessapproval_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 43 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudsearch = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(620); -exports.VERSIONS = { - v1: v1_1.cloudsearch_v1.Cloudsearch, -}; -function cloudsearch(versionOrOptions) { - return googleapis_common_1.getAPI('cloudsearch', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudsearch = cloudsearch; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 44 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.securitycenter_v1p1alpha1 = 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 = __webpack_require__(927); -var securitycenter_v1p1alpha1; -(function (securitycenter_v1p1alpha1) { - /** - * Security Command Center API - * - * Security Command Center API provides access to temporal views of assets and findings within an organization. - * - * @example - * const {google} = require('googleapis'); - * const securitycenter = google.securitycenter('v1p1alpha1'); - * - * @namespace securitycenter - * @type {Function} - * @version v1p1alpha1 - * @variation v1p1alpha1 - * @param {object=} options Options for Securitycenter - */ - class Securitycenter { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, }; - this.organizations = new Resource$Organizations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - securitycenter_v1p1alpha1.Securitycenter = Securitycenter; - class Resource$Organizations { + displayvideo_v1.Resource$Advertisers$Lineitems = Resource$Advertisers$Lineitems; + class Resource$Advertisers$Lineitems$Targetingtypes { constructor(context) { this.context = context; - this.operations = new Resource$Organizations$Operations(this.context); + this.assignedTargetingOptions = + new Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions(this.context); } } - securitycenter_v1p1alpha1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Operations { + displayvideo_v1.Resource$Advertisers$Lineitems$Targetingtypes = Resource$Advertisers$Lineitems$Targetingtypes; + class Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -8695,29 +9348,41 @@ var securitycenter_v1p1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -8726,29 +9391,41 @@ var securitycenter_v1p1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -8757,109 +9434,42 @@ var securitycenter_v1p1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1p1alpha1.Resource$Organizations$Operations = Resource$Organizations$Operations; -})(securitycenter_v1p1alpha1 = exports.securitycenter_v1p1alpha1 || (exports.securitycenter_v1p1alpha1 = {})); -//# sourceMappingURL=v1p1alpha1.js.map - -/***/ }), -/* 45 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.speech_v2beta1 = 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 = __webpack_require__(927); -var speech_v2beta1; -(function (speech_v2beta1) { - /** - * Cloud Speech-to-Text API - * - * Converts audio to text by applying powerful neural network models. - * - * @example - * const {google} = require('googleapis'); - * const speech = google.speech('v2beta1'); - * - * @namespace speech - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Speech - */ - class Speech { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - speech_v2beta1.Speech = Speech; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - speech_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - } - speech_v2beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + displayvideo_v1.Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Locationlists { constructor(context) { this.context = context; + this.assignedLocations = + new Resource$Advertisers$Locationlists$Assignedlocations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8872,25 +9482,25 @@ var speech_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -8903,132 +9513,26 @@ var speech_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(speech_v2beta1 = exports.speech_v2beta1 || (exports.speech_v2beta1 = {})); -//# sourceMappingURL=v2beta1.js.map - -/***/ }), -/* 46 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.iamcredentials = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(22); -exports.VERSIONS = { - v1: v1_1.iamcredentials_v1.Iamcredentials, -}; -function iamcredentials(versionOrOptions) { - return googleapis_common_1.getAPI('iamcredentials', versionOrOptions, exports.VERSIONS, this); -} -exports.iamcredentials = iamcredentials; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 47 */, -/* 48 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.lifesciences_v2beta = 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 = __webpack_require__(927); -var lifesciences_v2beta; -(function (lifesciences_v2beta) { - /** - * Cloud Life Sciences API - * - * Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. - * - * @example - * const {google} = require('googleapis'); - * const lifesciences = google.lifesciences('v2beta'); - * - * @namespace lifesciences - * @type {Function} - * @version v2beta - * @variation v2beta - * @param {object=} options Options for Lifesciences - */ - class Lifesciences { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - lifesciences_v2beta.Lifesciences = Lifesciences; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - lifesciences_v2beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.pipelines = new Resource$Projects$Locations$Pipelines(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -9041,25 +9545,25 @@ var lifesciences_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -9072,377 +9576,437 @@ var lifesciences_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/locationLists/{locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - lifesciences_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + displayvideo_v1.Resource$Advertisers$Locationlists = Resource$Advertisers$Locationlists; + class Resource$Advertisers$Locationlists$Assignedlocations { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + bulkEdit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'locationListId', + 'assignedLocationId', + ], + pathParams: ['advertiserId', 'assignedLocationId', 'locationListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - lifesciences_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Pipelines { - constructor(context) { - this.context = context; - } - run(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - lifesciences_v2beta.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; -})(lifesciences_v2beta = exports.lifesciences_v2beta || (exports.lifesciences_v2beta = {})); -//# sourceMappingURL=v2beta.js.map - -/***/ }), -/* 49 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const os = __webpack_require__(87); -const execa = __webpack_require__(955); - -// Reference: https://www.gaijin.at/en/lstwinver.php -const names = new Map([ - ['10.0', '10'], - ['6.3', '8.1'], - ['6.2', '8'], - ['6.1', '7'], - ['6.0', 'Vista'], - ['5.2', 'Server 2003'], - ['5.1', 'XP'], - ['5.0', '2000'], - ['4.9', 'ME'], - ['4.1', '98'], - ['4.0', '95'] -]); - -const windowsRelease = release => { - const version = /\d+\.\d/.exec(release || os.release()); - - if (release && !version) { - throw new Error('`release` argument doesn\'t match `n.n`'); - } - - const ver = (version || [])[0]; - - // Server 2008, 2012 and 2016 versions are ambiguous with desktop versions and must be detected at runtime. - // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version - // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx - // If the resulting caption contains the year 2008, 2012 or 2016, it is a server version, so return a server OS name. - if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) { - const stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || ''; - const year = (stdout.match(/2008|2012|2016/) || [])[0]; - if (year) { - return `Server ${year}`; - } - } - - return names.get(ver); -}; - -module.exports = windowsRelease; - - -/***/ }), -/* 50 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module, process*/ -var Buffer = __webpack_require__(149).Buffer; -var Stream = __webpack_require__(413); -var util = __webpack_require__(669); - -function DataStream(data) { - this.buffer = null; - this.writable = true; - this.readable = true; - - // No input - if (!data) { - this.buffer = Buffer.alloc(0); - return this; - } - - // Stream - if (typeof data.pipe === 'function') { - this.buffer = Buffer.alloc(0); - data.pipe(this); - return this; - } - - // Buffer or String - // or Object (assumedly a passworded key) - if (data.length || typeof data === 'object') { - this.buffer = data; - this.writable = false; - process.nextTick(function () { - this.emit('end', data); - this.readable = false; - this.emit('close'); - }.bind(this)); - return this; - } - - throw new TypeError('Unexpected data type ('+ typeof data + ')'); -} -util.inherits(DataStream, Stream); - -DataStream.prototype.write = function write(data) { - this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); - this.emit('data', data); -}; - -DataStream.prototype.end = function end(data) { - if (data) - this.write(data); - this.emit('end', data); - this.emit('close'); - this.writable = false; - this.readable = false; -}; - -module.exports = DataStream; - - -/***/ }), -/* 51 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudidentity = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(619); -const v1beta1_1 = __webpack_require__(411); -exports.VERSIONS = { - v1: v1_1.cloudidentity_v1.Cloudidentity, - v1beta1: v1beta1_1.cloudidentity_v1beta1.Cloudidentity, -}; -function cloudidentity(versionOrOptions) { - return googleapis_common_1.getAPI('cloudidentity', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudidentity = cloudidentity; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 52 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.blogger_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 = __webpack_require__(927); -var blogger_v2; -(function (blogger_v2) { - /** - * Blogger API v3 - * - * The Blogger API provides access to posts, comments and pages of a Blogger blog. - * - * @example - * const {google} = require('googleapis'); - * const blogger = google.blogger('v2'); - * - * @namespace blogger - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Blogger - */ - class Blogger { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + displayvideo_v1.Resource$Advertisers$Locationlists$Assignedlocations = Resource$Advertisers$Locationlists$Assignedlocations; + class Resource$Advertisers$Manualtriggers { + constructor(context) { + this.context = context; + } + activate(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, }; - this.blogs = new Resource$Blogs(this.context); - this.comments = new Resource$Comments(this.context); - this.pages = new Resource$Pages(this.context); - this.posts = new Resource$Posts(this.context); - this.users = new Resource$Users(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deactivate(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - blogger_v2.Blogger = Blogger; - class Resource$Blogs { + displayvideo_v1.Resource$Advertisers$Manualtriggers = Resource$Advertisers$Manualtriggers; + class Resource$Advertisers$Negativekeywordlists { constructor(context) { this.context = context; + this.negativeKeywords = + new Resource$Advertisers$Negativekeywordlists$Negativekeywords(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9453,26 +10017,28 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9483,32 +10049,402 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - blogger_v2.Resource$Blogs = Resource$Blogs; - class Resource$Comments { + displayvideo_v1.Resource$Advertisers$Negativekeywordlists = Resource$Advertisers$Negativekeywordlists; + class Resource$Advertisers$Negativekeywordlists$Negativekeywords { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'negativeKeywordListId', + 'keywordValue', + ], + pathParams: ['advertiserId', 'keywordValue', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replace(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Negativekeywordlists$Negativekeywords = Resource$Advertisers$Negativekeywordlists$Negativekeywords; + class Resource$Advertisers$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v1.Resource$Advertisers$Targetingtypes = Resource$Advertisers$Targetingtypes; + class Resource$Advertisers$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Targetingtypes$Assignedtargetingoptions; + class Resource$Combinedaudiences { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9519,26 +10455,27 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['combinedAudienceId'], + pathParams: ['combinedAudienceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9549,32 +10486,65 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - blogger_v2.Resource$Comments = Resource$Comments; - class Resource$Pages { + displayvideo_v1.Resource$Combinedaudiences = Resource$Combinedaudiences; + class Resource$Custombiddingalgorithms { constructor(context) { this.context = context; + this.scripts = new Resource$Custombiddingalgorithms$Scripts(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9585,26 +10555,28 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9615,32 +10587,129 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + uploadScript(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - blogger_v2.Resource$Pages = Resource$Pages; - class Resource$Posts { + displayvideo_v1.Resource$Custombiddingalgorithms = Resource$Custombiddingalgorithms; + class Resource$Custombiddingalgorithms$Scripts { 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9651,26 +10720,28 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], + pathParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -9681,27 +10752,28 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - blogger_v2.Resource$Posts = Resource$Posts; - class Resource$Users { + displayvideo_v1.Resource$Custombiddingalgorithms$Scripts = Resource$Custombiddingalgorithms$Scripts; + class Resource$Customlists { constructor(context) { this.context = context; } @@ -9717,3751 +10789,3598 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['customListId'], + pathParams: ['customListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/customLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - blogger_v2.Resource$Users = Resource$Users; -})(blogger_v2 = exports.blogger_v2 || (exports.blogger_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 53 */, -/* 54 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Utility functions for web applications. - * - * @author Dave Longley - * - * Copyright (c) 2010-2018 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -var baseN = __webpack_require__(182); - -/* Utilities API */ -var util = module.exports = forge.util = forge.util || {}; - -// define setImmediate and nextTick -(function() { - // use native nextTick (unless we're in webpack) - // webpack (or better node-libs-browser polyfill) sets process.browser. - // this way we can detect webpack properly - if(typeof process !== 'undefined' && process.nextTick && !process.browser) { - util.nextTick = process.nextTick; - if(typeof setImmediate === 'function') { - util.setImmediate = setImmediate; - } else { - // polyfill setImmediate with nextTick, older versions of node - // (those w/o setImmediate) won't totally starve IO - util.setImmediate = util.nextTick; - } - return; - } - - // polyfill nextTick with native setImmediate - if(typeof setImmediate === 'function') { - util.setImmediate = function() { return setImmediate.apply(undefined, arguments); }; - util.nextTick = function(callback) { - return setImmediate(callback); - }; - return; - } - - /* Note: A polyfill upgrade pattern is used here to allow combining - polyfills. For example, MutationObserver is fast, but blocks UI updates, - so it needs to allow UI updates periodically, so it falls back on - postMessage or setTimeout. */ - - // polyfill with setTimeout - util.setImmediate = function(callback) { - setTimeout(callback, 0); - }; - - // upgrade polyfill to use postMessage - if(typeof window !== 'undefined' && - typeof window.postMessage === 'function') { - var msg = 'forge.setImmediate'; - var callbacks = []; - util.setImmediate = function(callback) { - callbacks.push(callback); - // only send message when one hasn't been sent in - // the current turn of the event loop - if(callbacks.length === 1) { - window.postMessage(msg, '*'); - } - }; - function handler(event) { - if(event.source === window && event.data === msg) { - event.stopPropagation(); - var copy = callbacks.slice(); - callbacks.length = 0; - copy.forEach(function(callback) { - callback(); - }); - } - } - window.addEventListener('message', handler, true); - } - - // upgrade polyfill to use MutationObserver - if(typeof MutationObserver !== 'undefined') { - // polyfill with MutationObserver - var now = Date.now(); - var attr = true; - var div = document.createElement('div'); - var callbacks = []; - new MutationObserver(function() { - var copy = callbacks.slice(); - callbacks.length = 0; - copy.forEach(function(callback) { - callback(); - }); - }).observe(div, {attributes: true}); - var oldSetImmediate = util.setImmediate; - util.setImmediate = function(callback) { - if(Date.now() - now > 15) { - now = Date.now(); - oldSetImmediate(callback); - } else { - callbacks.push(callback); - // only trigger observer when it hasn't been triggered in - // the current turn of the event loop - if(callbacks.length === 1) { - div.setAttribute('a', attr = !attr); + displayvideo_v1.Resource$Customlists = Resource$Customlists; + class Resource$Firstandthirdpartyaudiences { + constructor(context) { + this.context = context; } - } - }; - } - - util.nextTick = util.setImmediate; -})(); - -// check if running under Node.js -util.isNodejs = - typeof process !== 'undefined' && process.versions && process.versions.node; - - -// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while -// it will point to `window` in the main thread. -// To remain compatible with older browsers, we fall back to 'window' if 'self' -// is not available. -util.globalScope = (function() { - if(util.isNodejs) { - return global; - } - - return typeof self === 'undefined' ? window : self; -})(); - -// define isArray -util.isArray = Array.isArray || function(x) { - return Object.prototype.toString.call(x) === '[object Array]'; -}; - -// define isArrayBuffer -util.isArrayBuffer = function(x) { - return typeof ArrayBuffer !== 'undefined' && x instanceof ArrayBuffer; -}; - -// define isArrayBufferView -util.isArrayBufferView = function(x) { - return x && util.isArrayBuffer(x.buffer) && x.byteLength !== undefined; -}; - -/** - * Ensure a bits param is 8, 16, 24, or 32. Used to validate input for - * algorithms where bit manipulation, JavaScript limitations, and/or algorithm - * design only allow for byte operations of a limited size. - * - * @param n number of bits. - * - * Throw Error if n invalid. - */ -function _checkBitsParam(n) { - if(!(n === 8 || n === 16 || n === 24 || n === 32)) { - throw new Error('Only 8, 16, 24, or 32 bits supported: ' + n); - } -} - -// TODO: set ByteBuffer to best available backing -util.ByteBuffer = ByteStringBuffer; - -/** Buffer w/BinaryString backing */ - -/** - * Constructor for a binary string backed byte buffer. - * - * @param [b] the bytes to wrap (either encoded as string, one byte per - * character, or as an ArrayBuffer or Typed Array). - */ -function ByteStringBuffer(b) { - // TODO: update to match DataBuffer API - - // the data in this buffer - this.data = ''; - // the pointer for reading from this buffer - this.read = 0; - - if(typeof b === 'string') { - this.data = b; - } else if(util.isArrayBuffer(b) || util.isArrayBufferView(b)) { - if(typeof Buffer !== 'undefined' && b instanceof Buffer) { - this.data = b.toString('binary'); - } else { - // convert native buffer to forge buffer - // FIXME: support native buffers internally instead - var arr = new Uint8Array(b); - try { - this.data = String.fromCharCode.apply(null, arr); - } catch(e) { - for(var i = 0; i < arr.length; ++i) { - this.putByte(arr[i]); + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editCustomerMatchMembers(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - } - } else if(b instanceof ByteStringBuffer || - (typeof b === 'object' && typeof b.data === 'string' && - typeof b.read === 'number')) { - // copy existing buffer - this.data = b.data; - this.read = b.read; - } - - // used for v8 optimization - this._constructedStringLength = 0; -} -util.ByteStringBuffer = ByteStringBuffer; - -/* Note: This is an optimization for V8-based browsers. When V8 concatenates - a string, the strings are only joined logically using a "cons string" or - "constructed/concatenated string". These containers keep references to one - another and can result in very large memory usage. For example, if a 2MB - string is constructed by concatenating 4 bytes together at a time, the - memory usage will be ~44MB; so ~22x increase. The strings are only joined - together when an operation requiring their joining takes place, such as - substr(). This function is called when adding data to this buffer to ensure - these types of strings are periodically joined to reduce the memory - footprint. */ -var _MAX_CONSTRUCTED_STRING_LENGTH = 4096; -util.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { - this._constructedStringLength += x; - if(this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) { - // this substr() should cause the constructed string to join - this.data.substr(0, 1); - this._constructedStringLength = 0; - } -}; - -/** - * Gets the number of bytes in this buffer. - * - * @return the number of bytes in this buffer. - */ -util.ByteStringBuffer.prototype.length = function() { - return this.data.length - this.read; -}; - -/** - * Gets whether or not this buffer is empty. - * - * @return true if this buffer is empty, false if not. - */ -util.ByteStringBuffer.prototype.isEmpty = function() { - return this.length() <= 0; -}; - -/** - * Puts a byte in this buffer. - * - * @param b the byte to put. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putByte = function(b) { - return this.putBytes(String.fromCharCode(b)); -}; - -/** - * Puts a byte in this buffer N times. - * - * @param b the byte to put. - * @param n the number of bytes of value b to put. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.fillWithByte = function(b, n) { - b = String.fromCharCode(b); - var d = this.data; - while(n > 0) { - if(n & 1) { - d += b; - } - n >>>= 1; - if(n > 0) { - b += b; } - } - this.data = d; - this._optimizeConstructedString(n); - return this; -}; - -/** - * Puts bytes in this buffer. - * - * @param bytes the bytes (as a binary encoded string) to put. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putBytes = function(bytes) { - this.data += bytes; - this._optimizeConstructedString(bytes.length); - return this; -}; - -/** - * Puts a UTF-16 encoded string into this buffer. - * - * @param str the string to put. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putString = function(str) { - return this.putBytes(util.encodeUtf8(str)); -}; - -/** - * Puts a 16-bit integer in this buffer in big-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt16 = function(i) { - return this.putBytes( - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; - -/** - * Puts a 24-bit integer in this buffer in big-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt24 = function(i) { - return this.putBytes( - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; - -/** - * Puts a 32-bit integer in this buffer in big-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt32 = function(i) { - return this.putBytes( - String.fromCharCode(i >> 24 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; - -/** - * Puts a 16-bit integer in this buffer in little-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt16Le = function(i) { - return this.putBytes( - String.fromCharCode(i & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF)); -}; - -/** - * Puts a 24-bit integer in this buffer in little-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt24Le = function(i) { - return this.putBytes( - String.fromCharCode(i & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF)); -}; - -/** - * Puts a 32-bit integer in this buffer in little-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt32Le = function(i) { - return this.putBytes( - String.fromCharCode(i & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 24 & 0xFF)); -}; - -/** - * Puts an n-bit integer in this buffer in big-endian order. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putInt = function(i, n) { - _checkBitsParam(n); - var bytes = ''; - do { - n -= 8; - bytes += String.fromCharCode((i >> n) & 0xFF); - } while(n > 0); - return this.putBytes(bytes); -}; - -/** - * Puts a signed n-bit integer in this buffer in big-endian order. Two's - * complement representation is used. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putSignedInt = function(i, n) { - // putInt checks n - if(i < 0) { - i += 2 << (n - 1); - } - return this.putInt(i, n); -}; - -/** - * Puts the given buffer into this buffer. - * - * @param buffer the buffer to put into this one. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.putBuffer = function(buffer) { - return this.putBytes(buffer.getBytes()); -}; - -/** - * Gets a byte from this buffer and advances the read pointer by 1. - * - * @return the byte. - */ -util.ByteStringBuffer.prototype.getByte = function() { - return this.data.charCodeAt(this.read++); -}; - -/** - * Gets a uint16 from this buffer in big-endian order and advances the read - * pointer by 2. - * - * @return the uint16. - */ -util.ByteStringBuffer.prototype.getInt16 = function() { - var rval = ( - this.data.charCodeAt(this.read) << 8 ^ - this.data.charCodeAt(this.read + 1)); - this.read += 2; - return rval; -}; - -/** - * Gets a uint24 from this buffer in big-endian order and advances the read - * pointer by 3. - * - * @return the uint24. - */ -util.ByteStringBuffer.prototype.getInt24 = function() { - var rval = ( - this.data.charCodeAt(this.read) << 16 ^ - this.data.charCodeAt(this.read + 1) << 8 ^ - this.data.charCodeAt(this.read + 2)); - this.read += 3; - return rval; -}; - -/** - * Gets a uint32 from this buffer in big-endian order and advances the read - * pointer by 4. - * - * @return the word. - */ -util.ByteStringBuffer.prototype.getInt32 = function() { - var rval = ( - this.data.charCodeAt(this.read) << 24 ^ - this.data.charCodeAt(this.read + 1) << 16 ^ - this.data.charCodeAt(this.read + 2) << 8 ^ - this.data.charCodeAt(this.read + 3)); - this.read += 4; - return rval; -}; - -/** - * Gets a uint16 from this buffer in little-endian order and advances the read - * pointer by 2. - * - * @return the uint16. - */ -util.ByteStringBuffer.prototype.getInt16Le = function() { - var rval = ( - this.data.charCodeAt(this.read) ^ - this.data.charCodeAt(this.read + 1) << 8); - this.read += 2; - return rval; -}; - -/** - * Gets a uint24 from this buffer in little-endian order and advances the read - * pointer by 3. - * - * @return the uint24. - */ -util.ByteStringBuffer.prototype.getInt24Le = function() { - var rval = ( - this.data.charCodeAt(this.read) ^ - this.data.charCodeAt(this.read + 1) << 8 ^ - this.data.charCodeAt(this.read + 2) << 16); - this.read += 3; - return rval; -}; - -/** - * Gets a uint32 from this buffer in little-endian order and advances the read - * pointer by 4. - * - * @return the word. - */ -util.ByteStringBuffer.prototype.getInt32Le = function() { - var rval = ( - this.data.charCodeAt(this.read) ^ - this.data.charCodeAt(this.read + 1) << 8 ^ - this.data.charCodeAt(this.read + 2) << 16 ^ - this.data.charCodeAt(this.read + 3) << 24); - this.read += 4; - return rval; -}; - -/** - * Gets an n-bit integer from this buffer in big-endian order and advances the - * read pointer by ceil(n/8). - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. - */ -util.ByteStringBuffer.prototype.getInt = function(n) { - _checkBitsParam(n); - var rval = 0; - do { - // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. - rval = (rval << 8) + this.data.charCodeAt(this.read++); - n -= 8; - } while(n > 0); - return rval; -}; - -/** - * Gets a signed n-bit integer from this buffer in big-endian order, using - * two's complement, and advances the read pointer by n/8. - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. - */ -util.ByteStringBuffer.prototype.getSignedInt = function(n) { - // getInt checks n - var x = this.getInt(n); - var max = 2 << (n - 2); - if(x >= max) { - x -= max << 1; - } - return x; -}; - -/** - * Reads bytes out as a binary encoded string and clears them from the - * buffer. Note that the resulting string is binary encoded (in node.js this - * encoding is referred to as `binary`, it is *not* `utf8`). - * - * @param count the number of bytes to read, undefined or null for all. - * - * @return a binary encoded string of bytes. - */ -util.ByteStringBuffer.prototype.getBytes = function(count) { - var rval; - if(count) { - // read count bytes - count = Math.min(this.length(), count); - rval = this.data.slice(this.read, this.read + count); - this.read += count; - } else if(count === 0) { - rval = ''; - } else { - // read all bytes, optimize to only copy when needed - rval = (this.read === 0) ? this.data : this.data.slice(this.read); - this.clear(); - } - return rval; -}; - -/** - * Gets a binary encoded string of the bytes from this buffer without - * modifying the read pointer. - * - * @param count the number of bytes to get, omit to get all. - * - * @return a string full of binary encoded characters. - */ -util.ByteStringBuffer.prototype.bytes = function(count) { - return (typeof(count) === 'undefined' ? - this.data.slice(this.read) : - this.data.slice(this.read, this.read + count)); -}; - -/** - * Gets a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * - * @return the byte. - */ -util.ByteStringBuffer.prototype.at = function(i) { - return this.data.charCodeAt(this.read + i); -}; - -/** - * Puts a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * @param b the byte to put. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.setAt = function(i, b) { - this.data = this.data.substr(0, this.read + i) + - String.fromCharCode(b) + - this.data.substr(this.read + i + 1); - return this; -}; - -/** - * Gets the last byte without modifying the read pointer. - * - * @return the last byte. - */ -util.ByteStringBuffer.prototype.last = function() { - return this.data.charCodeAt(this.data.length - 1); -}; - -/** - * Creates a copy of this buffer. - * - * @return the copy. - */ -util.ByteStringBuffer.prototype.copy = function() { - var c = util.createBuffer(this.data); - c.read = this.read; - return c; -}; - -/** - * Compacts this buffer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.compact = function() { - if(this.read > 0) { - this.data = this.data.slice(this.read); - this.read = 0; - } - return this; -}; - -/** - * Clears this buffer. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.clear = function() { - this.data = ''; - this.read = 0; - return this; -}; - -/** - * Shortens this buffer by triming bytes off of the end of this buffer. - * - * @param count the number of bytes to trim off. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.truncate = function(count) { - var len = Math.max(0, this.length() - count); - this.data = this.data.substr(this.read, len); - this.read = 0; - return this; -}; - -/** - * Converts this buffer to a hexadecimal string. - * - * @return a hexadecimal string. - */ -util.ByteStringBuffer.prototype.toHex = function() { - var rval = ''; - for(var i = this.read; i < this.data.length; ++i) { - var b = this.data.charCodeAt(i); - if(b < 16) { - rval += '0'; + displayvideo_v1.Resource$Firstandthirdpartyaudiences = Resource$Firstandthirdpartyaudiences; + class Resource$Floodlightgroups { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - rval += b.toString(16); - } - return rval; -}; - -/** - * Converts this buffer to a UTF-16 string (standard JavaScript string). - * - * @return a UTF-16 string. - */ -util.ByteStringBuffer.prototype.toString = function() { - return util.decodeUtf8(this.bytes()); -}; - -/** End Buffer w/BinaryString backing */ - -/** Buffer w/UInt8Array backing */ - -/** - * FIXME: Experimental. Do not use yet. - * - * Constructor for an ArrayBuffer-backed byte buffer. - * - * The buffer may be constructed from a string, an ArrayBuffer, DataView, or a - * TypedArray. - * - * If a string is given, its encoding should be provided as an option, - * otherwise it will default to 'binary'. A 'binary' string is encoded such - * that each character is one byte in length and size. - * - * If an ArrayBuffer, DataView, or TypedArray is given, it will be used - * *directly* without any copying. Note that, if a write to the buffer requires - * more space, the buffer will allocate a new backing ArrayBuffer to - * accommodate. The starting read and write offsets for the buffer may be - * given as options. - * - * @param [b] the initial bytes for this buffer. - * @param options the options to use: - * [readOffset] the starting read offset to use (default: 0). - * [writeOffset] the starting write offset to use (default: the - * length of the first parameter). - * [growSize] the minimum amount, in bytes, to grow the buffer by to - * accommodate writes (default: 1024). - * [encoding] the encoding ('binary', 'utf8', 'utf16', 'hex') for the - * first parameter, if it is a string (default: 'binary'). - */ -function DataBuffer(b, options) { - // default options - options = options || {}; - - // pointers for read from/write to buffer - this.read = options.readOffset || 0; - this.growSize = options.growSize || 1024; - - var isArrayBuffer = util.isArrayBuffer(b); - var isArrayBufferView = util.isArrayBufferView(b); - if(isArrayBuffer || isArrayBufferView) { - // use ArrayBuffer directly - if(isArrayBuffer) { - this.data = new DataView(b); - } else { - // TODO: adjust read/write offset based on the type of view - // or specify that this must be done in the options ... that the - // offsets are byte-based - this.data = new DataView(b.buffer, b.byteOffset, b.byteLength); + displayvideo_v1.Resource$Floodlightgroups = Resource$Floodlightgroups; + class Resource$Googleaudiences { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['googleAudienceId'], + pathParams: ['googleAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - this.write = ('writeOffset' in options ? - options.writeOffset : this.data.byteLength); - return; - } - - // initialize to empty array buffer and add any given bytes using putBytes - this.data = new DataView(new ArrayBuffer(0)); - this.write = 0; - - if(b !== null && b !== undefined) { - this.putBytes(b); - } - - if('writeOffset' in options) { - this.write = options.writeOffset; - } -} -util.DataBuffer = DataBuffer; - -/** - * Gets the number of bytes in this buffer. - * - * @return the number of bytes in this buffer. - */ -util.DataBuffer.prototype.length = function() { - return this.write - this.read; -}; - -/** - * Gets whether or not this buffer is empty. - * - * @return true if this buffer is empty, false if not. - */ -util.DataBuffer.prototype.isEmpty = function() { - return this.length() <= 0; -}; - -/** - * Ensures this buffer has enough empty space to accommodate the given number - * of bytes. An optional parameter may be given that indicates a minimum - * amount to grow the buffer if necessary. If the parameter is not given, - * the buffer will be grown by some previously-specified default amount - * or heuristic. - * - * @param amount the number of bytes to accommodate. - * @param [growSize] the minimum amount, in bytes, to grow the buffer by if - * necessary. - */ -util.DataBuffer.prototype.accommodate = function(amount, growSize) { - if(this.length() >= amount) { - return this; - } - growSize = Math.max(growSize || this.growSize, amount); - - // grow buffer - var src = new Uint8Array( - this.data.buffer, this.data.byteOffset, this.data.byteLength); - var dst = new Uint8Array(this.length() + growSize); - dst.set(src); - this.data = new DataView(dst.buffer); - - return this; -}; - -/** - * Puts a byte in this buffer. - * - * @param b the byte to put. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putByte = function(b) { - this.accommodate(1); - this.data.setUint8(this.write++, b); - return this; -}; - -/** - * Puts a byte in this buffer N times. - * - * @param b the byte to put. - * @param n the number of bytes of value b to put. - * - * @return this buffer. - */ -util.DataBuffer.prototype.fillWithByte = function(b, n) { - this.accommodate(n); - for(var i = 0; i < n; ++i) { - this.data.setUint8(b); - } - return this; -}; - -/** - * Puts bytes in this buffer. The bytes may be given as a string, an - * ArrayBuffer, a DataView, or a TypedArray. - * - * @param bytes the bytes to put. - * @param [encoding] the encoding for the first parameter ('binary', 'utf8', - * 'utf16', 'hex'), if it is a string (default: 'binary'). - * - * @return this buffer. - */ -util.DataBuffer.prototype.putBytes = function(bytes, encoding) { - if(util.isArrayBufferView(bytes)) { - var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength); - var len = src.byteLength - src.byteOffset; - this.accommodate(len); - var dst = new Uint8Array(this.data.buffer, this.write); - dst.set(src); - this.write += len; - return this; - } - - if(util.isArrayBuffer(bytes)) { - var src = new Uint8Array(bytes); - this.accommodate(src.byteLength); - var dst = new Uint8Array(this.data.buffer); - dst.set(src, this.write); - this.write += src.byteLength; - return this; - } - - // bytes is a util.DataBuffer or equivalent - if(bytes instanceof util.DataBuffer || - (typeof bytes === 'object' && - typeof bytes.read === 'number' && typeof bytes.write === 'number' && - util.isArrayBufferView(bytes.data))) { - var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length()); - this.accommodate(src.byteLength); - var dst = new Uint8Array(bytes.data.byteLength, this.write); - dst.set(src); - this.write += src.byteLength; - return this; - } - - if(bytes instanceof util.ByteStringBuffer) { - // copy binary string and process as the same as a string parameter below - bytes = bytes.data; - encoding = 'binary'; - } - - // string conversion - encoding = encoding || 'binary'; - if(typeof bytes === 'string') { - var view; - - // decode from string - if(encoding === 'hex') { - this.accommodate(Math.ceil(bytes.length / 2)); - view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.hex.decode(bytes, view, this.write); - return this; + displayvideo_v1.Resource$Googleaudiences = Resource$Googleaudiences; + class Resource$Guaranteedorders { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editGuaranteedOrderReadAccessors(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - if(encoding === 'base64') { - this.accommodate(Math.ceil(bytes.length / 4) * 3); - view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.base64.decode(bytes, view, this.write); - return this; + displayvideo_v1.Resource$Guaranteedorders = Resource$Guaranteedorders; + class Resource$Inventorysourcegroups { + constructor(context) { + this.context = context; + this.assignedInventorySources = + new Resource$Inventorysourcegroups$Assignedinventorysources(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups/{inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // encode text as UTF-8 bytes - if(encoding === 'utf8') { - // encode as UTF-8 then decode string as raw binary - bytes = util.encodeUtf8(bytes); - encoding = 'binary'; + displayvideo_v1.Resource$Inventorysourcegroups = Resource$Inventorysourcegroups; + class Resource$Inventorysourcegroups$Assignedinventorysources { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['inventorySourceGroupId', 'assignedInventorySourceId'], + pathParams: ['assignedInventorySourceId', 'inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // decode string as raw binary - if(encoding === 'binary' || encoding === 'raw') { - // one byte per character - this.accommodate(bytes.length); - view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.raw.decode(view); - return this; + displayvideo_v1.Resource$Inventorysourcegroups$Assignedinventorysources = Resource$Inventorysourcegroups$Assignedinventorysources; + class Resource$Inventorysources { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editInventorySourceReadWriteAccessors(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // encode text as UTF-16 bytes - if(encoding === 'utf16') { - // two bytes per character - this.accommodate(bytes.length * 2); - view = new Uint16Array(this.data.buffer, this.write); - this.write += util.text.utf16.encode(view); - return this; + displayvideo_v1.Resource$Inventorysources = Resource$Inventorysources; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } + displayvideo_v1.Resource$Media = Resource$Media; + class Resource$Partners { + constructor(context) { + this.context = context; + this.channels = new Resource$Partners$Channels(this.context); + this.targetingTypes = new Resource$Partners$Targetingtypes(this.context); + } + bulkEditPartnerAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{+partnerId}:bulkEditPartnerAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Partners = Resource$Partners; + class Resource$Partners$Channels { + constructor(context) { + this.context = context; + this.sites = new Resource$Partners$Channels$Sites(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Partners$Channels = Resource$Partners$Channels; + class Resource$Partners$Channels$Sites { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['partnerId', 'channelId', 'urlOrAppId'], + pathParams: ['channelId', 'partnerId', 'urlOrAppId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replace(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{partnerId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Partners$Channels$Sites = Resource$Partners$Channels$Sites; + class Resource$Partners$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Partners$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v1.Resource$Partners$Targetingtypes = Resource$Partners$Targetingtypes; + class Resource$Partners$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Partners$Targetingtypes$Assignedtargetingoptions = Resource$Partners$Targetingtypes$Assignedtargetingoptions; + class Resource$Sdfdownloadtasks { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtasks$Operations(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; + class Resource$Sdfdownloadtasks$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://displayvideo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; + class Resource$Targetingtypes { + constructor(context) { + this.context = context; + this.targetingOptions = new Resource$Targetingtypes$Targetingoptions(this.context); + } + } + displayvideo_v1.Resource$Targetingtypes = Resource$Targetingtypes; + class Resource$Targetingtypes$Targetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['targetingType', 'targetingOptionId'], + pathParams: ['targetingOptionId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['targetingType'], + pathParams: ['targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/targetingTypes/{+targetingType}/targetingOptions:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['targetingType'], + pathParams: ['targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Targetingtypes$Targetingoptions = Resource$Targetingtypes$Targetingoptions; + class Resource$Users { + constructor(context) { + this.context = context; + } + bulkEditAssignedUserRoles(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/users/{+userId}:bulkEditAssignedUserRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v1.Resource$Users = Resource$Users; +})(displayvideo_v1 = exports.displayvideo_v1 || (exports.displayvideo_v1 = {})); - throw new Error('Invalid encoding: ' + encoding); - } - - throw Error('Invalid parameter: ' + bytes); -}; - -/** - * Puts the given buffer into this buffer. - * - * @param buffer the buffer to put into this one. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putBuffer = function(buffer) { - this.putBytes(buffer); - buffer.clear(); - return this; -}; - -/** - * Puts a string into this buffer. - * - * @param str the string to put. - * @param [encoding] the encoding for the string (default: 'utf16'). - * - * @return this buffer. - */ -util.DataBuffer.prototype.putString = function(str) { - return this.putBytes(str, 'utf16'); -}; - -/** - * Puts a 16-bit integer in this buffer in big-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt16 = function(i) { - this.accommodate(2); - this.data.setInt16(this.write, i); - this.write += 2; - return this; -}; - -/** - * Puts a 24-bit integer in this buffer in big-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt24 = function(i) { - this.accommodate(3); - this.data.setInt16(this.write, i >> 8 & 0xFFFF); - this.data.setInt8(this.write, i >> 16 & 0xFF); - this.write += 3; - return this; -}; - -/** - * Puts a 32-bit integer in this buffer in big-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt32 = function(i) { - this.accommodate(4); - this.data.setInt32(this.write, i); - this.write += 4; - return this; -}; - -/** - * Puts a 16-bit integer in this buffer in little-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt16Le = function(i) { - this.accommodate(2); - this.data.setInt16(this.write, i, true); - this.write += 2; - return this; -}; - -/** - * Puts a 24-bit integer in this buffer in little-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt24Le = function(i) { - this.accommodate(3); - this.data.setInt8(this.write, i >> 16 & 0xFF); - this.data.setInt16(this.write, i >> 8 & 0xFFFF, true); - this.write += 3; - return this; -}; - -/** - * Puts a 32-bit integer in this buffer in little-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt32Le = function(i) { - this.accommodate(4); - this.data.setInt32(this.write, i, true); - this.write += 4; - return this; -}; - -/** - * Puts an n-bit integer in this buffer in big-endian order. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return this buffer. - */ -util.DataBuffer.prototype.putInt = function(i, n) { - _checkBitsParam(n); - this.accommodate(n / 8); - do { - n -= 8; - this.data.setInt8(this.write++, (i >> n) & 0xFF); - } while(n > 0); - return this; -}; - -/** - * Puts a signed n-bit integer in this buffer in big-endian order. Two's - * complement representation is used. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putSignedInt = function(i, n) { - _checkBitsParam(n); - this.accommodate(n / 8); - if(i < 0) { - i += 2 << (n - 1); - } - return this.putInt(i, n); -}; - -/** - * Gets a byte from this buffer and advances the read pointer by 1. - * - * @return the byte. - */ -util.DataBuffer.prototype.getByte = function() { - return this.data.getInt8(this.read++); -}; - -/** - * Gets a uint16 from this buffer in big-endian order and advances the read - * pointer by 2. - * - * @return the uint16. - */ -util.DataBuffer.prototype.getInt16 = function() { - var rval = this.data.getInt16(this.read); - this.read += 2; - return rval; -}; - -/** - * Gets a uint24 from this buffer in big-endian order and advances the read - * pointer by 3. - * - * @return the uint24. - */ -util.DataBuffer.prototype.getInt24 = function() { - var rval = ( - this.data.getInt16(this.read) << 8 ^ - this.data.getInt8(this.read + 2)); - this.read += 3; - return rval; -}; - -/** - * Gets a uint32 from this buffer in big-endian order and advances the read - * pointer by 4. - * - * @return the word. - */ -util.DataBuffer.prototype.getInt32 = function() { - var rval = this.data.getInt32(this.read); - this.read += 4; - return rval; -}; - -/** - * Gets a uint16 from this buffer in little-endian order and advances the read - * pointer by 2. - * - * @return the uint16. - */ -util.DataBuffer.prototype.getInt16Le = function() { - var rval = this.data.getInt16(this.read, true); - this.read += 2; - return rval; -}; - -/** - * Gets a uint24 from this buffer in little-endian order and advances the read - * pointer by 3. - * - * @return the uint24. - */ -util.DataBuffer.prototype.getInt24Le = function() { - var rval = ( - this.data.getInt8(this.read) ^ - this.data.getInt16(this.read + 1, true) << 8); - this.read += 3; - return rval; -}; - -/** - * Gets a uint32 from this buffer in little-endian order and advances the read - * pointer by 4. - * - * @return the word. - */ -util.DataBuffer.prototype.getInt32Le = function() { - var rval = this.data.getInt32(this.read, true); - this.read += 4; - return rval; -}; - -/** - * Gets an n-bit integer from this buffer in big-endian order and advances the - * read pointer by n/8. - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. - */ -util.DataBuffer.prototype.getInt = function(n) { - _checkBitsParam(n); - var rval = 0; - do { - // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. - rval = (rval << 8) + this.data.getInt8(this.read++); - n -= 8; - } while(n > 0); - return rval; -}; - -/** - * Gets a signed n-bit integer from this buffer in big-endian order, using - * two's complement, and advances the read pointer by n/8. - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. - */ -util.DataBuffer.prototype.getSignedInt = function(n) { - // getInt checks n - var x = this.getInt(n); - var max = 2 << (n - 2); - if(x >= max) { - x -= max << 1; - } - return x; -}; - -/** - * Reads bytes out as a binary encoded string and clears them from the - * buffer. - * - * @param count the number of bytes to read, undefined or null for all. - * - * @return a binary encoded string of bytes. - */ -util.DataBuffer.prototype.getBytes = function(count) { - // TODO: deprecate this method, it is poorly named and - // this.toString('binary') replaces it - // add a toTypedArray()/toArrayBuffer() function - var rval; - if(count) { - // read count bytes - count = Math.min(this.length(), count); - rval = this.data.slice(this.read, this.read + count); - this.read += count; - } else if(count === 0) { - rval = ''; - } else { - // read all bytes, optimize to only copy when needed - rval = (this.read === 0) ? this.data : this.data.slice(this.read); - this.clear(); - } - return rval; -}; - -/** - * Gets a binary encoded string of the bytes from this buffer without - * modifying the read pointer. - * - * @param count the number of bytes to get, omit to get all. - * - * @return a string full of binary encoded characters. - */ -util.DataBuffer.prototype.bytes = function(count) { - // TODO: deprecate this method, it is poorly named, add "getString()" - return (typeof(count) === 'undefined' ? - this.data.slice(this.read) : - this.data.slice(this.read, this.read + count)); -}; -/** - * Gets a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * - * @return the byte. - */ -util.DataBuffer.prototype.at = function(i) { - return this.data.getUint8(this.read + i); -}; +/***/ }), -/** - * Puts a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * @param b the byte to put. - * - * @return this buffer. - */ -util.DataBuffer.prototype.setAt = function(i, b) { - this.data.setUint8(i, b); - return this; -}; +/***/ 177: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/** - * Gets the last byte without modifying the read pointer. - * - * @return the last byte. - */ -util.DataBuffer.prototype.last = function() { - return this.data.getUint8(this.write - 1); -}; +"use strict"; -/** - * Creates a copy of this buffer. - * - * @return the copy. - */ -util.DataBuffer.prototype.copy = function() { - return new util.DataBuffer(this); -}; -/** - * Compacts this buffer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.compact = function() { - if(this.read > 0) { - var src = new Uint8Array(this.data.buffer, this.read); - var dst = new Uint8Array(src.byteLength); - dst.set(src); - this.data = new DataView(dst); - this.write -= this.read; - this.read = 0; +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "NIL", { + enumerable: true, + get: function () { + return _nil.default; } - return this; -}; - -/** - * Clears this buffer. - * - * @return this buffer. - */ -util.DataBuffer.prototype.clear = function() { - this.data = new DataView(new ArrayBuffer(0)); - this.read = this.write = 0; - return this; -}; - -/** - * Shortens this buffer by triming bytes off of the end of this buffer. - * - * @param count the number of bytes to trim off. - * - * @return this buffer. - */ -util.DataBuffer.prototype.truncate = function(count) { - this.write = Math.max(0, this.length() - count); - this.read = Math.min(this.read, this.write); - return this; -}; - -/** - * Converts this buffer to a hexadecimal string. - * - * @return a hexadecimal string. - */ -util.DataBuffer.prototype.toHex = function() { - var rval = ''; - for(var i = this.read; i < this.data.byteLength; ++i) { - var b = this.data.getUint8(i); - if(b < 16) { - rval += '0'; - } - rval += b.toString(16); +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function () { + return _parse.default; } - return rval; -}; - -/** - * Converts this buffer to a string, using the given encoding. If no - * encoding is given, 'utf8' (UTF-8) is used. - * - * @param [encoding] the encoding to use: 'binary', 'utf8', 'utf16', 'hex', - * 'base64' (default: 'utf8'). - * - * @return a string representation of the bytes in this buffer. - */ -util.DataBuffer.prototype.toString = function(encoding) { - var view = new Uint8Array(this.data, this.read, this.length()); - encoding = encoding || 'utf8'; - - // encode to string - if(encoding === 'binary' || encoding === 'raw') { - return util.binary.raw.encode(view); +}); +Object.defineProperty(exports, "stringify", { + enumerable: true, + get: function () { + return _stringify.default; } - if(encoding === 'hex') { - return util.binary.hex.encode(view); +}); +Object.defineProperty(exports, "v1", { + enumerable: true, + get: function () { + return _v.default; } - if(encoding === 'base64') { - return util.binary.base64.encode(view); +}); +Object.defineProperty(exports, "v3", { + enumerable: true, + get: function () { + return _v2.default; } - - // decode to text - if(encoding === 'utf8') { - return util.text.utf8.decode(view); +}); +Object.defineProperty(exports, "v4", { + enumerable: true, + get: function () { + return _v3.default; } - if(encoding === 'utf16') { - return util.text.utf16.decode(view); +}); +Object.defineProperty(exports, "v5", { + enumerable: true, + get: function () { + return _v4.default; + } +}); +Object.defineProperty(exports, "validate", { + enumerable: true, + get: function () { + return _validate.default; + } +}); +Object.defineProperty(exports, "version", { + enumerable: true, + get: function () { + return _version.default; } +}); - throw new Error('Invalid encoding: ' + encoding); -}; +var _v = _interopRequireDefault(__webpack_require__(1560)); -/** End Buffer w/UInt8Array backing */ +var _v2 = _interopRequireDefault(__webpack_require__(9434)); -/** - * Creates a buffer that stores bytes. A value may be given to populate the - * buffer with data. This value can either be string of encoded bytes or a - * regular string of characters. When passing a string of binary encoded - * bytes, the encoding `raw` should be given. This is also the default. When - * passing a string of characters, the encoding `utf8` should be given. - * - * @param [input] a string with encoded bytes to store in the buffer. - * @param [encoding] (default: 'raw', other: 'utf8'). - */ -util.createBuffer = function(input, encoding) { - // TODO: deprecate, use new ByteBuffer() instead - encoding = encoding || 'raw'; - if(input !== undefined && encoding === 'utf8') { - input = util.encodeUtf8(input); - } - return new util.ByteBuffer(input); -}; +var _v3 = _interopRequireDefault(__webpack_require__(9526)); -/** - * Fills a string with a particular value. If you want the string to be a byte - * string, pass in String.fromCharCode(theByte). - * - * @param c the character to fill the string with, use String.fromCharCode - * to fill the string with a byte value. - * @param n the number of characters of value c to fill with. - * - * @return the filled string. - */ -util.fillString = function(c, n) { - var s = ''; - while(n > 0) { - if(n & 1) { - s += c; - } - n >>>= 1; - if(n > 0) { - c += c; - } - } - return s; -}; +var _v4 = _interopRequireDefault(__webpack_require__(1435)); -/** - * Performs a per byte XOR between two byte strings and returns the result as a - * string of bytes. - * - * @param s1 first string of bytes. - * @param s2 second string of bytes. - * @param n the number of bytes to XOR. - * - * @return the XOR'd result. - */ -util.xorBytes = function(s1, s2, n) { - var s3 = ''; - var b = ''; - var t = ''; - var i = 0; - var c = 0; - for(; n > 0; --n, ++i) { - b = s1.charCodeAt(i) ^ s2.charCodeAt(i); - if(c >= 10) { - s3 += t; - t = ''; - c = 0; - } - t += String.fromCharCode(b); - ++c; - } - s3 += t; - return s3; -}; +var _nil = _interopRequireDefault(__webpack_require__(4922)); -/** - * Converts a hex string into a 'binary' encoded string of bytes. - * - * @param hex the hexadecimal string to convert. - * - * @return the binary-encoded string of bytes. - */ -util.hexToBytes = function(hex) { - // TODO: deprecate: "Deprecated. Use util.binary.hex.decode instead." - var rval = ''; - var i = 0; - if(hex.length & 1 == 1) { - // odd number of characters, convert first character alone - i = 1; - rval += String.fromCharCode(parseInt(hex[0], 16)); - } - // convert 2 characters (1 byte) at a time - for(; i < hex.length; i += 2) { - rval += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); - } - return rval; -}; +var _version = _interopRequireDefault(__webpack_require__(7496)); -/** - * Converts a 'binary' encoded string of bytes to hex. - * - * @param bytes the byte string to convert. - * - * @return the string of hexadecimal characters. - */ -util.bytesToHex = function(bytes) { - // TODO: deprecate: "Deprecated. Use util.binary.hex.encode instead." - return util.createBuffer(bytes).toHex(); -}; +var _validate = _interopRequireDefault(__webpack_require__(4089)); -/** - * Converts an 32-bit integer to 4-big-endian byte string. - * - * @param i the integer. - * - * @return the byte string. - */ -util.int32ToBytes = function(i) { - return ( - String.fromCharCode(i >> 24 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; +var _stringify = _interopRequireDefault(__webpack_require__(4106)); -// base64 characters, reverse mapping -var _base64 = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; -var _base64Idx = [ -/*43 -43 = 0*/ -/*'+', 1, 2, 3,'/' */ - 62, -1, -1, -1, 63, +var _parse = _interopRequireDefault(__webpack_require__(4205)); -/*'0','1','2','3','4','5','6','7','8','9' */ - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -/*15, 16, 17,'=', 19, 20, 21 */ - -1, -1, -1, 64, -1, -1, -1, +/***/ }), -/*65 - 43 = 22*/ -/*'A','B','C','D','E','F','G','H','I','J','K','L','M', */ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, +/***/ 188: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/*'N','O','P','Q','R','S','T','U','V','W','X','Y','Z' */ - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, +"use strict"; -/*91 - 43 = 48 */ -/*48, 49, 50, 51, 52, 53 */ - -1, -1, -1, -1, -1, -1, +// 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.AuthPlus = exports.smartdevicemanagement_v1 = exports.auth = exports.smartdevicemanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1397); +Object.defineProperty(exports, "smartdevicemanagement_v1", { enumerable: true, get: function () { return v1_1.smartdevicemanagement_v1; } }); +exports.VERSIONS = { + v1: v1_1.smartdevicemanagement_v1.Smartdevicemanagement, +}; +function smartdevicemanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('smartdevicemanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.smartdevicemanagement = smartdevicemanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -/*97 - 43 = 54*/ -/*'a','b','c','d','e','f','g','h','i','j','k','l','m' */ - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -/*'n','o','p','q','r','s','t','u','v','w','x','y','z' */ - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 -]; +/***/ }), -// base58 characters (Bitcoin alphabet) -var _base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; +/***/ 226: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/** - * Base64 encodes a 'binary' encoded string of bytes. - * - * @param input the binary encoded string of bytes to base64-encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the base64-encoded output. - */ -util.encode64 = function(input, maxline) { - // TODO: deprecate: "Deprecated. Use util.binary.base64.encode instead." - var line = ''; - var output = ''; - var chr1, chr2, chr3; - var i = 0; - while(i < input.length) { - chr1 = input.charCodeAt(i++); - chr2 = input.charCodeAt(i++); - chr3 = input.charCodeAt(i++); +"use strict"; - // encode 4 character group - line += _base64.charAt(chr1 >> 2); - line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); - if(isNaN(chr2)) { - line += '=='; - } else { - line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); - line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); +// 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.gamesManagement_v1management = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gamesManagement_v1management; +(function (gamesManagement_v1management) { + /** + * Google Play Game Management + * + * The Google Play Game Management API allows developers to manage resources from the Google Play Game service. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gamesManagement = google.gamesManagement('v1management'); + * ``` + */ + class Gamesmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.achievements = new Resource$Achievements(this.context); + this.applications = new Resource$Applications(this.context); + this.events = new Resource$Events(this.context); + this.players = new Resource$Players(this.context); + this.scores = new Resource$Scores(this.context); + } } - - if(maxline && line.length > maxline) { - output += line.substr(0, maxline) + '\r\n'; - line = line.substr(maxline); + gamesManagement_v1management.Gamesmanagement = Gamesmanagement; + class Resource$Achievements { + constructor(context) { + this.context = context; + } + 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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/achievements/{achievementId}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAll(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/achievements/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAllForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/achievements/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/achievements/{achievementId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetMultipleForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/achievements/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - output += line; - return output; -}; + gamesManagement_v1management.Resource$Achievements = Resource$Achievements; + class Resource$Applications { + constructor(context) { + this.context = context; + } + listHidden(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gamesManagement_v1management.Resource$Applications = Resource$Applications; + class Resource$Events { + constructor(context) { + this.context = context; + } + 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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/{eventId}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['eventId'], + pathParams: ['eventId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAll(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAllForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/events/{eventId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['eventId'], + pathParams: ['eventId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetMultipleForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gamesManagement_v1management.Resource$Events = Resource$Events; + class Resource$Players { + constructor(context) { + this.context = context; + } + hide(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['applicationId', 'playerId'], + pathParams: ['applicationId', 'playerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unhide(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['applicationId', 'playerId'], + pathParams: ['applicationId', 'playerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gamesManagement_v1management.Resource$Players = Resource$Players; + class Resource$Scores { + constructor(context) { + this.context = context; + } + 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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/leaderboards/{leaderboardId}/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAll(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAllForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/scores/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/leaderboards/{leaderboardId}/scores/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetMultipleForAllPlayers(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://gamesmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/scores/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gamesManagement_v1management.Resource$Scores = Resource$Scores; +})(gamesManagement_v1management = exports.gamesManagement_v1management || (exports.gamesManagement_v1management = {})); -/** - * Base64 decodes a string into a 'binary' encoded string of bytes. - * - * @param input the base64-encoded input. - * - * @return the binary encoded string. - */ -util.decode64 = function(input) { - // TODO: deprecate: "Deprecated. Use util.binary.base64.decode instead." - // remove all non-base64 characters - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); +/***/ }), - var output = ''; - var enc1, enc2, enc3, enc4; - var i = 0; +/***/ 234: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - while(i < input.length) { - enc1 = _base64Idx[input.charCodeAt(i++) - 43]; - enc2 = _base64Idx[input.charCodeAt(i++) - 43]; - enc3 = _base64Idx[input.charCodeAt(i++) - 43]; - enc4 = _base64Idx[input.charCodeAt(i++) - 43]; +"use strict"; - output += String.fromCharCode((enc1 << 2) | (enc2 >> 4)); - if(enc3 !== 64) { - // decoded at least 2 bytes - output += String.fromCharCode(((enc2 & 15) << 4) | (enc3 >> 2)); - if(enc4 !== 64) { - // decoded 3 bytes - output += String.fromCharCode(((enc3 & 3) << 6) | enc4); - } +// 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.datastore_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datastore_v1beta1; +(function (datastore_v1beta1) { + /** + * Cloud Datastore API + * + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datastore = google.datastore('v1beta1'); + * ``` + */ + class Datastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } } - } + datastore_v1beta1.Datastore = Datastore; + class Resource$Projects { + constructor(context) { + this.context = context; + } + export(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastore_v1beta1.Resource$Projects = Resource$Projects; +})(datastore_v1beta1 = exports.datastore_v1beta1 || (exports.datastore_v1beta1 = {})); - return output; -}; -/** - * Encodes the given string of characters (a standard JavaScript - * string) as a binary encoded string where the bytes represent - * a UTF-8 encoded string of characters. Non-ASCII characters will be - * encoded as multiple bytes according to UTF-8. - * - * @param str a standard string of characters to encode. - * - * @return the binary encoded string. - */ -util.encodeUtf8 = function(str) { - return unescape(encodeURIComponent(str)); -}; +/***/ }), + +/***/ 239: +/***/ (function(module) { /** - * Decodes a binary encoded string that contains bytes that - * represent a UTF-8 encoded string of characters -- into a - * string of characters (a standard JavaScript string). + * Node.js module for Forge. * - * @param str the binary encoded string to decode. + * @author Dave Longley * - * @return the resulting standard string of characters. + * Copyright 2011-2016 Digital Bazaar, Inc. */ -util.decodeUtf8 = function(str) { - return decodeURIComponent(escape(str)); -}; - -// binary encoding/decoding tools -// FIXME: Experimental. Do not use yet. -util.binary = { - raw: {}, - hex: {}, - base64: {}, - base58: {}, - baseN : { - encode: baseN.encode, - decode: baseN.decode +module.exports = { + // default options + options: { + usePureJavaScript: false } }; -/** - * Encodes a Uint8Array as a binary-encoded string. This encoding uses - * a value between 0 and 255 for each character. - * - * @param bytes the Uint8Array to encode. - * - * @return the binary-encoded string. - */ -util.binary.raw.encode = function(bytes) { - return String.fromCharCode.apply(null, bytes); -}; -/** - * Decodes a binary-encoded string to a Uint8Array. This encoding uses - * a value between 0 and 255 for each character. - * - * @param str the binary-encoded string to decode. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.binary.raw.decode = function(str, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(str.length); - } - offset = offset || 0; - var j = offset; - for(var i = 0; i < str.length; ++i) { - out[j++] = str.charCodeAt(i); - } - return output ? (j - offset) : out; -}; +/***/ }), -/** - * Encodes a 'binary' string, ArrayBuffer, DataView, TypedArray, or - * ByteBuffer as a string of hexadecimal characters. - * - * @param bytes the bytes to convert. - * - * @return the string of hexadecimal characters. - */ -util.binary.hex.encode = util.bytesToHex; +/***/ 241: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/** - * Decodes a hex-encoded string to a Uint8Array. - * - * @param hex the hexadecimal string to convert. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.binary.hex.decode = function(hex, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(Math.ceil(hex.length / 2)); - } - offset = offset || 0; - var i = 0, j = offset; - if(hex.length & 1) { - // odd number of characters, convert first character alone - i = 1; - out[j++] = parseInt(hex[0], 16); - } - // convert 2 characters (1 byte) at a time - for(; i < hex.length; i += 2) { - out[j++] = parseInt(hex.substr(i, 2), 16); - } - return output ? (j - offset) : out; -}; +"use strict"; -/** - * Base64-encodes a Uint8Array. - * - * @param input the Uint8Array to encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the base64-encoded output string. - */ -util.binary.base64.encode = function(input, maxline) { - var line = ''; - var output = ''; - var chr1, chr2, chr3; - var i = 0; - while(i < input.byteLength) { - chr1 = input[i++]; - chr2 = input[i++]; - chr3 = input[i++]; - - // encode 4 character group - line += _base64.charAt(chr1 >> 2); - line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); - if(isNaN(chr2)) { - line += '=='; - } else { - line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); - line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); - } - - if(maxline && line.length > maxline) { - output += line.substr(0, maxline) + '\r\n'; - line = line.substr(maxline); - } - } - output += line; - return output; -}; - -/** - * Decodes a base64-encoded string to a Uint8Array. - * - * @param input the base64-encoded input string. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.binary.base64.decode = function(input, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(Math.ceil(input.length / 4) * 3); - } - - // remove all non-base64 characters - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); - - offset = offset || 0; - var enc1, enc2, enc3, enc4; - var i = 0, j = offset; - - while(i < input.length) { - enc1 = _base64Idx[input.charCodeAt(i++) - 43]; - enc2 = _base64Idx[input.charCodeAt(i++) - 43]; - enc3 = _base64Idx[input.charCodeAt(i++) - 43]; - enc4 = _base64Idx[input.charCodeAt(i++) - 43]; - - out[j++] = (enc1 << 2) | (enc2 >> 4); - if(enc3 !== 64) { - // decoded at least 2 bytes - out[j++] = ((enc2 & 15) << 4) | (enc3 >> 2); - if(enc4 !== 64) { - // decoded 3 bytes - out[j++] = ((enc3 & 3) << 6) | enc4; - } - } - } - - // make sure result is the exact decoded length - return output ? (j - offset) : out.subarray(0, j); -}; - -// add support for base58 encoding/decoding with Bitcoin alphabet -util.binary.base58.encode = function(input, maxline) { - return util.binary.baseN.encode(input, _base58, maxline); -}; -util.binary.base58.decode = function(input, maxline) { - return util.binary.baseN.decode(input, _base58, maxline); -}; - -// text encoding/decoding tools -// FIXME: Experimental. Do not use yet. -util.text = { - utf8: {}, - utf16: {} -}; - -/** - * Encodes the given string as UTF-8 in a Uint8Array. - * - * @param str the string to encode. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.text.utf8.encode = function(str, output, offset) { - str = util.encodeUtf8(str); - var out = output; - if(!out) { - out = new Uint8Array(str.length); - } - offset = offset || 0; - var j = offset; - for(var i = 0; i < str.length; ++i) { - out[j++] = str.charCodeAt(i); - } - return output ? (j - offset) : out; -}; - -/** - * Decodes the UTF-8 contents from a Uint8Array. - * - * @param bytes the Uint8Array to decode. - * - * @return the resulting string. - */ -util.text.utf8.decode = function(bytes) { - return util.decodeUtf8(String.fromCharCode.apply(null, bytes)); -}; - -/** - * Encodes the given string as UTF-16 in a Uint8Array. - * - * @param str the string to encode. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.text.utf16.encode = function(str, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(str.length * 2); - } - var view = new Uint16Array(out.buffer); - offset = offset || 0; - var j = offset; - var k = offset; - for(var i = 0; i < str.length; ++i) { - view[k++] = str.charCodeAt(i); - j += 2; - } - return output ? (j - offset) : out; -}; - -/** - * Decodes the UTF-16 contents from a Uint8Array. - * - * @param bytes the Uint8Array to decode. - * - * @return the resulting string. - */ -util.text.utf16.decode = function(bytes) { - return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer)); -}; - -/** - * Deflates the given data using a flash interface. - * - * @param api the flash interface. - * @param bytes the data. - * @param raw true to return only raw deflate data, false to include zlib - * header and trailer. - * - * @return the deflated data as a string. - */ -util.deflate = function(api, bytes, raw) { - bytes = util.decode64(api.deflate(util.encode64(bytes)).rval); - - // strip zlib header and trailer if necessary - if(raw) { - // zlib header is 2 bytes (CMF,FLG) where FLG indicates that - // there is a 4-byte DICT (alder-32) block before the data if - // its 5th bit is set - var start = 2; - var flg = bytes.charCodeAt(1); - if(flg & 0x20) { - start = 6; - } - // zlib trailer is 4 bytes of adler-32 - bytes = bytes.substring(start, bytes.length - 4); - } - - return bytes; -}; - -/** - * Inflates the given data using a flash interface. - * - * @param api the flash interface. - * @param bytes the data. - * @param raw true if the incoming data has no zlib header or trailer and is - * raw DEFLATE data. - * - * @return the inflated data as a string, null on error. - */ -util.inflate = function(api, bytes, raw) { - // TODO: add zlib header and trailer if necessary/possible - var rval = api.inflate(util.encode64(bytes)).rval; - return (rval === null) ? null : util.decode64(rval); -}; - -/** - * Sets a storage object. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param obj the storage object, null to remove. - */ -var _setStorageObject = function(api, id, obj) { - if(!api) { - throw new Error('WebStorage not available.'); - } - - var rval; - if(obj === null) { - rval = api.removeItem(id); - } else { - // json-encode and base64-encode object - obj = util.encode64(JSON.stringify(obj)); - rval = api.setItem(id, obj); - } - - // handle potential flash error - if(typeof(rval) !== 'undefined' && rval.rval !== true) { - var error = new Error(rval.error.message); - error.id = rval.error.id; - error.name = rval.error.name; - throw error; - } -}; - -/** - * Gets a storage object. - * - * @param api the storage interface. - * @param id the storage ID to use. - * - * @return the storage object entry or null if none exists. - */ -var _getStorageObject = function(api, id) { - if(!api) { - throw new Error('WebStorage not available.'); - } - - // get the existing entry - var rval = api.getItem(id); - - /* Note: We check api.init because we can't do (api == localStorage) - on IE because of "Class doesn't support Automation" exception. Only - the flash api has an init method so this works too, but we need a - better solution in the future. */ - - // flash returns item wrapped in an object, handle special case - if(api.init) { - if(rval.rval === null) { - if(rval.error) { - var error = new Error(rval.error.message); - error.id = rval.error.id; - error.name = rval.error.name; - throw error; - } - // no error, but also no item - rval = null; - } else { - rval = rval.rval; - } - } - - // handle decoding - if(rval !== null) { - // base64-decode and json-decode data - rval = JSON.parse(util.decode64(rval)); - } - - return rval; -}; - -/** - * Stores an item in local storage. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param key the key for the item. - * @param data the data for the item (any javascript object/primitive). - */ -var _setItem = function(api, id, key, data) { - // get storage object - var obj = _getStorageObject(api, id); - if(obj === null) { - // create a new storage object - obj = {}; - } - // update key - obj[key] = data; - - // set storage object - _setStorageObject(api, id, obj); -}; - -/** - * Gets an item from local storage. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param key the key for the item. - * - * @return the item. - */ -var _getItem = function(api, id, key) { - // get storage object - var rval = _getStorageObject(api, id); - if(rval !== null) { - // return data at key - rval = (key in rval) ? rval[key] : null; - } - - return rval; -}; - -/** - * Removes an item from local storage. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param key the key for the item. - */ -var _removeItem = function(api, id, key) { - // get storage object - var obj = _getStorageObject(api, id); - if(obj !== null && key in obj) { - // remove key - delete obj[key]; - - // see if entry has no keys remaining - var empty = true; - for(var prop in obj) { - empty = false; - break; - } - if(empty) { - // remove entry entirely if no keys are left - obj = null; - } - - // set storage object - _setStorageObject(api, id, obj); - } -}; - -/** - * Clears the local disk storage identified by the given ID. - * - * @param api the storage interface. - * @param id the storage ID to use. - */ -var _clearItems = function(api, id) { - _setStorageObject(api, id, null); -}; - -/** - * Calls a storage function. - * - * @param func the function to call. - * @param args the arguments for the function. - * @param location the location argument. - * - * @return the return value from the function. - */ -var _callStorageFunction = function(func, args, location) { - var rval = null; - - // default storage types - if(typeof(location) === 'undefined') { - location = ['web', 'flash']; - } - - // apply storage types in order of preference - var type; - var done = false; - var exception = null; - for(var idx in location) { - type = location[idx]; - try { - if(type === 'flash' || type === 'both') { - if(args[0] === null) { - throw new Error('Flash local storage not available.'); +// 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.playcustomapp_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var playcustomapp_v1; +(function (playcustomapp_v1) { + /** + * Google Play Custom App Publishing API + * + * API to create and publish custom Android apps + * + * @example + * ```js + * const {google} = require('googleapis'); + * const playcustomapp = google.playcustomapp('v1'); + * ``` + */ + class Playcustomapp { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); } - rval = func.apply(this, args); - done = (type === 'flash'); - } - if(type === 'web' || type === 'both') { - args[0] = localStorage; - rval = func.apply(this, args); - done = true; - } - } catch(ex) { - exception = ex; } - if(done) { - break; + playcustomapp_v1.Playcustomapp = Playcustomapp; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.customApps = new Resource$Accounts$Customapps(this.context); + } } - } - - if(!done) { - throw exception; - } - - return rval; -}; - -/** - * Stores an item on local disk. - * - * The available types of local storage include 'flash', 'web', and 'both'. - * - * The type 'flash' refers to flash local storage (SharedObject). In order - * to use flash local storage, the 'api' parameter must be valid. The type - * 'web' refers to WebStorage, if supported by the browser. The type 'both' - * refers to storing using both 'flash' and 'web', not just one or the - * other. - * - * The location array should list the storage types to use in order of - * preference: - * - * ['flash']: flash only storage - * ['web']: web only storage - * ['both']: try to store in both - * ['flash','web']: store in flash first, but if not available, 'web' - * ['web','flash']: store in web first, but if not available, 'flash' - * - * The location array defaults to: ['web', 'flash'] - * - * @param api the flash interface, null to use only WebStorage. - * @param id the storage ID to use. - * @param key the key for the item. - * @param data the data for the item (any javascript object/primitive). - * @param location an array with the preferred types of storage to use. - */ -util.setItem = function(api, id, key, data, location) { - _callStorageFunction(_setItem, arguments, location); -}; - -/** - * Gets an item on local disk. - * - * Set setItem() for details on storage types. - * - * @param api the flash interface, null to use only WebStorage. - * @param id the storage ID to use. - * @param key the key for the item. - * @param location an array with the preferred types of storage to use. - * - * @return the item. - */ -util.getItem = function(api, id, key, location) { - return _callStorageFunction(_getItem, arguments, location); -}; - -/** - * Removes an item on local disk. - * - * Set setItem() for details on storage types. - * - * @param api the flash interface. - * @param id the storage ID to use. - * @param key the key for the item. - * @param location an array with the preferred types of storage to use. - */ -util.removeItem = function(api, id, key, location) { - _callStorageFunction(_removeItem, arguments, location); -}; - -/** - * Clears the local disk storage identified by the given ID. - * - * Set setItem() for details on storage types. - * - * @param api the flash interface if flash is available. - * @param id the storage ID to use. - * @param location an array with the preferred types of storage to use. - */ -util.clearItems = function(api, id, location) { - _callStorageFunction(_clearItems, arguments, location); -}; - -/** - * Parses the scheme, host, and port from an http(s) url. - * - * @param str the url string. - * - * @return the parsed url object or null if the url is invalid. - */ -util.parseUrl = function(str) { - // FIXME: this regex looks a bit broken - var regex = /^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g; - regex.lastIndex = 0; - var m = regex.exec(str); - var url = (m === null) ? null : { - full: str, - scheme: m[1], - host: m[2], - port: m[3], - path: m[4] - }; - if(url) { - url.fullHost = url.host; - if(url.port) { - if(url.port !== 80 && url.scheme === 'http') { - url.fullHost += ':' + url.port; - } else if(url.port !== 443 && url.scheme === 'https') { - url.fullHost += ':' + url.port; - } - } else if(url.scheme === 'http') { - url.port = 80; - } else if(url.scheme === 'https') { - url.port = 443; + playcustomapp_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Customapps { + 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://playcustomapp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['account'], + pathParams: ['account'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - url.full = url.scheme + '://' + url.fullHost; - } - return url; -}; - -/* Storage for query variables */ -var _queryVariables = null; + playcustomapp_v1.Resource$Accounts$Customapps = Resource$Accounts$Customapps; +})(playcustomapp_v1 = exports.playcustomapp_v1 || (exports.playcustomapp_v1 = {})); -/** - * Returns the window location query variables. Query is parsed on the first - * call and the same object is returned on subsequent calls. The mapping - * is from keys to an array of values. Parameters without values will have - * an object key set but no value added to the value array. Values are - * unescaped. - * - * ...?k1=v1&k2=v2: - * { - * "k1": ["v1"], - * "k2": ["v2"] - * } - * - * ...?k1=v1&k1=v2: - * { - * "k1": ["v1", "v2"] - * } - * - * ...?k1=v1&k2: - * { - * "k1": ["v1"], - * "k2": [] - * } - * - * ...?k1=v1&k1: - * { - * "k1": ["v1"] - * } - * - * ...?k1&k1: - * { - * "k1": [] - * } - * - * @param query the query string to parse (optional, default to cached - * results from parsing window location search query). - * - * @return object mapping keys to variables. - */ -util.getQueryVariables = function(query) { - var parse = function(q) { - var rval = {}; - var kvpairs = q.split('&'); - for(var i = 0; i < kvpairs.length; i++) { - var pos = kvpairs[i].indexOf('='); - var key; - var val; - if(pos > 0) { - key = kvpairs[i].substring(0, pos); - val = kvpairs[i].substring(pos + 1); - } else { - key = kvpairs[i]; - val = null; - } - if(!(key in rval)) { - rval[key] = []; - } - // disallow overriding object prototype keys - if(!(key in Object.prototype) && val !== null) { - rval[key].push(unescape(val)); - } - } - return rval; - }; - var rval; - if(typeof(query) === 'undefined') { - // set cached variables if needed - if(_queryVariables === null) { - if(typeof(window) !== 'undefined' && window.location && window.location.search) { - // parse window search query - _queryVariables = parse(window.location.search.substring(1)); - } else { - // no query variables available - _queryVariables = {}; - } - } - rval = _queryVariables; - } else { - // parse given query - rval = parse(query); - } - return rval; -}; +/***/ }), -/** - * Parses a fragment into a path and query. This method will take a URI - * fragment and break it up as if it were the main URI. For example: - * /bar/baz?a=1&b=2 - * results in: - * { - * path: ["bar", "baz"], - * query: {"k1": ["v1"], "k2": ["v2"]} - * } - * - * @return object with a path array and query object. - */ -util.parseFragment = function(fragment) { - // default to whole fragment - var fp = fragment; - var fq = ''; - // split into path and query if possible at the first '?' - var pos = fragment.indexOf('?'); - if(pos > 0) { - fp = fragment.substring(0, pos); - fq = fragment.substring(pos + 1); - } - // split path based on '/' and ignore first element if empty - var path = fp.split('/'); - if(path.length > 0 && path[0] === '') { - path.shift(); - } - // convert query into object - var query = (fq === '') ? {} : util.getQueryVariables(fq); +/***/ 257: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - return { - pathString: fp, - queryString: fq, - path: path, - query: query - }; -}; +"use strict"; -/** - * Makes a request out of a URI-like request string. This is intended to - * be used where a fragment id (after a URI '#') is parsed as a URI with - * path and query parts. The string should have a path beginning and - * delimited by '/' and optional query parameters following a '?'. The - * query should be a standard URL set of key value pairs delimited by - * '&'. For backwards compatibility the initial '/' on the path is not - * required. The request object has the following API, (fully described - * in the method code): - * { - * path: . - * query: , - * getPath(i): get part or all of the split path array, - * getQuery(k, i): get part or all of a query key array, - * getQueryLast(k, _default): get last element of a query key array. - * } - * - * @return object with request parameters. - */ -util.makeRequest = function(reqString) { - var frag = util.parseFragment(reqString); - var req = { - // full path string - path: frag.pathString, - // full query string - query: frag.queryString, +// 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.pubsublite_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var pubsublite_v1; +(function (pubsublite_v1) { /** - * Get path or element in path. - * - * @param i optional path index. + * Pub/Sub Lite API * - * @return path or part of path if i provided. - */ - getPath: function(i) { - return (typeof(i) === 'undefined') ? frag.path : frag.path[i]; - }, - /** - * Get query, values for a key, or value for a key index. * - * @param k optional query key. - * @param i optional query key index. * - * @return query, values for a key, or value for a key index. + * @example + * ```js + * const {google} = require('googleapis'); + * const pubsublite = google.pubsublite('v1'); + * ``` */ - getQuery: function(k, i) { - var rval; - if(typeof(k) === 'undefined') { - rval = frag.query; - } else { - rval = frag.query[k]; - if(rval && typeof(i) !== 'undefined') { - rval = rval[i]; + class Pubsublite { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.admin = new Resource$Admin(this.context); + this.cursor = new Resource$Cursor(this.context); + this.topicStats = new Resource$Topicstats(this.context); } - } - return rval; - }, - getQueryLast: function(k, _default) { - var rval; - var vals = req.getQuery(k); - if(vals) { - rval = vals[vals.length - 1]; - } else { - rval = _default; - } - return rval; - } - }; - return req; -}; - -/** - * Makes a URI out of a path, an object with query parameters, and a - * fragment. Uses jQuery.param() internally for query string creation. - * If the path is an array, it will be joined with '/'. - * - * @param path string path or array of strings. - * @param query object with query parameters. (optional) - * @param fragment fragment string. (optional) - * - * @return string object with request parameters. - */ -util.makeLink = function(path, query, fragment) { - // join path parts if needed - path = jQuery.isArray(path) ? path.join('/') : path; - - var qstr = jQuery.param(query || {}); - fragment = fragment || ''; - return path + - ((qstr.length > 0) ? ('?' + qstr) : '') + - ((fragment.length > 0) ? ('#' + fragment) : ''); -}; - -/** - * Follows a path of keys deep into an object hierarchy and set a value. - * If a key does not exist or it's value is not an object, create an - * object in it's place. This can be destructive to a object tree if - * leaf nodes are given as non-final path keys. - * Used to avoid exceptions from missing parts of the path. - * - * @param object the starting object. - * @param keys an array of string keys. - * @param value the value to set. - */ -util.setPath = function(object, keys, value) { - // need to start at an object - if(typeof(object) === 'object' && object !== null) { - var i = 0; - var len = keys.length; - while(i < len) { - var next = keys[i++]; - if(i == len) { - // last - object[next] = value; - } else { - // more - var hasNext = (next in object); - if(!hasNext || - (hasNext && typeof(object[next]) !== 'object') || - (hasNext && object[next] === null)) { - object[next] = {}; - } - object = object[next]; - } } - } -}; - -/** - * Follows a path of keys deep into an object hierarchy and return a value. - * If a key does not exist, create an object in it's place. - * Used to avoid exceptions from missing parts of the path. - * - * @param object the starting object. - * @param keys an array of string keys. - * @param _default value to return if path not found. - * - * @return the value at the path if found, else default if given, else - * undefined. - */ -util.getPath = function(object, keys, _default) { - var i = 0; - var len = keys.length; - var hasNext = true; - while(hasNext && i < len && - typeof(object) === 'object' && object !== null) { - var next = keys[i++]; - hasNext = next in object; - if(hasNext) { - object = object[next]; + pubsublite_v1.Pubsublite = Pubsublite; + class Resource$Admin { + constructor(context) { + this.context = context; + this.projects = new Resource$Admin$Projects(this.context); + } } - } - return (hasNext ? object : _default); -}; - -/** - * Follow a path of keys deep into an object hierarchy and delete the - * last one. If a key does not exist, do nothing. - * Used to avoid exceptions from missing parts of the path. - * - * @param object the starting object. - * @param keys an array of string keys. - */ -util.deletePath = function(object, keys) { - // need to start at an object - if(typeof(object) === 'object' && object !== null) { - var i = 0; - var len = keys.length; - while(i < len) { - var next = keys[i++]; - if(i == len) { - // last - delete object[next]; - } else { - // more - if(!(next in object) || - (typeof(object[next]) !== 'object') || - (object[next] === null)) { - break; + pubsublite_v1.Resource$Admin = Resource$Admin; + class Resource$Admin$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Admin$Projects$Locations(this.context); } - object = object[next]; - } } - } -}; - -/** - * Check if an object is empty. - * - * Taken from: - * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 - * - * @param object the object to check. - */ -util.isEmpty = function(obj) { - for(var prop in obj) { - if(obj.hasOwnProperty(prop)) { - return false; + pubsublite_v1.Resource$Admin$Projects = Resource$Admin$Projects; + class Resource$Admin$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Admin$Projects$Locations$Operations(this.context); + this.reservations = new Resource$Admin$Projects$Locations$Reservations(this.context); + this.subscriptions = new Resource$Admin$Projects$Locations$Subscriptions(this.context); + this.topics = new Resource$Admin$Projects$Locations$Topics(this.context); + } } - } - return true; -}; - -/** - * Format with simple printf-style interpolation. - * - * %%: literal '%' - * %s,%o: convert next argument into a string. - * - * @param format the string to format. - * @param ... arguments to interpolate into the format string. - */ -util.format = function(format) { - var re = /%./g; - // current match - var match; - // current part - var part; - // current arg index - var argi = 0; - // collected parts to recombine later - var parts = []; - // last index found - var last = 0; - // loop while matches remain - while((match = re.exec(format))) { - part = format.substring(last, re.lastIndex - 2); - // don't add empty strings (ie, parts between %s%s) - if(part.length > 0) { - parts.push(part); + pubsublite_v1.Resource$Admin$Projects$Locations = Resource$Admin$Projects$Locations; + class Resource$Admin$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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - last = re.lastIndex; - // switch on % code - var code = match[0][1]; - switch(code) { - case 's': - case 'o': - // check if enough arguments were given - if(argi < arguments.length) { - parts.push(arguments[argi++ + 1]); - } else { - parts.push(''); - } - break; - // FIXME: do proper formating for numbers, etc - //case 'f': - //case 'd': - case '%': - parts.push('%'); - break; - default: - parts.push('<%' + code + '?>'); + pubsublite_v1.Resource$Admin$Projects$Locations$Operations = Resource$Admin$Projects$Locations$Operations; + class Resource$Admin$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.topics = new Resource$Admin$Projects$Locations$Reservations$Topics(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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsublite.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - // add trailing part of format string - parts.push(format.substring(last)); - return parts.join(''); -}; - -/** - * Formats a number. - * - * http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/ - */ -util.formatNumber = function(number, decimals, dec_point, thousands_sep) { - // http://kevin.vanzonneveld.net - // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) - // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) - // + bugfix by: Michael White (http://crestidg.com) - // + bugfix by: Benjamin Lupton - // + bugfix by: Allan Jensen (http://www.winternet.no) - // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) - // * example 1: number_format(1234.5678, 2, '.', ''); - // * returns 1: 1234.57 - - var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; - var d = dec_point === undefined ? ',' : dec_point; - var t = thousands_sep === undefined ? - '.' : thousands_sep, s = n < 0 ? '-' : ''; - var i = parseInt((n = Math.abs(+n || 0).toFixed(c)), 10) + ''; - var j = (i.length > 3) ? i.length % 3 : 0; - return s + (j ? i.substr(0, j) + t : '') + - i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + t) + - (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ''); -}; - -/** - * Formats a byte size. - * - * http://snipplr.com/view/5949/format-humanize-file-byte-size-presentation-in-javascript/ - */ -util.formatSize = function(size) { - if(size >= 1073741824) { - size = util.formatNumber(size / 1073741824, 2, '.', '') + ' GiB'; - } else if(size >= 1048576) { - size = util.formatNumber(size / 1048576, 2, '.', '') + ' MiB'; - } else if(size >= 1024) { - size = util.formatNumber(size / 1024, 0) + ' KiB'; - } else { - size = util.formatNumber(size, 0) + ' bytes'; - } - return size; -}; - -/** - * Converts an IPv4 or IPv6 string representation into bytes (in network order). - * - * @param ip the IPv4 or IPv6 address to convert. - * - * @return the 4-byte IPv6 or 16-byte IPv6 address or null if the address can't - * be parsed. - */ -util.bytesFromIP = function(ip) { - if(ip.indexOf('.') !== -1) { - return util.bytesFromIPv4(ip); - } - if(ip.indexOf(':') !== -1) { - return util.bytesFromIPv6(ip); - } - return null; -}; - -/** - * Converts an IPv4 string representation into bytes (in network order). - * - * @param ip the IPv4 address to convert. - * - * @return the 4-byte address or null if the address can't be parsed. - */ -util.bytesFromIPv4 = function(ip) { - ip = ip.split('.'); - if(ip.length !== 4) { - return null; - } - var b = util.createBuffer(); - for(var i = 0; i < ip.length; ++i) { - var num = parseInt(ip[i], 10); - if(isNaN(num)) { - return null; - } - b.putByte(num); - } - return b.getBytes(); -}; - -/** - * Converts an IPv6 string representation into bytes (in network order). - * - * @param ip the IPv6 address to convert. - * - * @return the 16-byte address or null if the address can't be parsed. - */ -util.bytesFromIPv6 = function(ip) { - var blanks = 0; - ip = ip.split(':').filter(function(e) { - if(e.length === 0) ++blanks; - return true; - }); - var zeros = (8 - ip.length + blanks) * 2; - var b = util.createBuffer(); - for(var i = 0; i < 8; ++i) { - if(!ip[i] || ip[i].length === 0) { - b.fillWithByte(0, zeros); - zeros = 0; - continue; - } - var bytes = util.hexToBytes(ip[i]); - if(bytes.length < 2) { - b.putByte(0); - } - b.putBytes(bytes); - } - return b.getBytes(); -}; - -/** - * Converts 4-bytes into an IPv4 string representation or 16-bytes into - * an IPv6 string representation. The bytes must be in network order. - * - * @param bytes the bytes to convert. - * - * @return the IPv4 or IPv6 string representation if 4 or 16 bytes, - * respectively, are given, otherwise null. - */ -util.bytesToIP = function(bytes) { - if(bytes.length === 4) { - return util.bytesToIPv4(bytes); - } - if(bytes.length === 16) { - return util.bytesToIPv6(bytes); - } - return null; -}; - -/** - * Converts 4-bytes into an IPv4 string representation. The bytes must be - * in network order. - * - * @param bytes the bytes to convert. - * - * @return the IPv4 string representation or null for an invalid # of bytes. - */ -util.bytesToIPv4 = function(bytes) { - if(bytes.length !== 4) { - return null; - } - var ip = []; - for(var i = 0; i < bytes.length; ++i) { - ip.push(bytes.charCodeAt(i)); - } - return ip.join('.'); -}; - -/** - * Converts 16-bytes into an IPv16 string representation. The bytes must be - * in network order. - * - * @param bytes the bytes to convert. - * - * @return the IPv16 string representation or null for an invalid # of bytes. - */ -util.bytesToIPv6 = function(bytes) { - if(bytes.length !== 16) { - return null; - } - var ip = []; - var zeroGroups = []; - var zeroMaxGroup = 0; - for(var i = 0; i < bytes.length; i += 2) { - var hex = util.bytesToHex(bytes[i] + bytes[i + 1]); - // canonicalize zero representation - while(hex[0] === '0' && hex !== '0') { - hex = hex.substr(1); - } - if(hex === '0') { - var last = zeroGroups[zeroGroups.length - 1]; - var idx = ip.length; - if(!last || idx !== last.end + 1) { - zeroGroups.push({start: idx, end: idx}); - } else { - last.end = idx; - if((last.end - last.start) > - (zeroGroups[zeroMaxGroup].end - zeroGroups[zeroMaxGroup].start)) { - zeroMaxGroup = zeroGroups.length - 1; - } - } - } - ip.push(hex); - } - if(zeroGroups.length > 0) { - var group = zeroGroups[zeroMaxGroup]; - // only shorten group of length > 0 - if(group.end - group.start > 0) { - ip.splice(group.start, group.end - group.start + 1, ''); - if(group.start === 0) { - ip.unshift(''); - } - if(group.end === 7) { - ip.push(''); - } - } - } - return ip.join(':'); -}; - -/** - * Estimates the number of processes that can be run concurrently. If - * creating Web Workers, keep in mind that the main JavaScript process needs - * its own core. - * - * @param options the options to use: - * update true to force an update (not use the cached value). - * @param callback(err, max) called once the operation completes. - */ -util.estimateCores = function(options, callback) { - if(typeof options === 'function') { - callback = options; - options = {}; - } - options = options || {}; - if('cores' in util && !options.update) { - return callback(null, util.cores); - } - if(typeof navigator !== 'undefined' && - 'hardwareConcurrency' in navigator && - navigator.hardwareConcurrency > 0) { - util.cores = navigator.hardwareConcurrency; - return callback(null, util.cores); - } - if(typeof Worker === 'undefined') { - // workers not available - util.cores = 1; - return callback(null, util.cores); - } - if(typeof Blob === 'undefined') { - // can't estimate, default to 2 - util.cores = 2; - return callback(null, util.cores); - } - - // create worker concurrency estimation code as blob - var blobUrl = URL.createObjectURL(new Blob(['(', - function() { - self.addEventListener('message', function(e) { - // run worker for 4 ms - var st = Date.now(); - var et = st + 4; - while(Date.now() < et); - self.postMessage({st: st, et: et}); - }); - }.toString(), - ')()'], {type: 'application/javascript'})); - - // take 5 samples using 16 workers - sample([], 5, 16); - - function sample(max, samples, numWorkers) { - if(samples === 0) { - // get overlap average - var avg = Math.floor(max.reduce(function(avg, x) { - return avg + x; - }, 0) / max.length); - util.cores = Math.max(1, avg); - URL.revokeObjectURL(blobUrl); - return callback(null, util.cores); - } - map(numWorkers, function(err, results) { - max.push(reduce(numWorkers, results)); - sample(max, samples - 1, numWorkers); - }); - } - - function map(numWorkers, callback) { - var workers = []; - var results = []; - for(var i = 0; i < numWorkers; ++i) { - var worker = new Worker(blobUrl); - worker.addEventListener('message', function(e) { - results.push(e.data); - if(results.length === numWorkers) { - for(var i = 0; i < numWorkers; ++i) { - workers[i].terminate(); - } - callback(null, results); - } - }); - workers.push(worker); - } - for(var i = 0; i < numWorkers; ++i) { - workers[i].postMessage(i); - } - } - - function reduce(numWorkers, results) { - // find overlapping time windows - var overlaps = []; - for(var n = 0; n < numWorkers; ++n) { - var r1 = results[n]; - var overlap = overlaps[n] = []; - for(var i = 0; i < numWorkers; ++i) { - if(n === i) { - continue; - } - var r2 = results[i]; - if((r1.st > r2.st && r1.st < r2.et) || - (r2.st > r1.st && r2.st < r1.et)) { - overlap.push(i); - } - } - } - // get maximum overlaps ... don't include overlapping worker itself - // as the main JS process was also being scheduled during the work and - // would have to be subtracted from the estimate anyway - return overlaps.reduce(function(max, overlap) { - return Math.max(max, overlap.length); - }, 0); - } -}; - - -/***/ }), -/* 55 */, -/* 56 */, -/* 57 */, -/* 58 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.adsensehost = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v4_1_1 = __webpack_require__(77); -exports.VERSIONS = { - 'v4.1': v4_1_1.adsensehost_v4_1.Adsensehost, -}; -function adsensehost(versionOrOptions) { - return googleapis_common_1.getAPI('adsensehost', versionOrOptions, exports.VERSIONS, this); -} -exports.adsensehost = adsensehost; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 59 */, -/* 60 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -/** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(747); -const gaxios_1 = __webpack_require__(597); -const jws = __webpack_require__(298); -const mime = __webpack_require__(889); -const util_1 = __webpack_require__(669); -const readFile = fs.readFile - ? util_1.promisify(fs.readFile) - : async () => { - // if running in the web-browser, fs.readFile may not have been shimmed. - throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); - }; -const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; -const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; -class ErrorWithCode extends Error { - constructor(message, code) { - super(message); - this.code = code; - } -} -let getPem; -class GoogleToken { - /** - * Create a GoogleToken. - * - * @param options Configuration object. - */ - constructor(options) { - this.configure(options); - } - get accessToken() { - return this.rawToken ? this.rawToken.access_token : undefined; - } - get idToken() { - return this.rawToken ? this.rawToken.id_token : undefined; - } - get tokenType() { - return this.rawToken ? this.rawToken.token_type : undefined; - } - get refreshToken() { - return this.rawToken ? this.rawToken.refresh_token : undefined; - } - /** - * Returns whether the token has expired. - * - * @return true if the token has expired, false otherwise. - */ - hasExpired() { - const now = new Date().getTime(); - if (this.rawToken && this.expiresAt) { - return now >= this.expiresAt; - } - else { - return true; - } - } - getToken(callback, opts = {}) { - if (typeof callback === 'object') { - opts = callback; - callback = undefined; - } - opts = Object.assign({ - forceRefresh: false, - }, opts); - if (callback) { - const cb = callback; - this.getTokenAsync(opts).then(t => cb(null, t), callback); - return; - } - return this.getTokenAsync(opts); - } - /** - * Given a keyFile, extract the key and client email if available - * @param keyFile Path to a json, pem, or p12 file that contains the key. - * @returns an object with privateKey and clientEmail properties - */ - async getCredentials(keyFile) { - const mimeType = mime.getType(keyFile); - switch (mimeType) { - case 'application/json': { - // *.json file - const key = await readFile(keyFile, 'utf8'); - const body = JSON.parse(key); - const privateKey = body.private_key; - const clientEmail = body.client_email; - if (!privateKey || !clientEmail) { - throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); - } - return { privateKey, clientEmail }; - } - case 'application/x-x509-ca-cert': { - // *.pem file - const privateKey = await readFile(keyFile, 'utf8'); - return { privateKey }; - } - case 'application/x-pkcs12': { - // *.p12 file - // NOTE: The loading of `google-p12-pem` is deferred for performance - // reasons. The `node-forge` npm module in `google-p12-pem` adds a fair - // bit time to overall module loading, and is likely not frequently - // used. In a future release, p12 support will be entirely removed. - if (!getPem) { - getPem = (await Promise.resolve().then(() => __webpack_require__(938))).getPem; - } - const privateKey = await getPem(keyFile); - return { privateKey }; - } - default: - throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + - 'Current supported extensions are *.json, *.pem, and *.p12.', 'UNKNOWN_CERTIFICATE_TYPE'); - } - } - async getTokenAsync(opts) { - if (this.hasExpired() === false && opts.forceRefresh === false) { - return Promise.resolve(this.rawToken); - } - if (!this.key && !this.keyFile) { - throw new Error('No key or keyFile set.'); - } - if (!this.key && this.keyFile) { - const creds = await this.getCredentials(this.keyFile); - this.key = creds.privateKey; - this.iss = creds.clientEmail || this.iss; - if (!creds.clientEmail) { - this.ensureEmail(); - } - } - return this.requestToken(); - } - ensureEmail() { - if (!this.iss) { - throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); - } - } - revokeToken(callback) { - if (callback) { - this.revokeTokenAsync().then(() => callback(), callback); - return; - } - return this.revokeTokenAsync(); - } - async revokeTokenAsync() { - if (!this.accessToken) { - throw new Error('No token to revoke.'); - } - const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; - await gaxios_1.request({ url }); - this.configure({ - email: this.iss, - sub: this.sub, - key: this.key, - keyFile: this.keyFile, - scope: this.scope, - additionalClaims: this.additionalClaims, - }); - } - /** - * Configure the GoogleToken for re-use. - * @param {object} options Configuration object. - */ - configure(options = {}) { - this.keyFile = options.keyFile; - this.key = options.key; - this.rawToken = undefined; - this.iss = options.email || options.iss; - this.sub = options.sub; - this.additionalClaims = options.additionalClaims; - if (typeof options.scope === 'object') { - this.scope = options.scope.join(' '); - } - else { - this.scope = options.scope; - } - } - /** - * Request the token from Google. - */ - async requestToken() { - const iat = Math.floor(new Date().getTime() / 1000); - const additionalClaims = this.additionalClaims || {}; - const payload = Object.assign({ - iss: this.iss, - scope: this.scope, - aud: GOOGLE_TOKEN_URL, - exp: iat + 3600, - iat, - sub: this.sub, - }, additionalClaims); - const signedJWT = jws.sign({ - header: { alg: 'RS256' }, - payload, - secret: this.key, - }); - try { - const r = await gaxios_1.request({ - method: 'POST', - url: GOOGLE_TOKEN_URL, - data: { - grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', - assertion: signedJWT, - }, - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - responseType: 'json', - }); - this.rawToken = r.data; - this.expiresAt = - r.data.expires_in === null || r.data.expires_in === undefined - ? undefined - : (iat + r.data.expires_in) * 1000; - return this.rawToken; - } - catch (e) { - this.rawToken = undefined; - this.tokenExpires = undefined; - const body = e.response && e.response.data ? e.response.data : {}; - if (body.error) { - const desc = body.error_description - ? `: ${body.error_description}` - : ''; - e.message = `${body.error}${desc}`; - } - throw e; - } - } -} -exports.GoogleToken = GoogleToken; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 61 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.toolresults_v1beta3 = 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 = __webpack_require__(927); -var toolresults_v1beta3; -(function (toolresults_v1beta3) { - /** - * Cloud Tool Results API - * - * API to publish and access results from developer tools. - * - * @example - * const {google} = require('googleapis'); - * const toolresults = google.toolresults('v1beta3'); - * - * @namespace toolresults - * @type {Function} - * @version v1beta3 - * @variation v1beta3 - * @param {object=} options Options for Toolresults - */ - class Toolresults { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.clusters = new Resource$Clusters(this.context); - this.environments = new Resource$Environments(this.context); - this.executions = new Resource$Executions(this.context); - this.histories = new Resource$Histories(this.context); - this.perfMetricsSummary = new Resource$Perfmetricssummary(this.context); - this.perfSampleSeries = new Resource$Perfsampleseries(this.context); - this.projects = new Resource$Projects(this.context); - this.samples = new Resource$Samples(this.context); - this.steps = new Resource$Steps(this.context); - this.testCases = new Resource$Testcases(this.context); - this.thumbnails = new Resource$Thumbnails(this.context); - } - } - toolresults_v1beta3.Toolresults = Toolresults; - class Resource$Clusters { + pubsublite_v1.Resource$Admin$Projects$Locations$Reservations = Resource$Admin$Projects$Locations$Reservations; + class Resource$Admin$Projects$Locations$Reservations$Topics { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'historyId', 'executionId', 'clusterId'], - pathParams: ['clusterId', 'executionId', 'historyId', 'projectId'], - 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - toolresults_v1beta3.Resource$Clusters = Resource$Clusters; - class Resource$Environments { + pubsublite_v1.Resource$Admin$Projects$Locations$Reservations$Topics = Resource$Admin$Projects$Locations$Reservations$Topics; + class Resource$Admin$Projects$Locations$Subscriptions { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'environmentId', - ], - pathParams: ['environmentId', 'executionId', 'historyId', 'projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/admin/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - toolresults_v1beta3.Resource$Environments = Resource$Environments; - class Resource$Executions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'historyId'], - pathParams: ['historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId'], - pathParams: ['historyId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - toolresults_v1beta3.Resource$Executions = Resource$Executions; - class Resource$Histories { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + seek(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}:seek').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'historyId'], - pathParams: ['historyId', 'projectId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - toolresults_v1beta3.Resource$Histories = Resource$Histories; - class Resource$Perfmetricssummary { + pubsublite_v1.Resource$Admin$Projects$Locations$Subscriptions = Resource$Admin$Projects$Locations$Subscriptions; + class Resource$Admin$Projects$Locations$Topics { constructor(context) { this.context = context; + this.subscriptions = + new Resource$Admin$Projects$Locations$Topics$Subscriptions(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -13476,32 +14395,25 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - toolresults_v1beta3.Resource$Perfmetricssummary = Resource$Perfmetricssummary; - class Resource$Perfsampleseries { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -13514,23 +14426,22 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -13546,76 +14457,57 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'sampleSeriesId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'sampleSeriesId', - 'stepId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getPartitions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}/partitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - toolresults_v1beta3.Resource$Perfsampleseries = Resource$Perfsampleseries; - class Resource$Projects { - constructor(context) { - this.context = context; - } - getSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -13628,25 +14520,25 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - initializeSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -13659,915 +14551,692 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}:initializeSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - toolresults_v1beta3.Resource$Projects = Resource$Projects; - class Resource$Samples { + pubsublite_v1.Resource$Admin$Projects$Locations$Topics = Resource$Admin$Projects$Locations$Topics; + class Resource$Admin$Projects$Locations$Topics$Subscriptions { constructor(context) { this.context = context; } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'sampleSeriesId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'sampleSeriesId', - 'stepId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + pubsublite_v1.Resource$Admin$Projects$Locations$Topics$Subscriptions = Resource$Admin$Projects$Locations$Topics$Subscriptions; + class Resource$Cursor { + constructor(context) { + this.context = context; + this.projects = new Resource$Cursor$Projects(this.context); + } + } + pubsublite_v1.Resource$Cursor = Resource$Cursor; + class Resource$Cursor$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Cursor$Projects$Locations(this.context); + } + } + pubsublite_v1.Resource$Cursor$Projects = Resource$Cursor$Projects; + class Resource$Cursor$Projects$Locations { + constructor(context) { + this.context = context; + this.subscriptions = new Resource$Cursor$Projects$Locations$Subscriptions(this.context); + } + } + pubsublite_v1.Resource$Cursor$Projects$Locations = Resource$Cursor$Projects$Locations; + class Resource$Cursor$Projects$Locations$Subscriptions { + constructor(context) { + this.context = context; + this.cursors = + new Resource$Cursor$Projects$Locations$Subscriptions$Cursors(this.context); + } + commitCursor(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/cursor/{+subscription}:commitCursor').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'sampleSeriesId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'sampleSeriesId', - 'stepId', - ], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - toolresults_v1beta3.Resource$Samples = Resource$Samples; - class Resource$Steps { + pubsublite_v1.Resource$Cursor$Projects$Locations$Subscriptions = Resource$Cursor$Projects$Locations$Subscriptions; + class Resource$Cursor$Projects$Locations$Subscriptions$Cursors { constructor(context) { this.context = context; } - accessibilityClusters(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/{+name}:accessibilityClusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/cursor/{+parent}/cursors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + pubsublite_v1.Resource$Cursor$Projects$Locations$Subscriptions$Cursors = Resource$Cursor$Projects$Locations$Subscriptions$Cursors; + class Resource$Topicstats { + constructor(context) { + this.context = context; + this.projects = new Resource$Topicstats$Projects(this.context); + } + } + pubsublite_v1.Resource$Topicstats = Resource$Topicstats; + class Resource$Topicstats$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Topicstats$Projects$Locations(this.context); + } + } + pubsublite_v1.Resource$Topicstats$Projects = Resource$Topicstats$Projects; + class Resource$Topicstats$Projects$Locations { + constructor(context) { + this.context = context; + this.topics = new Resource$Topicstats$Projects$Locations$Topics(this.context); + } + } + pubsublite_v1.Resource$Topicstats$Projects$Locations = Resource$Topicstats$Projects$Locations; + class Resource$Topicstats$Projects$Locations$Topics { + constructor(context) { + this.context = context; + } + computeHeadCursor(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/topicStats/{+topic}:computeHeadCursor').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + computeMessageStats(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/topicStats/{+topic}:computeMessageStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPerfMetricsSummary(paramsOrCallback, optionsOrCallback, callback) { + computeTimeCursor(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/topicStats/{+topic}:computeTimeCursor').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - publishXunitXmlFiles(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - toolresults_v1beta3.Resource$Steps = Resource$Steps; - class Resource$Testcases { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'testCaseId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'stepId', - 'testCaseId', - ], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - toolresults_v1beta3.Resource$Testcases = Resource$Testcases; - class Resource$Thumbnails { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - toolresults_v1beta3.Resource$Thumbnails = Resource$Thumbnails; -})(toolresults_v1beta3 = exports.toolresults_v1beta3 || (exports.toolresults_v1beta3 = {})); -//# sourceMappingURL=v1beta3.js.map - -/***/ }), -/* 62 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = __webpack_require__(669).inspect; + pubsublite_v1.Resource$Topicstats$Projects$Locations$Topics = Resource$Topicstats$Projects$Locations$Topics; +})(pubsublite_v1 = exports.pubsublite_v1 || (exports.pubsublite_v1 = {})); /***/ }), -/* 63 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -module.exports = validate; - -const { RequestError } = __webpack_require__(524); -const get = __webpack_require__(854); -const set = __webpack_require__(883); - -function validate(octokit, options) { - if (!options.request.validate) { - return; - } - const { validate: params } = options.request; - - Object.keys(params).forEach(parameterName => { - const parameter = get(params, parameterName); - - const expectedType = parameter.type; - let parentParameterName; - let parentValue; - let parentParamIsPresent = true; - let parentParameterIsArray = false; - - if (/\./.test(parameterName)) { - parentParameterName = parameterName.replace(/\.[^.]+$/, ""); - parentParameterIsArray = parentParameterName.slice(-2) === "[]"; - if (parentParameterIsArray) { - parentParameterName = parentParameterName.slice(0, -2); - } - parentValue = get(options, parentParameterName); - parentParamIsPresent = - parentParameterName === "headers" || - (typeof parentValue === "object" && parentValue !== null); - } - const values = parentParameterIsArray - ? (get(options, parentParameterName) || []).map( - value => value[parameterName.split(/\./).pop()] - ) - : [get(options, parameterName)]; +/***/ 267: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - values.forEach((value, i) => { - const valueIsPresent = typeof value !== "undefined"; - const valueIsNull = value === null; - const currentParameterName = parentParameterIsArray - ? parameterName.replace(/\[\]/, `[${i}]`) - : parameterName; +"use strict"; - if (!parameter.required && !valueIsPresent) { - return; - } - // if the parent parameter is of type object but allows null - // then the child parameters can be ignored - if (!parentParamIsPresent) { - return; - } +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; - if (parameter.allowNull && valueIsNull) { - return; - } +var _crypto = _interopRequireDefault(__webpack_require__(6417)); - if (!parameter.allowNull && valueIsNull) { - throw new RequestError( - `'${currentParameterName}' cannot be null`, - 400, - { - request: options - } - ); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - if (parameter.required && !valueIsPresent) { - throw new RequestError( - `Empty value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } - // parse to integer before checking for enum - // so that string "1" will match enum with number 1 - if (expectedType === "integer") { - const unparsedValue = value; - value = parseInt(value, 10); - if (isNaN(value)) { - throw new RequestError( - `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - unparsedValue - )} is NaN`, - 400, - { - request: options - } - ); - } - } + return _crypto.default.createHash('sha1').update(bytes).digest(); +} - if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) { - throw new RequestError( - `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } +var _default = sha1; +exports.default = _default; - if (parameter.validation) { - const regex = new RegExp(parameter.validation); - if (!regex.test(value)) { - throw new RequestError( - `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - } +/***/ }), - if (expectedType === "object" && typeof value === "string") { - try { - value = JSON.parse(value); - } catch (exception) { - throw new RequestError( - `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - } +/***/ 282: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - set(options, parameter.mapTo || currentParameterName, value); - }); - }); +"use strict"; - return options; +// Copyright 2022 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.PluggableAuthClient = exports.ExecutableError = void 0; +const baseexternalclient_1 = __webpack_require__(48); +const executable_response_1 = __webpack_require__(5561); +const pluggable_auth_handler_1 = __webpack_require__(4162); +/** + * Error thrown from the executable run by PluggableAuthClient. + */ +class ExecutableError extends Error { + constructor(message, code) { + super(`The executable failed with exit code: ${code} and error message: ${message}.`); + this.code = code; + Object.setPrototypeOf(this, new.target.prototype); + } } - - -/***/ }), -/* 64 */, -/* 65 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - +exports.ExecutableError = ExecutableError; /** - * Partial implementation of PKCS#1 v2.2: RSA-OEAP - * - * Modified but based on the following MIT and BSD licensed code: - * - * https://github.com/kjur/jsjws/blob/master/rsa.js: - * - * The 'jsjws'(JSON Web Signature JavaScript Library) License - * - * Copyright (c) 2012 Kenji Urushima - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * The default executable timeout when none is provided, in milliseconds. + */ +const DEFAULT_EXECUTABLE_TIMEOUT_MILLIS = 30 * 1000; +/** + * The minimum allowed executable timeout in milliseconds. + */ +const MINIMUM_EXECUTABLE_TIMEOUT_MILLIS = 5 * 1000; +/** + * The maximum allowed executable timeout in milliseconds. + */ +const MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS = 120 * 1000; +/** + * The environment variable to check to see if executable can be run. + * Value must be set to '1' for the executable to run. + */ +const GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES = 'GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES'; +/** + * The maximum currently supported executable version. + */ +const MAXIMUM_EXECUTABLE_VERSION = 1; +/** + * PluggableAuthClient enables the exchange of workload identity pool external credentials for + * Google access tokens by retrieving 3rd party tokens through a user supplied executable. These + * scripts/executables are completely independent of the Google Cloud Auth libraries. These + * credentials plug into ADC and will call the specified executable to retrieve the 3rd party token + * to be exchanged for a Google access token. * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + *

To use these credentials, the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment variable + * must be set to '1'. This is for security reasons. * - * http://webrsa.cvs.sourceforge.net/viewvc/webrsa/Client/RSAES-OAEP.js?content-type=text%2Fplain: + *

Both OIDC and SAML are supported. The executable must adhere to a specific response format + * defined below. * - * RSAES-OAEP.js - * $Id: RSAES-OAEP.js,v 1.1.1.1 2003/03/19 15:37:20 ellispritchard Exp $ - * JavaScript Implementation of PKCS #1 v2.1 RSA CRYPTOGRAPHY STANDARD (RSA Laboratories, June 14, 2002) - * Copyright (C) Ellis Pritchard, Guardian Unlimited 2003. - * Contact: ellis@nukinetics.com - * Distributed under the BSD License. + *

The executable must print out the 3rd party token to STDOUT in JSON format. When an + * output_file is specified in the credential configuration, the executable must also handle writing the + * JSON response to this file. * - * Official documentation: http://www.rsa.com/rsalabs/node.asp?id=2125 + *

+ * OIDC response sample:
+ * {
+ *   "version": 1,
+ *   "success": true,
+ *   "token_type": "urn:ietf:params:oauth:token-type:id_token",
+ *   "id_token": "HEADER.PAYLOAD.SIGNATURE",
+ *   "expiration_time": 1620433341
+ * }
  *
- * @author Evan Jones (http://evanjones.ca/)
- * @author Dave Longley
+ * SAML2 response sample:
+ * {
+ *   "version": 1,
+ *   "success": true,
+ *   "token_type": "urn:ietf:params:oauth:token-type:saml2",
+ *   "saml_response": "...",
+ *   "expiration_time": 1620433341
+ * }
  *
- * Copyright (c) 2013-2014 Digital Bazaar, Inc.
- */
-var forge = __webpack_require__(239);
-__webpack_require__(54);
-__webpack_require__(707);
-__webpack_require__(908);
-
-// shortcut for PKCS#1 API
-var pkcs1 = module.exports = forge.pkcs1 = forge.pkcs1 || {};
-
-/**
- * Encode the given RSAES-OAEP message (M) using key, with optional label (L)
- * and seed.
+ * Error response sample:
+ * {
+ *   "version": 1,
+ *   "success": false,
+ *   "code": "401",
+ *   "message": "Error message."
+ * }
+ * 
* - * This method does not perform RSA encryption, it only encodes the message - * using RSAES-OAEP. + *

The "expiration_time" field in the JSON response is only required for successful + * responses when an output file was specified in the credential configuration * - * @param key the RSA key to use. - * @param message the message to encode. - * @param options the options to use: - * label an optional label to use. - * seed the seed to use. - * md the message digest object to use, undefined for SHA-1. - * mgf1 optional mgf1 parameters: - * md the message digest object to use for MGF1. + *

The auth libraries will populate certain environment variables that will be accessible by the + * executable, such as: GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE, GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE, + * GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE, GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL, and + * GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE. * - * @return the encoded message bytes. + *

Please see this repositories README for a complete executable request/response specification. */ -pkcs1.encode_rsa_oaep = function(key, message, options) { - // parse arguments - var label; - var seed; - var md; - var mgf1Md; - // legacy args (label, seed, md) - if(typeof options === 'string') { - label = options; - seed = arguments[3] || undefined; - md = arguments[4] || undefined; - } else if(options) { - label = options.label || undefined; - seed = options.seed || undefined; - md = options.md || undefined; - if(options.mgf1 && options.mgf1.md) { - mgf1Md = options.mgf1.md; +class PluggableAuthClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiates a PluggableAuthClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid pluggable auth credential. + * @param options The external account options object typically loaded from + * the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(options, additionalOptions); + if (!options.credential_source.executable) { + throw new Error('No valid Pluggable Auth "credential_source" provided.'); + } + this.command = options.credential_source.executable.command; + if (!this.command) { + throw new Error('No valid Pluggable Auth "credential_source" provided.'); + } + // Check if the provided timeout exists and if it is valid. + if (options.credential_source.executable.timeout_millis === undefined) { + this.timeoutMillis = DEFAULT_EXECUTABLE_TIMEOUT_MILLIS; + } + else { + this.timeoutMillis = options.credential_source.executable.timeout_millis; + if (this.timeoutMillis < MINIMUM_EXECUTABLE_TIMEOUT_MILLIS || + this.timeoutMillis > MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS) { + throw new Error(`Timeout must be between ${MINIMUM_EXECUTABLE_TIMEOUT_MILLIS} and ` + + `${MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS} milliseconds.`); + } + } + this.outputFile = options.credential_source.executable.output_file; + this.handler = new pluggable_auth_handler_1.PluggableAuthHandler({ + command: this.command, + timeoutMillis: this.timeoutMillis, + outputFile: this.outputFile, + }); } - } - - // default OAEP to SHA-1 message digest - if(!md) { - md = forge.md.sha1.create(); - } else { - md.start(); - } - - // default MGF-1 to same as OAEP - if(!mgf1Md) { - mgf1Md = md; - } - - // compute length in bytes and check output - var keyLength = Math.ceil(key.n.bitLength() / 8); - var maxLength = keyLength - 2 * md.digestLength - 2; - if(message.length > maxLength) { - var error = new Error('RSAES-OAEP input message length is too long.'); - error.length = message.length; - error.maxLength = maxLength; - throw error; - } - - if(!label) { - label = ''; - } - md.update(label, 'raw'); - var lHash = md.digest(); + /** + * Triggered when an external subject token is needed to be exchanged for a + * GCP access token via GCP STS endpoint. + * This uses the `options.credential_source` object to figure out how + * to retrieve the token using the current environment. In this case, + * this calls a user provided executable which returns the subject token. + * The logic is summarized as: + * 1. Validated that the executable is allowed to run. The + * GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment must be set to + * 1 for security reasons. + * 2. If an output file is specified by the user, check the file location + * for a response. If the file exists and contains a valid response, + * return the subject token from the file. + * 3. Call the provided executable and return response. + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + // Check if the executable is allowed to run. + if (process.env[GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES] !== '1') { + throw new Error('Pluggable Auth executables need to be explicitly allowed to run by ' + + 'setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment ' + + 'Variable to 1.'); + } + let executableResponse = undefined; + // Try to get cached executable response from output file. + if (this.outputFile) { + executableResponse = await this.handler.retrieveCachedResponse(); + } + // If no response from output file, call the executable. + if (!executableResponse) { + // Set up environment map with required values for the executable. + const envMap = new Map(); + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE', this.audience); + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE', this.subjectTokenType); + // Always set to 0 because interactive mode is not supported. + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE', '0'); + if (this.outputFile) { + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE', this.outputFile); + } + const serviceAccountEmail = this.getServiceAccountEmail(); + if (serviceAccountEmail) { + envMap.set('GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL', serviceAccountEmail); + } + executableResponse = await this.handler.retrieveResponseFromExecutable(envMap); + } + if (executableResponse.version > MAXIMUM_EXECUTABLE_VERSION) { + throw new Error(`Version of executable is not currently supported, maximum supported version is ${MAXIMUM_EXECUTABLE_VERSION}.`); + } + // Check that response was successful. + if (!executableResponse.success) { + throw new ExecutableError(executableResponse.errorMessage, executableResponse.errorCode); + } + // Check that response contains expiration time if output file was specified. + if (this.outputFile) { + if (!executableResponse.expirationTime) { + throw new executable_response_1.InvalidExpirationTimeFieldError('The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.'); + } + } + // Check that response is not expired. + if (executableResponse.isExpired()) { + throw new Error('Executable response is expired.'); + } + // Return subject token from response. + return executableResponse.subjectToken; + } +} +exports.PluggableAuthClient = PluggableAuthClient; +//# sourceMappingURL=pluggable-auth-client.js.map - var PS = ''; - var PS_length = maxLength - message.length; - for(var i = 0; i < PS_length; i++) { - PS += '\x00'; - } +/***/ }), - var DB = lHash.getBytes() + PS + '\x01' + message; +/***/ 299: +/***/ (function(__unusedmodule, exports) { - if(!seed) { - seed = forge.random.getBytes(md.digestLength); - } else if(seed.length !== md.digestLength) { - var error = new Error('Invalid RSAES-OAEP seed. The seed length must ' + - 'match the digest length.'); - error.seedLength = seed.length; - error.digestLength = md.digestLength; - throw error; - } +"use strict"; - var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); - var maskedDB = forge.util.xorBytes(DB, dbMask, DB.length); - var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); - var maskedSeed = forge.util.xorBytes(seed, seedMask, seed.length); +Object.defineProperty(exports, '__esModule', { value: true }); - // return encoded message - return '\x00' + maskedSeed + maskedDB; -}; +const VERSION = "1.1.2"; /** - * Decode the given RSAES-OAEP encoded message (EM) using key, with optional - * label (L). + * Some “list” response that can be paginated have a different response structure * - * This method does not perform RSA decryption, it only decodes the message - * using RSAES-OAEP. + * They have a `total_count` key in the response (search also has `incomplete_results`, + * /installation/repositories also has `repository_selection`), as well as a key with + * the list of the items which name varies from endpoint to endpoint: * - * @param key the RSA key to use. - * @param em the encoded message to decode. - * @param options the options to use: - * label an optional label to use. - * md the message digest object to use for OAEP, undefined for SHA-1. - * mgf1 optional mgf1 parameters: - * md the message digest object to use for MGF1. + * - https://developer.github.com/v3/search/#example (key `items`) + * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`) + * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`) + * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`) + * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`) * - * @return the decoded message bytes. + * Octokit normalizes these responses so that paginated results are always returned following + * the same structure. One challenge is that if the list response has only one page, no Link + * header is provided, so this header alone is not sufficient to check wether a response is + * paginated or not. For the exceptions with the namespace, a fallback check for the route + * paths has to be added in order to normalize the response. We cannot check for the total_count + * property because it also exists in the response of Get the combined status for a specific ref. */ -pkcs1.decode_rsa_oaep = function(key, em, options) { - // parse args - var label; - var md; - var mgf1Md; - // legacy args - if(typeof options === 'string') { - label = options; - md = arguments[3] || undefined; - } else if(options) { - label = options.label || undefined; - md = options.md || undefined; - if(options.mgf1 && options.mgf1.md) { - mgf1Md = options.mgf1.md; - } - } +const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/]; +function normalizePaginatedListResponse(octokit, url, response) { + const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, ""); + const responseNeedsNormalization = REGEX.find(regex => regex.test(path)); + if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way + // to retrieve the same information. - // compute length in bytes - var keyLength = Math.ceil(key.n.bitLength() / 8); + const incompleteResults = response.data.incomplete_results; + const repositorySelection = response.data.repository_selection; + const totalCount = response.data.total_count; + delete response.data.incomplete_results; + delete response.data.repository_selection; + delete response.data.total_count; + const namespaceKey = Object.keys(response.data)[0]; + const data = response.data[namespaceKey]; + response.data = data; - if(em.length !== keyLength) { - var error = new Error('RSAES-OAEP encoded message length is invalid.'); - error.length = em.length; - error.expectedLength = keyLength; - throw error; + if (typeof incompleteResults !== "undefined") { + response.data.incomplete_results = incompleteResults; } - // default OAEP to SHA-1 message digest - if(md === undefined) { - md = forge.md.sha1.create(); - } else { - md.start(); + if (typeof repositorySelection !== "undefined") { + response.data.repository_selection = repositorySelection; } - // default MGF-1 to same as OAEP - if(!mgf1Md) { - mgf1Md = md; - } + response.data.total_count = totalCount; + Object.defineProperty(response.data, namespaceKey, { + get() { + octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`); + return Array.from(data); + } - if(keyLength < 2 * md.digestLength + 2) { - throw new Error('RSAES-OAEP key is too short for the hash function.'); - } + }); +} - if(!label) { - label = ''; - } - md.update(label, 'raw'); - var lHash = md.digest().getBytes(); +function iterator(octokit, route, parameters) { + const options = octokit.request.endpoint(route, parameters); + const method = options.method; + const headers = options.headers; + let url = options.url; + return { + [Symbol.asyncIterator]: () => ({ + next() { + if (!url) { + return Promise.resolve({ + done: true + }); + } - // split the message into its parts - var y = em.charAt(0); - var maskedSeed = em.substring(1, md.digestLength + 1); - var maskedDB = em.substring(1 + md.digestLength); + return octokit.request({ + method, + url, + headers + }).then(response => { + normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format: + // '; rel="next", ; rel="last"' + // sets `url` to undefined if "next" URL is not present or `link` header is not set - var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); - var seed = forge.util.xorBytes(maskedSeed, seedMask, maskedSeed.length); + url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; + return { + value: response + }; + }); + } - var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); - var db = forge.util.xorBytes(maskedDB, dbMask, maskedDB.length); + }) + }; +} - var lHashPrime = db.substring(0, md.digestLength); +function paginate(octokit, route, parameters, mapFn) { + if (typeof parameters === "function") { + mapFn = parameters; + parameters = undefined; + } - // constant time check that all values match what is expected - var error = (y !== '\x00'); + return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn); +} - // constant time check lHash vs lHashPrime - for(var i = 0; i < md.digestLength; ++i) { - error |= (lHash.charAt(i) !== lHashPrime.charAt(i)); - } +function gather(octokit, results, iterator, mapFn) { + return iterator.next().then(result => { + if (result.done) { + return results; + } - // "constant time" find the 0x1 byte separating the padding (zeros) from the - // message - // TODO: It must be possible to do this in a better/smarter way? - var in_ps = 1; - var index = md.digestLength; - for(var j = md.digestLength; j < db.length; j++) { - var code = db.charCodeAt(j); + let earlyExit = false; - var is_0 = (code & 0x1) ^ 0x1; + function done() { + earlyExit = true; + } - // non-zero if not 0 or 1 in the ps section - var error_mask = in_ps ? 0xfffe : 0x0000; - error |= (code & error_mask); + results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data); - // latch in_ps to zero after we find 0x1 - in_ps = in_ps & is_0; - index += in_ps; - } + if (earlyExit) { + return results; + } - if(error || db.charCodeAt(index) !== 0x1) { - throw new Error('Invalid RSAES-OAEP padding.'); - } + return gather(octokit, results, iterator, mapFn); + }); +} - return db.substring(index + 1); -}; +/** + * @param octokit Octokit instance + * @param options Options passed to Octokit constructor + */ -function rsa_mgf1(seed, maskLength, hash) { - // default to SHA-1 message digest - if(!hash) { - hash = forge.md.sha1.create(); - } - var t = ''; - var count = Math.ceil(maskLength / hash.digestLength); - for(var i = 0; i < count; ++i) { - var c = String.fromCharCode( - (i >> 24) & 0xFF, (i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF); - hash.start(); - hash.update(seed + c); - t += hash.digest().getBytes(); - } - return t.substring(0, maskLength); +function paginateRest(octokit) { + return { + paginate: Object.assign(paginate.bind(null, octokit), { + iterator: iterator.bind(null, octokit) + }) + }; } +paginateRest.VERSION = VERSION; + +exports.paginateRest = paginateRest; +//# sourceMappingURL=index.js.map /***/ }), -/* 66 */ + +/***/ 308: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -14585,32 +15254,27 @@ function rsa_mgf1(seed, maskLength, hash) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.translate_v3 = void 0; +exports.firebasestorage_v1beta = 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 = __webpack_require__(927); -var translate_v3; -(function (translate_v3) { +var firebasestorage_v1beta; +(function (firebasestorage_v1beta) { /** - * Cloud Translation API + * Cloud Storage for Firebase API * - * Integrates text translation into your website or application. + * The Cloud Storage for Firebase API enables programmatic management of Cloud Storage buckets for use in Firebase projects * * @example + * ```js * const {google} = require('googleapis'); - * const translate = google.translate('v3'); - * - * @namespace translate - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Translate + * const firebasestorage = google.firebasestorage('v1beta'); + * ``` */ - class Translate { + class Firebasestorage { constructor(options, google) { this.context = { _options: options || {}, @@ -14619,145 +15283,19 @@ var translate_v3; this.projects = new Resource$Projects(this.context); } } - translate_v3.Translate = Translate; + firebasestorage_v1beta.Firebasestorage = Firebasestorage; class Resource$Projects { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - detectLanguage(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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}:detectLanguage').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); - } - } - getSupportedLanguages(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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/supportedLanguages').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); - } - } - translateText(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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}:translateText').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); - } + this.buckets = new Resource$Projects$Buckets(this.context); } } - translate_v3.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + firebasestorage_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Buckets { constructor(context) { this.context = context; - this.glossaries = new Resource$Projects$Locations$Glossaries(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - batchTranslateText(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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}:batchTranslateText').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); - } } - detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + addFirebase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -14770,22 +15308,22 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+bucket}:addFirebase').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -14801,10 +15339,10 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -14813,41 +15351,10 @@ var translate_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - getSupportedLanguages(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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -14863,62 +15370,25 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/buckets').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); - } - } - translateText(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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - translate_v3.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Glossaries { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + removeFirebase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -14931,87 +15401,383 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+bucket}:removeFirebase').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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } + } + firebasestorage_v1beta.Resource$Projects$Buckets = Resource$Projects$Buckets; +})(firebasestorage_v1beta = exports.firebasestorage_v1beta || (exports.firebasestorage_v1beta = {})); + + +/***/ }), + +/***/ 317: +/***/ (function(module) { + +/** + * Helpers. + */ + +var s = 1000; +var m = s * 60; +var h = m * 60; +var d = h * 24; +var w = d * 7; +var y = d * 365.25; + +/** + * Parse or format the given `val`. + * + * Options: + * + * - `long` verbose formatting [false] + * + * @param {String|Number} val + * @param {Object} [options] + * @throws {Error} throw an error if val is not a non-empty string or a number + * @return {String|Number} + * @api public + */ + +module.exports = function(val, options) { + options = options || {}; + var type = typeof val; + if (type === 'string' && val.length > 0) { + return parse(val); + } else if (type === 'number' && isFinite(val)) { + return options.long ? fmtLong(val) : fmtShort(val); + } + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); +}; + +/** + * Parse the given `str` and return milliseconds. + * + * @param {String} str + * @return {Number} + * @api private + */ + +function parse(str) { + str = String(str); + if (str.length > 100) { + return; + } + var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + str + ); + if (!match) { + return; + } + var n = parseFloat(match[1]); + var type = (match[2] || 'ms').toLowerCase(); + switch (type) { + case 'years': + case 'year': + case 'yrs': + case 'yr': + case 'y': + return n * y; + case 'weeks': + case 'week': + case 'w': + return n * w; + case 'days': + case 'day': + case 'd': + return n * d; + case 'hours': + case 'hour': + case 'hrs': + case 'hr': + case 'h': + return n * h; + case 'minutes': + case 'minute': + case 'mins': + case 'min': + case 'm': + return n * m; + case 'seconds': + case 'second': + case 'secs': + case 'sec': + case 's': + return n * s; + case 'milliseconds': + case 'millisecond': + case 'msecs': + case 'msec': + case 'ms': + return n; + default: + return undefined; + } +} + +/** + * Short format for `ms`. + * + * @param {Number} ms + * @return {String} + * @api private + */ + +function fmtShort(ms) { + var msAbs = Math.abs(ms); + if (msAbs >= d) { + return Math.round(ms / d) + 'd'; + } + if (msAbs >= h) { + return Math.round(ms / h) + 'h'; + } + if (msAbs >= m) { + return Math.round(ms / m) + 'm'; + } + if (msAbs >= s) { + return Math.round(ms / s) + 's'; + } + return ms + 'ms'; +} + +/** + * Long format for `ms`. + * + * @param {Number} ms + * @return {String} + * @api private + */ + +function fmtLong(ms) { + var msAbs = Math.abs(ms); + if (msAbs >= d) { + return plural(ms, msAbs, d, 'day'); + } + if (msAbs >= h) { + return plural(ms, msAbs, h, 'hour'); + } + if (msAbs >= m) { + return plural(ms, msAbs, m, 'minute'); + } + if (msAbs >= s) { + return plural(ms, msAbs, s, 'second'); + } + return ms + ' ms'; +} + +/** + * Pluralization helper. + */ + +function plural(ms, msAbs, n, name) { + var isPlural = msAbs >= n * 1.5; + return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); +} + + +/***/ }), + +/***/ 321: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.kgsearch_v1 = exports.auth = exports.kgsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9038); +Object.defineProperty(exports, "kgsearch_v1", { enumerable: true, get: function () { return v1_1.kgsearch_v1; } }); +exports.VERSIONS = { + v1: v1_1.kgsearch_v1.Kgsearch, +}; +function kgsearch(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('kgsearch', versionOrOptions, exports.VERSIONS, this); +} +exports.kgsearch = kgsearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 322: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.admob_v1beta = exports.admob_v1 = exports.auth = exports.admob = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8549); +Object.defineProperty(exports, "admob_v1", { enumerable: true, get: function () { return v1_1.admob_v1; } }); +const v1beta_1 = __webpack_require__(9892); +Object.defineProperty(exports, "admob_v1beta", { enumerable: true, get: function () { return v1beta_1.admob_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.admob_v1.Admob, + v1beta: v1beta_1.admob_v1beta.Admob, +}; +function admob(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('admob', versionOrOptions, exports.VERSIONS, this); +} +exports.admob = admob; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 323: +/***/ (function(module) { + +"use strict"; + + +const isStream = stream => + stream !== null && + typeof stream === 'object' && + typeof stream.pipe === 'function'; + +isStream.writable = stream => + isStream(stream) && + stream.writable !== false && + typeof stream._write === 'function' && + typeof stream._writableState === 'object'; + +isStream.readable = stream => + isStream(stream) && + stream.readable !== false && + typeof stream._read === 'function' && + typeof stream._readableState === 'object'; + +isStream.duplex = stream => + isStream.writable(stream) && + isStream.readable(stream); + +isStream.transform = stream => + isStream.duplex(stream) && + typeof stream._transform === 'function'; + +module.exports = isStream; + + +/***/ }), + +/***/ 326: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudbuild_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudbuild_v1alpha1; +(function (cloudbuild_v1alpha1) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1alpha1'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1alpha1.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.workerPools = new Resource$Projects$Workerpools(this.context); + } + } + cloudbuild_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + cloudbuild_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15024,31 +15790,62 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - translate_v3.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; - class Resource$Projects$Locations$Operations { + cloudbuild_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Workerpools { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15061,22 +15858,22 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -15092,10 +15889,10 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -15104,10 +15901,10 @@ var translate_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -15123,10 +15920,10 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -15135,10 +15932,10 @@ var translate_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -15154,25 +15951,25 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15185,11 +15982,11 @@ var translate_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -15197,95 +15994,20 @@ var translate_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - translate_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(translate_v3 = exports.translate_v3 || (exports.translate_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 67 */, -/* 68 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; + cloudbuild_v1alpha1.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha1 = exports.cloudbuild_v1alpha1 || (exports.cloudbuild_v1alpha1 = {})); -// 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.auth = exports.firestore = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(920); -const v1beta1_1 = __webpack_require__(494); -const v1beta2_1 = __webpack_require__(485); -exports.VERSIONS = { - v1: v1_1.firestore_v1.Firestore, - v1beta1: v1beta1_1.firestore_v1beta1.Firestore, - v1beta2: v1beta2_1.firestore_v1beta2.Firestore, -}; -function firestore(versionOrOptions) { - return googleapis_common_1.getAPI('firestore', versionOrOptions, exports.VERSIONS, this); -} -exports.firestore = firestore; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 69 */, -/* 70 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.memcache = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta2_1 = __webpack_require__(134); -exports.VERSIONS = { - v1beta2: v1beta2_1.memcache_v1beta2.Memcache, -}; -function memcache(versionOrOptions) { - return googleapis_common_1.getAPI('memcache', versionOrOptions, exports.VERSIONS, this); -} -exports.memcache = memcache; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 71 */, -/* 72 */, -/* 73 */ +/***/ 329: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -15303,47 +16025,54 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.servicenetworking_v1 = void 0; +exports.datastream_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 = __webpack_require__(927); -var servicenetworking_v1; -(function (servicenetworking_v1) { +var datastream_v1; +(function (datastream_v1) { /** - * Service Networking API + * Datastream API + * * - * Provides automatic management of network configurations necessary for certain services. * * @example + * ```js * const {google} = require('googleapis'); - * const servicenetworking = google.servicenetworking('v1'); - * - * @namespace servicenetworking - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Servicenetworking + * const datastream = google.datastream('v1'); + * ``` */ - class Servicenetworking { + class Datastream { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); + this.projects = new Resource$Projects(this.context); } } - servicenetworking_v1.Servicenetworking = Servicenetworking; - class Resource$Operations { + datastream_v1.Datastream = Datastream; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + } + datastream_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connectionProfiles = + new Resource$Projects$Locations$Connectionprofiles(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.privateConnections = + new Resource$Projects$Locations$Privateconnections(this.context); + this.streams = new Resource$Projects$Locations$Streams(this.context); + } + fetchStaticIps(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15356,11 +16085,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -15368,13 +16097,13 @@ var servicenetworking_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15387,11 +16116,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -15399,14 +16128,15 @@ var servicenetworking_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -15417,10 +16147,10 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -15429,99 +16159,101 @@ var servicenetworking_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datastream_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectionprofiles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicenetworking_v1.Resource$Operations = Resource$Operations; - class Resource$Services { - constructor(context) { - this.context = context; - this.connections = new Resource$Services$Connections(this.context); - this.roles = new Resource$Services$Roles(this.context); - } - addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { + discover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:disableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/connectionProfiles:discover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -15529,61 +16261,63 @@ var servicenetworking_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:enableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchRange(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -15591,50 +16325,51 @@ var servicenetworking_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicenetworking_v1.Resource$Services = Resource$Services; - class Resource$Services$Connections { + datastream_v1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15647,25 +16382,25 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15678,25 +16413,25 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15709,11 +16444,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -15721,19 +16456,13 @@ var servicenetworking_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicenetworking_v1.Resource$Services$Connections = Resource$Services$Connections; - class Resource$Services$Roles { - constructor(context) { - this.context = context; - } - add(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -15746,360 +16475,301 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/roles:add').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicenetworking_v1.Resource$Services$Roles = Resource$Services$Roles; -})(servicenetworking_v1 = exports.servicenetworking_v1 || (exports.servicenetworking_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 74 */, -/* 75 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.androidenterprise_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 = __webpack_require__(927); -var androidenterprise_v1; -(function (androidenterprise_v1) { - /** - * Google Play EMM API - * - * Manages the deployment of apps to Android for Work users. - * - * @example - * const {google} = require('googleapis'); - * const androidenterprise = google.androidenterprise('v1'); - * - * @namespace androidenterprise - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Androidenterprise - */ - class Androidenterprise { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.devices = new Resource$Devices(this.context); - this.enterprises = new Resource$Enterprises(this.context); - this.entitlements = new Resource$Entitlements(this.context); - this.grouplicenses = new Resource$Grouplicenses(this.context); - this.grouplicenseusers = new Resource$Grouplicenseusers(this.context); - this.installs = new Resource$Installs(this.context); - this.managedconfigurationsfordevice = new Resource$Managedconfigurationsfordevice(this.context); - this.managedconfigurationsforuser = new Resource$Managedconfigurationsforuser(this.context); - this.managedconfigurationssettings = new Resource$Managedconfigurationssettings(this.context); - this.permissions = new Resource$Permissions(this.context); - this.products = new Resource$Products(this.context); - this.serviceaccountkeys = new Resource$Serviceaccountkeys(this.context); - this.storelayoutclusters = new Resource$Storelayoutclusters(this.context); - this.storelayoutpages = new Resource$Storelayoutpages(this.context); - this.users = new Resource$Users(this.context); - this.webapps = new Resource$Webapps(this.context); - } - } - androidenterprise_v1.Androidenterprise = Androidenterprise; - class Resource$Devices { + datastream_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Privateconnections { constructor(context) { this.context = context; + this.routes = new Resource$Projects$Locations$Privateconnections$Routes(this.context); } - forceReportUpload(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getState(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datastream_v1.Resource$Projects$Locations$Privateconnections = Resource$Projects$Locations$Privateconnections; + class Resource$Projects$Locations$Privateconnections$Routes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Devices = Resource$Devices; - class Resource$Enterprises { - constructor(context) { - this.context = context; - } - acknowledgeNotificationSet(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/acknowledgeNotificationSet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeSignup(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/completeSignup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createWebToken(paramsOrCallback, optionsOrCallback, callback) { + } + datastream_v1.Resource$Projects$Locations$Privateconnections$Routes = Resource$Projects$Locations$Privateconnections$Routes; + class Resource$Projects$Locations$Streams { + constructor(context) { + this.context = context; + this.objects = new Resource$Projects$Locations$Streams$Objects(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16112,26 +16782,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/createWebToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enroll(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16144,25 +16813,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/enroll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['token'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateSignupUrl(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16175,26 +16844,27 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/signupUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -16205,25 +16875,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16236,26 +16906,31 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStoreLayout(paramsOrCallback, optionsOrCallback, callback) { + } + datastream_v1.Resource$Projects$Locations$Streams = Resource$Projects$Locations$Streams; + class Resource$Projects$Locations$Streams$Objects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16268,27 +16943,27 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -16299,120 +16974,191 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/objects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['domain'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pullNotificationSet(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/pullNotificationSet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/objects:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendTestPushNotification(paramsOrCallback, optionsOrCallback, callback) { + startBackfillJob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+object}:startBackfillJob').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['object'], + pathParams: ['object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAccount(paramsOrCallback, optionsOrCallback, callback) { + stopBackfillJob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/account').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+object}:stopBackfillJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['object'], + pathParams: ['object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setStoreLayout(paramsOrCallback, optionsOrCallback, callback) { + } + datastream_v1.Resource$Projects$Locations$Streams$Objects = Resource$Projects$Locations$Streams$Objects; +})(datastream_v1 = exports.datastream_v1 || (exports.datastream_v1 = {})); + + +/***/ }), + +/***/ 335: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dialogflow_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dialogflow_v3; +(function (dialogflow_v3) { + /** + * Dialogflow API + * + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dialogflow = google.dialogflow('v3'); + * ``` + */ + class Dialogflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dialogflow_v3.Dialogflow = Dialogflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + dialogflow_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.agents = new Resource$Projects$Locations$Agents(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.securitySettings = new Resource$Projects$Locations$Securitysettings(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16425,26 +17171,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unenroll(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16457,32 +17202,39 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/unenroll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Enterprises = Resource$Enterprises; - class Resource$Entitlements { + dialogflow_v3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Agents { constructor(context) { this.context = context; + this.changelogs = new Resource$Projects$Locations$Agents$Changelogs(this.context); + this.entityTypes = new Resource$Projects$Locations$Agents$Entitytypes(this.context); + this.environments = new Resource$Projects$Locations$Agents$Environments(this.context); + this.flows = new Resource$Projects$Locations$Agents$Flows(this.context); + this.intents = new Resource$Projects$Locations$Agents$Intents(this.context); + this.sessions = new Resource$Projects$Locations$Agents$Sessions(this.context); + this.testCases = new Resource$Projects$Locations$Agents$Testcases(this.context); + this.webhooks = new Resource$Projects$Locations$Agents$Webhooks(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16495,27 +17247,27 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'entitlementId'], - pathParams: ['enterpriseId', 'entitlementId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -16526,26 +17278,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'entitlementId'], - pathParams: ['enterpriseId', 'entitlementId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16558,26 +17309,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16590,61 +17340,54 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'entitlementId'], - pathParams: ['enterpriseId', 'entitlementId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Entitlements = Resource$Entitlements; - class Resource$Grouplicenses { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getValidationResult(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'groupLicenseId'], - pathParams: ['enterpriseId', 'groupLicenseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -16660,32 +17403,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Grouplicenses = Resource$Grouplicenses; - class Resource$Grouplicenseusers { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -16698,33 +17434,27 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'groupLicenseId'], - pathParams: ['enterpriseId', 'groupLicenseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Grouplicenseusers = Resource$Grouplicenseusers; - class Resource$Installs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -16735,27 +17465,27 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], - pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -16766,27 +17496,33 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], - pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dialogflow_v3.Resource$Projects$Locations$Agents = Resource$Projects$Locations$Agents; + class Resource$Projects$Locations$Agents$Changelogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -16797,102 +17533,124 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+parent}/changelogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], - pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Installs = Resource$Installs; - class Resource$Managedconfigurationsfordevice { + dialogflow_v3.Resource$Projects$Locations$Agents$Changelogs = Resource$Projects$Locations$Agents$Changelogs; + class Resource$Projects$Locations$Agents$Entitytypes { 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'deviceId', - 'managedConfigurationForDeviceId', - ], - pathParams: [ - 'deviceId', - 'enterpriseId', - 'managedConfigurationForDeviceId', - 'userId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -16901,40 +17659,30 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'deviceId', - 'managedConfigurationForDeviceId', - ], - pathParams: [ - 'deviceId', - 'enterpriseId', - 'managedConfigurationForDeviceId', - 'userId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -16943,79 +17691,109 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'deviceId', - 'managedConfigurationForDeviceId', - ], - pathParams: [ - 'deviceId', - 'enterpriseId', - 'managedConfigurationForDeviceId', - 'userId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Managedconfigurationsfordevice = Resource$Managedconfigurationsfordevice; - class Resource$Managedconfigurationsforuser { + dialogflow_v3.Resource$Projects$Locations$Agents$Entitytypes = Resource$Projects$Locations$Agents$Entitytypes; + class Resource$Projects$Locations$Agents$Environments { constructor(context) { this.context = context; + this.continuousTestResults = + new Resource$Projects$Locations$Agents$Environments$Continuoustestresults(this.context); + this.deployments = + new Resource$Projects$Locations$Agents$Environments$Deployments(this.context); + this.experiments = + new Resource$Projects$Locations$Agents$Environments$Experiments(this.context); + this.sessions = + new Resource$Projects$Locations$Agents$Environments$Sessions(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -17023,34 +17801,62 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'managedConfigurationForUserId', - ], - pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deployFlow(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+environment}:deployFlow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -17059,34 +17865,30 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'managedConfigurationForUserId', - ], - pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -17095,71 +17897,131 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + lookupEnvironmentHistory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}:lookupEnvironmentHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'managedConfigurationForUserId', - ], - pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runContinuousTest(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+environment}:runContinuousTest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Managedconfigurationsforuser = Resource$Managedconfigurationsforuser; - class Resource$Managedconfigurationssettings { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments = Resource$Projects$Locations$Agents$Environments; + class Resource$Projects$Locations$Agents$Environments$Continuoustestresults { constructor(context) { this.context = context; } @@ -17169,497 +18031,536 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/continuousTestResults').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Managedconfigurationssettings = Resource$Managedconfigurationssettings; - class Resource$Permissions { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments$Continuoustestresults = Resource$Projects$Locations$Agents$Environments$Continuoustestresults; + class Resource$Projects$Locations$Agents$Environments$Deployments { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['permissionId'], - pathParams: ['permissionId'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Permissions = Resource$Permissions; - class Resource$Products { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments$Deployments = Resource$Projects$Locations$Agents$Environments$Deployments; + class Resource$Projects$Locations$Agents$Environments$Experiments { constructor(context) { this.context = context; } - approve(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateApprovalUrl(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAppRestrictionsSchema(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unapprove(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/unapprove').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Products = Resource$Products; - class Resource$Serviceaccountkeys { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments$Experiments = Resource$Projects$Locations$Agents$Environments$Experiments; + class Resource$Projects$Locations$Agents$Environments$Sessions { constructor(context) { this.context = context; + this.entityTypes = + new Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + detectIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'keyId'], - pathParams: ['enterpriseId', 'keyId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + fulfillIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + matchIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Serviceaccountkeys = Resource$Serviceaccountkeys; - class Resource$Storelayoutclusters { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments$Sessions = Resource$Projects$Locations$Agents$Environments$Sessions; + class Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'pageId', 'clusterId'], - pathParams: ['clusterId', 'enterpriseId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'pageId', 'clusterId'], - pathParams: ['clusterId', 'enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -17668,71 +18569,75 @@ var androidenterprise_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'pageId', 'clusterId'], - pathParams: ['clusterId', 'enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidenterprise_v1.Resource$Storelayoutclusters = Resource$Storelayoutclusters; - class Resource$Storelayoutpages { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes; + class Resource$Projects$Locations$Agents$Flows { constructor(context) { this.context = context; + this.pages = new Resource$Projects$Locations$Agents$Flows$Pages(this.context); + this.transitionRouteGroups = + new Resource$Projects$Locations$Agents$Flows$Transitionroutegroups(this.context); + this.versions = new Resource$Projects$Locations$Agents$Flows$Versions(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -17745,26 +18650,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -17777,26 +18681,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -17809,26 +18712,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -17841,65 +18743,59 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getValidationResult(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Storelayoutpages = Resource$Storelayoutpages; - class Resource$Users { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -17910,26 +18806,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/flows:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateAuthenticationToken(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -17942,26 +18837,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/authenticationToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateToken(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -17974,27 +18868,27 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/token').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + train(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -18005,26 +18899,25 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAvailableProductSet(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -18037,776 +18930,488 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dialogflow_v3.Resource$Projects$Locations$Agents$Flows = Resource$Projects$Locations$Agents$Flows; + class Resource$Projects$Locations$Agents$Flows$Pages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'email'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revokeDeviceAccess(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/deviceAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revokeToken(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/token').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAvailableProductSet(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dialogflow_v3.Resource$Projects$Locations$Agents$Flows$Pages = Resource$Projects$Locations$Agents$Flows$Pages; + class Resource$Projects$Locations$Agents$Flows$Transitionroutegroups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Users = Resource$Users; - class Resource$Webapps { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'webAppId'], - pathParams: ['enterpriseId', 'webAppId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'webAppId'], - pathParams: ['enterpriseId', 'webAppId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dialogflow_v3.Resource$Projects$Locations$Agents$Flows$Transitionroutegroups = Resource$Projects$Locations$Agents$Flows$Transitionroutegroups; + class Resource$Projects$Locations$Agents$Flows$Versions { + constructor(context) { + this.context = context; + } + compareVersions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+baseVersion}:compareVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'webAppId'], - pathParams: ['enterpriseId', 'webAppId'], + requiredParams: ['baseVersion'], + pathParams: ['baseVersion'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidenterprise_v1.Resource$Webapps = Resource$Webapps; -})(androidenterprise_v1 = exports.androidenterprise_v1 || (exports.androidenterprise_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 76 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of basic PEM (Privacy Enhanced Mail) algorithms. - * - * See: RFC 1421. - * - * @author Dave Longley - * - * Copyright (c) 2013-2014 Digital Bazaar, Inc. - * - * A Forge PEM object has the following fields: - * - * type: identifies the type of message (eg: "RSA PRIVATE KEY"). - * - * procType: identifies the type of processing performed on the message, - * it has two subfields: version and type, eg: 4,ENCRYPTED. - * - * contentDomain: identifies the type of content in the message, typically - * only uses the value: "RFC822". - * - * dekInfo: identifies the message encryption algorithm and mode and includes - * any parameters for the algorithm, it has two subfields: algorithm and - * parameters, eg: DES-CBC,F8143EDE5960C597. - * - * headers: contains all other PEM encapsulated headers -- where order is - * significant (for pairing data like recipient ID + key info). - * - * body: the binary-encoded body. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); - -// shortcut for pem API -var pem = module.exports = forge.pem = forge.pem || {}; - -/** - * Encodes (serializes) the given PEM object. - * - * @param msg the PEM message object to encode. - * @param options the options to use: - * maxline the maximum characters per line for the body, (default: 64). - * - * @return the PEM-formatted string. - */ -pem.encode = function(msg, options) { - options = options || {}; - var rval = '-----BEGIN ' + msg.type + '-----\r\n'; - - // encode special headers - var header; - if(msg.procType) { - header = { - name: 'Proc-Type', - values: [String(msg.procType.version), msg.procType.type] - }; - rval += foldHeader(header); - } - if(msg.contentDomain) { - header = {name: 'Content-Domain', values: [msg.contentDomain]}; - rval += foldHeader(header); - } - if(msg.dekInfo) { - header = {name: 'DEK-Info', values: [msg.dekInfo.algorithm]}; - if(msg.dekInfo.parameters) { - header.values.push(msg.dekInfo.parameters); - } - rval += foldHeader(header); - } - - if(msg.headers) { - // encode all other headers - for(var i = 0; i < msg.headers.length; ++i) { - rval += foldHeader(msg.headers[i]); - } - } - - // terminate header - if(msg.procType) { - rval += '\r\n'; - } - - // add body - rval += forge.util.encode64(msg.body, options.maxline || 64) + '\r\n'; - - rval += '-----END ' + msg.type + '-----\r\n'; - return rval; -}; - -/** - * Decodes (deserializes) all PEM messages found in the given string. - * - * @param str the PEM-formatted string to decode. - * - * @return the PEM message objects in an array. - */ -pem.decode = function(str) { - var rval = []; - - // split string into PEM messages (be lenient w/EOF on BEGIN line) - var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g; - var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/; - var rCRLF = /\r?\n/; - var match; - while(true) { - match = rMessage.exec(str); - if(!match) { - break; - } - - var msg = { - type: match[1], - procType: null, - contentDomain: null, - dekInfo: null, - headers: [], - body: forge.util.decode64(match[3]) - }; - rval.push(msg); - - // no headers - if(!match[2]) { - continue; - } - - // parse headers - var lines = match[2].split(rCRLF); - var li = 0; - while(match && li < lines.length) { - // get line, trim any rhs whitespace - var line = lines[li].replace(/\s+$/, ''); - - // RFC2822 unfold any following folded lines - for(var nl = li + 1; nl < lines.length; ++nl) { - var next = lines[nl]; - if(!/\s/.test(next[0])) { - break; - } - line += next; - li = nl; - } - - // parse header - match = line.match(rHeader); - if(match) { - var header = {name: match[1], values: []}; - var values = match[2].split(','); - for(var vi = 0; vi < values.length; ++vi) { - header.values.push(ltrim(values[vi])); - } - - // Proc-Type must be the first header - if(!msg.procType) { - if(header.name !== 'Proc-Type') { - throw new Error('Invalid PEM formatted message. The first ' + - 'encapsulated header must be "Proc-Type".'); - } else if(header.values.length !== 2) { - throw new Error('Invalid PEM formatted message. The "Proc-Type" ' + - 'header must have two subfields.'); - } - msg.procType = {version: values[0], type: values[1]}; - } else if(!msg.contentDomain && header.name === 'Content-Domain') { - // special-case Content-Domain - msg.contentDomain = values[0] || ''; - } else if(!msg.dekInfo && header.name === 'DEK-Info') { - // special-case DEK-Info - if(header.values.length === 0) { - throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + - 'header must have at least one subfield.'); - } - msg.dekInfo = {algorithm: values[0], parameters: values[1] || null}; - } else { - msg.headers.push(header); - } - } - - ++li; - } - - if(msg.procType === 'ENCRYPTED' && !msg.dekInfo) { - throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + - 'header must be present if "Proc-Type" is "ENCRYPTED".'); - } - } - - if(rval.length === 0) { - throw new Error('Invalid PEM formatted message.'); - } - - return rval; -}; - -function foldHeader(header) { - var rval = header.name + ': '; - - // ensure values with CRLF are folded - var values = []; - var insertSpace = function(match, $1) { - return ' ' + $1; - }; - for(var i = 0; i < header.values.length; ++i) { - values.push(header.values[i].replace(/^(\S+\r\n)/, insertSpace)); - } - rval += values.join(',') + '\r\n'; - - // do folding - var length = 0; - var candidate = -1; - for(var i = 0; i < rval.length; ++i, ++length) { - if(length > 65 && candidate !== -1) { - var insert = rval[candidate]; - if(insert === ',') { - ++candidate; - rval = rval.substr(0, candidate) + '\r\n ' + rval.substr(candidate); - } else { - rval = rval.substr(0, candidate) + - '\r\n' + insert + rval.substr(candidate + 1); - } - length = (i - candidate - 1); - candidate = -1; - ++i; - } else if(rval[i] === ' ' || rval[i] === '\t' || rval[i] === ',') { - candidate = i; - } - } - - return rval; -} - -function ltrim(str) { - return str.replace(/^\s+/, ''); -} - - -/***/ }), -/* 77 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adsensehost_v4_1 = 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 = __webpack_require__(927); -var adsensehost_v4_1; -(function (adsensehost_v4_1) { - /** - * AdSense Host API - * - * Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts. - * - * @example - * const {google} = require('googleapis'); - * const adsensehost = google.adsensehost('v4.1'); - * - * @namespace adsensehost - * @type {Function} - * @version v4.1 - * @variation v4.1 - * @param {object=} options Options for Adsensehost - */ - class Adsensehost { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - this.adclients = new Resource$Adclients(this.context); - this.associationsessions = new Resource$Associationsessions(this.context); - this.customchannels = new Resource$Customchannels(this.context); - this.reports = new Resource$Reports(this.context); - this.urlchannels = new Resource$Urlchannels(this.context); - } - } - adsensehost_v4_1.Adsensehost = Adsensehost; - class Resource$Accounts { - constructor(context) { - this.context = context; - this.adclients = new Resource$Accounts$Adclients(this.context); - this.adunits = new Resource$Accounts$Adunits(this.context); - this.reports = new Resource$Accounts$Reports(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['filterAdClientId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsensehost_v4_1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Adclients { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -18815,102 +19420,103 @@ var adsensehost_v4_1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsensehost_v4_1.Resource$Accounts$Adclients = Resource$Accounts$Adclients; - class Resource$Accounts$Adunits { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + load(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}:load').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAdCode(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.Resource$Projects$Locations$Agents$Flows$Versions = Resource$Projects$Locations$Agents$Flows$Versions; + class Resource$Projects$Locations$Agents$Intents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -18923,26 +19529,25 @@ var adsensehost_v4_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -18955,26 +19560,25 @@ var adsensehost_v4_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -18987,26 +19591,25 @@ var adsensehost_v4_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -19019,26 +19622,25 @@ var adsensehost_v4_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -19051,296 +19653,228 @@ var adsensehost_v4_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adsensehost_v4_1.Resource$Accounts$Adunits = Resource$Accounts$Adunits; - class Resource$Accounts$Reports { + dialogflow_v3.Resource$Projects$Locations$Agents$Intents = Resource$Projects$Locations$Agents$Intents; + class Resource$Projects$Locations$Agents$Sessions { constructor(context) { this.context = context; + this.entityTypes = + new Resource$Projects$Locations$Agents$Sessions$Entitytypes(this.context); } - generate(paramsOrCallback, optionsOrCallback, callback) { + detectIntent(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'startDate', 'endDate'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adsensehost_v4_1.Resource$Accounts$Reports = Resource$Accounts$Reports; - class Resource$Adclients { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/adclients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsensehost_v4_1.Resource$Adclients = Resource$Adclients; - class Resource$Associationsessions { - constructor(context) { - this.context = context; - } - start(paramsOrCallback, optionsOrCallback, callback) { + fulfillIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['productCode', 'websiteUrl'], - pathParams: [], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + matchIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['token'], - pathParams: [], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adsensehost_v4_1.Resource$Associationsessions = Resource$Associationsessions; - class Resource$Customchannels { + dialogflow_v3.Resource$Projects$Locations$Agents$Sessions = Resource$Projects$Locations$Agents$Sessions; + class Resource$Projects$Locations$Agents$Sessions$Entitytypes { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -19349,30 +19883,30 @@ var adsensehost_v4_1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -19381,322 +19915,175 @@ var adsensehost_v4_1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adsensehost_v4_1.Resource$Customchannels = Resource$Customchannels; - class Resource$Reports { + dialogflow_v3.Resource$Projects$Locations$Agents$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Sessions$Entitytypes; + class Resource$Projects$Locations$Agents$Testcases { constructor(context) { this.context = context; + this.results = new Resource$Projects$Locations$Agents$Testcases$Results(this.context); } - generate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/testCases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['startDate', 'endDate'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsensehost_v4_1.Resource$Reports = Resource$Reports; - class Resource$Urlchannels { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchRun(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/testCases:batchRun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId', 'urlChannelId'], - pathParams: ['adClientId', 'urlChannelId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + calculateCoverage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+agent}/testCases:calculateCoverage').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['agent'], + pathParams: ['agent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsensehost_v4_1.Resource$Urlchannels = Resource$Urlchannels; -})(adsensehost_v4_1 = exports.adsensehost_v4_1 || (exports.adsensehost_v4_1 = {})); -//# sourceMappingURL=v4.1.js.map - -/***/ }), -/* 78 */, -/* 79 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; -/*jshint node:true */ - -var Buffer = __webpack_require__(407).Buffer; // browserify -var SlowBuffer = __webpack_require__(407).SlowBuffer; - -module.exports = bufferEq; - -function bufferEq(a, b) { - - // shortcutting on type is necessary for correctness - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - return false; - } - - // buffer sizes should be well-known information, so despite this - // shortcutting, it doesn't leak any information about the *contents* of the - // buffers. - if (a.length !== b.length) { - return false; - } - - var c = 0; - for (var i = 0; i < a.length; i++) { - /*jshint bitwise:false */ - c |= a[i] ^ b[i]; // XOR - } - return c === 0; -} - -bufferEq.install = function() { - Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { - return bufferEq(this, that); - }; -}; - -var origBufEqual = Buffer.prototype.equal; -var origSlowBufEqual = SlowBuffer.prototype.equal; -bufferEq.restore = function() { - Buffer.prototype.equal = origBufEqual; - SlowBuffer.prototype.equal = origSlowBufEqual; -}; - - -/***/ }), -/* 80 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.dialogflow_v2beta1 = 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 = __webpack_require__(927); -var dialogflow_v2beta1; -(function (dialogflow_v2beta1) { - /** - * Dialogflow API - * - * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). - * - * @example - * const {google} = require('googleapis'); - * const dialogflow = google.dialogflow('v2beta1'); - * - * @namespace dialogflow - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Dialogflow - */ - class Dialogflow { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - dialogflow_v2beta1.Dialogflow = Dialogflow; - class Resource$Projects { - constructor(context) { - this.context = context; - this.agent = new Resource$Projects$Agent(this.context); - this.knowledgeBases = new Resource$Projects$Knowledgebases(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.operations = new Resource$Projects$Operations(this.context); - } - deleteAgent(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19706,8 +20093,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/testCases:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -19715,13 +20102,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAgent(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -19737,28 +20124,29 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAgent(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19768,7 +20156,7 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/testCases:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -19777,24 +20165,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Agent { - constructor(context) { - this.context = context; - this.entityTypes = new Resource$Projects$Agent$Entitytypes(this.context); - this.environments = new Resource$Projects$Agent$Environments(this.context); - this.intents = new Resource$Projects$Agent$Intents(this.context); - this.knowledgeBases = new Resource$Projects$Agent$Knowledgebases(this.context); - this.sessions = new Resource$Projects$Agent$Sessions(this.context); - } - export(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -19810,8 +20187,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -19819,19 +20196,20 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFulfillment(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19841,8 +20219,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -19850,13 +20228,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getValidationResult(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -19872,28 +20250,35 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.Resource$Projects$Locations$Agents$Testcases = Resource$Projects$Locations$Agents$Testcases; + class Resource$Projects$Locations$Agents$Testcases$Results { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19903,28 +20288,29 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19934,8 +20320,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -19943,19 +20329,26 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.Resource$Projects$Locations$Agents$Testcases$Results = Resource$Projects$Locations$Agents$Testcases$Results; + class Resource$Projects$Locations$Agents$Webhooks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19965,8 +20358,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -19974,19 +20367,20 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -19996,22 +20390,22 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20027,8 +20421,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -20036,20 +20430,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Agent = Resource$Projects$Agent; - class Resource$Projects$Agent$Entitytypes { - constructor(context) { - this.context = context; - this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20065,8 +20452,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -20074,13 +20461,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20096,22 +20483,28 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.Resource$Projects$Locations$Agents$Webhooks = Resource$Projects$Locations$Agents$Webhooks; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20127,22 +20520,22 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20158,8 +20551,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -20167,13 +20560,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20189,7 +20582,7 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -20198,19 +20591,26 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Securitysettings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -20220,8 +20620,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -20229,19 +20629,20 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -20251,8 +20652,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -20260,19 +20661,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; - class Resource$Projects$Agent$Entitytypes$Entities { - constructor(context) { - this.context = context; - } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20288,22 +20683,22 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20319,8 +20714,8 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -20328,19 +20723,20 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -20350,29 +20746,28 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; - class Resource$Projects$Agent$Environments { + dialogflow_v3.Resource$Projects$Locations$Securitysettings = Resource$Projects$Locations$Securitysettings; + class Resource$Projects$Operations { constructor(context) { this.context = context; - this.users = new Resource$Projects$Agent$Environments$Users(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20388,37 +20783,22 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Agent$Environments = Resource$Projects$Agent$Environments; - class Resource$Projects$Agent$Environments$Users { - constructor(context) { - this.context = context; - this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(this.context); - } - } - dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users = Resource$Projects$Agent$Environments$Users; - class Resource$Projects$Agent$Environments$Users$Sessions { - constructor(context) { - this.context = context; - this.contexts = new Resource$Projects$Agent$Environments$Users$Sessions$Contexts(this.context); - this.entityTypes = new Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes(this.context); - } - deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20434,22 +20814,22 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20465,253 +20845,553 @@ var dialogflow_v2beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; - class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { - 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').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); - } + dialogflow_v3.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v3 = exports.dialogflow_v3 || (exports.dialogflow_v3 = {})); + + +/***/ }), + +/***/ 337: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var BigNumber = null; + +// regexpxs extracted from +// (c) BSD-3-Clause +// https://github.com/fastify/secure-json-parse/graphs/contributors and https://github.com/hapijs/bourne/graphs/contributors + +const suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/; +const suspectConstructorRx = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/; + +/* + json_parse.js + 2012-06-20 + + Public Domain. + + NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + + This file creates a json_parse function. + During create you can (optionally) specify some behavioural switches + + require('json-bigint')(options) + + The optional options parameter holds switches that drive certain + aspects of the parsing process: + * options.strict = true will warn about duplicate-key usage in the json. + The default (strict = false) will silently ignore those and overwrite + values for keys that are in duplicate use. + + The resulting function follows this signature: + json_parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = json_parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + This is a reference implementation. You are free to copy, modify, or + redistribute. + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. +*/ + +/*members "", "\"", "\/", "\\", at, b, call, charAt, f, fromCharCode, + hasOwnProperty, message, n, name, prototype, push, r, t, text +*/ + +var json_parse = function (options) { + 'use strict'; + + // This is a function that can parse a JSON text, producing a JavaScript + // data structure. It is a simple, recursive descent parser. It does not use + // eval or regular expressions, so it can be used as a model for implementing + // a JSON parser in other languages. + + // We are defining the function inside of another function to avoid creating + // global variables. + + // Default options one can override by passing options to the parse() + var _options = { + strict: false, // not being strict means do not generate syntax errors for "duplicate key" + storeAsString: false, // toggles whether the values should be stored as BigNumber (default) or a string + alwaysParseAsBig: false, // toggles whether all numbers should be Big + useNativeBigInt: false, // toggles whether to use native BigInt instead of bignumber.js + protoAction: 'error', + constructorAction: 'error', + }; + + // If there are options, then use them to override the default _options + if (options !== undefined && options !== null) { + if (options.strict === true) { + _options.strict = true; + } + if (options.storeAsString === true) { + _options.storeAsString = true; + } + _options.alwaysParseAsBig = + options.alwaysParseAsBig === true ? options.alwaysParseAsBig : false; + _options.useNativeBigInt = + options.useNativeBigInt === true ? options.useNativeBigInt : false; + + if (typeof options.constructorAction !== 'undefined') { + if ( + options.constructorAction === 'error' || + options.constructorAction === 'ignore' || + options.constructorAction === 'preserve' + ) { + _options.constructorAction = options.constructorAction; + } else { + throw new Error( + `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${options.constructorAction}` + ); + } + } + + if (typeof options.protoAction !== 'undefined') { + if ( + options.protoAction === 'error' || + options.protoAction === 'ignore' || + options.protoAction === 'preserve' + ) { + _options.protoAction = options.protoAction; + } else { + throw new Error( + `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${options.protoAction}` + ); + } + } + } + + var at, // The index of the current character + ch, // The current character + escapee = { + '"': '"', + '\\': '\\', + '/': '/', + b: '\b', + f: '\f', + n: '\n', + r: '\r', + t: '\t', + }, + text, + error = function (m) { + // Call error when something is wrong. + + throw { + name: 'SyntaxError', + message: m, + at: at, + text: text, + }; + }, + next = function (c) { + // If a c parameter is provided, verify that it matches the current character. + + if (c && c !== ch) { + error("Expected '" + c + "' instead of '" + ch + "'"); + } + + // Get the next character. When there are no more characters, + // return the empty string. + + ch = text.charAt(at); + at += 1; + return ch; + }, + number = function () { + // Parse a number value. + + var number, + string = ''; + + if (ch === '-') { + string = '-'; + next('-'); + } + while (ch >= '0' && ch <= '9') { + string += ch; + next(); + } + if (ch === '.') { + string += '.'; + while (next() && ch >= '0' && ch <= '9') { + string += ch; } - 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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); - } + } + if (ch === 'e' || ch === 'E') { + string += ch; + next(); + if (ch === '-' || ch === '+') { + string += ch; + next(); } - 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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); - } + while (ch >= '0' && ch <= '9') { + string += ch; + next(); } - 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').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); + } + number = +string; + if (!isFinite(number)) { + error('Bad number'); + } else { + if (BigNumber == null) BigNumber = __webpack_require__(421); + //if (number > 9007199254740992 || number < -9007199254740992) + // Bignumber has stricter check: everything with length > 15 digits disallowed + if (string.length > 15) + return _options.storeAsString + ? string + : _options.useNativeBigInt + ? BigInt(string) + : new BigNumber(string); + else + return !_options.alwaysParseAsBig + ? number + : _options.useNativeBigInt + ? BigInt(number) + : new BigNumber(number); + } + }, + string = function () { + // Parse a string value. + + var hex, + i, + string = '', + uffff; + + // When parsing for string values, we must look for " and \ characters. + + if (ch === '"') { + var startAt = at; + while (next()) { + if (ch === '"') { + if (at - 1 > startAt) string += text.substring(startAt, at - 1); + next(); + return string; + } + if (ch === '\\') { + if (at - 1 > startAt) string += text.substring(startAt, at - 1); + next(); + if (ch === 'u') { + uffff = 0; + for (i = 0; i < 4; i += 1) { + hex = parseInt(next(), 16); + if (!isFinite(hex)) { + break; + } + uffff = uffff * 16 + hex; + } + string += String.fromCharCode(uffff); + } else if (typeof escapee[ch] === 'string') { + string += escapee[ch]; + } else { + break; } + startAt = at; + } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + } + error('Bad string'); + }, + white = function () { + // Skip whitespace. + + while (ch && ch <= ' ') { + next(); + } + }, + word = function () { + // true, false, or null. + + switch (ch) { + case 't': + next('t'); + next('r'); + next('u'); + next('e'); + return true; + case 'f': + next('f'); + next('a'); + next('l'); + next('s'); + next('e'); + return false; + case 'n': + next('n'); + next('u'); + next('l'); + next('l'); + return null; + } + error("Unexpected '" + ch + "'"); + }, + value, // Place holder for the value function. + array = function () { + // Parse an array value. + + var array = []; + + if (ch === '[') { + next('['); + white(); + if (ch === ']') { + next(']'); + return array; // empty array + } + while (ch) { + array.push(value()); + white(); + if (ch === ']') { + next(']'); + return array; + } + next(','); + white(); + } + } + error('Bad array'); + }, + object = function () { + // Parse an object value. + + var key, + object = Object.create(null); + + if (ch === '{') { + next('{'); + white(); + if (ch === '}') { + next('}'); + return object; // empty object + } + while (ch) { + key = string(); + white(); + next(':'); + if ( + _options.strict === true && + Object.hasOwnProperty.call(object, key) + ) { + error('Duplicate key "' + key + '"'); + } + + if (suspectProtoRx.test(key) === true) { + if (_options.protoAction === 'error') { + error('Object contains forbidden prototype property'); + } else if (_options.protoAction === 'ignore') { + value(); + } else { + object[key] = value(); } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + } else if (suspectConstructorRx.test(key) === true) { + if (_options.constructorAction === 'error') { + error('Object contains forbidden constructor property'); + } else if (_options.constructorAction === 'ignore') { + value(); + } else { + object[key] = value(); } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, + } else { + object[key] = value(); + } + + white(); + if (ch === '}') { + next('}'); + return object; + } + next(','); + white(); + } + } + error('Bad object'); + }; + + value = function () { + // Parse a JSON value. It could be an object, an array, a string, a number, + // or a word. + + white(); + switch (ch) { + case '{': + return object(); + case '[': + return array(); + case '"': + return string(); + case '-': + return number(); + default: + return ch >= '0' && ch <= '9' ? number() : word(); + } + }; + + // Return the json_parse function. It will have access to all of the above + // functions and variables. + + return function (source, reviver) { + var result; + + text = source + ''; + at = 0; + ch = ' '; + result = value(); + white(); + if (ch) { + error('Syntax error'); + } + + // If there is a reviver function, we recursively walk the new structure, + // passing each name/value pair to the reviver function for possible + // transformation, starting with a temporary root object that holds the result + // in an empty key. If there is not a reviver function, we simply return the + // result. + + return typeof reviver === 'function' + ? (function walk(holder, key) { + var k, + v, + value = holder[key]; + if (value && typeof value === 'object') { + Object.keys(value).forEach(function (k) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + }); + } + return reviver.call(holder, key, value); + })({ '': result }, '') + : result; + }; +}; + +module.exports = json_parse; + + +/***/ }), + +/***/ 338: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const agent_1 = __importDefault(__webpack_require__(2040)); +function createHttpsProxyAgent(opts) { + return new agent_1.default(opts); +} +(function (createHttpsProxyAgent) { + createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; + createHttpsProxyAgent.prototype = agent_1.default.prototype; +})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); +module.exports = createHttpsProxyAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 358: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.discovery_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var discovery_v1; +(function (discovery_v1) { + /** + * API Discovery Service + * + * Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const discovery = google.discovery('v1'); + * ``` + */ + class Discovery { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.apis = new Resource$Apis(this.context); } } - dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; - class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + discovery_v1.Discovery = Discovery; + class Resource$Apis { 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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 || - {}); + getRest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -20722,27 +21402,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/discovery/v1/apis/{api}/{version}/rest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['api', 'version'], + pathParams: ['api', 'version'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -20753,60 +21432,84 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/discovery/v1/apis').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, + } + discovery_v1.Resource$Apis = Resource$Apis; +})(discovery_v1 = exports.discovery_v1 || (exports.discovery_v1 = {})); + + +/***/ }), + +/***/ 359: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.alertcenter_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var alertcenter_v1beta1; +(function (alertcenter_v1beta1) { + /** + * Google Workspace Alert Center API + * + * Manages alerts on issues affecting your domain. Note: The current version of this API (v1beta1) is available to all Google Workspace customers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const alertcenter = google.alertcenter('v1beta1'); + * ``` + */ + class Alertcenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.alerts = new Resource$Alerts(this.context); + this.v1beta1 = new Resource$V1beta1(this.context); } } - dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; - class Resource$Projects$Agent$Intents { + alertcenter_v1beta1.Alertcenter = Alertcenter; + class Resource$Alerts { constructor(context) { this.context = context; + this.feedback = new Resource$Alerts$Feedback(this.context); } batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -20821,56 +21524,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').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); - } - } - batchUpdate(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + batchUndelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -20883,27 +21555,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts:batchUndelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -20914,58 +21585,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -20976,125 +21615,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts/{alertId}').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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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); - } - } - } - dialogflow_v2beta1.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; - class Resource$Projects$Agent$Knowledgebases { - constructor(context) { - this.context = context; - this.documents = new Resource$Projects$Agent$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21107,27 +21646,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts/{alertId}/metadata').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -21138,27 +21676,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -21169,27 +21706,27 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/alerts/{alertId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases = Resource$Projects$Agent$Knowledgebases; - class Resource$Projects$Agent$Knowledgebases$Documents { + alertcenter_v1beta1.Resource$Alerts = Resource$Alerts; + class Resource$Alerts$Feedback { constructor(context) { this.context = context; } @@ -21206,84 +21743,22 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -21299,225 +21774,31 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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); - } - } - reload(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:reload').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); - } - } - } - dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases$Documents = Resource$Projects$Agent$Knowledgebases$Documents; - class Resource$Projects$Agent$Sessions { - constructor(context) { - this.context = context; - this.contexts = new Resource$Projects$Agent$Sessions$Contexts(this.context); - this.entityTypes = new Resource$Projects$Agent$Sessions$Entitytypes(this.context); - } - deleteContexts(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - detectIntent(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; - class Resource$Projects$Agent$Sessions$Contexts { + alertcenter_v1beta1.Resource$Alerts$Feedback = Resource$Alerts$Feedback; + class Resource$V1beta1 { 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21530,25 +21811,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21561,28 +21842,718 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); + } + alertcenter_v1beta1.Resource$V1beta1 = Resource$V1beta1; +})(alertcenter_v1beta1 = exports.alertcenter_v1beta1 || (exports.alertcenter_v1beta1 = {})); + + +/***/ }), + +/***/ 363: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.binaryauthorization_v1beta1 = exports.binaryauthorization_v1 = exports.auth = exports.binaryauthorization = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9966); +Object.defineProperty(exports, "binaryauthorization_v1", { enumerable: true, get: function () { return v1_1.binaryauthorization_v1; } }); +const v1beta1_1 = __webpack_require__(9542); +Object.defineProperty(exports, "binaryauthorization_v1beta1", { enumerable: true, get: function () { return v1beta1_1.binaryauthorization_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.binaryauthorization_v1.Binaryauthorization, + v1beta1: v1beta1_1.binaryauthorization_v1beta1.Binaryauthorization, +}; +function binaryauthorization(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('binaryauthorization', versionOrOptions, exports.VERSIONS, this); +} +exports.binaryauthorization = binaryauthorization; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 373: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Copyright 2021 The Oppia Authors. All Rights Reserved. +// +// 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. + +/** + * @fileoverview File to check if PR Author has signed the CLA + */ + +const core = __webpack_require__(6470); +const { context, GitHub } = __webpack_require__(1469); +const { google } = __webpack_require__(8819); + +/** + * Create an OAuth2 client with the given credentials, and then execute the + * given claCheck function. + */ +const authorize = async function() { + try { + const CREDENTIALS = JSON.parse(core.getInput('sheets-cred')); + const SHEETS_TOKEN = JSON.parse(core.getInput('sheets-token')); + // eslint-disable-next-line camelcase + const { client_secret, client_id, redirect_uris } = CREDENTIALS.installed; + var oAuth2Client = new google.auth.OAuth2( + client_id, + client_secret, + redirect_uris[0] + ); + oAuth2Client.credentials = SHEETS_TOKEN; + return oAuth2Client; + } catch (err) { + core.setFailed('Auth failure: ' + err); + } +}; + +const generateOutput = async (hasClaSigned) => { + const GITHUB_TOKEN = core.getInput('repo-token'); + const octokit = new GitHub(GITHUB_TOKEN); + const PR_NUMBER = context.payload.pull_request.number; + const PR_AUTHOR = context.payload.pull_request.user.login; + const REPO_NAME = context.payload.repository.name; + + let LINK_RESULT = ''; + + if (REPO_NAME === 'oppia-android' ){ + LINK_RESULT = 'here'.link( + 'https://github.com/oppia/oppia-android/wiki#onboarding-instructions' + ); + } else { + LINK_RESULT = 'here'.link( + 'https://github.com/oppia/oppia/wiki/' + + 'Contributing-code-to-Oppia#setting-things-up' + ); + } + + let comment = ''; + if (!hasClaSigned) { + comment = ('Hi! @' + + PR_AUTHOR + + ' Welcome to Oppia! Could you please ' + + 'follow the instructions ' + LINK_RESULT + + " and sign the CLA Sheet to get started? You'll need to do " + + "this before we can accept your PR. Once you're done," + + ' please reopen the PR. Thanks!'); + core.info('Closing and commenting in PR...'); + + await octokit.issues.update({ + issue_number: PR_NUMBER, + state: 'closed', + owner: context.repo.owner, + repo: context.repo.repo, + }); + await octokit.issues.createComment( + { + body: comment, + issue_number: PR_NUMBER, + owner: context.repo.owner, + repo: context.repo.repo, + } + ); + core.setFailed(PR_AUTHOR + ' has not signed the CLA'); + } else { + core.info(`${PR_AUTHOR} has signed the CLA`); + } +}; + + +/** + * Checks if the PR Author has signed the CLA Sheet. + * @param {google.auth.OAuth2} auth The authenticated Google OAuth client. + */ +const checkSheet = async (auth) => { + const PR_AUTHOR = context.payload.pull_request.user.login; + const sheets = google.sheets({ version: 'v4', auth }); + const SPREADSHEET_ID = core.getInput('cla-sheet-id'); + await sheets.spreadsheets.values.get( + { + spreadsheetId: SPREADSHEET_ID, + range: 'Usernames!A:A', + }, + async (err, res) => { + if (err) { + core.setFailed('The API returned an error: ' + err); + return; + } + + const rows = res.data.values; + const flatRows = [].concat.apply([], rows); + if (!rows || rows.length === 0) { + core.setFailed('No data found.'); + } else { + core.info(`Checking if ${PR_AUTHOR} has signed the CLA`); + const hasUserSignedCla = flatRows.some( + username => username.toLowerCase() === PR_AUTHOR.toLowerCase() + ); + + await generateOutput(hasUserSignedCla); + } + } + ); +}; + +const claCheckGithubAction = async () => { + // Authorize a client with the loaded credentials. + const auth = await authorize(); + + // Call the sheets API with the authorized client. + await checkSheet(auth); +}; + +module.exports = { + claCheckGithubAction, +}; + + +/***/ }), + +/***/ 378: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2019 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. +/* global window */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BrowserCrypto = void 0; +// This file implements crypto functions we need using in-browser +// SubtleCrypto interface `window.crypto.subtle`. +const base64js = __webpack_require__(5397); +// Not all browsers support `TextEncoder`. The following `require` will +// provide a fast UTF8-only replacement for those browsers that don't support +// text encoding natively. +// eslint-disable-next-line node/no-unsupported-features/node-builtins +if (typeof process === 'undefined' && typeof TextEncoder === 'undefined') { + __webpack_require__(9671); +} +const crypto_1 = __webpack_require__(8984); +class BrowserCrypto { + constructor() { + if (typeof window === 'undefined' || + window.crypto === undefined || + window.crypto.subtle === undefined) { + throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); + } + } + async sha256DigestBase64(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return base64js.fromByteArray(new Uint8Array(outputBuffer)); + } + randomBytesBase64(count) { + const array = new Uint8Array(count); + window.crypto.getRandomValues(array); + return base64js.fromByteArray(array); + } + static padBase64(base64) { + // base64js requires padding, so let's add some '=' + while (base64.length % 4 !== 0) { + base64 += '='; + } + return base64; + } + async verify(pubkey, data, signature) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const dataArray = new TextEncoder().encode(data); + const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); + const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); + // SubtleCrypto's verify method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); + return result; + } + async sign(privateKey, data) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const dataArray = new TextEncoder().encode(data); + const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); + // SubtleCrypto's sign method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); + return base64js.fromByteArray(new Uint8Array(result)); + } + decodeBase64StringUtf8(base64) { + const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const result = new TextDecoder().decode(uint8array); + return result; + } + encodeBase64StringUtf8(text) { + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const uint8array = new TextEncoder().encode(text); + const result = base64js.fromByteArray(uint8array); + return result; + } + /** + * Computes the SHA-256 hash of the provided string. + * @param str The plain text string to hash. + * @return A promise that resolves with the SHA-256 hash of the provided + * string in hexadecimal encoding. + */ + async sha256DigestHex(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return (0, crypto_1.fromArrayBufferToHex)(outputBuffer); + } + /** + * Computes the HMAC hash of a message using the provided crypto key and the + * SHA-256 algorithm. + * @param key The secret crypto key in utf-8 or ArrayBuffer format. + * @param msg The plain text message. + * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer + * format. + */ + async signWithHmacSha256(key, msg) { + // Convert key, if provided in ArrayBuffer format, to string. + const rawKey = typeof key === 'string' + ? key + : String.fromCharCode(...new Uint16Array(key)); + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const enc = new TextEncoder(); + const cryptoKey = await window.crypto.subtle.importKey('raw', enc.encode(rawKey), { + name: 'HMAC', + hash: { + name: 'SHA-256', + }, + }, false, ['sign']); + return window.crypto.subtle.sign('HMAC', cryptoKey, enc.encode(msg)); + } +} +exports.BrowserCrypto = BrowserCrypto; +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 397: +/***/ (function(module) { + +module.exports = function btoa(str) { + return new Buffer(str).toString('base64') +} + + +/***/ }), + +/***/ 403: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GoogleToken = void 0; +const fs = __webpack_require__(5747); +const gaxios_1 = __webpack_require__(3597); +const jws = __webpack_require__(4979); +const path = __webpack_require__(5622); +const util_1 = __webpack_require__(1669); +const readFile = fs.readFile + ? (0, util_1.promisify)(fs.readFile) + : async () => { + // if running in the web-browser, fs.readFile may not have been shimmed. + throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); + }; +const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; +const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; +class ErrorWithCode extends Error { + constructor(message, code) { + super(message); + this.code = code; + } +} +let getPem; +class GoogleToken { + /** + * Create a GoogleToken. + * + * @param options Configuration object. + */ + constructor(options) { + this.transporter = { + request: opts => (0, gaxios_1.request)(opts), + }; + this.configure(options); + } + get accessToken() { + return this.rawToken ? this.rawToken.access_token : undefined; + } + get idToken() { + return this.rawToken ? this.rawToken.id_token : undefined; + } + get tokenType() { + return this.rawToken ? this.rawToken.token_type : undefined; + } + get refreshToken() { + return this.rawToken ? this.rawToken.refresh_token : undefined; + } + /** + * Returns whether the token has expired. + * + * @return true if the token has expired, false otherwise. + */ + hasExpired() { + const now = new Date().getTime(); + if (this.rawToken && this.expiresAt) { + return now >= this.expiresAt; + } + else { + return true; + } + } + /** + * Returns whether the token will expire within eagerRefreshThresholdMillis + * + * @return true if the token will be expired within eagerRefreshThresholdMillis, false otherwise. + */ + isTokenExpiring() { + var _a; + const now = new Date().getTime(); + const eagerRefreshThresholdMillis = (_a = this.eagerRefreshThresholdMillis) !== null && _a !== void 0 ? _a : 0; + if (this.rawToken && this.expiresAt) { + return this.expiresAt <= now + eagerRefreshThresholdMillis; + } + else { + return true; + } + } + getToken(callback, opts = {}) { + if (typeof callback === 'object') { + opts = callback; + callback = undefined; + } + opts = Object.assign({ + forceRefresh: false, + }, opts); + if (callback) { + const cb = callback; + this.getTokenAsync(opts).then(t => cb(null, t), callback); + return; + } + return this.getTokenAsync(opts); + } + /** + * Given a keyFile, extract the key and client email if available + * @param keyFile Path to a json, pem, or p12 file that contains the key. + * @returns an object with privateKey and clientEmail properties + */ + async getCredentials(keyFile) { + const ext = path.extname(keyFile); + switch (ext) { + case '.json': { + const key = await readFile(keyFile, 'utf8'); + const body = JSON.parse(key); + const privateKey = body.private_key; + const clientEmail = body.client_email; + if (!privateKey || !clientEmail) { + throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); + } + return { privateKey, clientEmail }; + } + case '.der': + case '.crt': + case '.pem': { + const privateKey = await readFile(keyFile, 'utf8'); + return { privateKey }; + } + case '.p12': + case '.pfx': { + // NOTE: The loading of `google-p12-pem` is deferred for performance + // reasons. The `node-forge` npm module in `google-p12-pem` adds a fair + // bit time to overall module loading, and is likely not frequently + // used. In a future release, p12 support will be entirely removed. + if (!getPem) { + getPem = (await Promise.resolve().then(() => __webpack_require__(7938))).getPem; + } + const privateKey = await getPem(keyFile); + return { privateKey }; + } + default: + throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + + 'Current supported extensions are *.json, *.pem, and *.p12.', 'UNKNOWN_CERTIFICATE_TYPE'); + } + } + async getTokenAsync(opts) { + if (this.inFlightRequest && !opts.forceRefresh) { + return this.inFlightRequest; + } + try { + return await (this.inFlightRequest = this.getTokenAsyncInner(opts)); + } + finally { + this.inFlightRequest = undefined; + } + } + async getTokenAsyncInner(opts) { + if (this.isTokenExpiring() === false && opts.forceRefresh === false) { + return Promise.resolve(this.rawToken); + } + if (!this.key && !this.keyFile) { + throw new Error('No key or keyFile set.'); + } + if (!this.key && this.keyFile) { + const creds = await this.getCredentials(this.keyFile); + this.key = creds.privateKey; + this.iss = creds.clientEmail || this.iss; + if (!creds.clientEmail) { + this.ensureEmail(); + } + } + return this.requestToken(); + } + ensureEmail() { + if (!this.iss) { + throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); + } + } + revokeToken(callback) { + if (callback) { + this.revokeTokenAsync().then(() => callback(), callback); + return; + } + return this.revokeTokenAsync(); + } + async revokeTokenAsync() { + if (!this.accessToken) { + throw new Error('No token to revoke.'); + } + const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; + await this.transporter.request({ url }); + this.configure({ + email: this.iss, + sub: this.sub, + key: this.key, + keyFile: this.keyFile, + scope: this.scope, + additionalClaims: this.additionalClaims, + }); + } + /** + * Configure the GoogleToken for re-use. + * @param {object} options Configuration object. + */ + configure(options = {}) { + this.keyFile = options.keyFile; + this.key = options.key; + this.rawToken = undefined; + this.iss = options.email || options.iss; + this.sub = options.sub; + this.additionalClaims = options.additionalClaims; + if (typeof options.scope === 'object') { + this.scope = options.scope.join(' '); + } + else { + this.scope = options.scope; + } + this.eagerRefreshThresholdMillis = options.eagerRefreshThresholdMillis; + if (options.transporter) { + this.transporter = options.transporter; + } + } + /** + * Request the token from Google. + */ + async requestToken() { + var _a, _b; + const iat = Math.floor(new Date().getTime() / 1000); + const additionalClaims = this.additionalClaims || {}; + const payload = Object.assign({ + iss: this.iss, + scope: this.scope, + aud: GOOGLE_TOKEN_URL, + exp: iat + 3600, + iat, + sub: this.sub, + }, additionalClaims); + const signedJWT = jws.sign({ + header: { alg: 'RS256' }, + payload, + secret: this.key, + }); + try { + const r = await this.transporter.request({ + method: 'POST', + url: GOOGLE_TOKEN_URL, + data: { + grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', + assertion: signedJWT, + }, + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + responseType: 'json', + }); + this.rawToken = r.data; + this.expiresAt = + r.data.expires_in === null || r.data.expires_in === undefined + ? undefined + : (iat + r.data.expires_in) * 1000; + return this.rawToken; + } + catch (e) { + this.rawToken = undefined; + this.tokenExpires = undefined; + const body = e.response && ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) + ? (_b = e.response) === null || _b === void 0 ? void 0 : _b.data + : {}; + if (body.error) { + const desc = body.error_description + ? `: ${body.error_description}` + : ''; + e.message = `${body.error}${desc}`; + } + throw e; + } + } +} +exports.GoogleToken = GoogleToken; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 418: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.androiddeviceprovisioning_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var androiddeviceprovisioning_v1; +(function (androiddeviceprovisioning_v1) { + /** + * Android Device Provisioning Partner API + * + * Automates Android zero-touch enrollment for device resellers, customers, and EMMs. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const androiddeviceprovisioning = google.androiddeviceprovisioning('v1'); + * ``` + */ + class Androiddeviceprovisioning { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.operations = new Resource$Operations(this.context); + this.partners = new Resource$Partners(this.context); + } + } + androiddeviceprovisioning_v1.Androiddeviceprovisioning = Androiddeviceprovisioning; + class Resource$Customers { + constructor(context) { + this.context = context; + this.configurations = new Resource$Customers$Configurations(this.context); + this.devices = new Resource$Customers$Devices(this.context); + this.dpcs = new Resource$Customers$Dpcs(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; @@ -21592,27 +22563,27 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; - class Resource$Projects$Agent$Sessions$Entitytypes { + androiddeviceprovisioning_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Configurations { constructor(context) { this.context = context; } @@ -21629,10 +22600,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -21641,10 +22612,10 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -21660,10 +22631,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -21672,10 +22643,10 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -21691,10 +22662,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -21703,10 +22674,10 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -21722,10 +22693,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -21734,10 +22705,10 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -21753,10 +22724,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -21765,20 +22736,19 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; - class Resource$Projects$Knowledgebases { + androiddeviceprovisioning_v1.Resource$Customers$Configurations = Resource$Customers$Configurations; + class Resource$Customers$Devices { constructor(context) { this.context = context; - this.documents = new Resource$Projects$Knowledgebases$Documents(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + applyConfiguration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21791,10 +22761,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/devices:applyConfiguration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -21803,13 +22773,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21822,11 +22792,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -21834,13 +22804,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21853,25 +22823,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeConfiguration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21884,11 +22854,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/devices:removeConfiguration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -21896,13 +22866,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + unclaim(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21915,31 +22885,31 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Knowledgebases = Resource$Projects$Knowledgebases; - class Resource$Projects$Knowledgebases$Documents { + androiddeviceprovisioning_v1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Dpcs { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -21952,11 +22922,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -21964,46 +22934,20 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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); - } + } + androiddeviceprovisioning_v1.Resource$Customers$Dpcs = Resource$Customers$Dpcs; + class Resource$Operations { + constructor(context) { + this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -22014,10 +22958,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -22026,13 +22970,28 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + androiddeviceprovisioning_v1.Resource$Operations = Resource$Operations; + class Resource$Partners { + constructor(context) { + this.context = context; + this.customers = new Resource$Partners$Customers(this.context); + this.devices = new Resource$Partners$Devices(this.context); + this.vendors = new Resource$Partners$Vendors(this.context); + } + } + androiddeviceprovisioning_v1.Resource$Partners = Resource$Partners; + class Resource$Partners$Customers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22045,11 +23004,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -22057,44 +23016,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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); - } - } - reload(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22107,33 +23035,31 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/partners/{+partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Knowledgebases$Documents = Resource$Projects$Knowledgebases$Documents; - class Resource$Projects$Locations { + androiddeviceprovisioning_v1.Resource$Partners$Customers = Resource$Partners$Customers; + class Resource$Partners$Devices { constructor(context) { this.context = context; - this.agent = new Resource$Projects$Locations$Agent(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); } - deleteAgent(paramsOrCallback, optionsOrCallback, callback) { + claim(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22146,25 +23072,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/partners/{+partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAgent(paramsOrCallback, optionsOrCallback, callback) { + claimAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22177,25 +23103,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/partners/{+partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAgent(paramsOrCallback, optionsOrCallback, callback) { + findByIdentifier(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22208,35 +23134,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Agent { - constructor(context) { - this.context = context; - this.entityTypes = new Resource$Projects$Locations$Agent$Entitytypes(this.context); - this.environments = new Resource$Projects$Locations$Agent$Environments(this.context); - this.intents = new Resource$Projects$Locations$Agent$Intents(this.context); - this.sessions = new Resource$Projects$Locations$Agent$Sessions(this.context); - } - export(paramsOrCallback, optionsOrCallback, callback) { + findByOwner(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22249,25 +23165,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fulfillment(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22280,11 +23196,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -22292,13 +23208,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFulfillment(paramsOrCallback, optionsOrCallback, callback) { + metadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22311,25 +23227,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['metadataOwnerId', 'deviceId'], + pathParams: ['deviceId', 'metadataOwnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + unclaim(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22342,25 +23259,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + unclaimAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22373,25 +23290,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(paramsOrCallback, optionsOrCallback, callback) { + updateMetadataAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22404,32 +23321,32 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent = Resource$Projects$Locations$Agent; - class Resource$Projects$Locations$Agent$Entitytypes { + androiddeviceprovisioning_v1.Resource$Partners$Devices = Resource$Partners$Devices; + class Resource$Partners$Vendors { constructor(context) { this.context = context; - this.entities = new Resource$Projects$Locations$Agent$Entitytypes$Entities(this.context); + this.customers = new Resource$Partners$Vendors$Customers(this.context); } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22442,11 +23359,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/vendors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -22454,44 +23371,19 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').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); - } + } + androiddeviceprovisioning_v1.Resource$Partners$Vendors = Resource$Partners$Vendors; + class Resource$Partners$Vendors$Customers { + constructor(context) { + this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22504,11 +23396,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -22516,75 +23408,3170 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + } + androiddeviceprovisioning_v1.Resource$Partners$Vendors$Customers = Resource$Partners$Vendors$Customers; +})(androiddeviceprovisioning_v1 = exports.androiddeviceprovisioning_v1 || (exports.androiddeviceprovisioning_v1 = {})); + + +/***/ }), + +/***/ 421: +/***/ (function(module) { + +;(function (globalObject) { + 'use strict'; + +/* + * bignumber.js v9.1.1 + * A JavaScript library for arbitrary-precision arithmetic. + * https://github.com/MikeMcl/bignumber.js + * Copyright (c) 2022 Michael Mclaughlin + * MIT Licensed. + * + * BigNumber.prototype methods | BigNumber methods + * | + * absoluteValue abs | clone + * comparedTo | config set + * decimalPlaces dp | DECIMAL_PLACES + * dividedBy div | ROUNDING_MODE + * dividedToIntegerBy idiv | EXPONENTIAL_AT + * exponentiatedBy pow | RANGE + * integerValue | CRYPTO + * isEqualTo eq | MODULO_MODE + * isFinite | POW_PRECISION + * isGreaterThan gt | FORMAT + * isGreaterThanOrEqualTo gte | ALPHABET + * isInteger | isBigNumber + * isLessThan lt | maximum max + * isLessThanOrEqualTo lte | minimum min + * isNaN | random + * isNegative | sum + * isPositive | + * isZero | + * minus | + * modulo mod | + * multipliedBy times | + * negated | + * plus | + * precision sd | + * shiftedBy | + * squareRoot sqrt | + * toExponential | + * toFixed | + * toFormat | + * toFraction | + * toJSON | + * toNumber | + * toPrecision | + * toString | + * valueOf | + * + */ + + + var BigNumber, + isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, + mathceil = Math.ceil, + mathfloor = Math.floor, + + bignumberError = '[BigNumber Error] ', + tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ', + + BASE = 1e14, + LOG_BASE = 14, + MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1 + // MAX_INT32 = 0x7fffffff, // 2^31 - 1 + POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], + SQRT_BASE = 1e7, + + // EDITABLE + // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and + // the arguments to toExponential, toFixed, toFormat, and toPrecision. + MAX = 1E9; // 0 to MAX_INT32 + + + /* + * Create and return a BigNumber constructor. + */ + function clone(configObject) { + var div, convertBase, parseNumeric, + P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null }, + ONE = new BigNumber(1), + + + //----------------------------- EDITABLE CONFIG DEFAULTS ------------------------------- + + + // The default values below must be integers within the inclusive ranges stated. + // The values can also be changed at run-time using BigNumber.set. + + // The maximum number of decimal places for operations involving division. + DECIMAL_PLACES = 20, // 0 to MAX + + // The rounding mode used when rounding to the above decimal places, and when using + // toExponential, toFixed, toFormat and toPrecision, and round (default value). + // UP 0 Away from zero. + // DOWN 1 Towards zero. + // CEIL 2 Towards +Infinity. + // FLOOR 3 Towards -Infinity. + // HALF_UP 4 Towards nearest neighbour. If equidistant, up. + // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. + // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. + // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. + // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. + ROUNDING_MODE = 4, // 0 to 8 + + // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] + + // The exponent value at and beneath which toString returns exponential notation. + // Number type: -7 + TO_EXP_NEG = -7, // 0 to -MAX + + // The exponent value at and above which toString returns exponential notation. + // Number type: 21 + TO_EXP_POS = 21, // 0 to MAX + + // RANGE : [MIN_EXP, MAX_EXP] + + // The minimum exponent value, beneath which underflow to zero occurs. + // Number type: -324 (5e-324) + MIN_EXP = -1e7, // -1 to -MAX + + // The maximum exponent value, above which overflow to Infinity occurs. + // Number type: 308 (1.7976931348623157e+308) + // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow. + MAX_EXP = 1e7, // 1 to MAX + + // Whether to use cryptographically-secure random number generation, if available. + CRYPTO = false, // true or false + + // The modulo mode used when calculating the modulus: a mod n. + // The quotient (q = a / n) is calculated according to the corresponding rounding mode. + // The remainder (r) is calculated as: r = a - n * q. + // + // UP 0 The remainder is positive if the dividend is negative, else is negative. + // DOWN 1 The remainder has the same sign as the dividend. + // This modulo mode is commonly known as 'truncated division' and is + // equivalent to (a % n) in JavaScript. + // FLOOR 3 The remainder has the same sign as the divisor (Python %). + // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. + // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). + // The remainder is always positive. + // + // The truncated division, floored division, Euclidian division and IEEE 754 remainder + // modes are commonly used for the modulus operation. + // Although the other rounding modes can also be used, they may not give useful results. + MODULO_MODE = 1, // 0 to 9 + + // The maximum number of significant digits of the result of the exponentiatedBy operation. + // If POW_PRECISION is 0, there will be unlimited significant digits. + POW_PRECISION = 0, // 0 to MAX + + // The format specification used by the BigNumber.prototype.toFormat method. + FORMAT = { + prefix: '', + groupSize: 3, + secondaryGroupSize: 0, + groupSeparator: ',', + decimalSeparator: '.', + fractionGroupSize: 0, + fractionGroupSeparator: '\xA0', // non-breaking space + suffix: '' + }, + + // The alphabet used for base conversion. It must be at least 2 characters long, with no '+', + // '-', '.', whitespace, or repeated character. + // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' + ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz', + alphabetHasNormalDecimalDigits = true; + + + //------------------------------------------------------------------------------------------ + + + // CONSTRUCTOR + + + /* + * The BigNumber constructor and exported function. + * Create and return a new instance of a BigNumber object. + * + * v {number|string|BigNumber} A numeric value. + * [b] {number} The base of v. Integer, 2 to ALPHABET.length inclusive. + */ + function BigNumber(v, b) { + var alphabet, c, caseChanged, e, i, isNum, len, str, + x = this; + + // Enable constructor call without `new`. + if (!(x instanceof BigNumber)) return new BigNumber(v, b); + + if (b == null) { + + if (v && v._isBigNumber === true) { + x.s = v.s; + + if (!v.c || v.e > MAX_EXP) { + x.c = x.e = null; + } else if (v.e < MIN_EXP) { + x.c = [x.e = 0]; + } else { + x.e = v.e; + x.c = v.c.slice(); + } + + return; + } + + if ((isNum = typeof v == 'number') && v * 0 == 0) { + + // Use `1 / n` to handle minus zero also. + x.s = 1 / v < 0 ? (v = -v, -1) : 1; + + // Fast path for integers, where n < 2147483648 (2**31). + if (v === ~~v) { + for (e = 0, i = v; i >= 10; i /= 10, e++); + + if (e > MAX_EXP) { + x.c = x.e = null; + } else { + x.e = e; + x.c = [v]; + } + + return; + } + + str = String(v); + } else { + + if (!isNumeric.test(str = String(v))) return parseNumeric(x, str, isNum); + + x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1; + } + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + + // Exponential form? + if ((i = str.search(/e/i)) > 0) { + + // Determine exponent. + if (e < 0) e = i; + e += +str.slice(i + 1); + str = str.substring(0, i); + } else if (e < 0) { + + // Integer. + e = str.length; + } + + } else { + + // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + intCheck(b, 2, ALPHABET.length, 'Base'); + + // Allow exponential notation to be used with base 10 argument, while + // also rounding to DECIMAL_PLACES as with other bases. + if (b == 10 && alphabetHasNormalDecimalDigits) { + x = new BigNumber(v); + return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); + } + + str = String(v); + + if (isNum = typeof v == 'number') { + + // Avoid potential interpretation of Infinity and NaN as base 44+ values. + if (v * 0 != 0) return parseNumeric(x, str, isNum, b); + + x.s = 1 / v < 0 ? (str = str.slice(1), -1) : 1; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (BigNumber.DEBUG && str.replace(/^0\.0*|\./, '').length > 15) { + throw Error + (tooManyDigits + v); + } + } else { + x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; + } + + alphabet = ALPHABET.slice(0, b); + e = i = 0; + + // Check that str is a valid base b number. + // Don't use RegExp, so alphabet can contain special characters. + for (len = str.length; i < len; i++) { + if (alphabet.indexOf(c = str.charAt(i)) < 0) { + if (c == '.') { + + // If '.' is not the first character and it has not be found before. + if (i > e) { + e = len; + continue; + } + } else if (!caseChanged) { + + // Allow e.g. hexadecimal 'FF' as well as 'ff'. + if (str == str.toUpperCase() && (str = str.toLowerCase()) || + str == str.toLowerCase() && (str = str.toUpperCase())) { + caseChanged = true; + i = -1; + e = 0; + continue; + } + } + + return parseNumeric(x, String(v), isNum, b); + } + } + + // Prevent later check for length on converted number. + isNum = false; + str = convertBase(str, b, 10, x.s); + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + else e = str.length; + } + + // Determine leading zeros. + for (i = 0; str.charCodeAt(i) === 48; i++); + + // Determine trailing zeros. + for (len = str.length; str.charCodeAt(--len) === 48;); + + if (str = str.slice(i, ++len)) { + len -= i; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (isNum && BigNumber.DEBUG && + len > 15 && (v > MAX_SAFE_INTEGER || v !== mathfloor(v))) { + throw Error + (tooManyDigits + (x.s * v)); + } + + // Overflow? + if ((e = e - i - 1) > MAX_EXP) { + + // Infinity. + x.c = x.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + x.c = [x.e = 0]; + } else { + x.e = e; + x.c = []; + + // Transform base + + // e is the base 10 exponent. + // i is where to slice str to get the first element of the coefficient array. + i = (e + 1) % LOG_BASE; + if (e < 0) i += LOG_BASE; // i < 1 + + if (i < len) { + if (i) x.c.push(+str.slice(0, i)); + + for (len -= LOG_BASE; i < len;) { + x.c.push(+str.slice(i, i += LOG_BASE)); + } + + i = LOG_BASE - (str = str.slice(i)).length; + } else { + i -= len; + } + + for (; i--; str += '0'); + x.c.push(+str); + } + } else { + + // Zero. + x.c = [x.e = 0]; + } + } + + + // CONSTRUCTOR PROPERTIES + + + BigNumber.clone = clone; + + BigNumber.ROUND_UP = 0; + BigNumber.ROUND_DOWN = 1; + BigNumber.ROUND_CEIL = 2; + BigNumber.ROUND_FLOOR = 3; + BigNumber.ROUND_HALF_UP = 4; + BigNumber.ROUND_HALF_DOWN = 5; + BigNumber.ROUND_HALF_EVEN = 6; + BigNumber.ROUND_HALF_CEIL = 7; + BigNumber.ROUND_HALF_FLOOR = 8; + BigNumber.EUCLID = 9; + + + /* + * Configure infrequently-changing library-wide settings. + * + * Accept an object with the following optional properties (if the value of a property is + * a number, it must be an integer within the inclusive range stated): + * + * DECIMAL_PLACES {number} 0 to MAX + * ROUNDING_MODE {number} 0 to 8 + * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX] + * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX] + * CRYPTO {boolean} true or false + * MODULO_MODE {number} 0 to 9 + * POW_PRECISION {number} 0 to MAX + * ALPHABET {string} A string of two or more unique characters which does + * not contain '.'. + * FORMAT {object} An object with some of the following properties: + * prefix {string} + * groupSize {number} + * secondaryGroupSize {number} + * groupSeparator {string} + * decimalSeparator {string} + * fractionGroupSize {number} + * fractionGroupSeparator {string} + * suffix {string} + * + * (The values assigned to the above FORMAT object properties are not checked for validity.) + * + * E.g. + * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 }) + * + * Ignore properties/parameters set to null or undefined, except for ALPHABET. + * + * Return an object with the properties current values. + */ + BigNumber.config = BigNumber.set = function (obj) { + var p, v; + + if (obj != null) { + + if (typeof obj == 'object') { + + // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + DECIMAL_PLACES = v; + } + + // ROUNDING_MODE {number} Integer, 0 to 8 inclusive. + // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) { + v = obj[p]; + intCheck(v, 0, 8, p); + ROUNDING_MODE = v; + } + + // EXPONENTIAL_AT {number|number[]} + // Integer, -MAX to MAX inclusive or + // [integer -MAX to 0 inclusive, 0 to MAX inclusive]. + // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) { + v = obj[p]; + if (v && v.pop) { + intCheck(v[0], -MAX, 0, p); + intCheck(v[1], 0, MAX, p); + TO_EXP_NEG = v[0]; + TO_EXP_POS = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v); + } + } + + // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or + // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive]. + // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}' + if (obj.hasOwnProperty(p = 'RANGE')) { + v = obj[p]; + if (v && v.pop) { + intCheck(v[0], -MAX, -1, p); + intCheck(v[1], 1, MAX, p); + MIN_EXP = v[0]; + MAX_EXP = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + if (v) { + MIN_EXP = -(MAX_EXP = v < 0 ? -v : v); + } else { + throw Error + (bignumberError + p + ' cannot be zero: ' + v); + } + } + } + + // CRYPTO {boolean} true or false. + // '[BigNumber Error] CRYPTO not true or false: {v}' + // '[BigNumber Error] crypto unavailable' + if (obj.hasOwnProperty(p = 'CRYPTO')) { + v = obj[p]; + if (v === !!v) { + if (v) { + if (typeof crypto != 'undefined' && crypto && + (crypto.getRandomValues || crypto.randomBytes)) { + CRYPTO = v; + } else { + CRYPTO = !v; + throw Error + (bignumberError + 'crypto unavailable'); + } + } else { + CRYPTO = v; + } + } else { + throw Error + (bignumberError + p + ' not true or false: ' + v); + } + } + + // MODULO_MODE {number} Integer, 0 to 9 inclusive. + // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'MODULO_MODE')) { + v = obj[p]; + intCheck(v, 0, 9, p); + MODULO_MODE = v; + } + + // POW_PRECISION {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'POW_PRECISION')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + POW_PRECISION = v; + } + + // FORMAT {object} + // '[BigNumber Error] FORMAT not an object: {v}' + if (obj.hasOwnProperty(p = 'FORMAT')) { + v = obj[p]; + if (typeof v == 'object') FORMAT = v; + else throw Error + (bignumberError + p + ' not an object: ' + v); + } + + // ALPHABET {string} + // '[BigNumber Error] ALPHABET invalid: {v}' + if (obj.hasOwnProperty(p = 'ALPHABET')) { + v = obj[p]; + + // Disallow if less than two characters, + // or if it contains '+', '-', '.', whitespace, or a repeated character. + if (typeof v == 'string' && !/^.?$|[+\-.\s]|(.).*\1/.test(v)) { + alphabetHasNormalDecimalDigits = v.slice(0, 10) == '0123456789'; + ALPHABET = v; + } else { + throw Error + (bignumberError + p + ' invalid: ' + v); + } + } + + } else { + + // '[BigNumber Error] Object expected: {v}' + throw Error + (bignumberError + 'Object expected: ' + obj); + } + } + + return { + DECIMAL_PLACES: DECIMAL_PLACES, + ROUNDING_MODE: ROUNDING_MODE, + EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS], + RANGE: [MIN_EXP, MAX_EXP], + CRYPTO: CRYPTO, + MODULO_MODE: MODULO_MODE, + POW_PRECISION: POW_PRECISION, + FORMAT: FORMAT, + ALPHABET: ALPHABET + }; + }; + + + /* + * Return true if v is a BigNumber instance, otherwise return false. + * + * If BigNumber.DEBUG is true, throw if a BigNumber instance is not well-formed. + * + * v {any} + * + * '[BigNumber Error] Invalid BigNumber: {v}' + */ + BigNumber.isBigNumber = function (v) { + if (!v || v._isBigNumber !== true) return false; + if (!BigNumber.DEBUG) return true; + + var i, n, + c = v.c, + e = v.e, + s = v.s; + + out: if ({}.toString.call(c) == '[object Array]') { + + if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) { + + // If the first element is zero, the BigNumber value must be zero. + if (c[0] === 0) { + if (e === 0 && c.length === 1) return true; + break out; + } + + // Calculate number of digits that c[0] should have, based on the exponent. + i = (e + 1) % LOG_BASE; + if (i < 1) i += LOG_BASE; + + // Calculate number of digits of c[0]. + //if (Math.ceil(Math.log(c[0] + 1) / Math.LN10) == i) { + if (String(c[0]).length == i) { + + for (i = 0; i < c.length; i++) { + n = c[i]; + if (n < 0 || n >= BASE || n !== mathfloor(n)) break out; + } + + // Last element cannot be zero, unless it is the only element. + if (n !== 0) return true; + } + } + + // Infinity/NaN + } else if (c === null && e === null && (s === null || s === 1 || s === -1)) { + return true; + } + + throw Error + (bignumberError + 'Invalid BigNumber: ' + v); + }; + + + /* + * Return a new BigNumber whose value is the maximum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.maximum = BigNumber.max = function () { + return maxOrMin(arguments, P.lt); + }; + + + /* + * Return a new BigNumber whose value is the minimum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.minimum = BigNumber.min = function () { + return maxOrMin(arguments, P.gt); + }; + + + /* + * Return a new BigNumber with a random value equal to or greater than 0 and less than 1, + * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing + * zeros are produced). + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}' + * '[BigNumber Error] crypto unavailable' + */ + BigNumber.random = (function () { + var pow2_53 = 0x20000000000000; + + // Return a 53 bit integer n, where 0 <= n < 9007199254740992. + // Check if Math.random() produces more than 32 bits of randomness. + // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits. + // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1. + var random53bitInt = (Math.random() * pow2_53) & 0x1fffff + ? function () { return mathfloor(Math.random() * pow2_53); } + : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) + + (Math.random() * 0x800000 | 0); }; + + return function (dp) { + var a, b, e, k, v, + i = 0, + c = [], + rand = new BigNumber(ONE); + + if (dp == null) dp = DECIMAL_PLACES; + else intCheck(dp, 0, MAX); + + k = mathceil(dp / LOG_BASE); + + if (CRYPTO) { + + // Browsers supporting crypto.getRandomValues. + if (crypto.getRandomValues) { + + a = crypto.getRandomValues(new Uint32Array(k *= 2)); + + for (; i < k;) { + + // 53 bits: + // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2) + // 11111 11111111 11111111 11111111 11100000 00000000 00000000 + // ((Math.pow(2, 32) - 1) >>> 11).toString(2) + // 11111 11111111 11111111 + // 0x20000 is 2^21. + v = a[i] * 0x20000 + (a[i + 1] >>> 11); + + // Rejection sampling: + // 0 <= v < 9007199254740992 + // Probability that v >= 9e15, is + // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251 + if (v >= 9e15) { + b = crypto.getRandomValues(new Uint32Array(2)); + a[i] = b[0]; + a[i + 1] = b[1]; + } else { + + // 0 <= v <= 8999999999999999 + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 2; + } + } + i = k / 2; + + // Node.js supporting crypto.randomBytes. + } else if (crypto.randomBytes) { + + // buffer + a = crypto.randomBytes(k *= 7); + + for (; i < k;) { + + // 0x1000000000000 is 2^48, 0x10000000000 is 2^40 + // 0x100000000 is 2^32, 0x1000000 is 2^24 + // 11111 11111111 11111111 11111111 11111111 11111111 11111111 + // 0 <= v < 9007199254740992 + v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) + + (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) + + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6]; + + if (v >= 9e15) { + crypto.randomBytes(7).copy(a, i); + } else { + + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 7; + } + } + i = k / 7; + } else { + CRYPTO = false; + throw Error + (bignumberError + 'crypto unavailable'); + } + } + + // Use Math.random. + if (!CRYPTO) { + + for (; i < k;) { + v = random53bitInt(); + if (v < 9e15) c[i++] = v % 1e14; + } + } + + k = c[--i]; + dp %= LOG_BASE; + + // Convert trailing digits to zeros according to dp. + if (k && dp) { + v = POWS_TEN[LOG_BASE - dp]; + c[i] = mathfloor(k / v) * v; + } + + // Remove trailing elements which are zero. + for (; c[i] === 0; c.pop(), i--); + + // Zero? + if (i < 0) { + c = [e = 0]; + } else { + + // Remove leading elements which are zero and adjust exponent accordingly. + for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE); + + // Count the digits of the first element of c to determine leading zeros, and... + for (i = 1, v = c[0]; v >= 10; v /= 10, i++); + + // adjust the exponent accordingly. + if (i < LOG_BASE) e -= LOG_BASE - i; + } + + rand.e = e; + rand.c = c; + return rand; + }; + })(); + + + /* + * Return a BigNumber whose value is the sum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.sum = function () { + var i = 1, + args = arguments, + sum = new BigNumber(args[0]); + for (; i < args.length;) sum = sum.plus(args[i++]); + return sum; + }; + + + // PRIVATE FUNCTIONS + + + // Called by BigNumber and BigNumber.prototype.toString. + convertBase = (function () { + var decimal = '0123456789'; + + /* + * Convert string of baseIn to an array of numbers of baseOut. + * Eg. toBaseOut('255', 10, 16) returns [15, 15]. + * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5]. + */ + function toBaseOut(str, baseIn, baseOut, alphabet) { + var j, + arr = [0], + arrL, + i = 0, + len = str.length; + + for (; i < len;) { + for (arrL = arr.length; arrL--; arr[arrL] *= baseIn); + + arr[0] += alphabet.indexOf(str.charAt(i++)); + + for (j = 0; j < arr.length; j++) { + + if (arr[j] > baseOut - 1) { + if (arr[j + 1] == null) arr[j + 1] = 0; + arr[j + 1] += arr[j] / baseOut | 0; + arr[j] %= baseOut; + } + } + } + + return arr.reverse(); + } + + // Convert a numeric string of baseIn to a numeric string of baseOut. + // If the caller is toString, we are converting from base 10 to baseOut. + // If the caller is BigNumber, we are converting from baseIn to base 10. + return function (str, baseIn, baseOut, sign, callerIsToString) { + var alphabet, d, e, k, r, x, xc, y, + i = str.indexOf('.'), + dp = DECIMAL_PLACES, + rm = ROUNDING_MODE; + + // Non-integer. + if (i >= 0) { + k = POW_PRECISION; + + // Unlimited precision. + POW_PRECISION = 0; + str = str.replace('.', ''); + y = new BigNumber(baseIn); + x = y.pow(str.length - i); + POW_PRECISION = k; + + // Convert str as if an integer, then restore the fraction part by dividing the + // result by its base raised to a power. + + y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'), + 10, baseOut, decimal); + y.e = y.c.length; + } + + // Convert the number as integer. + + xc = toBaseOut(str, baseIn, baseOut, callerIsToString + ? (alphabet = ALPHABET, decimal) + : (alphabet = decimal, ALPHABET)); + + // xc now represents str as an integer and converted to baseOut. e is the exponent. + e = k = xc.length; + + // Remove trailing zeros. + for (; xc[--k] == 0; xc.pop()); + + // Zero? + if (!xc[0]) return alphabet.charAt(0); + + // Does str represent an integer? If so, no need for the division. + if (i < 0) { + --e; + } else { + x.c = xc; + x.e = e; + + // The sign is needed for correct rounding. + x.s = sign; + x = div(x, y, dp, rm, baseOut); + xc = x.c; + r = x.r; + e = x.e; + } + + // xc now represents str converted to baseOut. + + // THe index of the rounding digit. + d = e + dp + 1; + + // The rounding digit: the digit to the right of the digit that may be rounded up. + i = xc[d]; + + // Look at the rounding digits and mode to determine whether to round up. + + k = baseOut / 2; + r = r || d < 0 || xc[d + 1] != null; + + r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 || + rm == (x.s < 0 ? 8 : 7)); + + // If the index of the rounding digit is not greater than zero, or xc represents + // zero, then the result of the base conversion is zero or, if rounding up, a value + // such as 0.00001. + if (d < 1 || !xc[0]) { + + // 1^-dp or 0 + str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) : alphabet.charAt(0); + } else { + + // Truncate xc to the required number of decimal places. + xc.length = d; + + // Round up? + if (r) { + + // Rounding up may mean the previous digit has to be rounded up and so on. + for (--baseOut; ++xc[--d] > baseOut;) { + xc[d] = 0; + + if (!d) { + ++e; + xc = [1].concat(xc); + } + } + } + + // Determine trailing zeros. + for (k = xc.length; !xc[--k];); + + // E.g. [4, 11, 15] becomes 4bf. + for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++])); + + // Add leading zeros, decimal point and trailing zeros as required. + str = toFixedPoint(str, e, alphabet.charAt(0)); + } + + // The caller will add the sign. + return str; + }; + })(); + + + // Perform division in the specified base. Called by div and convertBase. + div = (function () { + + // Assume non-zero x and k. + function multiply(x, k, base) { + var m, temp, xlo, xhi, + carry = 0, + i = x.length, + klo = k % SQRT_BASE, + khi = k / SQRT_BASE | 0; + + for (x = x.slice(); i--;) { + xlo = x[i] % SQRT_BASE; + xhi = x[i] / SQRT_BASE | 0; + m = khi * xlo + xhi * klo; + temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry; + carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi; + x[i] = temp % base; + } + + if (carry) x = [carry].concat(x); + + return x; + } + + function compare(a, b, aL, bL) { + var i, cmp; + + if (aL != bL) { + cmp = aL > bL ? 1 : -1; + } else { + + for (i = cmp = 0; i < aL; i++) { + + if (a[i] != b[i]) { + cmp = a[i] > b[i] ? 1 : -1; + break; + } + } + } + + return cmp; + } + + function subtract(a, b, aL, base) { + var i = 0; + + // Subtract b from a. + for (; aL--;) { + a[aL] -= i; + i = a[aL] < b[aL] ? 1 : 0; + a[aL] = i * base + a[aL] - b[aL]; + } + + // Remove leading zeros. + for (; !a[0] && a.length > 1; a.splice(0, 1)); + } + + // x: dividend, y: divisor. + return function (x, y, dp, rm, base) { + var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, + yL, yz, + s = x.s == y.s ? 1 : -1, + xc = x.c, + yc = y.c; + + // Either NaN, Infinity or 0? + if (!xc || !xc[0] || !yc || !yc[0]) { + + return new BigNumber( + + // Return NaN if either NaN, or both Infinity or 0. + !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : + + // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. + xc && xc[0] == 0 || !yc ? s * 0 : s / 0 + ); + } + + q = new BigNumber(s); + qc = q.c = []; + e = x.e - y.e; + s = dp + e + 1; + + if (!base) { + base = BASE; + e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); + s = s / LOG_BASE | 0; + } + + // Result exponent may be one less then the current value of e. + // The coefficients of the BigNumbers from convertBase may have trailing zeros. + for (i = 0; yc[i] == (xc[i] || 0); i++); + + if (yc[i] > (xc[i] || 0)) e--; + + if (s < 0) { + qc.push(1); + more = true; + } else { + xL = xc.length; + yL = yc.length; + i = 0; + s += 2; + + // Normalise xc and yc so highest order digit of yc is >= base / 2. + + n = mathfloor(base / (yc[0] + 1)); + + // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1. + // if (n > 1 || n++ == 1 && yc[0] < base / 2) { + if (n > 1) { + yc = multiply(yc, n, base); + xc = multiply(xc, n, base); + yL = yc.length; + xL = xc.length; + } + + xi = yL; + rem = xc.slice(0, yL); + remL = rem.length; + + // Add zeros to make remainder as long as divisor. + for (; remL < yL; rem[remL++] = 0); + yz = yc.slice(); + yz = [0].concat(yz); + yc0 = yc[0]; + if (yc[1] >= base / 2) yc0++; + // Not necessary, but to prevent trial digit n > base, when using base 3. + // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15; + + do { + n = 0; + + // Compare divisor and remainder. + cmp = compare(yc, rem, yL, remL); + + // If divisor < remainder. + if (cmp < 0) { + + // Calculate trial digit, n. + + rem0 = rem[0]; + if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); + + // n is how many times the divisor goes into the current remainder. + n = mathfloor(rem0 / yc0); + + // Algorithm: + // product = divisor multiplied by trial digit (n). + // Compare product and remainder. + // If product is greater than remainder: + // Subtract divisor from product, decrement trial digit. + // Subtract product from remainder. + // If product was less than remainder at the last compare: + // Compare new remainder and divisor. + // If remainder is greater than divisor: + // Subtract divisor from remainder, increment trial digit. + + if (n > 1) { + + // n may be > base only when base is 3. + if (n >= base) n = base - 1; + + // product = divisor * trial digit. + prod = multiply(yc, n, base); + prodL = prod.length; + remL = rem.length; + + // Compare product and remainder. + // If product > remainder then trial digit n too high. + // n is 1 too high about 5% of the time, and is not known to have + // ever been more than 1 too high. + while (compare(prod, rem, prodL, remL) == 1) { + n--; + + // Subtract divisor from product. + subtract(prod, yL < prodL ? yz : yc, prodL, base); + prodL = prod.length; + cmp = 1; + } + } else { + + // n is 0 or 1, cmp is -1. + // If n is 0, there is no need to compare yc and rem again below, + // so change cmp to 1 to avoid it. + // If n is 1, leave cmp as -1, so yc and rem are compared again. + if (n == 0) { + + // divisor < remainder, so n must be at least 1. + cmp = n = 1; + } + + // product = divisor + prod = yc.slice(); + prodL = prod.length; + } + + if (prodL < remL) prod = [0].concat(prod); + + // Subtract product from remainder. + subtract(rem, prod, remL, base); + remL = rem.length; + + // If product was < remainder. + if (cmp == -1) { + + // Compare divisor and new remainder. + // If divisor < new remainder, subtract divisor from remainder. + // Trial digit n too low. + // n is 1 too low about 5% of the time, and very rarely 2 too low. + while (compare(yc, rem, yL, remL) < 1) { + n++; + + // Subtract divisor from remainder. + subtract(rem, yL < remL ? yz : yc, remL, base); + remL = rem.length; + } + } + } else if (cmp === 0) { + n++; + rem = [0]; + } // else cmp === 1 and n will be 0 + + // Add the next digit, n, to the result array. + qc[i++] = n; + + // Update the remainder. + if (rem[0]) { + rem[remL++] = xc[xi] || 0; + } else { + rem = [xc[xi]]; + remL = 1; + } + } while ((xi++ < xL || rem[0] != null) && s--); + + more = rem[0] != null; + + // Leading zero? + if (!qc[0]) qc.splice(0, 1); + } + + if (base == BASE) { + + // To calculate q.e, first get the number of digits of qc[0]. + for (i = 1, s = qc[0]; s >= 10; s /= 10, i++); + + round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more); + + // Caller is convertBase. + } else { + q.e = e; + q.r = +more; + } + + return q; + }; + })(); + + + /* + * Return a string representing the value of BigNumber n in fixed-point or exponential + * notation rounded to the specified decimal places or significant digits. + * + * n: a BigNumber. + * i: the index of the last digit required (i.e. the digit that may be rounded up). + * rm: the rounding mode. + * id: 1 (toExponential) or 2 (toPrecision). + */ + function format(n, i, rm, id) { + var c0, e, ne, len, str; + + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + if (!n.c) return n.toString(); + + c0 = n.c[0]; + ne = n.e; + + if (i == null) { + str = coeffToString(n.c); + str = id == 1 || id == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS) + ? toExponential(str, ne) + : toFixedPoint(str, ne, '0'); + } else { + n = round(new BigNumber(n), i, rm); + + // n.e may have changed if the value was rounded up. + e = n.e; + + str = coeffToString(n.c); + len = str.length; + + // toPrecision returns exponential notation if the number of significant digits + // specified is less than the number of digits necessary to represent the integer + // part of the value in fixed-point notation. + + // Exponential notation. + if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) { + + // Append zeros? + for (; len < i; str += '0', len++); + str = toExponential(str, e); + + // Fixed-point notation. + } else { + i -= ne; + str = toFixedPoint(str, e, '0'); + + // Append zeros? + if (e + 1 > len) { + if (--i > 0) for (str += '.'; i--; str += '0'); + } else { + i += e - len; + if (i > 0) { + if (e + 1 == len) str += '.'; + for (; i--; str += '0'); + } + } + } + } + + return n.s < 0 && c0 ? '-' + str : str; + } + + + // Handle BigNumber.max and BigNumber.min. + function maxOrMin(args, method) { + var n, + i = 1, + m = new BigNumber(args[0]); + + for (; i < args.length; i++) { + n = new BigNumber(args[i]); + + // If any number is NaN, return NaN. + if (!n.s) { + m = n; + break; + } else if (method.call(m, n)) { + m = n; + } + } + + return m; + } + + + /* + * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP. + * Called by minus, plus and times. + */ + function normalise(n, c, e) { + var i = 1, + j = c.length; + + // Remove trailing zeros. + for (; !c[--j]; c.pop()); + + // Calculate the base 10 exponent. First get the number of digits of c[0]. + for (j = c[0]; j >= 10; j /= 10, i++); + + // Overflow? + if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { + + // Infinity. + n.c = n.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + n.c = [n.e = 0]; + } else { + n.e = e; + n.c = c; + } + + return n; + } + + + // Handle values that fail the validity test in BigNumber. + parseNumeric = (function () { + var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, + dotAfter = /^([^.]+)\.$/, + dotBefore = /^\.([^.]+)$/, + isInfinityOrNaN = /^-?(Infinity|NaN)$/, + whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g; + + return function (x, str, isNum, b) { + var base, + s = isNum ? str : str.replace(whitespaceOrPlus, ''); + + // No exception on ±Infinity or NaN. + if (isInfinityOrNaN.test(s)) { + x.s = isNaN(s) ? null : s < 0 ? -1 : 1; + } else { + if (!isNum) { + + // basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i + s = s.replace(basePrefix, function (m, p1, p2) { + base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8; + return !b || b == base ? p1 : m; + }); + + if (b) { + base = b; + + // E.g. '1.' to '1', '.1' to '0.1' + s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); + } + + if (str != s) return new BigNumber(s, base); + } + + // '[BigNumber Error] Not a number: {n}' + // '[BigNumber Error] Not a base {b} number: {n}' + if (BigNumber.DEBUG) { + throw Error + (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str); + } + + // NaN + x.s = null; + } + + x.c = x.e = null; + } + })(); + + + /* + * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. + * If r is truthy, it is known that there are more digits after the rounding digit. + */ + function round(x, sd, rm, r) { + var d, i, j, k, n, ni, rd, + xc = x.c, + pows10 = POWS_TEN; + + // if x is not Infinity or NaN... + if (xc) { + + // rd is the rounding digit, i.e. the digit after the digit that may be rounded up. + // n is a base 1e14 number, the value of the element of array x.c containing rd. + // ni is the index of n within x.c. + // d is the number of digits of n. + // i is the index of rd within n including leading zeros. + // j is the actual index of rd within n (if < 0, rd is a leading zero). + out: { + + // Get the number of digits of the first element of xc. + for (d = 1, k = xc[0]; k >= 10; k /= 10, d++); + i = sd - d; + + // If the rounding digit is in the first element of xc... + if (i < 0) { + i += LOG_BASE; + j = sd; + n = xc[ni = 0]; + + // Get the rounding digit at index j of n. + rd = n / pows10[d - j - 1] % 10 | 0; + } else { + ni = mathceil((i + 1) / LOG_BASE); + + if (ni >= xc.length) { + + if (r) { + + // Needed by sqrt. + for (; xc.length <= ni; xc.push(0)); + n = rd = 0; + d = 1; + i %= LOG_BASE; + j = i - LOG_BASE + 1; + } else { + break out; + } + } else { + n = k = xc[ni]; + + // Get the number of digits of n. + for (d = 1; k >= 10; k /= 10, d++); + + // Get the index of rd within n. + i %= LOG_BASE; + + // Get the index of rd within n, adjusted for leading zeros. + // The number of leading zeros of n is given by LOG_BASE - d. + j = i - LOG_BASE + d; + + // Get the rounding digit at index j of n. + rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; + } + } + + r = r || sd < 0 || + + // Are there any non-zero digits after the rounding digit? + // The expression n % pows10[d - j - 1] returns all digits of n to the right + // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. + xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]); + + r = rm < 4 + ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && + + // Check whether the digit to the left of the rounding digit is odd. + ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 || + rm == (x.s < 0 ? 8 : 7)); + + if (sd < 1 || !xc[0]) { + xc.length = 0; + + if (r) { + + // Convert sd to decimal places. + sd -= x.e + 1; + + // 1, 0.1, 0.01, 0.001, 0.0001 etc. + xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE]; + x.e = -sd || 0; + } else { + + // Zero. + xc[0] = x.e = 0; + } + + return x; + } + + // Remove excess digits. + if (i == 0) { + xc.length = ni; + k = 1; + ni--; + } else { + xc.length = ni + 1; + k = pows10[LOG_BASE - i]; + + // E.g. 56700 becomes 56000 if 7 is the rounding digit. + // j > 0 means i > number of leading zeros of n. + xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0; + } + + // Round up? + if (r) { + + for (; ;) { + + // If the digit to be rounded up is in the first element of xc... + if (ni == 0) { + + // i will be the length of xc[0] before k is added. + for (i = 1, j = xc[0]; j >= 10; j /= 10, i++); + j = xc[0] += k; + for (k = 1; j >= 10; j /= 10, k++); + + // if i != k the length has increased. + if (i != k) { + x.e++; + if (xc[0] == BASE) xc[0] = 1; + } + + break; + } else { + xc[ni] += k; + if (xc[ni] != BASE) break; + xc[ni--] = 0; + k = 1; + } + } + } + + // Remove trailing zeros. + for (i = xc.length; xc[--i] === 0; xc.pop()); + } + + // Overflow? Infinity. + if (x.e > MAX_EXP) { + x.c = x.e = null; + + // Underflow? Zero. + } else if (x.e < MIN_EXP) { + x.c = [x.e = 0]; + } + } + + return x; + } + + + function valueOf(n) { + var str, + e = n.e; + + if (e === null) return n.toString(); + + str = coeffToString(n.c); + + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + + return n.s < 0 ? '-' + str : str; + } + + + // PROTOTYPE/INSTANCE METHODS + + + /* + * Return a new BigNumber whose value is the absolute value of this BigNumber. + */ + P.absoluteValue = P.abs = function () { + var x = new BigNumber(this); + if (x.s < 0) x.s = 1; + return x; + }; + + + /* + * Return + * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b), + * -1 if the value of this BigNumber is less than the value of BigNumber(y, b), + * 0 if they have the same value, + * or null if the value of either is NaN. + */ + P.comparedTo = function (y, b) { + return compare(this, new BigNumber(y, b)); + }; + + + /* + * If dp is undefined or null or true or false, return the number of decimal places of the + * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * + * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * [dp] {number} Decimal places: integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.decimalPlaces = P.dp = function (dp, rm) { + var c, n, v, + x = this; + + if (dp != null) { + intCheck(dp, 0, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), dp + x.e + 1, rm); + } + + if (!(c = x.c)) return null; + n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE; + + // Subtract the number of trailing zeros of the last number. + if (v = c[v]) for (; v % 10 == 0; v /= 10, n--); + if (n < 0) n = 0; + + return n; + }; + + + /* + * n / 0 = I + * n / N = N + * n / I = 0 + * 0 / n = 0 + * 0 / 0 = N + * 0 / N = N + * 0 / I = 0 + * N / n = N + * N / 0 = N + * N / N = N + * N / I = N + * I / n = I + * I / 0 = I + * I / N = N + * I / I = N + * + * Return a new BigNumber whose value is the value of this BigNumber divided by the value of + * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.dividedBy = P.div = function (y, b) { + return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE); + }; + + + /* + * Return a new BigNumber whose value is the integer part of dividing the value of this + * BigNumber by the value of BigNumber(y, b). + */ + P.dividedToIntegerBy = P.idiv = function (y, b) { + return div(this, new BigNumber(y, b), 0, 1); + }; + + + /* + * Return a BigNumber whose value is the value of this BigNumber exponentiated by n. + * + * If m is present, return the result modulo m. + * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE. + * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE. + * + * The modular power operation works efficiently when x, n, and m are integers, otherwise it + * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0. + * + * n {number|string|BigNumber} The exponent. An integer. + * [m] {number|string|BigNumber} The modulus. + * + * '[BigNumber Error] Exponent not an integer: {n}' + */ + P.exponentiatedBy = P.pow = function (n, m) { + var half, isModExp, i, k, more, nIsBig, nIsNeg, nIsOdd, y, + x = this; + + n = new BigNumber(n); + + // Allow NaN and ±Infinity, but not other non-integers. + if (n.c && !n.isInteger()) { + throw Error + (bignumberError + 'Exponent not an integer: ' + valueOf(n)); + } + + if (m != null) m = new BigNumber(m); + + // Exponent of MAX_SAFE_INTEGER is 15. + nIsBig = n.e > 14; + + // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0. + if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { + + // The sign of the result of pow when x is negative depends on the evenness of n. + // If +n overflows to ±Infinity, the evenness of n would be not be known. + y = new BigNumber(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n))); + return m ? y.mod(m) : y; + } + + nIsNeg = n.s < 0; + + if (m) { + + // x % m returns NaN if abs(m) is zero, or m is NaN. + if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN); + + isModExp = !nIsNeg && x.isInteger() && m.isInteger(); + + if (isModExp) x = x.mod(m); + + // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15. + // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15. + } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 + // [1, 240000000] + ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 + // [80000000000000] [99999750000000] + : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) { + + // If x is negative and n is odd, k = -0, else k = 0. + k = x.s < 0 && isOdd(n) ? -0 : 0; + + // If x >= 1, k = ±Infinity. + if (x.e > -1) k = 1 / k; + + // If n is negative return ±0, else return ±Infinity. + return new BigNumber(nIsNeg ? 1 / k : k); + + } else if (POW_PRECISION) { + + // Truncating each coefficient array to a length of k after each multiplication + // equates to truncating significant digits to POW_PRECISION + [28, 41], + // i.e. there will be a minimum of 28 guard digits retained. + k = mathceil(POW_PRECISION / LOG_BASE + 2); + } + + if (nIsBig) { + half = new BigNumber(0.5); + if (nIsNeg) n.s = 1; + nIsOdd = isOdd(n); + } else { + i = Math.abs(+valueOf(n)); + nIsOdd = i % 2; + } + + y = new BigNumber(ONE); + + // Performs 54 loop iterations for n of 9007199254740991. + for (; ;) { + + if (nIsOdd) { + y = y.times(x); + if (!y.c) break; + + if (k) { + if (y.c.length > k) y.c.length = k; + } else if (isModExp) { + y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m)); + } + } + + if (i) { + i = mathfloor(i / 2); + if (i === 0) break; + nIsOdd = i % 2; + } else { + n = n.times(half); + round(n, n.e + 1, 1); + + if (n.e > 14) { + nIsOdd = isOdd(n); + } else { + i = +valueOf(n); + if (i === 0) break; + nIsOdd = i % 2; + } + } + + x = x.times(x); + + if (k) { + if (x.c && x.c.length > k) x.c.length = k; + } else if (isModExp) { + x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m)); + } + } + + if (isModExp) return y; + if (nIsNeg) y = ONE.div(y); + + return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer + * using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}' + */ + P.integerValue = function (rm) { + var n = new BigNumber(this); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + return round(n, n.e + 1, rm); + }; + + + /* + * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b), + * otherwise return false. + */ + P.isEqualTo = P.eq = function (y, b) { + return compare(this, new BigNumber(y, b)) === 0; + }; + + + /* + * Return true if the value of this BigNumber is a finite number, otherwise return false. + */ + P.isFinite = function () { + return !!this.c; + }; + + + /* + * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isGreaterThan = P.gt = function (y, b) { + return compare(this, new BigNumber(y, b)) > 0; + }; + + + /* + * Return true if the value of this BigNumber is greater than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isGreaterThanOrEqualTo = P.gte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0; + + }; + + + /* + * Return true if the value of this BigNumber is an integer, otherwise return false. + */ + P.isInteger = function () { + return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; + }; + + + /* + * Return true if the value of this BigNumber is less than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isLessThan = P.lt = function (y, b) { + return compare(this, new BigNumber(y, b)) < 0; + }; + + + /* + * Return true if the value of this BigNumber is less than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isLessThanOrEqualTo = P.lte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0; + }; + + + /* + * Return true if the value of this BigNumber is NaN, otherwise return false. + */ + P.isNaN = function () { + return !this.s; + }; + + + /* + * Return true if the value of this BigNumber is negative, otherwise return false. + */ + P.isNegative = function () { + return this.s < 0; + }; + + + /* + * Return true if the value of this BigNumber is positive, otherwise return false. + */ + P.isPositive = function () { + return this.s > 0; + }; + + + /* + * Return true if the value of this BigNumber is 0 or -0, otherwise return false. + */ + P.isZero = function () { + return !!this.c && this.c[0] == 0; + }; + + + /* + * n - 0 = n + * n - N = N + * n - I = -I + * 0 - n = -n + * 0 - 0 = 0 + * 0 - N = N + * 0 - I = -I + * N - n = N + * N - 0 = N + * N - N = N + * N - I = N + * I - n = I + * I - 0 = I + * I - N = N + * I - I = N + * + * Return a new BigNumber whose value is the value of this BigNumber minus the value of + * BigNumber(y, b). + */ + P.minus = function (y, b) { + var i, j, t, xLTy, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.plus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Either Infinity? + if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN); + + // Either zero? + if (!xc[0] || !yc[0]) { + + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x : + + // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity + ROUNDING_MODE == 3 ? -0 : 0); + } + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Determine which is the bigger number. + if (a = xe - ye) { + + if (xLTy = a < 0) { + a = -a; + t = xc; + } else { + ye = xe; + t = yc; + } + + t.reverse(); + + // Prepend zeros to equalise exponents. + for (b = a; b--; t.push(0)); + t.reverse(); + } else { + + // Exponents equal. Check digit by digit. + j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b; + + for (a = b = 0; b < j; b++) { + + if (xc[b] != yc[b]) { + xLTy = xc[b] < yc[b]; + break; + } + } + } + + // x < y? Point xc to the array of the bigger number. + if (xLTy) { + t = xc; + xc = yc; + yc = t; + y.s = -y.s; + } + + b = (j = yc.length) - (i = xc.length); + + // Append zeros to xc if shorter. + // No need to add zeros to yc if shorter as subtract only needs to start at yc.length. + if (b > 0) for (; b--; xc[i++] = 0); + b = BASE - 1; + + // Subtract yc from xc. + for (; j > a;) { + + if (xc[--j] < yc[j]) { + for (i = j; i && !xc[--i]; xc[i] = b); + --xc[i]; + xc[j] += BASE; + } + + xc[j] -= yc[j]; + } + + // Remove leading zeros and adjust exponent accordingly. + for (; xc[0] == 0; xc.splice(0, 1), --ye); + + // Zero? + if (!xc[0]) { + + // Following IEEE 754 (2008) 6.3, + // n - n = +0 but n - n = -0 when rounding towards -Infinity. + y.s = ROUNDING_MODE == 3 ? -1 : 1; + y.c = [y.e = 0]; + return y; + } + + // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity + // for finite x and y. + return normalise(y, xc, ye); + }; + + + /* + * n % 0 = N + * n % N = N + * n % I = n + * 0 % n = 0 + * -0 % n = -0 + * 0 % 0 = N + * 0 % N = N + * 0 % I = 0 + * N % n = N + * N % 0 = N + * N % N = N + * N % I = N + * I % n = N + * I % 0 = N + * I % N = N + * I % I = N + * + * Return a new BigNumber whose value is the value of this BigNumber modulo the value of + * BigNumber(y, b). The result depends on the value of MODULO_MODE. + */ + P.modulo = P.mod = function (y, b) { + var q, s, + x = this; + + y = new BigNumber(y, b); + + // Return NaN if x is Infinity or NaN, or y is NaN or zero. + if (!x.c || !y.s || y.c && !y.c[0]) { + return new BigNumber(NaN); + + // Return x if y is Infinity or x is zero. + } else if (!y.c || x.c && !x.c[0]) { + return new BigNumber(x); + } + + if (MODULO_MODE == 9) { + + // Euclidian division: q = sign(y) * floor(x / abs(y)) + // r = x - qy where 0 <= r < abs(y) + s = y.s; + y.s = 1; + q = div(x, y, 0, 3); + y.s = s; + q.s *= s; + } else { + q = div(x, y, 0, MODULO_MODE); + } + + y = x.minus(q.times(y)); + + // To match JavaScript %, ensure sign of zero is sign of dividend. + if (!y.c[0] && MODULO_MODE == 1) y.s = x.s; + + return y; + }; + + + /* + * n * 0 = 0 + * n * N = N + * n * I = I + * 0 * n = 0 + * 0 * 0 = 0 + * 0 * N = N + * 0 * I = N + * N * n = N + * N * 0 = N + * N * N = N + * N * I = N + * I * n = I + * I * 0 = N + * I * N = N + * I * I = I + * + * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value + * of BigNumber(y, b). + */ + P.multipliedBy = P.times = function (y, b) { + var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, + base, sqrtBase, + x = this, + xc = x.c, + yc = (y = new BigNumber(y, b)).c; + + // Either NaN, ±Infinity or ±0? + if (!xc || !yc || !xc[0] || !yc[0]) { + + // Return NaN if either is NaN, or one is 0 and the other is Infinity. + if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) { + y.c = y.e = y.s = null; + } else { + y.s *= x.s; + + // Return ±Infinity if either is ±Infinity. + if (!xc || !yc) { + y.c = y.e = null; + + // Return ±0 if either is ±0. + } else { + y.c = [0]; + y.e = 0; + } + } + + return y; + } + + e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE); + y.s *= x.s; + xcL = xc.length; + ycL = yc.length; + + // Ensure xc points to longer array and xcL to its length. + if (xcL < ycL) { + zc = xc; + xc = yc; + yc = zc; + i = xcL; + xcL = ycL; + ycL = i; + } + + // Initialise the result array with zeros. + for (i = xcL + ycL, zc = []; i--; zc.push(0)); + + base = BASE; + sqrtBase = SQRT_BASE; + + for (i = ycL; --i >= 0;) { + c = 0; + ylo = yc[i] % sqrtBase; + yhi = yc[i] / sqrtBase | 0; + + for (k = xcL, j = i + k; j > i;) { + xlo = xc[--k] % sqrtBase; + xhi = xc[k] / sqrtBase | 0; + m = yhi * xlo + xhi * ylo; + xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c; + c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi; + zc[j--] = xlo % base; + } + + zc[j] = c; + } + + if (c) { + ++e; + } else { + zc.splice(0, 1); + } + + return normalise(y, zc, e); + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber negated, + * i.e. multiplied by -1. + */ + P.negated = function () { + var x = new BigNumber(this); + x.s = -x.s || null; + return x; + }; + + + /* + * n + 0 = n + * n + N = N + * n + I = I + * 0 + n = n + * 0 + 0 = 0 + * 0 + N = N + * 0 + I = I + * N + n = N + * N + 0 = N + * N + N = N + * N + I = N + * I + n = I + * I + 0 = I + * I + N = N + * I + I = I + * + * Return a new BigNumber whose value is the value of this BigNumber plus the value of + * BigNumber(y, b). + */ + P.plus = function (y, b) { + var t, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.minus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Return ±Infinity if either ±Infinity. + if (!xc || !yc) return new BigNumber(a / 0); + + // Either zero? + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0); + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts. + if (a = xe - ye) { + if (a > 0) { + ye = xe; + t = yc; + } else { + a = -a; + t = xc; + } + + t.reverse(); + for (; a--; t.push(0)); + t.reverse(); + } + + a = xc.length; + b = yc.length; + + // Point xc to the longer array, and b to the shorter length. + if (a - b < 0) { + t = yc; + yc = xc; + xc = t; + b = a; + } + + // Only start adding at yc.length - 1 as the further digits of xc can be ignored. + for (a = 0; b;) { + a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0; + xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE; + } + + if (a) { + xc = [a].concat(xc); + ++ye; + } + + // No need to check for zero, as +x + +y != 0 && -x + -y != 0 + // ye = MAX_EXP + 1 possible + return normalise(y, xc, ye); + }; + + + /* + * If sd is undefined or null or true or false, return the number of significant digits of + * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * If sd is true include integer-part trailing zeros in the count. + * + * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive. + * boolean: whether to count integer-part trailing zeros: true or false. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.precision = P.sd = function (sd, rm) { + var c, n, v, + x = this; + + if (sd != null && sd !== !!sd) { + intCheck(sd, 1, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), sd, rm); + } + + if (!(c = x.c)) return null; + v = c.length - 1; + n = v * LOG_BASE + 1; + + if (v = c[v]) { + + // Subtract the number of trailing zeros of the last element. + for (; v % 10 == 0; v /= 10, n--); + + // Add the number of digits of the first element. + for (v = c[0]; v >= 10; v /= 10, n++); + } + + if (sd && x.e + 1 > n) n = x.e + 1; + + return n; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber shifted by k places + * (powers of 10). Shift to the right if n > 0, and to the left if n < 0. + * + * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}' + */ + P.shiftedBy = function (k) { + intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); + return this.times('1e' + k); + }; + + + /* + * sqrt(-n) = N + * sqrt(N) = N + * sqrt(-I) = N + * sqrt(I) = I + * sqrt(0) = 0 + * sqrt(-0) = -0 + * + * Return a new BigNumber whose value is the square root of the value of this BigNumber, + * rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.squareRoot = P.sqrt = function () { + var m, n, r, rep, t, + x = this, + c = x.c, + s = x.s, + e = x.e, + dp = DECIMAL_PLACES + 4, + half = new BigNumber('0.5'); + + // Negative/NaN/Infinity/zero? + if (s !== 1 || !c || !c[0]) { + return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); + } + + // Initial estimate. + s = Math.sqrt(+valueOf(x)); + + // Math.sqrt underflow/overflow? + // Pass x to Math.sqrt as integer, then adjust the exponent of the result. + if (s == 0 || s == 1 / 0) { + n = coeffToString(c); + if ((n.length + e) % 2 == 0) n += '0'; + s = Math.sqrt(+n); + e = bitFloor((e + 1) / 2) - (e < 0 || e % 2); + + if (s == 1 / 0) { + n = '5e' + e; + } else { + n = s.toExponential(); + n = n.slice(0, n.indexOf('e') + 1) + e; + } + + r = new BigNumber(n); + } else { + r = new BigNumber(s + ''); + } + + // Check for zero. + // r could be zero if MIN_EXP is changed after the this value was created. + // This would cause a division by zero (x/t) and hence Infinity below, which would cause + // coeffToString to throw. + if (r.c[0]) { + e = r.e; + s = e + dp; + if (s < 3) s = 0; + + // Newton-Raphson iteration. + for (; ;) { + t = r; + r = half.times(t.plus(div(x, t, dp, 1))); + + if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) { + + // The exponent of r may here be one less than the final result exponent, + // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits + // are indexed correctly. + if (r.e < e) --s; + n = n.slice(s - 3, s + 1); + + // The 4th rounding digit may be in error by -1 so if the 4 rounding digits + // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the + // iteration. + if (n == '9999' || !rep && n == '4999') { + + // On the first iteration only, check to see if rounding up gives the + // exact result as the nines may infinitely repeat. + if (!rep) { + round(t, t.e + DECIMAL_PLACES + 2, 0); + + if (t.times(t).eq(x)) { + r = t; + break; + } + } + + dp += 4; + s += 4; + rep = 1; + } else { + + // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact + // result. If not, then there are further digits and m will be truthy. + if (!+n || !+n.slice(1) && n.charAt(0) == '5') { + + // Truncate to the first rounding digit. + round(r, r.e + DECIMAL_PLACES + 2, 1); + m = !r.times(r).eq(x); + } + + break; + } + } + } + } + + return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m); + }; + + + /* + * Return a string representing the value of this BigNumber in exponential notation and + * rounded using ROUNDING_MODE to dp fixed decimal places. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toExponential = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp++; + } + return format(this, dp, rm, 1); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounding + * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * Note: as with JavaScript's number type, (-0).toFixed(0) is '0', + * but e.g. (-0.00001).toFixed(0) is '-0'. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFixed = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp = dp + this.e + 1; + } + return format(this, dp, rm); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounded + * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties + * of the format or FORMAT object (see BigNumber.set). + * + * The formatting object may contain some or all of the properties shown below. + * + * FORMAT = { + * prefix: '', + * groupSize: 3, + * secondaryGroupSize: 0, + * groupSeparator: ',', + * decimalSeparator: '.', + * fractionGroupSize: 0, + * fractionGroupSeparator: '\xA0', // non-breaking space + * suffix: '' + * }; + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * [format] {object} Formatting options. See FORMAT pbject above. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + * '[BigNumber Error] Argument not an object: {format}' + */ + P.toFormat = function (dp, rm, format) { + var str, + x = this; + + if (format == null) { + if (dp != null && rm && typeof rm == 'object') { + format = rm; + rm = null; + } else if (dp && typeof dp == 'object') { + format = dp; + dp = rm = null; + } else { + format = FORMAT; + } + } else if (typeof format != 'object') { + throw Error + (bignumberError + 'Argument not an object: ' + format); + } + + str = x.toFixed(dp, rm); + + if (x.c) { + var i, + arr = str.split('.'), + g1 = +format.groupSize, + g2 = +format.secondaryGroupSize, + groupSeparator = format.groupSeparator || '', + intPart = arr[0], + fractionPart = arr[1], + isNeg = x.s < 0, + intDigits = isNeg ? intPart.slice(1) : intPart, + len = intDigits.length; + + if (g2) { + i = g1; + g1 = g2; + g2 = i; + len -= i; + } + + if (g1 > 0 && len > 0) { + i = len % g1 || g1; + intPart = intDigits.substr(0, i); + for (; i < len; i += g1) intPart += groupSeparator + intDigits.substr(i, g1); + if (g2 > 0) intPart += groupSeparator + intDigits.slice(i); + if (isNeg) intPart = '-' + intPart; + } + + str = fractionPart + ? intPart + (format.decimalSeparator || '') + ((g2 = +format.fractionGroupSize) + ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), + '$&' + (format.fractionGroupSeparator || '')) + : fractionPart) + : intPart; + } + + return (format.prefix || '') + str + (format.suffix || ''); + }; + + + /* + * Return an array of two BigNumbers representing the value of this BigNumber as a simple + * fraction with an integer numerator and an integer denominator. + * The denominator will be a positive non-zero value less than or equal to the specified + * maximum denominator. If a maximum denominator is not specified, the denominator will be + * the lowest value necessary to represent the number exactly. + * + * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator. + * + * '[BigNumber Error] Argument {not an integer|out of range} : {md}' + */ + P.toFraction = function (md) { + var d, d0, d1, d2, e, exp, n, n0, n1, q, r, s, + x = this, + xc = x.c; + + if (md != null) { + n = new BigNumber(md); + + // Throw if md is less than one or is not an integer, unless it is Infinity. + if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { + throw Error + (bignumberError + 'Argument ' + + (n.isInteger() ? 'out of range: ' : 'not an integer: ') + valueOf(n)); + } + } + + if (!xc) return new BigNumber(x); + + d = new BigNumber(ONE); + n1 = d0 = new BigNumber(ONE); + d1 = n0 = new BigNumber(ONE); + s = coeffToString(xc); + + // Determine initial denominator. + // d is a power of 10 and the minimum max denominator that specifies the value exactly. + e = d.e = s.length - x.e - 1; + d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; + md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n; + + exp = MAX_EXP; + MAX_EXP = 1 / 0; + n = new BigNumber(s); + + // n0 = d1 = 0 + n0.c[0] = 0; + + for (; ;) { + q = div(n, d, 0, 1); + d2 = d0.plus(q.times(d1)); + if (d2.comparedTo(md) == 1) break; + d0 = d1; + d1 = d2; + n1 = n0.plus(q.times(d2 = n1)); + n0 = d2; + d = n.minus(q.times(d2 = d)); + n = d2; + } + + d2 = div(md.minus(d0), d1, 0, 1); + n0 = n0.plus(d2.times(n1)); + d0 = d0.plus(d2.times(d1)); + n0.s = n1.s = x.s; + e = e * 2; + + // Determine which fraction is closer to x, n0/d0 or n1/d1 + r = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo( + div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 ? [n1, d1] : [n0, d0]; + + MAX_EXP = exp; + + return r; + }; + + + /* + * Return the value of this BigNumber converted to a number primitive. + */ + P.toNumber = function () { + return +valueOf(this); + }; + + + /* + * Return a string representing the value of this BigNumber rounded to sd significant digits + * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits + * necessary to represent the integer part of the value in fixed-point notation, then use + * exponential notation. + * + * [sd] {number} Significant digits. Integer, 1 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.toPrecision = function (sd, rm) { + if (sd != null) intCheck(sd, 1, MAX); + return format(this, sd, rm, 2); + }; + + + /* + * Return a string representing the value of this BigNumber in base b, or base 10 if b is + * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and + * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent + * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than + * TO_EXP_NEG, return exponential notation. + * + * [b] {number} Integer, 2 to ALPHABET.length inclusive. + * + * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + */ + P.toString = function (b) { + var str, + n = this, + s = n.s, + e = n.e; + + // Infinity or NaN? + if (e === null) { + if (s) { + str = 'Infinity'; + if (s < 0) str = '-' + str; + } else { + str = 'NaN'; + } + } else { + if (b == null) { + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(coeffToString(n.c), e) + : toFixedPoint(coeffToString(n.c), e, '0'); + } else if (b === 10 && alphabetHasNormalDecimalDigits) { + n = round(new BigNumber(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE); + str = toFixedPoint(coeffToString(n.c), n.e, '0'); + } else { + intCheck(b, 2, ALPHABET.length, 'Base'); + str = convertBase(toFixedPoint(coeffToString(n.c), e, '0'), 10, b, s, true); + } + + if (s < 0 && n.c[0]) str = '-' + str; + } + + return str; + }; + + + /* + * Return as toString, but do not accept a base argument, and include the minus sign for + * negative zero. + */ + P.valueOf = P.toJSON = function () { + return valueOf(this); + }; + + + P._isBigNumber = true; + + if (configObject != null) BigNumber.set(configObject); + + return BigNumber; + } + + + // PRIVATE HELPER FUNCTIONS + + // These functions don't need access to variables, + // e.g. DECIMAL_PLACES, in the scope of the `clone` function above. + + + function bitFloor(n) { + var i = n | 0; + return n > 0 || n === i ? i : i - 1; + } + + + // Return a coefficient array as a string of base 10 digits. + function coeffToString(a) { + var s, z, + i = 1, + j = a.length, + r = a[0] + ''; + + for (; i < j;) { + s = a[i++] + ''; + z = LOG_BASE - s.length; + for (; z--; s = '0' + s); + r += s; + } + + // Determine trailing zeros. + for (j = r.length; r.charCodeAt(--j) === 48;); + + return r.slice(0, j + 1 || 1); + } + + + // Compare the value of BigNumbers x and y. + function compare(x, y) { + var a, b, + xc = x.c, + yc = y.c, + i = x.s, + j = y.s, + k = x.e, + l = y.e; + + // Either NaN? + if (!i || !j) return null; + + a = xc && !xc[0]; + b = yc && !yc[0]; + + // Either zero? + if (a || b) return a ? b ? 0 : -j : i; + + // Signs differ? + if (i != j) return i; + + a = i < 0; + b = k == l; + + // Either Infinity? + if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1; + + // Compare exponents. + if (!b) return k > l ^ a ? 1 : -1; + + j = (k = xc.length) < (l = yc.length) ? k : l; + + // Compare digit by digit. + for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1; + + // Compare lengths. + return k == l ? 0 : k > l ^ a ? 1 : -1; + } + + + /* + * Check that n is a primitive number, an integer, and in range, otherwise throw. + */ + function intCheck(n, min, max, name) { + if (n < min || n > max || n !== mathfloor(n)) { + throw Error + (bignumberError + (name || 'Argument') + (typeof n == 'number' + ? n < min || n > max ? ' out of range: ' : ' not an integer: ' + : ' not a primitive number: ') + String(n)); + } + } + + + // Assumes finite n. + function isOdd(n) { + var k = n.c.length - 1; + return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0; + } + + + function toExponential(str, e) { + return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + + (e < 0 ? 'e' : 'e+') + e; + } + + + function toFixedPoint(str, e, z) { + var len, zs; + + // Negative exponent? + if (e < 0) { + + // Prepend zeros. + for (zs = z + '.'; ++e; zs += z); + str = zs + str; + + // Positive exponent + } else { + len = str.length; + + // Append zeros. + if (++e > len) { + for (zs = z, e -= len; --e; zs += z); + str += zs; + } else if (e < len) { + str = str.slice(0, e) + '.' + str.slice(e); + } + } + + return str; + } + + + // EXPORT + + + BigNumber = clone(); + BigNumber['default'] = BigNumber.BigNumber = BigNumber; + + // AMD. + if (typeof define == 'function' && define.amd) { + define(function () { return BigNumber; }); + + // Node.js and other environments that support module.exports. + } else if ( true && module.exports) { + module.exports = BigNumber; + + // Browser. + } else { + if (!globalObject) { + globalObject = typeof self != 'undefined' && self ? self : window; + } + + globalObject.BigNumber = BigNumber; + } +})(this); + + +/***/ }), + +/***/ 428: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const debug_1 = __importDefault(__webpack_require__(4784)); +const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); +function parseProxyResponse(socket) { + return new Promise((resolve, reject) => { + // we need to buffer any HTTP traffic that happens with the proxy before we get + // the CONNECT response, so that if the response is anything other than an "200" + // response code, then we can re-play the "data" events on the socket once the + // HTTP parser is hooked up... + let buffersLength = 0; + const buffers = []; + function read() { + const b = socket.read(); + if (b) + ondata(b); + else + socket.once('readable', read); + } + function cleanup() { + socket.removeListener('end', onend); + socket.removeListener('error', onerror); + socket.removeListener('close', onclose); + socket.removeListener('readable', read); + } + function onclose(err) { + debug('onclose had error %o', err); + } + function onend() { + debug('onend'); + } + function onerror(err) { + cleanup(); + debug('onerror %o', err); + reject(err); + } + function ondata(b) { + buffers.push(b); + buffersLength += b.length; + const buffered = Buffer.concat(buffers, buffersLength); + const endOfHeaders = buffered.indexOf('\r\n\r\n'); + if (endOfHeaders === -1) { + // keep buffering + debug('have not received end of HTTP headers yet...'); + read(); + return; + } + const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); + const statusCode = +firstLine.split(' ')[1]; + debug('got proxy server response: %o', firstLine); + resolve({ + statusCode, + buffered + }); + } + socket.on('error', onerror); + socket.on('close', onclose); + socket.on('end', onend); + read(); + }); +} +exports.default = parseProxyResponse; +//# sourceMappingURL=parse-proxy-response.js.map + +/***/ }), + +/***/ 441: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.factchecktools_v1alpha1 = exports.auth = exports.factchecktools = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(5166); +Object.defineProperty(exports, "factchecktools_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.factchecktools_v1alpha1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.factchecktools_v1alpha1.Factchecktools, +}; +function factchecktools(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('factchecktools', versionOrOptions, exports.VERSIONS, this); +} +exports.factchecktools = factchecktools; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 454: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var bind = __webpack_require__(5739); + +module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); + + +/***/ }), + +/***/ 456: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.documentai_v1beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var documentai_v1beta3; +(function (documentai_v1beta3) { + /** + * Cloud Document AI API + * + * Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const documentai = google.documentai('v1beta3'); + * ``` + */ + class Documentai { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + documentai_v1beta3.Documentai = Documentai; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + documentai_v1beta3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.processors = new Resource$Projects$Locations$Processors(this.context); + this.processorTypes = new Resource$Projects$Locations$Processortypes(this.context); + } + fetchProcessorTypes(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/{+parent}:fetchProcessorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22597,25 +26584,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22628,11 +26615,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -22640,19 +26627,19 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; - class Resource$Projects$Locations$Agent$Entitytypes$Entities { + documentai_v1beta3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22665,25 +26652,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22696,25 +26683,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22727,78 +26714,67 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes$Entities = Resource$Projects$Locations$Agent$Entitytypes$Entities; - class Resource$Projects$Locations$Agent$Environments { + documentai_v1beta3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Processors { constructor(context) { this.context = context; - this.users = new Resource$Projects$Locations$Agent$Environments$Users(this.context); + this.humanReviewConfig = + new Resource$Projects$Locations$Processors$Humanreviewconfig(this.context); + this.processorVersions = + new Resource$Projects$Locations$Processors$Processorversions(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + batchProcess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments = Resource$Projects$Locations$Agent$Environments; - class Resource$Projects$Locations$Agent$Environments$Users { - constructor(context) { - this.context = context; - this.sessions = new Resource$Projects$Locations$Agent$Environments$Users$Sessions(this.context); - } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users = Resource$Projects$Locations$Agent$Environments$Users; - class Resource$Projects$Locations$Agent$Environments$Users$Sessions { - constructor(context) { - this.context = context; - this.contexts = new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts(this.context); - this.entityTypes = new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes(this.context); - } - deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22811,11 +26787,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -22823,13 +26799,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22842,31 +26818,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions = Resource$Projects$Locations$Agent$Environments$Users$Sessions; - class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22879,25 +26849,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -22910,11 +26880,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -22922,10 +26892,10 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -22941,10 +26911,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -22953,10 +26923,10 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -22972,10 +26942,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -22984,13 +26954,13 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -23003,11 +26973,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -23015,98 +26985,109 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts; - class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setDefaultProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+processor}:setDefaultProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['processor'], + pathParams: ['processor'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta3.Resource$Projects$Locations$Processors = Resource$Projects$Locations$Processors; + class Resource$Projects$Locations$Processors$Humanreviewconfig { + constructor(context) { + this.context = context; + } + reviewDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+humanReviewConfig}:reviewDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['humanReviewConfig'], + pathParams: ['humanReviewConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta3.Resource$Projects$Locations$Processors$Humanreviewconfig = Resource$Projects$Locations$Processors$Humanreviewconfig; + class Resource$Projects$Locations$Processors$Processorversions { + constructor(context) { + this.context = context; + this.evaluations = + new Resource$Projects$Locations$Processors$Processorversions$Evaluations(this.context); + } + batchProcess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -23114,61 +27095,63 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + deploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -23176,97 +27159,95 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes; - class Resource$Projects$Locations$Agent$Intents { - constructor(context) { - this.context = context; - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + evaluateProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+processorVersion}:evaluateProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['processorVersion'], + pathParams: ['processorVersion'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + importProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta3/{+parent}/processorVersions:importProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -23275,61 +27256,63 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+parent}/processorVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -23337,30 +27320,31 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + train(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+parent}/processorVersions:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -23368,30 +27352,31 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + undeploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -23399,89 +27384,89 @@ var dialogflow_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Intents = Resource$Projects$Locations$Agent$Intents; - class Resource$Projects$Locations$Agent$Sessions { + documentai_v1beta3.Resource$Projects$Locations$Processors$Processorversions = Resource$Projects$Locations$Processors$Processorversions; + class Resource$Projects$Locations$Processors$Processorversions$Evaluations { constructor(context) { this.context = context; - this.contexts = new Resource$Projects$Locations$Agent$Sessions$Contexts(this.context); - this.entityTypes = new Resource$Projects$Locations$Agent$Sessions$Entitytypes(this.context); } - deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions = Resource$Projects$Locations$Agent$Sessions; - class Resource$Projects$Locations$Agent$Sessions$Contexts { + documentai_v1beta3.Resource$Projects$Locations$Processors$Processorversions$Evaluations = Resource$Projects$Locations$Processors$Processorversions$Evaluations; + class Resource$Projects$Locations$Processortypes { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -23494,25 +27479,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -23525,25 +27510,129 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+parent}/processorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta3.Resource$Projects$Locations$Processortypes = Resource$Projects$Locations$Processortypes; +})(documentai_v1beta3 = exports.documentai_v1beta3 || (exports.documentai_v1beta3 = {})); + + +/***/ }), + +/***/ 458: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.memcache_v1beta2 = exports.memcache_v1 = exports.auth = exports.memcache = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8462); +Object.defineProperty(exports, "memcache_v1", { enumerable: true, get: function () { return v1_1.memcache_v1; } }); +const v1beta2_1 = __webpack_require__(9134); +Object.defineProperty(exports, "memcache_v1beta2", { enumerable: true, get: function () { return v1beta2_1.memcache_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.memcache_v1.Memcache, + v1beta2: v1beta2_1.memcache_v1beta2.Memcache, +}; +function memcache(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('memcache', versionOrOptions, exports.VERSIONS, this); +} +exports.memcache = memcache; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 460: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vault_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vault_v1; +(function (vault_v1) { + /** + * Google Vault API + * + * Retention and eDiscovery for Google Workspace. To work with Vault resources, the account must have the [required Vault privileges](https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege. For example, to download an export, an account needs the **Manage Exports** privilege and the matter shared with them. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vault = google.vault('v1'); + * ``` + */ + class Vault { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.matters = new Resource$Matters(this.context); + this.operations = new Resource$Operations(this.context); + } + } + vault_v1.Vault = Vault; + class Resource$Matters { + constructor(context) { + this.context = context; + this.exports = new Resource$Matters$Exports(this.context); + this.holds = new Resource$Matters$Holds(this.context); + this.savedQueries = new Resource$Matters$Savedqueries(this.context); + } + addPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -23556,27 +27645,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}:addPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + close(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23587,27 +27675,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + count(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23618,33 +27705,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/matters/{matterId}:count').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Contexts = Resource$Projects$Locations$Agent$Sessions$Contexts; - class Resource$Projects$Locations$Agent$Sessions$Entitytypes { - constructor(context) { - this.context = context; - } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23655,27 +27735,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23686,27 +27765,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23717,27 +27795,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23748,25 +27825,25 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + removePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -23779,33 +27856,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/matters/{matterId}:removePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Sessions$Entitytypes; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + reopen(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23816,27 +27886,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}:reopen').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23847,27 +27916,26 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -23878,31 +27946,31 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Operations { + vault_v1.Resource$Matters = Resource$Matters; + class Resource$Matters$Exports { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -23915,22 +27983,53 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId', 'exportId'], + pathParams: ['exportId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -23946,22 +28045,22 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId', 'exportId'], + pathParams: ['exportId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -23977,196 +28076,34 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2beta1.Resource$Projects$Operations = Resource$Projects$Operations; -})(dialogflow_v2beta1 = exports.dialogflow_v2beta1 || (exports.dialogflow_v2beta1 = {})); -//# sourceMappingURL=v2beta1.js.map - -/***/ }), -/* 81 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.abusiveexperiencereport = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(128); -exports.VERSIONS = { - v1: v1_1.abusiveexperiencereport_v1.Abusiveexperiencereport, -}; -function abusiveexperiencereport(versionOrOptions) { - return googleapis_common_1.getAPI('abusiveexperiencereport', versionOrOptions, exports.VERSIONS, this); -} -exports.abusiveexperiencereport = abusiveexperiencereport; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 82 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.dataproc = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(388); -const v1beta2_1 = __webpack_require__(523); -exports.VERSIONS = { - v1: v1_1.dataproc_v1.Dataproc, - v1beta2: v1beta2_1.dataproc_v1beta2.Dataproc, -}; -function dataproc(versionOrOptions) { - return googleapis_common_1.getAPI('dataproc', versionOrOptions, exports.VERSIONS, this); -} -exports.dataproc = dataproc; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 83 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudshell = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(309); -const v1alpha1_1 = __webpack_require__(424); -exports.VERSIONS = { - v1: v1_1.cloudshell_v1.Cloudshell, - v1alpha1: v1alpha1_1.cloudshell_v1alpha1.Cloudshell, -}; -function cloudshell(versionOrOptions) { - return googleapis_common_1.getAPI('cloudshell', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudshell = cloudshell; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 84 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.admin_datatransfer_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 = __webpack_require__(927); -var admin_datatransfer_v1; -(function (admin_datatransfer_v1) { - /** - * Admin Data Transfer API - * - * Transfers user data from one user to another. - * - * @example - * const {google} = require('googleapis'); - * const admin = google.admin('datatransfer_v1'); - * - * @namespace admin - * @type {Function} - * @version datatransfer_v1 - * @variation datatransfer_v1 - * @param {object=} options Options for Admin - */ - class Admin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.applications = new Resource$Applications(this.context); - this.transfers = new Resource$Transfers(this.context); - } - } - admin_datatransfer_v1.Admin = Admin; - class Resource$Applications { + vault_v1.Resource$Matters$Exports = Resource$Matters$Exports; + class Resource$Matters$Holds { constructor(context) { this.context = context; + this.accounts = new Resource$Matters$Holds$Accounts(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -24177,25 +28114,25 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24208,32 +28145,58 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_datatransfer_v1.Resource$Applications = Resource$Applications; - class Resource$Transfers { - 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://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -24244,26 +28207,27 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['dataTransferId'], - pathParams: ['dataTransferId'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -24274,26 +28238,27 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -24304,126 +28269,26 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_datatransfer_v1.Resource$Transfers = Resource$Transfers; -})(admin_datatransfer_v1 = exports.admin_datatransfer_v1 || (exports.admin_datatransfer_v1 = {})); -//# sourceMappingURL=datatransfer_v1.js.map - -/***/ }), -/* 85 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = withAuthorizationPrefix; - -const atob = __webpack_require__(368); - -const REGEX_IS_BASIC_AUTH = /^[\w-]+:/; - -function withAuthorizationPrefix(authorization) { - if (/^(basic|bearer|token) /i.test(authorization)) { - return authorization; - } - - try { - if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) { - return `basic ${authorization}`; - } - } catch (error) {} - - if (authorization.split(/\./).length === 3) { - return `bearer ${authorization}`; - } - - return `token ${authorization}`; -} - - -/***/ }), -/* 86 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.iap_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 = __webpack_require__(927); -var iap_v1; -(function (iap_v1) { - /** - * Cloud Identity-Aware Proxy API - * - * Controls access to cloud applications running on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const iap = google.iap('v1'); - * - * @namespace iap - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Iap - */ - class Iap { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - this.v1 = new Resource$V1(this.context); - } - } - iap_v1.Iap = Iap; - class Resource$Projects { - constructor(context) { - this.context = context; - this.brands = new Resource$Projects$Brands(this.context); - } - } - iap_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Brands { - constructor(context) { - this.context = context; - this.identityAwareProxyClients = new Resource$Projects$Brands$Identityawareproxyclients(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24436,25 +28301,31 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + vault_v1.Resource$Matters$Holds = Resource$Matters$Holds; + class Resource$Matters$Holds$Accounts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24467,25 +28338,25 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24498,31 +28369,26 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['matterId', 'holdId', 'accountId'], + pathParams: ['accountId', 'holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - iap_v1.Resource$Projects$Brands = Resource$Projects$Brands; - class Resource$Projects$Brands$Identityawareproxyclients { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24535,25 +28401,31 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + vault_v1.Resource$Matters$Holds$Accounts = Resource$Matters$Holds$Accounts; + class Resource$Matters$Savedqueries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24566,25 +28438,25 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24597,25 +28469,25 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId', 'savedQueryId'], + pathParams: ['matterId', 'savedQueryId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24628,25 +28500,25 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['matterId', 'savedQueryId'], + pathParams: ['matterId', 'savedQueryId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetSecret(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24659,32 +28531,33 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resetSecret').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - iap_v1.Resource$Projects$Brands$Identityawareproxyclients = Resource$Projects$Brands$Identityawareproxyclients; - class Resource$V1 { + vault_v1.Resource$Matters$Savedqueries = Resource$Matters$Savedqueries; + class Resource$Operations { constructor(context) { this.context = context; } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -24695,25 +28568,25 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIapSettings(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24726,11 +28599,11 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -24738,13 +28611,13 @@ var iap_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -24756,58 +28629,26 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.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); - } - } - 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://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateIapSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -24818,11 +28659,11 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -24830,25 +28671,20 @@ var iap_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - iap_v1.Resource$V1 = Resource$V1; -})(iap_v1 = exports.iap_v1 || (exports.iap_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 87 */ -/***/ (function(module) { + vault_v1.Resource$Operations = Resource$Operations; +})(vault_v1 = exports.vault_v1 || (exports.vault_v1 = {})); -module.exports = require("os"); /***/ }), -/* 88 */ + +/***/ 488: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -24866,7 +28702,7 @@ module.exports = require("os"); // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.run_v1beta1 = void 0; +exports.remotebuildexecution_v1alpha = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/class-name-casing */ /* eslint-disable @typescript-eslint/no-unused-vars */ @@ -24874,40 +28710,43 @@ exports.run_v1beta1 = void 0; /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = __webpack_require__(927); -var run_v1beta1; -(function (run_v1beta1) { +var remotebuildexecution_v1alpha; +(function (remotebuildexecution_v1alpha) { /** - * Cloud Run API + * Remote Build Execution API * - * Deploy and manage user provided container images that scale automatically based on HTTP traffic. + * Supplies a Remote Execution API service for tools such as bazel. * * @example + * ```js * const {google} = require('googleapis'); - * const run = google.run('v1beta1'); - * - * @namespace run - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Run + * const remotebuildexecution = google.remotebuildexecution('v1alpha'); + * ``` */ - class Run { + class Remotebuildexecution { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.customresourcedefinitions = new Resource$Customresourcedefinitions(this.context); - this.namespaces = new Resource$Namespaces(this.context); this.projects = new Resource$Projects(this.context); } } - run_v1beta1.Run = Run; - class Resource$Customresourcedefinitions { + remotebuildexecution_v1alpha.Remotebuildexecution = Remotebuildexecution; + class Resource$Projects { constructor(context) { this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + this.operations = new Resource$Projects$Operations(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + this.workerpools = new Resource$Projects$Instances$Workerpools(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24920,39 +28759,25 @@ var run_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1beta1.Resource$Customresourcedefinitions = Resource$Customresourcedefinitions; - class Resource$Namespaces { - constructor(context) { - this.context = context; - this.customresourcedefinitions = new Resource$Namespaces$Customresourcedefinitions(this.context); - } - } - run_v1beta1.Resource$Namespaces = Resource$Namespaces; - class Resource$Namespaces$Customresourcedefinitions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -24965,11 +28790,11 @@ var run_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/apiextensions.k8s.io/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -24977,32 +28802,12 @@ var run_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1beta1.Resource$Namespaces$Customresourcedefinitions = Resource$Namespaces$Customresourcedefinitions; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - run_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.customresourcedefinitions = new Resource$Projects$Locations$Customresourcedefinitions(this.context); - } - } - run_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Customresourcedefinitions { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -25016,10 +28821,10 @@ var run_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -25028,10 +28833,10 @@ var run_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -25047,10 +28852,10 @@ var run_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -25059,247 +28864,13 @@ var run_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - run_v1beta1.Resource$Projects$Locations$Customresourcedefinitions = Resource$Projects$Locations$Customresourcedefinitions; -})(run_v1beta1 = exports.run_v1beta1 || (exports.run_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 89 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _regex = _interopRequireDefault(__webpack_require__(429)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} - -var _default = validate; -exports.default = _default; - -/***/ }), -/* 90 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.accesscontextmanager = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(227); -const v1beta_1 = __webpack_require__(551); -exports.VERSIONS = { - v1: v1_1.accesscontextmanager_v1.Accesscontextmanager, - v1beta: v1beta_1.accesscontextmanager_v1beta.Accesscontextmanager, -}; -function accesscontextmanager(versionOrOptions) { - return googleapis_common_1.getAPI('accesscontextmanager', versionOrOptions, exports.VERSIONS, this); -} -exports.accesscontextmanager = accesscontextmanager; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 91 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.gameservices = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta_1 = __webpack_require__(364); -exports.VERSIONS = { - v1beta: v1beta_1.gameservices_v1beta.Gameservices, -}; -function gameservices(versionOrOptions) { - return googleapis_common_1.getAPI('gameservices', versionOrOptions, exports.VERSIONS, this); -} -exports.gameservices = gameservices; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 92 */, -/* 93 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudtasks = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(731); -const v2beta2_1 = __webpack_require__(802); -const v2beta3_1 = __webpack_require__(187); -exports.VERSIONS = { - v2: v2_1.cloudtasks_v2.Cloudtasks, - v2beta2: v2beta2_1.cloudtasks_v2beta2.Cloudtasks, - v2beta3: v2beta3_1.cloudtasks_v2beta3.Cloudtasks, -}; -function cloudtasks(versionOrOptions) { - return googleapis_common_1.getAPI('cloudtasks', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudtasks = cloudtasks; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 94 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.managedidentities_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 = __webpack_require__(927); -var managedidentities_v1; -(function (managedidentities_v1) { - /** - * Managed Service for Microsoft Active Directory API - * - * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). - * - * @example - * const {google} = require('googleapis'); - * const managedidentities = google.managedidentities('v1'); - * - * @namespace managedidentities - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Managedidentities - */ - class Managedidentities { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - managedidentities_v1.Managedidentities = Managedidentities; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - managedidentities_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.global = new Resource$Projects$Locations$Global(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://managedidentities.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25312,11 +28883,11 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -25324,57 +28895,18 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - managedidentities_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Global { - constructor(context) { - this.context = context; - this.domains = new Resource$Projects$Locations$Global$Domains(this.context); - this.operations = new Resource$Projects$Locations$Global$Operations(this.context); - } - } - managedidentities_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Domains { + remotebuildexecution_v1alpha.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Workerpools { constructor(context) { this.context = context; } - attachTrust(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://managedidentities.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:attachTrust').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); - } - } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -25388,10 +28920,10 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -25400,10 +28932,10 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -25419,10 +28951,10 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -25431,13 +28963,13 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachTrust(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25450,11 +28982,11 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -25462,13 +28994,13 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25481,25 +29013,25 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25512,25 +29044,31 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v1alpha.Resource$Projects$Instances$Workerpools = Resource$Projects$Instances$Workerpools; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25543,25 +29081,88 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v1alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(remotebuildexecution_v1alpha = exports.remotebuildexecution_v1alpha || (exports.remotebuildexecution_v1alpha = {})); + + +/***/ }), + +/***/ 509: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudresourcemanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudresourcemanager_v1; +(function (cloudresourcemanager_v1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v1'); + * ``` + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.liens = new Resource$Liens(this.context); + this.operations = new Resource$Operations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudresourcemanager_v1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Folders { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25574,25 +29175,25 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25605,25 +29206,25 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25636,41 +29237,42 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -25679,13 +29281,13 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25698,10 +29300,10 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -25710,13 +29312,13 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateTrust(paramsOrCallback, optionsOrCallback, callback) { + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -25729,33 +29331,32 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - managedidentities_v1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; - class Resource$Projects$Locations$Global$Operations { + cloudresourcemanager_v1.Resource$Folders = Resource$Folders; + class Resource$Liens { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -25766,27 +29367,26 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -25797,7 +29397,7 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -25809,15 +29409,14 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -25828,7 +29427,7 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -25840,15 +29439,14 @@ var managedidentities_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -25859,125 +29457,29 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - managedidentities_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; -})(managedidentities_v1 = exports.managedidentities_v1 || (exports.managedidentities_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 95 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.serviceusage = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(281); -const v1beta1_1 = __webpack_require__(952); -exports.VERSIONS = { - v1: v1_1.serviceusage_v1.Serviceusage, - v1beta1: v1beta1_1.serviceusage_v1beta1.Serviceusage, -}; -function serviceusage(versionOrOptions) { - return googleapis_common_1.getAPI('serviceusage', versionOrOptions, exports.VERSIONS, this); -} -exports.serviceusage = serviceusage; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 96 */, -/* 97 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.tagmanager_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 = __webpack_require__(927); -var tagmanager_v1; -(function (tagmanager_v1) { - /** - * Tag Manager API - * - * This API allows clients to access and modify container and tag configuration. - * - * @example - * const {google} = require('googleapis'); - * const tagmanager = google.tagmanager('v1'); - * - * @namespace tagmanager - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Tagmanager - */ - class Tagmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - } - } - tagmanager_v1.Tagmanager = Tagmanager; - class Resource$Accounts { + cloudresourcemanager_v1.Resource$Liens = Resource$Liens; + class Resource$Operations { constructor(context) { this.context = context; - this.containers = new Resource$Accounts$Containers(this.context); - this.permissions = new Resource$Accounts$Permissions(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -25991,26 +29493,33 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudresourcemanager_v1.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26021,26 +29530,27 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26051,39 +29561,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Containers { - constructor(context) { - this.context = context; - this.environments = new Resource$Accounts$Containers$Environments(this.context); - this.folders = new Resource$Accounts$Containers$Folders(this.context); - this.move_folders = new Resource$Accounts$Containers$Move_folders(this.context); - this.reauthorize_environments = new Resource$Accounts$Containers$Reauthorize_environments(this.context); - this.tags = new Resource$Accounts$Containers$Tags(this.context); - this.triggers = new Resource$Accounts$Containers$Triggers(this.context); - this.variables = new Resource$Accounts$Containers$Variables(this.context); - this.versions = new Resource$Accounts$Containers$Versions(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26096,25 +29592,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26127,26 +29623,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26159,57 +29654,57 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26222,32 +29717,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers = Resource$Accounts$Containers; - class Resource$Accounts$Containers$Environments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26260,26 +29748,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/organizations:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26292,26 +29779,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26324,26 +29810,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26356,26 +29841,31 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + cloudresourcemanager_v1.Resource$Organizations = Resource$Organizations; + class Resource$Projects { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26388,35 +29878,26 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; - class Resource$Accounts$Containers$Folders { - constructor(context) { - this.context = context; - this.entities = new Resource$Accounts$Containers$Folders$Entities(this.context); - } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26427,28 +29908,26 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26459,28 +29938,26 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26491,26 +29968,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getAncestry(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26523,26 +29999,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26555,32 +30030,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Folders = Resource$Accounts$Containers$Folders; - class Resource$Accounts$Containers$Folders$Entities { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26593,32 +30061,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Folders$Entities = Resource$Accounts$Containers$Folders$Entities; - class Resource$Accounts$Containers$Move_folders { - constructor(context) { - this.context = context; - } - update(paramsOrCallback, optionsOrCallback, callback) { + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26631,34 +30092,26 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Move_folders = Resource$Accounts$Containers$Move_folders; - class Resource$Accounts$Containers$Reauthorize_environments { - constructor(context) { - this.context = context; - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26669,64 +30122,57 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Reauthorize_environments = Resource$Accounts$Containers$Reauthorize_environments; - class Resource$Accounts$Containers$Tags { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26739,26 +30185,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'tagId'], - pathParams: ['accountId', 'containerId', 'tagId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26771,26 +30216,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'tagId'], - pathParams: ['accountId', 'containerId', 'tagId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26803,26 +30247,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26835,32 +30278,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'tagId'], - pathParams: ['accountId', 'containerId', 'tagId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Tags = Resource$Accounts$Containers$Tags; - class Resource$Accounts$Containers$Triggers { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26873,28 +30309,26 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26905,28 +30339,128 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['accountId', 'containerId', 'triggerId'], - pathParams: ['accountId', 'containerId', 'triggerId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1 = exports.cloudresourcemanager_v1 || (exports.cloudresourcemanager_v1 = {})); + + +/***/ }), + +/***/ 529: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.content_v2 = exports.content_v2_1 = exports.auth = exports.content = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1_1 = __webpack_require__(839); +Object.defineProperty(exports, "content_v2_1", { enumerable: true, get: function () { return v2_1_1.content_v2_1; } }); +const v2_1 = __webpack_require__(1446); +Object.defineProperty(exports, "content_v2", { enumerable: true, get: function () { return v2_1.content_v2; } }); +exports.VERSIONS = { + 'v2.1': v2_1_1.content_v2_1.Content, + v2: v2_1.content_v2.Content, +}; +function content(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('content', versionOrOptions, exports.VERSIONS, this); +} +exports.content = content; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 542: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datacatalog_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datacatalog_v1; +(function (datacatalog_v1) { + /** + * Google Cloud Data Catalog API + * + * A fully managed and highly scalable data discovery and metadata management service. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datacatalog = google.datacatalog('v1'); + * ``` + */ + class Datacatalog { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.catalog = new Resource$Catalog(this.context); + this.entries = new Resource$Entries(this.context); + this.projects = new Resource$Projects(this.context); + } + } + datacatalog_v1.Datacatalog = Datacatalog; + class Resource$Catalog { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26937,28 +30471,32 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'triggerId'], - pathParams: ['accountId', 'containerId', 'triggerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + datacatalog_v1.Resource$Catalog = Resource$Catalog; + class Resource$Entries { + constructor(context) { + this.context = context; + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -26969,26 +30507,50 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + datacatalog_v1.Resource$Entries = Resource$Entries; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datacatalog_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.entryGroups = new Resource$Projects$Locations$Entrygroups(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.tagTemplates = new Resource$Projects$Locations$Tagtemplates(this.context); + this.taxonomies = new Resource$Projects$Locations$Taxonomies(this.context); + } + } + datacatalog_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Entrygroups { + constructor(context) { + this.context = context; + this.entries = new Resource$Projects$Locations$Entrygroups$Entries(this.context); + this.tags = new Resource$Projects$Locations$Entrygroups$Tags(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27001,32 +30563,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'triggerId'], - pathParams: ['accountId', 'containerId', 'triggerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Triggers = Resource$Accounts$Containers$Triggers; - class Resource$Accounts$Containers$Variables { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27039,26 +30594,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27071,55 +30625,54 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'variableId'], - pathParams: ['accountId', 'containerId', 'variableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'variableId'], - pathParams: ['accountId', 'containerId', 'variableId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -27135,26 +30688,25 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27167,532 +30719,466 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'containerId', 'variableId'], - pathParams: ['accountId', 'containerId', 'variableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Variables = Resource$Accounts$Containers$Variables; - class Resource$Accounts$Containers$Versions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + datacatalog_v1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; + class Resource$Projects$Locations$Entrygroups$Entries { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entries:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; - class Resource$Accounts$Permissions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + modifyEntryContacts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:modifyEntryContacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + modifyEntryOverview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:modifyEntryOverview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'permissionId'], - pathParams: ['accountId', 'permissionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'permissionId'], - pathParams: ['accountId', 'permissionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + star(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:star').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'permissionId'], - pathParams: ['accountId', 'permissionId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v1.Resource$Accounts$Permissions = Resource$Accounts$Permissions; -})(tagmanager_v1 = exports.tagmanager_v1 || (exports.tagmanager_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 98 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.servicemanagement_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 = __webpack_require__(927); -var servicemanagement_v1; -(function (servicemanagement_v1) { - /** - * Service Management API - * - * Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers. - * - * @example - * const {google} = require('googleapis'); - * const servicemanagement = google.servicemanagement('v1'); - * - * @namespace servicemanagement - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Servicemanagement - */ - class Servicemanagement { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); - } - } - servicemanagement_v1.Servicemanagement = Servicemanagement; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + unstar(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:unstar').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -27700,233 +31186,249 @@ var servicemanagement_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datacatalog_v1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; + class Resource$Projects$Locations$Entrygroups$Entries$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicemanagement_v1.Resource$Operations = Resource$Operations; - class Resource$Services { - constructor(context) { - this.context = context; - this.configs = new Resource$Services$Configs(this.context); - this.consumers = new Resource$Services$Consumers(this.context); - this.rollouts = new Resource$Services$Rollouts(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + reconcile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tags:reconcile').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConfigReport(paramsOrCallback, optionsOrCallback, callback) { + } + datacatalog_v1.Resource$Projects$Locations$Entrygroups$Entries$Tags = Resource$Projects$Locations$Entrygroups$Entries$Tags; + class Resource$Projects$Locations$Entrygroups$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services:generateConfigReport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27939,57 +31441,65 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/config').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datacatalog_v1.Resource$Projects$Locations$Entrygroups$Tags = Resource$Projects$Locations$Entrygroups$Tags; + 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; @@ -28000,25 +31510,25 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28031,25 +31541,25 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28062,25 +31572,25 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28093,29 +31603,30 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicemanagement_v1.Resource$Services = Resource$Services; - class Resource$Services$Configs { + datacatalog_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Tagtemplates { constructor(context) { this.context = context; + this.fields = new Resource$Projects$Locations$Tagtemplates$Fields(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -28130,25 +31641,25 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28161,25 +31672,25 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['serviceName', 'configId'], - pathParams: ['configId', 'serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28192,62 +31703,57 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs:submit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicemanagement_v1.Resource$Services$Configs = Resource$Services$Configs; - class Resource$Services$Consumers { - constructor(context) { - this.context = context; - } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28260,22 +31766,22 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -28284,14 +31790,15 @@ var servicemanagement_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -28303,10 +31810,10 @@ var servicemanagement_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -28315,14 +31822,15 @@ var servicemanagement_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -28334,17 +31842,19 @@ var servicemanagement_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicemanagement_v1.Resource$Services$Consumers = Resource$Services$Consumers; - class Resource$Services$Rollouts { + datacatalog_v1.Resource$Projects$Locations$Tagtemplates = Resource$Projects$Locations$Tagtemplates; + class Resource$Projects$Locations$Tagtemplates$Fields { constructor(context) { this.context = context; + this.enumValues = + new Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -28352,226 +31862,176 @@ var servicemanagement_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/rollouts/{rolloutId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['serviceName', 'rolloutId'], - pathParams: ['rolloutId', 'serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicemanagement_v1.Resource$Services$Rollouts = Resource$Services$Rollouts; -})(servicemanagement_v1 = exports.servicemanagement_v1 || (exports.servicemanagement_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 99 */, -/* 100 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.calendar_v3 = 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 = __webpack_require__(927); -var calendar_v3; -(function (calendar_v3) { - /** - * Calendar API - * - * Manipulates events and other calendar data. - * - * @example - * const {google} = require('googleapis'); - * const calendar = google.calendar('v3'); - * - * @namespace calendar - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Calendar - */ - class Calendar { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.acl = new Resource$Acl(this.context); - this.calendarList = new Resource$Calendarlist(this.context); - this.calendars = new Resource$Calendars(this.context); - this.channels = new Resource$Channels(this.context); - this.colors = new Resource$Colors(this.context); - this.events = new Resource$Events(this.context); - this.freebusy = new Resource$Freebusy(this.context); - this.settings = new Resource$Settings(this.context); - } - } - calendar_v3.Calendar = Calendar; - class Resource$Acl { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + rename(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datacatalog_v1.Resource$Projects$Locations$Tagtemplates$Fields = Resource$Projects$Locations$Tagtemplates$Fields; + class Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues { + constructor(context) { + this.context = context; + } + rename(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datacatalog_v1.Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues = Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues; + class Resource$Projects$Locations$Taxonomies { + constructor(context) { + this.context = context; + this.policyTags = new Resource$Projects$Locations$Taxonomies$Policytags(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28582,26 +32042,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28612,26 +32073,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28642,26 +32104,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/taxonomies:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28672,61 +32135,57 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Acl = Resource$Acl; - class Resource$Calendarlist { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28739,26 +32198,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28769,25 +32229,25 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28800,25 +32260,25 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28831,346 +32291,410 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + } + datacatalog_v1.Resource$Projects$Locations$Taxonomies = Resource$Projects$Locations$Taxonomies; + class Resource$Projects$Locations$Taxonomies$Policytags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Calendarlist = Resource$Calendarlist; - class Resource$Calendars { - constructor(context) { - this.context = context; - } - clear(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/clear').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Calendars = Resource$Calendars; - class Resource$Channels { - constructor(context) { - this.context = context; - } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - calendar_v3.Resource$Channels = Resource$Channels; - class Resource$Colors { + datacatalog_v1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; +})(datacatalog_v1 = exports.datacatalog_v1 || (exports.datacatalog_v1 = {})); + + +/***/ }), + +/***/ 561: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.webfonts_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var webfonts_v1; +(function (webfonts_v1) { + /** + * Web Fonts Developer API + * + * The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const webfonts = google.webfonts('v1'); + * ``` + */ + class Webfonts { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.webfonts = new Resource$Webfonts(this.context); + } + } + webfonts_v1.Webfonts = Webfonts; + class Resource$Webfonts { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -29182,10 +32706,10 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webfonts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/colors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/webfonts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -29194,20 +32718,197 @@ var calendar_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - calendar_v3.Resource$Colors = Resource$Colors; - class Resource$Events { + webfonts_v1.Resource$Webfonts = Resource$Webfonts; +})(webfonts_v1 = exports.webfonts_v1 || (exports.webfonts_v1 = {})); + + +/***/ }), + +/***/ 600: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.pubsublite_v1 = exports.auth = exports.pubsublite = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(257); +Object.defineProperty(exports, "pubsublite_v1", { enumerable: true, get: function () { return v1_1.pubsublite_v1; } }); +exports.VERSIONS = { + v1: v1_1.pubsublite_v1.Pubsublite, +}; +function pubsublite(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('pubsublite', versionOrOptions, exports.VERSIONS, this); +} +exports.pubsublite = pubsublite; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 615: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudkms_v1 = exports.auth = exports.cloudkms = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4973); +Object.defineProperty(exports, "cloudkms_v1", { enumerable: true, get: function () { return v1_1.cloudkms_v1; } }); +exports.VERSIONS = { + v1: v1_1.cloudkms_v1.Cloudkms, +}; +function cloudkms(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudkms', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudkms = cloudkms; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 623: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.vault_v1 = exports.auth = exports.vault = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(460); +Object.defineProperty(exports, "vault_v1", { enumerable: true, get: function () { return v1_1.vault_v1; } }); +exports.VERSIONS = { + v1: v1_1.vault_v1.Vault, +}; +function vault(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('vault', versionOrOptions, exports.VERSIONS, this); +} +exports.vault = vault; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 644: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.containeranalysis_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var containeranalysis_v1beta1; +(function (containeranalysis_v1beta1) { + /** + * Container Analysis API + * + * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const containeranalysis = google.containeranalysis('v1beta1'); + * ``` + */ + class Containeranalysis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + containeranalysis_v1beta1.Containeranalysis = Containeranalysis; + class Resource$Projects { constructor(context) { this.context = context; + this.notes = new Resource$Projects$Notes(this.context); + this.occurrences = new Resource$Projects$Occurrences(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + containeranalysis_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29218,26 +32919,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29248,26 +32950,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29278,26 +32981,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29308,26 +33012,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29338,27 +33043,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/calendar/v3/calendars/{calendarId}/events/{eventId}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29369,26 +33074,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29399,27 +33105,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/calendar/v3/calendars/{calendarId}/events/{eventId}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['calendarId', 'eventId', 'destination'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29430,26 +33136,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - quickAdd(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29460,26 +33167,33 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/quickAdd').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId', 'text'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + containeranalysis_v1beta1.Resource$Projects$Notes = Resource$Projects$Notes; + class Resource$Projects$Notes$Occurrences { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29490,26 +33204,33 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + containeranalysis_v1beta1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; + class Resource$Projects$Occurrences { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29520,32 +33241,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Events = Resource$Events; - class Resource$Freebusy { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29556,32 +33272,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/freeBusy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Freebusy = Resource$Freebusy; - class Resource$Settings { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29592,26 +33303,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/settings/{setting}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['setting'], - pathParams: ['setting'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29622,26 +33334,27 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29652,89 +33365,25 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/settings/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Settings = Resource$Settings; -})(calendar_v3 = exports.calendar_v3 || (exports.calendar_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 101 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudtrace_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 = __webpack_require__(927); -var cloudtrace_v1; -(function (cloudtrace_v1) { - /** - * Cloud Trace API - * - * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus. - * - * @example - * const {google} = require('googleapis'); - * const cloudtrace = google.cloudtrace('v1'); - * - * @namespace cloudtrace - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudtrace - */ - class Cloudtrace { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudtrace_v1.Cloudtrace = Cloudtrace; - class Resource$Projects { - constructor(context) { - this.context = context; - this.traces = new Resource$Projects$Traces(this.context); - } - patchTraces(paramsOrCallback, optionsOrCallback, callback) { + getNotes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -29747,59 +33396,54 @@ var cloudtrace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtrace_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Traces { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/traces/{traceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'traceId'], - pathParams: ['projectId', 'traceId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -29815,311 +33459,210 @@ var cloudtrace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtrace_v1.Resource$Projects$Traces = Resource$Projects$Traces; -})(cloudtrace_v1 = exports.cloudtrace_v1 || (exports.cloudtrace_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 102 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var register = __webpack_require__(152) -var addHook = __webpack_require__(183) -var removeHook = __webpack_require__(176) - -// bind with array of arguments: https://stackoverflow.com/a/21792913 -var bind = Function.bind -var bindable = bind.bind(bind) - -function bindApi (hook, state, name) { - var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state]) - hook.api = { remove: removeHookRef } - hook.remove = removeHookRef - - ;['before', 'error', 'after', 'wrap'].forEach(function (kind) { - var args = name ? [state, kind, name] : [state, kind] - hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args) - }) -} - -function HookSingular () { - var singularHookName = 'h' - var singularHookState = { - registry: {} - } - var singularHook = register.bind(null, singularHookState, singularHookName) - bindApi(singularHook, singularHookState, singularHookName) - return singularHook -} - -function HookCollection () { - var state = { - registry: {} - } - - var hook = register.bind(null, state) - bindApi(hook, state) - - return hook -} - -var collectionHookDeprecationMessageDisplayed = false -function Hook () { - if (!collectionHookDeprecationMessageDisplayed) { - console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4') - collectionHookDeprecationMessageDisplayed = true - } - return HookCollection() -} - -Hook.Singular = HookSingular.bind() -Hook.Collection = HookCollection.bind() - -module.exports = Hook -// expose constructors as a named property for TypeScript -module.exports.Hook = Hook -module.exports.Singular = Hook.Singular -module.exports.Collection = Hook.Collection - - -/***/ }), -/* 103 */ -/***/ (function(__unusedmodule, exports) { - -"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.bigtableadmin_v1 = void 0; -var bigtableadmin_v1; -(function (bigtableadmin_v1) { - /** - * Cloud Bigtable Admin API - * - * Administer your Cloud Bigtable tables and instances. - * - * @example - * const {google} = require('googleapis'); - * const bigtableadmin = google.bigtableadmin('v1'); - * - * @namespace bigtableadmin - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Bigtableadmin - */ - class Bigtableadmin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - bigtableadmin_v1.Bigtableadmin = Bigtableadmin; -})(bigtableadmin_v1 = exports.bigtableadmin_v1 || (exports.bigtableadmin_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 104 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.groupsmigration = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(27); -exports.VERSIONS = { - v1: v1_1.groupsmigration_v1.Groupsmigration, -}; -function groupsmigration(versionOrOptions) { - return googleapis_common_1.getAPI('groupsmigration', versionOrOptions, exports.VERSIONS, this); -} -exports.groupsmigration = groupsmigration; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 105 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; + containeranalysis_v1beta1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; +})(containeranalysis_v1beta1 = exports.containeranalysis_v1beta1 || (exports.containeranalysis_v1beta1 = {})); -// Copyright 2014 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 }); -class IAMAuth { - /** - * IAM credentials. - * - * @param selector the iam authority selector - * @param token the token - * @constructor - */ - constructor(selector, token) { - this.selector = selector; - this.token = token; - this.selector = selector; - this.token = token; - } - /** - * Acquire the HTTP headers required to make an authenticated request. - */ - getRequestHeaders() { - return { - 'x-goog-iam-authority-selector': this.selector, - 'x-goog-iam-authorization-token': this.token, - }; - } -} -exports.IAMAuth = IAMAuth; -//# sourceMappingURL=iam.js.map /***/ }), -/* 106 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _validate = _interopRequireDefault(__webpack_require__(89)); +/***/ 662: +/***/ (function(module, __unusedexports, __webpack_require__) { -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/*global module*/ +var Buffer = __webpack_require__(4149).Buffer; +var DataStream = __webpack_require__(7032); +var jwa = __webpack_require__(1108); +var Stream = __webpack_require__(2413); +var toString = __webpack_require__(8975); +var util = __webpack_require__(1669); -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -const byteToHex = []; +function base64url(string, encoding) { + return Buffer + .from(string, encoding) + .toString('base64') + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).substr(1)); +function jwsSecuredInput(header, payload, encoding) { + encoding = encoding || 'utf8'; + var encodedHeader = base64url(toString(header), 'binary'); + var encodedPayload = base64url(toString(payload), encoding); + return util.format('%s.%s', encodedHeader, encodedPayload); } -function stringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields +function jwsSign(opts) { + var header = opts.header; + var payload = opts.payload; + var secretOrKey = opts.secret || opts.privateKey; + var encoding = opts.encoding; + var algo = jwa(header.alg); + var securedInput = jwsSecuredInput(header, payload, encoding); + var signature = algo.sign(securedInput, secretOrKey); + return util.format('%s.%s', securedInput, signature); +} - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } +function SignStream(opts) { + var secret = opts.secret||opts.privateKey||opts.key; + var secretStream = new DataStream(secret); + this.readable = true; + this.header = opts.header; + this.encoding = opts.encoding; + this.secret = this.privateKey = this.key = secretStream; + this.payload = new DataStream(opts.payload); + this.secret.once('close', function () { + if (!this.payload.writable && this.readable) + this.sign(); + }.bind(this)); - return uuid; + this.payload.once('close', function () { + if (!this.secret.writable && this.readable) + this.sign(); + }.bind(this)); } +util.inherits(SignStream, Stream); -var _default = stringify; -exports.default = _default; +SignStream.prototype.sign = function sign() { + try { + var signature = jwsSign({ + header: this.header, + payload: this.payload.buffer, + secret: this.secret.buffer, + encoding: this.encoding + }); + this.emit('done', signature); + this.emit('data', signature); + this.emit('end'); + this.readable = false; + return signature; + } catch (e) { + this.readable = false; + this.emit('error', e); + this.emit('close'); + } +}; -/***/ }), -/* 107 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +SignStream.sign = jwsSign; -"use strict"; +module.exports = SignStream; -// 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.auth = exports.cloudresourcemanager = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(509); -const v1beta1_1 = __webpack_require__(530); -const v2_1 = __webpack_require__(962); -const v2beta1_1 = __webpack_require__(656); -exports.VERSIONS = { - v1: v1_1.cloudresourcemanager_v1.Cloudresourcemanager, - v1beta1: v1beta1_1.cloudresourcemanager_v1beta1.Cloudresourcemanager, - v2: v2_1.cloudresourcemanager_v2.Cloudresourcemanager, - v2beta1: v2beta1_1.cloudresourcemanager_v2beta1.Cloudresourcemanager, -}; -function cloudresourcemanager(versionOrOptions) { - return googleapis_common_1.getAPI('cloudresourcemanager', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudresourcemanager = cloudresourcemanager; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 108 */, -/* 109 */, -/* 110 */ + +/***/ 719: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -30137,63 +33680,97 @@ exports.auth = auth; // 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; +exports.dfareporting_v3_5 = 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 = __webpack_require__(927); -var logging_v2; -(function (logging_v2) { +var dfareporting_v3_5; +(function (dfareporting_v3_5) { /** - * Cloud Logging API + * Campaign Manager 360 API * - * Writes log entries and manages your Cloud Logging configuration. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the documentation at https://cloud.google.com/logging/docs. + * Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360. * * @example + * ```js * const {google} = require('googleapis'); - * const logging = google.logging('v2'); - * - * @namespace logging - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Logging + * const dfareporting = google.dfareporting('v3.5'); + * ``` */ - class Logging { + class Dfareporting { 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.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); + this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); + this.accountPermissions = new Resource$Accountpermissions(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); + this.ads = new Resource$Ads(this.context); + this.advertiserGroups = new Resource$Advertisergroups(this.context); + this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); + this.advertisers = new Resource$Advertisers(this.context); + this.browsers = new Resource$Browsers(this.context); + this.campaignCreativeAssociations = + new Resource$Campaigncreativeassociations(this.context); + this.campaigns = new Resource$Campaigns(this.context); + this.changeLogs = new Resource$Changelogs(this.context); + this.cities = new Resource$Cities(this.context); + this.connectionTypes = new Resource$Connectiontypes(this.context); + this.contentCategories = new Resource$Contentcategories(this.context); + this.conversions = new Resource$Conversions(this.context); + this.countries = new Resource$Countries(this.context); + this.creativeAssets = new Resource$Creativeassets(this.context); + this.creativeFields = new Resource$Creativefields(this.context); + this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); + this.creativeGroups = new Resource$Creativegroups(this.context); + this.creatives = new Resource$Creatives(this.context); + this.dimensionValues = new Resource$Dimensionvalues(this.context); + this.directorySites = new Resource$Directorysites(this.context); + this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); + this.eventTags = new Resource$Eventtags(this.context); + this.files = new Resource$Files(this.context); + this.floodlightActivities = new Resource$Floodlightactivities(this.context); + this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); + this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); + this.inventoryItems = new Resource$Inventoryitems(this.context); + this.languages = new Resource$Languages(this.context); + this.metros = new Resource$Metros(this.context); + this.mobileApps = new Resource$Mobileapps(this.context); + this.mobileCarriers = new Resource$Mobilecarriers(this.context); + this.operatingSystems = new Resource$Operatingsystems(this.context); + this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); + this.orderDocuments = new Resource$Orderdocuments(this.context); + this.orders = new Resource$Orders(this.context); + this.placementGroups = new Resource$Placementgroups(this.context); + this.placements = new Resource$Placements(this.context); + this.placementStrategies = new Resource$Placementstrategies(this.context); + this.platformTypes = new Resource$Platformtypes(this.context); + this.postalCodes = new Resource$Postalcodes(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.sinks = new Resource$Billingaccounts$Sinks(this.context); + this.regions = new Resource$Regions(this.context); + this.remarketingLists = new Resource$Remarketinglists(this.context); + this.remarketingListShares = new Resource$Remarketinglistshares(this.context); + this.reports = new Resource$Reports(this.context); + this.sites = new Resource$Sites(this.context); + this.sizes = new Resource$Sizes(this.context); + this.subaccounts = new Resource$Subaccounts(this.context); + this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); + this.targetingTemplates = new Resource$Targetingtemplates(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); + this.userRolePermissions = new Resource$Userrolepermissions(this.context); + this.userRoles = new Resource$Userroles(this.context); + this.videoFormats = new Resource$Videoformats(this.context); } } - logging_v2.Resource$Billingaccounts = Resource$Billingaccounts; - class Resource$Billingaccounts$Buckets { + dfareporting_v3_5.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { constructor(context) { this.context = context; } @@ -30210,31 +33787,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Billingaccounts$Buckets = Resource$Billingaccounts$Buckets; - class Resource$Billingaccounts$Exclusions { + dfareporting_v3_5.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30247,25 +33825,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30278,24 +33857,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -30309,22 +33895,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -30340,27 +33927,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Accountpermissions = Resource$Accountpermissions; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30371,40 +33964,27 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); - } - } - logging_v2.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; - class Resource$Billingaccounts$Locations$Buckets { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30415,27 +33995,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30446,33 +34025,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts$Locations$Buckets = Resource$Billingaccounts$Locations$Buckets; - class Resource$Billingaccounts$Logs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30483,25 +34055,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30514,31 +34092,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts$Logs = Resource$Billingaccounts$Logs; - class Resource$Billingaccounts$Sinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30551,25 +34124,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30582,25 +34156,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30613,25 +34188,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30644,27 +34220,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30675,27 +34257,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30706,30 +34287,24 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts$Sinks = Resource$Billingaccounts$Sinks; - class Resource$Entries { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30742,25 +34317,25 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/entries:list').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -30772,33 +34347,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/entries:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30809,24 +34377,30 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -30840,26 +34414,28 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30870,26 +34446,28 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30900,26 +34478,28 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -30930,41 +34510,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); - } - } - logging_v2.Resource$Folders = Resource$Folders; - class Resource$Folders$Exclusions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30977,25 +34542,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31008,24 +34574,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserlandingpages { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -31039,25 +34612,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31070,25 +34644,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31101,38 +34676,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); - } - } - logging_v2.Resource$Folders$Locations = Resource$Folders$Locations; - class Resource$Folders$Locations$Buckets { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31145,25 +34708,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31176,27 +34740,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31207,31 +34777,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Folders$Locations$Buckets = Resource$Folders$Locations$Buckets; - class Resource$Folders$Logs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31244,27 +34809,27 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31275,31 +34840,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31312,25 +34872,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31343,27 +34904,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Advertisers = Resource$Advertisers; + class Resource$Browsers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31374,25 +34941,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31405,25 +34978,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31436,27 +35010,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31467,40 +35047,27 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); - } - } - logging_v2.Resource$Locations = Resource$Locations; - class Resource$Locations$Buckets { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31511,27 +35078,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31542,27 +35108,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31573,31 +35138,61 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Locations$Buckets = Resource$Locations$Buckets; - class Resource$Logs { + dfareporting_v3_5.Resource$Campaigns = Resource$Campaigns; + class Resource$Changelogs { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -31609,22 +35204,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -31639,33 +35235,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Logs = Resource$Logs; - class Resource$Monitoredresourcedescriptors { + dfareporting_v3_5.Resource$Changelogs = Resource$Changelogs; + class Resource$Cities { constructor(context) { this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -31676,35 +35271,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Monitoredresourcedescriptors = Resource$Monitoredresourcedescriptors; - class Resource$Organizations { + dfareporting_v3_5.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31717,25 +35308,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31748,31 +35340,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Exclusions { + dfareporting_v3_5.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31785,25 +35378,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31816,25 +35410,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31847,22 +35442,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -31878,22 +35474,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -31909,38 +35506,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); - } - } - logging_v2.Resource$Organizations$Locations = Resource$Organizations$Locations; - class Resource$Organizations$Locations$Buckets { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31953,25 +35538,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { + constructor(context) { + this.context = context; + } + batchinsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31984,25 +35576,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + batchupdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32015,33 +35608,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Organizations$Locations$Buckets = Resource$Organizations$Locations$Buckets; - class Resource$Organizations$Logs { + dfareporting_v3_5.Resource$Conversions = Resource$Conversions; + class Resource$Countries { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32052,27 +35645,27 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32083,31 +35676,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Organizations$Logs = Resource$Organizations$Logs; - class Resource$Organizations$Sinks { + dfareporting_v3_5.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32120,24 +35713,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + mediaUrl: (rootUrl + + '/upload/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -32151,22 +35753,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -32182,22 +35785,55 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -32213,22 +35849,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -32244,22 +35881,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -32275,42 +35913,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); - } - } - logging_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Exclusions { + dfareporting_v3_5.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32323,25 +35951,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32354,25 +35983,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32385,22 +36015,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -32416,22 +36047,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -32447,34 +36079,60 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - logging_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Buckets { + dfareporting_v3_5.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { constructor(context) { this.context = context; } @@ -32491,25 +36149,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32522,25 +36181,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32553,31 +36213,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Projects$Locations$Buckets = Resource$Projects$Locations$Buckets; - class Resource$Projects$Logs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32590,25 +36245,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32621,33 +36277,33 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Projects$Logs = Resource$Projects$Logs; - class Resource$Projects$Metrics { + dfareporting_v3_5.Resource$Creativegroups = Resource$Creativegroups; + class Resource$Creatives { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32658,27 +36314,27 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32689,27 +36345,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['metricName'], - pathParams: ['metricName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32720,27 +36375,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['metricName'], - pathParams: ['metricName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32751,27 +36405,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32782,31 +36435,31 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['metricName'], - pathParams: ['metricName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Projects$Metrics = Resource$Projects$Metrics; - class Resource$Projects$Sinks { + dfareporting_v3_5.Resource$Creatives = Resource$Creatives; + class Resource$Dimensionvalues { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32819,25 +36472,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32850,25 +36510,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32881,22 +36542,23 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -32912,25 +36574,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32943,25 +36612,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32974,31 +36644,64 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Projects$Sinks = Resource$Projects$Sinks; - class Resource$Sinks { + dfareporting_v3_5.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -33010,25 +36713,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -33040,25 +36744,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -33070,22 +36775,22 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -33100,22 +36805,52 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -33130,33 +36865,32 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$Sinks = Resource$Sinks; - class Resource$V2 { + dfareporting_v3_5.Resource$Eventtags = Resource$Eventtags; + class Resource$Files { constructor(context) { this.context = context; } - getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33167,27 +36901,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33198,89 +36931,27 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - logging_v2.Resource$V2 = Resource$V2; -})(logging_v2 = exports.logging_v2 || (exports.logging_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 111 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.storage_v1beta2 = 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 = __webpack_require__(927); -var storage_v1beta2; -(function (storage_v1beta2) { - /** - * Cloud Storage JSON API - * - * Lets you store and retrieve potentially-large, immutable data objects. - * - * @example - * const {google} = require('googleapis'); - * const storage = google.storage('v1beta2'); - * - * @namespace storage - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Storage - */ - class Storage { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context); - this.buckets = new Resource$Buckets(this.context); - this.channels = new Resource$Channels(this.context); - this.defaultObjectAccessControls = new Resource$Defaultobjectaccesscontrols(this.context); - this.objectAccessControls = new Resource$Objectaccesscontrols(this.context); - this.objects = new Resource$Objects(this.context); - } - } - storage_v1beta2.Storage = Storage; - class Resource$Bucketaccesscontrols { + dfareporting_v3_5.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { constructor(context) { this.context = context; } @@ -33297,25 +36968,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generatetag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33328,25 +37000,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33359,25 +37032,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33390,25 +37064,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33421,25 +37096,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33452,32 +37128,28 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1beta2.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; - class Resource$Buckets { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33488,26 +37160,34 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33518,26 +37198,28 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33548,26 +37230,28 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33578,26 +37262,28 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33608,26 +37294,28 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33638,32 +37326,34 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - storage_v1beta2.Resource$Buckets = Resource$Buckets; - class Resource$Channels { + dfareporting_v3_5.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { constructor(context) { this.context = context; } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33674,31 +37364,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1beta2.Resource$Channels = Resource$Channels; - class Resource$Defaultobjectaccesscontrols { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33711,25 +37396,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33742,25 +37428,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33773,25 +37460,32 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33804,25 +37498,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33835,27 +37530,33 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33866,33 +37567,32 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - storage_v1beta2.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; - class Resource$Objectaccesscontrols { + dfareporting_v3_5.Resource$Languages = Resource$Languages; + class Resource$Metros { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33903,24 +37603,97 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_5.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -33934,25 +37707,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33965,22 +37739,61 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_5.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -33996,25 +37809,32 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34027,25 +37847,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34058,31 +37879,102 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - storage_v1beta2.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; - class Resource$Objects { + dfareporting_v3_5.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { constructor(context) { this.context = context; } - compose(paramsOrCallback, optionsOrCallback, callback) { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_5.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -34094,26 +37986,26 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/storage/v1beta2/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['destinationBucket', 'destinationObject'], - pathParams: ['destinationBucket', 'destinationObject'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -34125,37 +38017,98 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/storage/v1beta2/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_5.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [ - 'sourceBucket', - 'sourceObject', - 'destinationBucket', - 'destinationObject', - ], - pathParams: [ - 'destinationBucket', - 'destinationObject', - 'sourceBucket', - 'sourceObject', - ], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34166,22 +38119,125 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_5.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { + constructor(context) { + this.context = context; + } + generatetags(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -34196,26 +38252,28 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34226,23 +38284,22 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -34257,22 +38314,22 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -34287,26 +38344,27 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34317,26 +38375,33 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watchAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dfareporting_v3_5.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34347,89 +38412,192 @@ var storage_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1beta2.Resource$Objects = Resource$Objects; -})(storage_v1beta2 = exports.storage_v1beta2 || (exports.storage_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 112 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.serviceconsumermanagement_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 = __webpack_require__(927); -var serviceconsumermanagement_v1; -(function (serviceconsumermanagement_v1) { - /** - * Service Consumer Management API - * - * Manages the service consumers of a Service Infrastructure service. - * - * @example - * const {google} = require('googleapis'); - * const serviceconsumermanagement = google.serviceconsumermanagement('v1'); - * - * @namespace serviceconsumermanagement - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Serviceconsumermanagement - */ - class Serviceconsumermanagement { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - serviceconsumermanagement_v1.Serviceconsumermanagement = Serviceconsumermanagement; - class Resource$Operations { + dfareporting_v3_5.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34442,25 +38610,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34473,24 +38642,31 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34503,22 +38679,23 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -34533,32 +38710,32 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - serviceconsumermanagement_v1.Resource$Operations = Resource$Operations; - class Resource$Services { + dfareporting_v3_5.Resource$Postalcodes = Resource$Postalcodes; + class Resource$Projects { constructor(context) { this.context = context; - this.tenancyUnits = new Resource$Services$Tenancyunits(this.context); } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -34570,33 +38747,63 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - serviceconsumermanagement_v1.Resource$Services = Resource$Services; - class Resource$Services$Tenancyunits { + dfareporting_v3_5.Resource$Projects = Resource$Projects; + class Resource$Regions { constructor(context) { this.context = context; } - addProject(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34607,25 +38814,31 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:addProject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34638,25 +38851,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:applyProjectConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachProject(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34669,25 +38883,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:attachProject').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34700,25 +38915,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34731,25 +38947,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteProject(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34762,25 +38979,32 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deleteProject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34793,25 +39017,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeProject(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34824,25 +39049,26 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:removeProject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undeleteProject(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34855,89 +39081,34 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undeleteProject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - serviceconsumermanagement_v1.Resource$Services$Tenancyunits = Resource$Services$Tenancyunits; -})(serviceconsumermanagement_v1 = exports.serviceconsumermanagement_v1 || (exports.serviceconsumermanagement_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 113 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.libraryagent_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 = __webpack_require__(927); -var libraryagent_v1; -(function (libraryagent_v1) { - /** - * Library Agent API - * - * A simple Google Example Library API. - * - * @example - * const {google} = require('googleapis'); - * const libraryagent = google.libraryagent('v1'); - * - * @namespace libraryagent - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Libraryagent - */ - class Libraryagent { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.shelves = new Resource$Shelves(this.context); - } - } - libraryagent_v1.Libraryagent = Libraryagent; - class Resource$Shelves { + dfareporting_v3_5.Resource$Remarketinglistshares = Resource$Remarketinglistshares; + class Resource$Reports { constructor(context) { this.context = context; - this.books = new Resource$Shelves$Books(this.context); + this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); + this.files = new Resource$Reports$Files(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -34949,25 +39120,26 @@ var libraryagent_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -34979,33 +39151,27 @@ var libraryagent_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/shelves').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - libraryagent_v1.Resource$Shelves = Resource$Shelves; - class Resource$Shelves$Books { - constructor(context) { - this.context = context; - } - borrow(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -35016,27 +39182,26 @@ var libraryagent_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:borrow').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -35047,27 +39212,26 @@ var libraryagent_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -35078,27 +39242,27 @@ var libraryagent_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/books').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - return(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -35109,1336 +39273,657 @@ var libraryagent_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:return').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - libraryagent_v1.Resource$Shelves$Books = Resource$Shelves$Books; -})(libraryagent_v1 = exports.libraryagent_v1 || (exports.libraryagent_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 114 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * A javascript implementation of a cryptographically-secure - * Pseudo Random Number Generator (PRNG). The Fortuna algorithm is followed - * here though the use of SHA-256 is not enforced; when generating an - * a PRNG context, the hashing algorithm and block cipher used for - * the generator are specified via a plugin. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); - -var _crypto = null; -if(forge.util.isNodejs && !forge.options.usePureJavaScript && - !process.versions['node-webkit']) { - _crypto = __webpack_require__(417); -} - -/* PRNG API */ -var prng = module.exports = forge.prng = forge.prng || {}; - -/** - * Creates a new PRNG context. - * - * A PRNG plugin must be passed in that will provide: - * - * 1. A function that initializes the key and seed of a PRNG context. It - * will be given a 16 byte key and a 16 byte seed. Any key expansion - * or transformation of the seed from a byte string into an array of - * integers (or similar) should be performed. - * 2. The cryptographic function used by the generator. It takes a key and - * a seed. - * 3. A seed increment function. It takes the seed and returns seed + 1. - * 4. An api to create a message digest. - * - * For an example, see random.js. - * - * @param plugin the PRNG plugin to use. - */ -prng.create = function(plugin) { - var ctx = { - plugin: plugin, - key: null, - seed: null, - time: null, - // number of reseeds so far - reseeds: 0, - // amount of data generated so far - generated: 0, - // no initial key bytes - keyBytes: '' - }; - - // create 32 entropy pools (each is a message digest) - var md = plugin.md; - var pools = new Array(32); - for(var i = 0; i < 32; ++i) { - pools[i] = md.create(); - } - ctx.pools = pools; - - // entropy pools are written to cyclically, starting at index 0 - ctx.pool = 0; - - /** - * Generates random bytes. The bytes may be generated synchronously or - * asynchronously. Web workers must use the asynchronous interface or - * else the behavior is undefined. - * - * @param count the number of random bytes to generate. - * @param [callback(err, bytes)] called once the operation completes. - * - * @return count random bytes as a string. - */ - ctx.generate = function(count, callback) { - // do synchronously - if(!callback) { - return ctx.generateSync(count); - } - - // simple generator using counter-based CBC - var cipher = ctx.plugin.cipher; - var increment = ctx.plugin.increment; - var formatKey = ctx.plugin.formatKey; - var formatSeed = ctx.plugin.formatSeed; - var b = forge.util.createBuffer(); - - // paranoid deviation from Fortuna: - // reset key for every request to protect previously - // generated random bytes should the key be discovered; - // there is no 100ms based reseeding because of this - // forced reseed for every `generate` call - ctx.key = null; - - generate(); - - function generate(err) { - if(err) { - return callback(err); - } - - // sufficient bytes generated - if(b.length() >= count) { - return callback(null, b.getBytes(count)); - } - - // if amount of data generated is greater than 1 MiB, trigger reseed - if(ctx.generated > 0xfffff) { - ctx.key = null; - } - - if(ctx.key === null) { - // prevent stack overflow - return forge.util.nextTick(function() { - _reseed(generate); - }); - } - - // generate the random bytes - var bytes = cipher(ctx.key, ctx.seed); - ctx.generated += bytes.length; - b.putBytes(bytes); - - // generate bytes for a new key and seed - ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); - ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); - - forge.util.setImmediate(generate); - } - }; - - /** - * Generates random bytes synchronously. - * - * @param count the number of random bytes to generate. - * - * @return count random bytes as a string. - */ - ctx.generateSync = function(count) { - // simple generator using counter-based CBC - var cipher = ctx.plugin.cipher; - var increment = ctx.plugin.increment; - var formatKey = ctx.plugin.formatKey; - var formatSeed = ctx.plugin.formatSeed; - - // paranoid deviation from Fortuna: - // reset key for every request to protect previously - // generated random bytes should the key be discovered; - // there is no 100ms based reseeding because of this - // forced reseed for every `generateSync` call - ctx.key = null; - - var b = forge.util.createBuffer(); - while(b.length() < count) { - // if amount of data generated is greater than 1 MiB, trigger reseed - if(ctx.generated > 0xfffff) { - ctx.key = null; - } - - if(ctx.key === null) { - _reseedSync(); - } - - // generate the random bytes - var bytes = cipher(ctx.key, ctx.seed); - ctx.generated += bytes.length; - b.putBytes(bytes); - - // generate bytes for a new key and seed - ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); - ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); - } - - return b.getBytes(count); - }; - - /** - * Private function that asynchronously reseeds a generator. - * - * @param callback(err) called once the operation completes. - */ - function _reseed(callback) { - if(ctx.pools[0].messageLength >= 32) { - _seed(); - return callback(); - } - // not enough seed data... - var needed = (32 - ctx.pools[0].messageLength) << 5; - ctx.seedFile(needed, function(err, bytes) { - if(err) { - return callback(err); - } - ctx.collect(bytes); - _seed(); - callback(); - }); - } - - /** - * Private function that synchronously reseeds a generator. - */ - function _reseedSync() { - if(ctx.pools[0].messageLength >= 32) { - return _seed(); - } - // not enough seed data... - var needed = (32 - ctx.pools[0].messageLength) << 5; - ctx.collect(ctx.seedFileSync(needed)); - _seed(); - } - - /** - * Private function that seeds a generator once enough bytes are available. - */ - function _seed() { - // update reseed count - ctx.reseeds = (ctx.reseeds === 0xffffffff) ? 0 : ctx.reseeds + 1; - - // goal is to update `key` via: - // key = hash(key + s) - // where 's' is all collected entropy from selected pools, then... - - // create a plugin-based message digest - var md = ctx.plugin.md.create(); - - // consume current key bytes - md.update(ctx.keyBytes); - - // digest the entropy of pools whose index k meet the - // condition 'n mod 2^k == 0' where n is the number of reseeds - var _2powK = 1; - for(var k = 0; k < 32; ++k) { - if(ctx.reseeds % _2powK === 0) { - md.update(ctx.pools[k].digest().getBytes()); - ctx.pools[k].start(); - } - _2powK = _2powK << 1; - } - - // get digest for key bytes - ctx.keyBytes = md.digest().getBytes(); - - // paranoid deviation from Fortuna: - // update `seed` via `seed = hash(key)` - // instead of initializing to zero once and only - // ever incrementing it - md.start(); - md.update(ctx.keyBytes); - var seedBytes = md.digest().getBytes(); - - // update state - ctx.key = ctx.plugin.formatKey(ctx.keyBytes); - ctx.seed = ctx.plugin.formatSeed(seedBytes); - ctx.generated = 0; - } - - /** - * The built-in default seedFile. This seedFile is used when entropy - * is needed immediately. - * - * @param needed the number of bytes that are needed. - * - * @return the random bytes. - */ - function defaultSeedFile(needed) { - // use window.crypto.getRandomValues strong source of entropy if available - var getRandomValues = null; - var globalScope = forge.util.globalScope; - var _crypto = globalScope.crypto || globalScope.msCrypto; - if(_crypto && _crypto.getRandomValues) { - getRandomValues = function(arr) { - return _crypto.getRandomValues(arr); - }; - } - - var b = forge.util.createBuffer(); - if(getRandomValues) { - while(b.length() < needed) { - // max byte length is 65536 before QuotaExceededError is thrown - // http://www.w3.org/TR/WebCryptoAPI/#RandomSource-method-getRandomValues - var count = Math.max(1, Math.min(needed - b.length(), 65536) / 4); - var entropy = new Uint32Array(Math.floor(count)); - try { - getRandomValues(entropy); - for(var i = 0; i < entropy.length; ++i) { - b.putInt32(entropy[i]); - } - } catch(e) { - /* only ignore QuotaExceededError */ - if(!(typeof QuotaExceededError !== 'undefined' && - e instanceof QuotaExceededError)) { - throw e; - } - } - } - } - - // be sad and add some weak random data - if(b.length() < needed) { - /* Draws from Park-Miller "minimal standard" 31 bit PRNG, - implemented with David G. Carta's optimization: with 32 bit math - and without division (Public Domain). */ - var hi, lo, next; - var seed = Math.floor(Math.random() * 0x010000); - while(b.length() < needed) { - lo = 16807 * (seed & 0xFFFF); - hi = 16807 * (seed >> 16); - lo += (hi & 0x7FFF) << 16; - lo += hi >> 15; - lo = (lo & 0x7FFFFFFF) + (lo >> 31); - seed = lo & 0xFFFFFFFF; - - // consume lower 3 bytes of seed - for(var i = 0; i < 3; ++i) { - // throw in more pseudo random - next = seed >>> (i << 3); - next ^= Math.floor(Math.random() * 0x0100); - b.putByte(String.fromCharCode(next & 0xFF)); - } - } - } - - return b.getBytes(needed); - } - // initialize seed file APIs - if(_crypto) { - // use nodejs async API - ctx.seedFile = function(needed, callback) { - _crypto.randomBytes(needed, function(err, bytes) { - if(err) { - return callback(err); - } - callback(null, bytes.toString()); - }); - }; - // use nodejs sync API - ctx.seedFileSync = function(needed) { - return _crypto.randomBytes(needed).toString(); - }; - } else { - ctx.seedFile = function(needed, callback) { - try { - callback(null, defaultSeedFile(needed)); - } catch(e) { - callback(e); - } - }; - ctx.seedFileSync = defaultSeedFile; - } - - /** - * Adds entropy to a prng ctx's accumulator. - * - * @param bytes the bytes of entropy as a string. - */ - ctx.collect = function(bytes) { - // iterate over pools distributing entropy cyclically - var count = bytes.length; - for(var i = 0; i < count; ++i) { - ctx.pools[ctx.pool].update(bytes.substr(i, 1)); - ctx.pool = (ctx.pool === 31) ? 0 : ctx.pool + 1; - } - }; - - /** - * Collects an integer of n bits. - * - * @param i the integer entropy. - * @param n the number of bits in the integer. - */ - ctx.collectInt = function(i, n) { - var bytes = ''; - for(var x = 0; x < n; x += 8) { - bytes += String.fromCharCode((i >> x) & 0xFF); - } - ctx.collect(bytes); - }; - - /** - * Registers a Web Worker to receive immediate entropy from the main thread. - * This method is required until Web Workers can access the native crypto - * API. This method should be called twice for each created worker, once in - * the main thread, and once in the worker itself. - * - * @param worker the worker to register. - */ - ctx.registerWorker = function(worker) { - // worker receives random bytes - if(worker === self) { - ctx.seedFile = function(needed, callback) { - function listener(e) { - var data = e.data; - if(data.forge && data.forge.prng) { - self.removeEventListener('message', listener); - callback(data.forge.prng.err, data.forge.prng.bytes); - } + dfareporting_v3_5.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { + constructor(context) { + this.context = context; } - self.addEventListener('message', listener); - self.postMessage({forge: {prng: {needed: needed}}}); - }; - } else { - // main thread sends random bytes upon request - var listener = function(e) { - var data = e.data; - if(data.forge && data.forge.prng) { - ctx.seedFile(data.forge.prng.needed, function(err, bytes) { - worker.postMessage({forge: {prng: {err: err, bytes: bytes}}}); - }); + query(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }; - // TODO: do we need to remove the event listener when the worker dies? - worker.addEventListener('message', listener); - } - }; - - return ctx; -}; - - -/***/ }), -/* 115 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2019 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 }); -const child_process_1 = __webpack_require__(129); -const fs = __webpack_require__(747); -const gcpMetadata = __webpack_require__(479); -const os = __webpack_require__(87); -const path = __webpack_require__(622); -const crypto_1 = __webpack_require__(984); -const transporters_1 = __webpack_require__(974); -const computeclient_1 = __webpack_require__(310); -const idtokenclient_1 = __webpack_require__(331); -const envDetect_1 = __webpack_require__(26); -const jwtclient_1 = __webpack_require__(484); -const refreshclient_1 = __webpack_require__(846); -exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; -class GoogleAuth { - constructor(opts) { - /** - * Caches a value indicating whether the auth layer is running on Google - * Compute Engine. - * @private - */ - this.checkIsGCE = undefined; - // To save the contents of the JSON credential file - this.jsonContent = null; - this.cachedCredential = null; - opts = opts || {}; - this._cachedProjectId = opts.projectId || null; - this.keyFilename = opts.keyFilename || opts.keyFile; - this.scopes = opts.scopes; - this.jsonContent = opts.credentials || null; - this.clientOptions = opts.clientOptions; - } - // Note: this properly is only public to satisify unit tests. - // https://github.com/Microsoft/TypeScript/issues/5228 - get isGCE() { - return this.checkIsGCE; } - getProjectId(callback) { - if (callback) { - this.getProjectIdAsync().then(r => callback(null, r), callback); + dfareporting_v3_5.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + constructor(context) { + this.context = context; } - else { - return this.getProjectIdAsync(); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - getProjectIdAsync() { - if (this._cachedProjectId) { - return Promise.resolve(this._cachedProjectId); - } - // In implicit case, supports three environments. In order of precedence, - // the implicit environments are: - // - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable - // - GOOGLE_APPLICATION_CREDENTIALS JSON file - // - Cloud SDK: `gcloud config config-helper --format json` - // - GCE project ID from metadata server) - if (!this._getDefaultProjectIdPromise) { - // TODO: refactor the below code so that it doesn't mix and match - // promises and async/await. - this._getDefaultProjectIdPromise = new Promise( - // eslint-disable-next-line no-async-promise-executor - async (resolve, reject) => { - try { - const projectId = this.getProductionProjectId() || - (await this.getFileProjectId()) || - (await this.getDefaultServiceProjectId()) || - (await this.getGCEProjectId()); - this._cachedProjectId = projectId; - if (!projectId) { - throw new Error('Unable to detect a Project Id in the current environment. \n' + - 'To learn more about authentication and Google APIs, visit: \n' + - 'https://cloud.google.com/docs/authentication/getting-started'); - } - resolve(projectId); - } - catch (e) { - reject(e); - } - }); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - return this._getDefaultProjectIdPromise; } - getApplicationDefault(optionsOrCallback = {}, callback) { - let options; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - } - else { - options = optionsOrCallback; - } - if (callback) { - this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); - } - else { - return this.getApplicationDefaultAsync(options); + dfareporting_v3_5.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { + constructor(context) { + this.context = context; } - } - async getApplicationDefaultAsync(options = {}) { - // If we've already got a cached credential, just return it. - if (this.cachedCredential) { - return { - credential: this.cachedCredential, - projectId: await this.getProjectIdAsync(), + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, }; - } - let credential; - let projectId; - // Check for the existence of a local environment variable pointing to the - // location of the credential file. This is typically used in local - // developer scenarios. - credential = await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - this.cachedCredential = credential; - projectId = await this.getProjectId(); - return { credential, projectId }; } - // Look in the well-known credential file location. - credential = await this._tryGetApplicationCredentialsFromWellKnownFile(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - this.cachedCredential = credential; - projectId = await this.getProjectId(); - return { credential, projectId }; } - // Determine if we're running on GCE. - let isGCE; - try { - isGCE = await this._checkIsGCE(); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - catch (e) { - e.message = `Unexpected error determining execution environment: ${e.message}`; - throw e; + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (!isGCE) { - // We failed to find the default credentials. Bail out with an error. - throw new Error('Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.'); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - // For GCE, just return a default ComputeClient. It will take care of - // the rest. - options.scopes = this.scopes; - this.cachedCredential = new computeclient_1.Compute(options); - projectId = await this.getProjectId(); - return { projectId, credential: this.cachedCredential }; } - /** - * Determines whether the auth layer is running on Google Compute Engine. - * @returns A promise that resolves with the boolean. - * @api private - */ - async _checkIsGCE() { - if (this.checkIsGCE === undefined) { - this.checkIsGCE = await gcpMetadata.isAvailable(); + dfareporting_v3_5.Resource$Sites = Resource$Sites; + class Resource$Sizes { + constructor(context) { + this.context = context; } - return this.checkIsGCE; - } - /** - * Attempts to load default credentials from the environment variable path.. - * @returns Promise that resolves with the OAuth2Client or null. - * @api private - */ - async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { - const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || - process.env['google_application_credentials']; - if (!credentialsPath || credentialsPath.length === 0) { - return null; + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - try { - return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - catch (e) { - e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; - throw e; + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - /** - * Attempts to load default credentials from a well-known file location - * @return Promise that resolves with the OAuth2Client or null. - * @api private - */ - async _tryGetApplicationCredentialsFromWellKnownFile(options) { - // First, figure out the location of the file, depending upon the OS type. - let location = null; - if (this._isWindows()) { - // Windows - location = process.env['APPDATA']; + dfareporting_v3_5.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { + constructor(context) { + this.context = context; } - else { - // Linux or Mac - const home = process.env['HOME']; - if (home) { - location = path.join(home, '.config'); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - // If we found the root path, expand it. - if (location) { - location = path.join(location, 'gcloud', 'application_default_credentials.json'); - if (!fs.existsSync(location)) { - location = null; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - // The file does not exist. - if (!location) { - return null; + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - // The file seems to exist. Try to use it. - const client = await this._getApplicationCredentialsFromFilePath(location, options); - return client; - } - /** - * Attempts to load default credentials from a file at the given path.. - * @param filePath The path to the file to read. - * @returns Promise that resolves with the OAuth2Client - * @api private - */ - async _getApplicationCredentialsFromFilePath(filePath, options = {}) { - // Make sure the path looks like a string. - if (!filePath || filePath.length === 0) { - throw new Error('The file path is invalid.'); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - filePath = fs.realpathSync(filePath); - if (!fs.lstatSync(filePath).isFile()) { - throw new Error(); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - catch (err) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; - throw err; + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - // Now open a read stream on the file, and parse it. - const readStream = fs.createReadStream(filePath); - return this.fromStream(readStream, options); } - /** - * Create a credentials instance using the given input options. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data - */ - fromJSON(json, options) { - let client; - if (!json) { - throw new Error('Must pass in a JSON object containing the Google auth settings.'); - } - options = options || {}; - if (json.type === 'authorized_user') { - client = new refreshclient_1.UserRefreshClient(options); - } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); + dfareporting_v3_5.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + constructor(context) { + this.context = context; } - client.fromJSON(json); - return client; - } - /** - * Return a JWT or UserRefreshClient from JavaScript object, caching both the - * object used to instantiate and the client. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data - */ - _cacheClientFromJSON(json, options) { - let client; - // create either a UserRefreshClient or JWT client. - options = options || {}; - if (json.type === 'authorized_user') { - client = new refreshclient_1.UserRefreshClient(options); - } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - } - client.fromJSON(json); - // cache both raw data used to instantiate client and client itself. - this.jsonContent = json; - this.cachedCredential = client; - return this.cachedCredential; - } - fromStream(inputStream, optionsOrCallback = {}, callback) { - let options = {}; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - } - else { - options = optionsOrCallback; - } - if (callback) { - this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); - } - else { - return this.fromStreamAsync(inputStream, options); - } - } - fromStreamAsync(inputStream, options) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the Google auth settings.'); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - const r = this._cacheClientFromJSON(data, options); - return resolve(r); - } - catch (err) { - return reject(err); - } - }); - }); - } - /** - * Create a credentials instance using the given API key string. - * @param apiKey The API key string - * @param options An optional options object. - * @returns A JWT loaded from the key - */ - fromAPIKey(apiKey, options) { - options = options || {}; - const client = new jwtclient_1.JWT(options); - client.fromAPIKey(apiKey); - return client; - } - /** - * Determines whether the current operating system is Windows. - * @api private - */ - _isWindows() { - const sys = os.platform(); - if (sys && sys.length >= 3) { - if (sys.substring(0, 3).toLowerCase() === 'win') { - return true; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - return false; - } - /** - * Run the Google Cloud SDK command that prints the default project ID - */ - async getDefaultServiceProjectId() { - return new Promise(resolve => { - child_process_1.exec('gcloud config config-helper --format json', (err, stdout, stderr) => { - if (!err && stdout) { - try { - const projectId = JSON.parse(stdout).configuration.properties.core - .project; - resolve(projectId); - return; - } - catch (e) { - // ignore errors - } - } - resolve(null); - }); - }); - } - /** - * Loads the project id from environment variables. - * @api private - */ - getProductionProjectId() { - return (process.env['GCLOUD_PROJECT'] || - process.env['GOOGLE_CLOUD_PROJECT'] || - process.env['gcloud_project'] || - process.env['google_cloud_project']); - } - /** - * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. - * @api private - */ - async getFileProjectId() { - if (this.cachedCredential) { - // Try to read the project ID from the cached credentials file - return this.cachedCredential.projectId; - } - // Ensure the projectId is loaded from the keyFile if available. - if (this.keyFilename) { - const creds = await this.getClient(); - if (creds && creds.projectId) { - return creds.projectId; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - // Try to load a credentials file and read its project ID - const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); - if (r) { - return r.projectId; - } - else { - return null; - } - } - /** - * Gets the Compute Engine project ID if it can be inferred. - */ - async getGCEProjectId() { - try { - const r = await gcpMetadata.project('project-id'); - return r; - } - catch (e) { - // Ignore any errors - return null; - } - } - getCredentials(callback) { - if (callback) { - this.getCredentialsAsync().then(r => callback(null, r), callback); - } - else { - return this.getCredentialsAsync(); - } - } - async getCredentialsAsync() { - await this.getClient(); - if (this.jsonContent) { - const credential = { - client_email: this.jsonContent.client_email, - private_key: this.jsonContent.private_key, + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, }; - return credential; - } - const isGCE = await this._checkIsGCE(); - if (!isGCE) { - throw new Error('Unknown error.'); - } - // For GCE, return the service account details from the metadata server - // NOTE: The trailing '/' at the end of service-accounts/ is very important! - // The GCF metadata server doesn't respect querystring params if this / is - // not included. - const data = await gcpMetadata.instance({ - property: 'service-accounts/', - params: { recursive: 'true' }, - }); - if (!data || !data.default || !data.default.email) { - throw new Error('Failure from metadata server.'); - } - return { client_email: data.default.email }; - } - /** - * Automatically obtain a client based on the provided configuration. If no - * options were passed, use Application Default Credentials. - */ - async getClient(options) { - if (options) { - throw new Error('Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.'); - } - if (!this.cachedCredential) { - if (this.jsonContent) { - this._cacheClientFromJSON(this.jsonContent, this.clientOptions); - } - else if (this.keyFilename) { - const filePath = path.resolve(this.keyFilename); - const stream = fs.createReadStream(filePath); - await this.fromStreamAsync(stream, this.clientOptions); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - await this.getApplicationDefaultAsync(this.clientOptions); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - return this.cachedCredential; - } - /** - * Creates a client which will fetch an ID token for authorization. - * @param targetAudience the audience for the fetched ID token. - * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. - */ - async getIdTokenClient(targetAudience) { - const client = await this.getClient(); - if (!('fetchIdToken' in client)) { - throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); - } - return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); - } - /** - * Automatically obtain application default credentials, and return - * an access token for making requests. - */ - async getAccessToken() { - const client = await this.getClient(); - return (await client.getAccessToken()).token; - } - /** - * Obtain the HTTP headers that will provide authorization for a given - * request. - */ - async getRequestHeaders(url) { - const client = await this.getClient(); - return client.getRequestHeaders(url); - } - /** - * Obtain credentials for a request, then attach the appropriate headers to - * the request options. - * @param opts Axios or Request options on which to attach the headers - */ - async authorizeRequest(opts) { - opts = opts || {}; - const url = opts.url || opts.uri; - const client = await this.getClient(); - const headers = await client.getRequestHeaders(url); - opts.headers = Object.assign(opts.headers || {}, headers); - return opts; - } - /** - * Automatically obtain application default credentials, and make an - * HTTP request using the given options. - * @param opts Axios request options for the HTTP request. - */ - // tslint:disable-next-line no-any - async request(opts) { - const client = await this.getClient(); - return client.request(opts); - } - /** - * Determine the compute environment in which the code is running. - */ - getEnv() { - return envDetect_1.getEnv(); - } - /** - * Sign the given data with the current private key, or go out - * to the IAM API to sign it. - * @param data The data to be signed. - */ - async sign(data) { - const client = await this.getClient(); - const crypto = crypto_1.createCrypto(); - if (client instanceof jwtclient_1.JWT && client.key) { - const sign = await crypto.sign(client.key, data); - return sign; - } - const projectId = await this.getProjectId(); - if (!projectId) { - throw new Error('Cannot sign data without a project ID.'); - } - const creds = await this.getCredentials(); - if (!creds.client_email) { - throw new Error('Cannot sign data without `client_email`.'); - } - const url = `https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/${creds.client_email}:signBlob`; - const res = await this.request({ - method: 'POST', - url, - data: { - payload: crypto.encodeBase64StringUtf8(data), - }, - }); - return res.data.signedBlob; - } -} -exports.GoogleAuth = GoogleAuth; -/** - * Export DefaultTransporter as a static property of the class. - */ -GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; -//# sourceMappingURL=googleauth.js.map - -/***/ }), -/* 116 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.androidmanagement = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(901); -exports.VERSIONS = { - v1: v1_1.androidmanagement_v1.Androidmanagement, -}; -function androidmanagement(versionOrOptions) { - return googleapis_common_1.getAPI('androidmanagement', versionOrOptions, exports.VERSIONS, this); -} -exports.androidmanagement = androidmanagement; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 117 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Debugging support for web applications. - * - * @author David I. Lehn - * - * Copyright 2008-2013 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); - -/* DEBUG API */ -module.exports = forge.debug = forge.debug || {}; - -// Private storage for debugging. -// Useful to expose data that is otherwise unviewable behind closures. -// NOTE: remember that this can hold references to data and cause leaks! -// format is "forge._debug.. = data" -// Example: -// (function() { -// var cat = 'forge.test.Test'; // debugging category -// var sState = {...}; // local state -// forge.debug.set(cat, 'sState', sState); -// })(); -forge.debug.storage = {}; - -/** - * Gets debug data. Omit name for all cat data Omit name and cat for - * all data. - * - * @param cat name of debugging category. - * @param name name of data to get (optional). - * @return object with requested debug data or undefined. - */ -forge.debug.get = function(cat, name) { - var rval; - if(typeof(cat) === 'undefined') { - rval = forge.debug.storage; - } else if(cat in forge.debug.storage) { - if(typeof(name) === 'undefined') { - rval = forge.debug.storage[cat]; - } else { - rval = forge.debug.storage[cat][name]; - } - } - return rval; -}; - -/** - * Sets debug data. - * - * @param cat name of debugging category. - * @param name name of data to set. - * @param data data to set. - */ -forge.debug.set = function(cat, name, data) { - if(!(cat in forge.debug.storage)) { - forge.debug.storage[cat] = {}; - } - forge.debug.storage[cat][name] = data; -}; - -/** - * Clears debug data. Omit name for all cat data. Omit name and cat for - * all data. - * - * @param cat name of debugging category. - * @param name name of data to clear or omit to clear entire category. - */ -forge.debug.clear = function(cat, name) { - if(typeof(cat) === 'undefined') { - forge.debug.storage = {}; - } else if(cat in forge.debug.storage) { - if(typeof(name) === 'undefined') { - delete forge.debug.storage[cat]; - } else { - delete forge.debug.storage[cat][name]; - } - } -}; - - -/***/ }), -/* 118 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const os = __webpack_require__(87); - -const nameMap = new Map([ - [19, 'Catalina'], - [18, 'Mojave'], - [17, 'High Sierra'], - [16, 'Sierra'], - [15, 'El Capitan'], - [14, 'Yosemite'], - [13, 'Mavericks'], - [12, 'Mountain Lion'], - [11, 'Lion'], - [10, 'Snow Leopard'], - [9, 'Leopard'], - [8, 'Tiger'], - [7, 'Panther'], - [6, 'Jaguar'], - [5, 'Puma'] -]); - -const macosRelease = release => { - release = Number((release || os.release()).split('.')[0]); - return { - name: nameMap.get(release), - version: '10.' + (release - 4) - }; -}; - -module.exports = macosRelease; -// TODO: remove this in the next major version -module.exports.default = macosRelease; - - -/***/ }), -/* 119 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.customsearch = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(308); -exports.VERSIONS = { - v1: v1_1.customsearch_v1.Customsearch, -}; -function customsearch(versionOrOptions) { - return googleapis_common_1.getAPI('customsearch', versionOrOptions, exports.VERSIONS, this); -} -exports.customsearch = customsearch; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 120 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.fcm = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(891); -exports.VERSIONS = { - v1: v1_1.fcm_v1.Fcm, -}; -function fcm(versionOrOptions) { - return googleapis_common_1.getAPI('fcm', versionOrOptions, exports.VERSIONS, this); -} -exports.fcm = fcm; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 121 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.remotebuildexecution_v1alpha = 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 = __webpack_require__(927); -var remotebuildexecution_v1alpha; -(function (remotebuildexecution_v1alpha) { - /** - * Remote Build Execution API - * - * Supplies a Remote Execution API service for tools such as bazel. - * - * @example - * const {google} = require('googleapis'); - * const remotebuildexecution = google.remotebuildexecution('v1alpha'); - * - * @namespace remotebuildexecution - * @type {Function} - * @version v1alpha - * @variation v1alpha - * @param {object=} options Options for Remotebuildexecution - */ - class Remotebuildexecution { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); - } - } - remotebuildexecution_v1alpha.Remotebuildexecution = Remotebuildexecution; - class Resource$Projects { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Instances(this.context); - this.operations = new Resource$Projects$Operations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - remotebuildexecution_v1alpha.Resource$Projects = Resource$Projects; - class Resource$Projects$Instances { + dfareporting_v3_5.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { constructor(context) { this.context = context; - this.workerpools = new Resource$Projects$Instances$Workerpools(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36451,25 +39936,26 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36482,25 +39968,26 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36513,25 +40000,26 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36544,31 +40032,26 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v1alpha.Resource$Projects$Instances = Resource$Projects$Instances; - class Resource$Projects$Instances$Workerpools { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36581,27 +40064,33 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36612,25 +40101,25 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36643,25 +40132,31 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userrolepermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36674,25 +40169,26 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36705,27 +40201,28 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - remotebuildexecution_v1alpha.Resource$Projects$Instances$Workerpools = Resource$Projects$Instances$Workerpools; - class Resource$Projects$Operations { + dfareporting_v3_5.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { constructor(context) { this.context = context; } @@ -36742,88 +40239,26 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v1alpha.Resource$Projects$Operations = Resource$Projects$Operations; -})(remotebuildexecution_v1alpha = exports.remotebuildexecution_v1alpha || (exports.remotebuildexecution_v1alpha = {})); -//# sourceMappingURL=v1alpha.js.map - -/***/ }), -/* 122 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.androidpublisher_v1_1 = 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 = __webpack_require__(927); -var androidpublisher_v1_1; -(function (androidpublisher_v1_1) { - /** - * Google Play Developer API - * - * Accesses Android application developers' Google Play accounts. - * - * @example - * const {google} = require('googleapis'); - * const androidpublisher = google.androidpublisher('v1.1'); - * - * @namespace androidpublisher - * @type {Function} - * @version v1.1 - * @variation v1.1 - * @param {object=} options Options for Androidpublisher - */ - class Androidpublisher { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.inapppurchases = new Resource$Inapppurchases(this.context); - } - } - androidpublisher_v1_1.Androidpublisher = Androidpublisher; - class Resource$Inapppurchases { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36836,100 +40271,64 @@ var androidpublisher_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidpublisher_v1_1.Resource$Inapppurchases = Resource$Inapppurchases; -})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {})); -//# sourceMappingURL=v1.1.js.map - -/***/ }), -/* 123 */, -/* 124 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudscheduler_v1beta1 = 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 = __webpack_require__(927); -var cloudscheduler_v1beta1; -(function (cloudscheduler_v1beta1) { - /** - * Cloud Scheduler API - * - * Creates and manages jobs run on a regular recurring schedule. - * - * @example - * const {google} = require('googleapis'); - * const cloudscheduler = google.cloudscheduler('v1beta1'); - * - * @namespace cloudscheduler - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Cloudscheduler - */ - class Cloudscheduler { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudscheduler_v1beta1.Cloudscheduler = Cloudscheduler; - class Resource$Projects { + dfareporting_v3_5.Resource$Userrolepermissions = Resource$Userrolepermissions; + class Resource$Userroles { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); } - } - cloudscheduler_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.jobs = new Resource$Projects$Locations$Jobs(this.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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36940,27 +40339,57 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36971,33 +40400,26 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudscheduler_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -37008,27 +40430,26 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -37039,27 +40460,32 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -37070,22 +40496,23 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -37101,27 +40528,87 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_5 = exports.dfareporting_v3_5 || (exports.dfareporting_v3_5 = {})); + + +/***/ }), + +/***/ 720: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.versionhistory_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var versionhistory_v1; +(function (versionhistory_v1) { + /** + * versionhistory.googleapis.com API + * + * Version History API - Prod + * + * @example + * ```js + * const {google} = require('googleapis'); + * const versionhistory = google.versionhistory('v1'); + * ``` + */ + class Versionhistory { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.platforms = new Resource$Platforms(this.context); + } + } + versionhistory_v1.Versionhistory = Versionhistory; + class Resource$Platforms { + constructor(context) { + this.context = context; + this.channels = new Resource$Platforms$Channels(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -37132,25 +40619,32 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/platforms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + } + versionhistory_v1.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Channels { + constructor(context) { + this.context = context; + this.versions = new Resource$Platforms$Channels$Versions(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37163,25 +40657,32 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + } + versionhistory_v1.Resource$Platforms$Channels = Resource$Platforms$Channels; + class Resource$Platforms$Channels$Versions { + constructor(context) { + this.context = context; + this.releases = new Resource$Platforms$Channels$Versions$Releases(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37194,2045 +40695,1201 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + } + versionhistory_v1.Resource$Platforms$Channels$Versions = Resource$Platforms$Channels$Versions; + class Resource$Platforms$Channels$Versions$Releases { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudscheduler_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; -})(cloudscheduler_v1beta1 = exports.cloudscheduler_v1beta1 || (exports.cloudscheduler_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + versionhistory_v1.Resource$Platforms$Channels$Versions$Releases = Resource$Platforms$Channels$Versions$Releases; +})(versionhistory_v1 = exports.versionhistory_v1 || (exports.versionhistory_v1 = {})); + /***/ }), -/* 125 */ -/***/ (function(module, __unusedexports, __webpack_require__) { -/** - * JavaScript implementation of Ed25519. - * - * Copyright (c) 2017-2019 Digital Bazaar, Inc. - * - * This implementation is based on the most excellent TweetNaCl which is - * in the public domain. Many thanks to its contributors: - * - * https://github.com/dchest/tweetnacl-js - */ -var forge = __webpack_require__(239); -__webpack_require__(349); -__webpack_require__(707); -__webpack_require__(679); -__webpack_require__(54); -var asn1Validator = __webpack_require__(913); -var publicKeyValidator = asn1Validator.publicKeyValidator; -var privateKeyValidator = asn1Validator.privateKeyValidator; +/***/ 733: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} - -var ByteBuffer = forge.util.ByteBuffer; -var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer; - -/* - * Ed25519 algorithms, see RFC 8032: - * https://tools.ietf.org/html/rfc8032 - */ -forge.pki = forge.pki || {}; -module.exports = forge.pki.ed25519 = forge.ed25519 = forge.ed25519 || {}; -var ed25519 = forge.ed25519; - -ed25519.constants = {}; -ed25519.constants.PUBLIC_KEY_BYTE_LENGTH = 32; -ed25519.constants.PRIVATE_KEY_BYTE_LENGTH = 64; -ed25519.constants.SEED_BYTE_LENGTH = 32; -ed25519.constants.SIGN_BYTE_LENGTH = 64; -ed25519.constants.HASH_BYTE_LENGTH = 64; - -ed25519.generateKeyPair = function(options) { - options = options || {}; - var seed = options.seed; - if(seed === undefined) { - // generate seed - seed = forge.random.getBytesSync(ed25519.constants.SEED_BYTE_LENGTH); - } else if(typeof seed === 'string') { - if(seed.length !== ed25519.constants.SEED_BYTE_LENGTH) { - throw new TypeError( - '"seed" must be ' + ed25519.constants.SEED_BYTE_LENGTH + - ' bytes in length.'); - } - } else if(!(seed instanceof Uint8Array)) { - throw new TypeError( - '"seed" must be a node.js Buffer, Uint8Array, or a binary string.'); - } - - seed = messageToNativeBuffer({message: seed, encoding: 'binary'}); - - var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - var sk = new NativeBuffer(ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - for(var i = 0; i < 32; ++i) { - sk[i] = seed[i]; - } - crypto_sign_keypair(pk, sk); - return {publicKey: pk, privateKey: sk}; -}; - -/** - * Converts a private key from a RFC8410 ASN.1 encoding. - * - * @param obj - The asn1 representation of a private key. - * - * @returns {Object} keyInfo - The key information. - * @returns {Buffer|Uint8Array} keyInfo.privateKeyBytes - 32 private key bytes. - */ -ed25519.privateKeyFromAsn1 = function(obj) { - var capture = {}; - var errors = []; - var valid = forge.asn1.validate(obj, privateKeyValidator, capture, errors); - if(!valid) { - var error = new Error('Invalid Key.'); - error.errors = errors; - throw error; - } - var oid = forge.asn1.derToOid(capture.privateKeyOid); - var ed25519Oid = forge.oids.EdDSA25519; - if(oid !== ed25519Oid) { - throw new Error('Invalid OID "' + oid + '"; OID must be "' + - ed25519Oid + '".'); - } - var privateKey = capture.privateKey; - // manually extract the private key bytes from nested octet string, see FIXME: - // https://github.com/digitalbazaar/forge/blob/master/lib/asn1.js#L542 - var privateKeyBytes = messageToNativeBuffer({ - message: forge.asn1.fromDer(privateKey).value, - encoding: 'binary' - }); - // TODO: RFC8410 specifies a format for encoding the public key bytes along - // with the private key bytes. `publicKeyBytes` can be returned in the - // future. https://tools.ietf.org/html/rfc8410#section-10.3 - return {privateKeyBytes: privateKeyBytes}; -}; - -/** - * Converts a public key from a RFC8410 ASN.1 encoding. - * - * @param obj - The asn1 representation of a public key. - * - * @return {Buffer|Uint8Array} - 32 public key bytes. - */ -ed25519.publicKeyFromAsn1 = function(obj) { - // get SubjectPublicKeyInfo - var capture = {}; - var errors = []; - var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors); - if(!valid) { - var error = new Error('Invalid Key.'); - error.errors = errors; - throw error; - } - var oid = forge.asn1.derToOid(capture.publicKeyOid); - var ed25519Oid = forge.oids.EdDSA25519; - if(oid !== ed25519Oid) { - throw new Error('Invalid OID "' + oid + '"; OID must be "' + - ed25519Oid + '".'); - } - var publicKeyBytes = capture.ed25519PublicKey; - if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { - throw new Error('Key length is invalid.'); - } - return messageToNativeBuffer({ - message: publicKeyBytes, - encoding: 'binary' - }); -}; +"use strict"; -ed25519.publicKeyFromPrivateKey = function(options) { - options = options || {}; - var privateKey = messageToNativeBuffer({ - message: options.privateKey, encoding: 'binary' - }); - if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.privateKey" must have a byte length of ' + - ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - } - var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - for(var i = 0; i < pk.length; ++i) { - pk[i] = privateKey[32 + i]; - } - return pk; -}; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; -ed25519.sign = function(options) { - options = options || {}; - var msg = messageToNativeBuffer(options); - var privateKey = messageToNativeBuffer({ - message: options.privateKey, - encoding: 'binary' - }); - if(privateKey.length === ed25519.constants.SEED_BYTE_LENGTH) { - var keyPair = ed25519.generateKeyPair({seed: privateKey}); - privateKey = keyPair.privateKey; - } else if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.privateKey" must have a byte length of ' + - ed25519.constants.SEED_BYTE_LENGTH + ' or ' + - ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - } +var _rng = _interopRequireDefault(__webpack_require__(3844)); - var signedMsg = new NativeBuffer( - ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - crypto_sign(signedMsg, msg, msg.length, privateKey); +var _stringify = _interopRequireDefault(__webpack_require__(3411)); - var sig = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH); - for(var i = 0; i < sig.length; ++i) { - sig[i] = signedMsg[i]; - } - return sig; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -ed25519.verify = function(options) { +function v4(options, buf, offset) { options = options || {}; - var msg = messageToNativeBuffer(options); - if(options.signature === undefined) { - throw new TypeError( - '"options.signature" must be a node.js Buffer, a Uint8Array, a forge ' + - 'ByteBuffer, or a binary string.'); - } - var sig = messageToNativeBuffer({ - message: options.signature, - encoding: 'binary' - }); - if(sig.length !== ed25519.constants.SIGN_BYTE_LENGTH) { - throw new TypeError( - '"options.signature" must have a byte length of ' + - ed25519.constants.SIGN_BYTE_LENGTH); - } - var publicKey = messageToNativeBuffer({ - message: options.publicKey, - encoding: 'binary' - }); - if(publicKey.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.publicKey" must have a byte length of ' + - ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - } - var sm = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - var m = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - var i; - for(i = 0; i < ed25519.constants.SIGN_BYTE_LENGTH; ++i) { - sm[i] = sig[i]; - } - for(i = 0; i < msg.length; ++i) { - sm[i + ed25519.constants.SIGN_BYTE_LENGTH] = msg[i]; - } - return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0); -}; + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` -function messageToNativeBuffer(options) { - var message = options.message; - if(message instanceof Uint8Array || message instanceof NativeBuffer) { - return message; - } - var encoding = options.encoding; - if(message === undefined) { - if(options.md) { - // TODO: more rigorous validation that `md` is a MessageDigest - message = options.md.digest().getBytes(); - encoding = 'binary'; - } else { - throw new TypeError('"options.message" or "options.md" not specified.'); - } - } + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - if(typeof message === 'string' && !encoding) { - throw new TypeError('"options.encoding" must be "binary" or "utf8".'); - } + if (buf) { + offset = offset || 0; - if(typeof message === 'string') { - if(typeof Buffer !== 'undefined') { - return Buffer.from(message, encoding); + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; } - message = new ByteBuffer(message, encoding); - } else if(!(message instanceof ByteBuffer)) { - throw new TypeError( - '"options.message" must be a node.js Buffer, a Uint8Array, a forge ' + - 'ByteBuffer, or a string with "options.encoding" specifying its ' + - 'encoding.'); - } - - // convert to native buffer - var buffer = new NativeBuffer(message.length()); - for(var i = 0; i < buffer.length; ++i) { - buffer[i] = message.at(i); - } - return buffer; -} - -var gf0 = gf(); -var gf1 = gf([1]); -var D = gf([ - 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, - 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]); -var D2 = gf([ - 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, - 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]); -var X = gf([ - 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, - 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]); -var Y = gf([ - 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, - 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]); -var L = new Float64Array([ - 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, - 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]); -var I = gf([ - 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, - 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]); -// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`, -// whichever is available, to improve performance -function sha512(msg, msgLen) { - // Note: `out` and `msg` are NativeBuffer - var md = forge.md.sha512.create(); - var buffer = new ByteBuffer(msg); - md.update(buffer.getBytes(msgLen), 'binary'); - var hash = md.digest().getBytes(); - if(typeof Buffer !== 'undefined') { - return Buffer.from(hash, 'binary'); - } - var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH); - for(var i = 0; i < 64; ++i) { - out[i] = hash.charCodeAt(i); + return buf; } - return out; -} - -function crypto_sign_keypair(pk, sk) { - var p = [gf(), gf(), gf(), gf()]; - var i; - - var d = sha512(sk, 32); - d[0] &= 248; - d[31] &= 127; - d[31] |= 64; - - scalarbase(p, d); - pack(pk, p); - for(i = 0; i < 32; ++i) { - sk[i + 32] = pk[i]; - } - return 0; + return (0, _stringify.default)(rnds); } -// Note: difference from C - smlen returned, not passed as argument. -function crypto_sign(sm, m, n, sk) { - var i, j, x = new Float64Array(64); - var p = [gf(), gf(), gf(), gf()]; - - var d = sha512(sk, 32); - d[0] &= 248; - d[31] &= 127; - d[31] |= 64; +var _default = v4; +exports.default = _default; - var smlen = n + 64; - for(i = 0; i < n; ++i) { - sm[64 + i] = m[i]; - } - for(i = 0; i < 32; ++i) { - sm[32 + i] = d[32 + i]; - } +/***/ }), - var r = sha512(sm.subarray(32), n + 32); - reduce(r); - scalarbase(p, r); - pack(sm, p); +/***/ 735: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - for(i = 32; i < 64; ++i) { - sm[i] = sk[i]; - } - var h = sha512(sm, n + 64); - reduce(h); +"use strict"; - for(i = 32; i < 64; ++i) { - x[i] = 0; - } - for(i = 0; i < 32; ++i) { - x[i] = r[i]; - } - for(i = 0; i < 32; ++i) { - for(j = 0; j < 32; j++) { - x[i + j] += h[i] * d[j]; +// 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.serviceusage_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var serviceusage_v1beta1; +(function (serviceusage_v1beta1) { + /** + * Service Usage API + * + * Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const serviceusage = google.serviceusage('v1beta1'); + * ``` + */ + class Serviceusage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } } - } - - modL(sm.subarray(32), x); - return smlen; -} - -function crypto_sign_open(m, sm, n, pk) { - var i, mlen; - var t = new NativeBuffer(32); - var p = [gf(), gf(), gf(), gf()], - q = [gf(), gf(), gf(), gf()]; - - mlen = -1; - if(n < 64) { - return -1; - } - - if(unpackneg(q, pk)) { - return -1; - } - - for(i = 0; i < n; ++i) { - m[i] = sm[i]; - } - for(i = 0; i < 32; ++i) { - m[i + 32] = pk[i]; - } - var h = sha512(m, n); - reduce(h); - scalarmult(p, q, h); - - scalarbase(q, sm.subarray(32)); - add(p, q); - pack(t, p); - - n -= 64; - if(crypto_verify_32(sm, 0, t, 0)) { - for(i = 0; i < n; ++i) { - m[i] = 0; + serviceusage_v1beta1.Serviceusage = Serviceusage; + class Resource$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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - return -1; - } - - for(i = 0; i < n; ++i) { - m[i] = sm[i + 64]; - } - mlen = n; - return mlen; -} - -function modL(r, x) { - var carry, i, j, k; - for(i = 63; i >= 32; --i) { - carry = 0; - for(j = i - 32, k = i - 12; j < k; ++j) { - x[j] += carry - 16 * x[i] * L[j - (i - 32)]; - carry = (x[j] + 128) >> 8; - x[j] -= carry * 256; + serviceusage_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); + } + batchEnable(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disable(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enable(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateServiceIdentity(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - x[j] += carry; - x[i] = 0; - } - carry = 0; - for(j = 0; j < 32; ++j) { - x[j] += carry - (x[31] >> 4) * L[j]; - carry = x[j] >> 8; - x[j] &= 255; - } - for(j = 0; j < 32; ++j) { - x[j] -= carry * L[j]; - } - for(i = 0; i < 32; ++i) { - x[i + 1] += x[i] >> 8; - r[i] = x[i] & 255; - } -} - -function reduce(r) { - var x = new Float64Array(64); - for(var i = 0; i < 64; ++i) { - x[i] = r[i]; - r[i] = 0; - } - modL(r, x); -} - -function add(p, q) { - var a = gf(), b = gf(), c = gf(), - d = gf(), e = gf(), f = gf(), - g = gf(), h = gf(), t = gf(); - - Z(a, p[1], p[0]); - Z(t, q[1], q[0]); - M(a, a, t); - A(b, p[0], p[1]); - A(t, q[0], q[1]); - M(b, b, t); - M(c, p[3], q[3]); - M(c, c, D2); - M(d, p[2], q[2]); - A(d, d, d); - Z(e, b, a); - Z(f, d, c); - A(g, d, c); - A(h, b, a); - - M(p[0], e, f); - M(p[1], h, g); - M(p[2], g, f); - M(p[3], e, h); -} - -function cswap(p, q, b) { - for(var i = 0; i < 4; ++i) { - sel25519(p[i], q[i], b); - } -} - -function pack(r, p) { - var tx = gf(), ty = gf(), zi = gf(); - inv25519(zi, p[2]); - M(tx, p[0], zi); - M(ty, p[1], zi); - pack25519(r, ty); - r[31] ^= par25519(tx) << 7; -} - -function pack25519(o, n) { - var i, j, b; - var m = gf(), t = gf(); - for(i = 0; i < 16; ++i) { - t[i] = n[i]; - } - car25519(t); - car25519(t); - car25519(t); - for(j = 0; j < 2; ++j) { - m[0] = t[0] - 0xffed; - for(i = 1; i < 15; ++i) { - m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1); - m[i-1] &= 0xffff; + serviceusage_v1beta1.Resource$Services = Resource$Services; + class Resource$Services$Consumerquotametrics { + constructor(context) { + this.context = context; + this.limits = new Resource$Services$Consumerquotametrics$Limits(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importAdminOverrides(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importConsumerOverrides(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importConsumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1); - b = (m[15] >> 16) & 1; - m[14] &= 0xffff; - sel25519(t, m, 1 - b); - } - for (i = 0; i < 16; i++) { - o[2 * i] = t[i] & 0xff; - o[2 * i + 1] = t[i] >> 8; - } -} - -function unpackneg(r, p) { - var t = gf(), chk = gf(), num = gf(), - den = gf(), den2 = gf(), den4 = gf(), - den6 = gf(); - - set25519(r[2], gf1); - unpack25519(r[1], p); - S(num, r[1]); - M(den, num, D); - Z(num, num, r[2]); - A(den, r[2], den); - - S(den2, den); - S(den4, den2); - M(den6, den4, den2); - M(t, den6, num); - M(t, t, den); - - pow2523(t, t); - M(t, t, num); - M(t, t, den); - M(t, t, den); - M(r[0], t, den); - - S(chk, r[0]); - M(chk, chk, den); - if(neq25519(chk, num)) { - M(r[0], r[0], I); - } - - S(chk, r[0]); - M(chk, chk, den); - if(neq25519(chk, num)) { - return -1; - } - - if(par25519(r[0]) === (p[31] >> 7)) { - Z(r[0], gf0, r[0]); - } - - M(r[3], r[0], r[1]); - return 0; -} - -function unpack25519(o, n) { - var i; - for(i = 0; i < 16; ++i) { - o[i] = n[2 * i] + (n[2 * i + 1] << 8); - } - o[15] &= 0x7fff; -} - -function pow2523(o, i) { - var c = gf(); - var a; - for(a = 0; a < 16; ++a) { - c[a] = i[a]; - } - for(a = 250; a >= 0; --a) { - S(c, c); - if(a !== 1) { - M(c, c, i); + serviceusage_v1beta1.Resource$Services$Consumerquotametrics = Resource$Services$Consumerquotametrics; + class Resource$Services$Consumerquotametrics$Limits { + constructor(context) { + this.context = context; + this.adminOverrides = + new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(this.context); + this.consumerOverrides = + new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - for(a = 0; a < 16; ++a) { - o[a] = c[a]; - } -} - -function neq25519(a, b) { - var c = new NativeBuffer(32); - var d = new NativeBuffer(32); - pack25519(c, a); - pack25519(d, b); - return crypto_verify_32(c, 0, d, 0); -} - -function crypto_verify_32(x, xi, y, yi) { - return vn(x, xi, y, yi, 32); -} - -function vn(x, xi, y, yi, n) { - var i, d = 0; - for(i = 0; i < n; ++i) { - d |= x[xi + i] ^ y[yi + i]; - } - return (1 & ((d - 1) >>> 8)) - 1; -} - -function par25519(a) { - var d = new NativeBuffer(32); - pack25519(d, a); - return d[0] & 1; -} - -function scalarmult(p, q, s) { - var b, i; - set25519(p[0], gf0); - set25519(p[1], gf1); - set25519(p[2], gf1); - set25519(p[3], gf0); - for(i = 255; i >= 0; --i) { - b = (s[(i / 8)|0] >> (i & 7)) & 1; - cswap(p, q, b); - add(q, p); - add(p, p); - cswap(p, q, b); - } -} - -function scalarbase(p, s) { - var q = [gf(), gf(), gf(), gf()]; - set25519(q[0], X); - set25519(q[1], Y); - set25519(q[2], gf1); - M(q[3], X, Y); - scalarmult(p, q, s); -} - -function set25519(r, a) { - var i; - for(i = 0; i < 16; i++) { - r[i] = a[i] | 0; - } -} - -function inv25519(o, i) { - var c = gf(); - var a; - for(a = 0; a < 16; ++a) { - c[a] = i[a]; - } - for(a = 253; a >= 0; --a) { - S(c, c); - if(a !== 2 && a !== 4) { - M(c, c, i); + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; + class Resource$Services$Consumerquotametrics$Limits$Adminoverrides { + 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - for(a = 0; a < 16; ++a) { - o[a] = c[a]; - } -} - -function car25519(o) { - var i, v, c = 1; - for(i = 0; i < 16; ++i) { - v = o[i] + c + 65535; - c = Math.floor(v / 65536); - o[i] = v - c * 65536; - } - o[0] += c - 1 + 37 * (c - 1); -} - -function sel25519(p, q, b) { - var t, c = ~(b - 1); - for(var i = 0; i < 16; ++i) { - t = c & (p[i] ^ q[i]); - p[i] ^= t; - q[i] ^= t; - } -} - -function gf(init) { - var i, r = new Float64Array(16); - if(init) { - for(i = 0; i < init.length; ++i) { - r[i] = init[i]; + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Adminoverrides = Resource$Services$Consumerquotametrics$Limits$Adminoverrides; + class Resource$Services$Consumerquotametrics$Limits$Consumeroverrides { + 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - return r; -} + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Consumeroverrides = Resource$Services$Consumerquotametrics$Limits$Consumeroverrides; +})(serviceusage_v1beta1 = exports.serviceusage_v1beta1 || (exports.serviceusage_v1beta1 = {})); -function A(o, a, b) { - for(var i = 0; i < 16; ++i) { - o[i] = a[i] + b[i]; - } -} -function Z(o, a, b) { - for(var i = 0; i < 16; ++i) { - o[i] = a[i] - b[i]; - } -} +/***/ }), -function S(o, a) { - M(o, a, a); -} +/***/ 748: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -function M(o, a, b) { - var v, c, - t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0, - t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0, - t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0, - t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0, - b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7], - b8 = b[8], - b9 = b[9], - b10 = b[10], - b11 = b[11], - b12 = b[12], - b13 = b[13], - b14 = b[14], - b15 = b[15]; +"use strict"; - v = a[0]; - t0 += v * b0; - t1 += v * b1; - t2 += v * b2; - t3 += v * b3; - t4 += v * b4; - t5 += v * b5; - t6 += v * b6; - t7 += v * b7; - t8 += v * b8; - t9 += v * b9; - t10 += v * b10; - t11 += v * b11; - t12 += v * b12; - t13 += v * b13; - t14 += v * b14; - t15 += v * b15; - v = a[1]; - t1 += v * b0; - t2 += v * b1; - t3 += v * b2; - t4 += v * b3; - t5 += v * b4; - t6 += v * b5; - t7 += v * b6; - t8 += v * b7; - t9 += v * b8; - t10 += v * b9; - t11 += v * b10; - t12 += v * b11; - t13 += v * b12; - t14 += v * b13; - t15 += v * b14; - t16 += v * b15; - v = a[2]; - t2 += v * b0; - t3 += v * b1; - t4 += v * b2; - t5 += v * b3; - t6 += v * b4; - t7 += v * b5; - t8 += v * b6; - t9 += v * b7; - t10 += v * b8; - t11 += v * b9; - t12 += v * b10; - t13 += v * b11; - t14 += v * b12; - t15 += v * b13; - t16 += v * b14; - t17 += v * b15; - v = a[3]; - t3 += v * b0; - t4 += v * b1; - t5 += v * b2; - t6 += v * b3; - t7 += v * b4; - t8 += v * b5; - t9 += v * b6; - t10 += v * b7; - t11 += v * b8; - t12 += v * b9; - t13 += v * b10; - t14 += v * b11; - t15 += v * b12; - t16 += v * b13; - t17 += v * b14; - t18 += v * b15; - v = a[4]; - t4 += v * b0; - t5 += v * b1; - t6 += v * b2; - t7 += v * b3; - t8 += v * b4; - t9 += v * b5; - t10 += v * b6; - t11 += v * b7; - t12 += v * b8; - t13 += v * b9; - t14 += v * b10; - t15 += v * b11; - t16 += v * b12; - t17 += v * b13; - t18 += v * b14; - t19 += v * b15; - v = a[5]; - t5 += v * b0; - t6 += v * b1; - t7 += v * b2; - t8 += v * b3; - t9 += v * b4; - t10 += v * b5; - t11 += v * b6; - t12 += v * b7; - t13 += v * b8; - t14 += v * b9; - t15 += v * b10; - t16 += v * b11; - t17 += v * b12; - t18 += v * b13; - t19 += v * b14; - t20 += v * b15; - v = a[6]; - t6 += v * b0; - t7 += v * b1; - t8 += v * b2; - t9 += v * b3; - t10 += v * b4; - t11 += v * b5; - t12 += v * b6; - t13 += v * b7; - t14 += v * b8; - t15 += v * b9; - t16 += v * b10; - t17 += v * b11; - t18 += v * b12; - t19 += v * b13; - t20 += v * b14; - t21 += v * b15; - v = a[7]; - t7 += v * b0; - t8 += v * b1; - t9 += v * b2; - t10 += v * b3; - t11 += v * b4; - t12 += v * b5; - t13 += v * b6; - t14 += v * b7; - t15 += v * b8; - t16 += v * b9; - t17 += v * b10; - t18 += v * b11; - t19 += v * b12; - t20 += v * b13; - t21 += v * b14; - t22 += v * b15; - v = a[8]; - t8 += v * b0; - t9 += v * b1; - t10 += v * b2; - t11 += v * b3; - t12 += v * b4; - t13 += v * b5; - t14 += v * b6; - t15 += v * b7; - t16 += v * b8; - t17 += v * b9; - t18 += v * b10; - t19 += v * b11; - t20 += v * b12; - t21 += v * b13; - t22 += v * b14; - t23 += v * b15; - v = a[9]; - t9 += v * b0; - t10 += v * b1; - t11 += v * b2; - t12 += v * b3; - t13 += v * b4; - t14 += v * b5; - t15 += v * b6; - t16 += v * b7; - t17 += v * b8; - t18 += v * b9; - t19 += v * b10; - t20 += v * b11; - t21 += v * b12; - t22 += v * b13; - t23 += v * b14; - t24 += v * b15; - v = a[10]; - t10 += v * b0; - t11 += v * b1; - t12 += v * b2; - t13 += v * b3; - t14 += v * b4; - t15 += v * b5; - t16 += v * b6; - t17 += v * b7; - t18 += v * b8; - t19 += v * b9; - t20 += v * b10; - t21 += v * b11; - t22 += v * b12; - t23 += v * b13; - t24 += v * b14; - t25 += v * b15; - v = a[11]; - t11 += v * b0; - t12 += v * b1; - t13 += v * b2; - t14 += v * b3; - t15 += v * b4; - t16 += v * b5; - t17 += v * b6; - t18 += v * b7; - t19 += v * b8; - t20 += v * b9; - t21 += v * b10; - t22 += v * b11; - t23 += v * b12; - t24 += v * b13; - t25 += v * b14; - t26 += v * b15; - v = a[12]; - t12 += v * b0; - t13 += v * b1; - t14 += v * b2; - t15 += v * b3; - t16 += v * b4; - t17 += v * b5; - t18 += v * b6; - t19 += v * b7; - t20 += v * b8; - t21 += v * b9; - t22 += v * b10; - t23 += v * b11; - t24 += v * b12; - t25 += v * b13; - t26 += v * b14; - t27 += v * b15; - v = a[13]; - t13 += v * b0; - t14 += v * b1; - t15 += v * b2; - t16 += v * b3; - t17 += v * b4; - t18 += v * b5; - t19 += v * b6; - t20 += v * b7; - t21 += v * b8; - t22 += v * b9; - t23 += v * b10; - t24 += v * b11; - t25 += v * b12; - t26 += v * b13; - t27 += v * b14; - t28 += v * b15; - v = a[14]; - t14 += v * b0; - t15 += v * b1; - t16 += v * b2; - t17 += v * b3; - t18 += v * b4; - t19 += v * b5; - t20 += v * b6; - t21 += v * b7; - t22 += v * b8; - t23 += v * b9; - t24 += v * b10; - t25 += v * b11; - t26 += v * b12; - t27 += v * b13; - t28 += v * b14; - t29 += v * b15; - v = a[15]; - t15 += v * b0; - t16 += v * b1; - t17 += v * b2; - t18 += v * b3; - t19 += v * b4; - t20 += v * b5; - t21 += v * b6; - t22 += v * b7; - t23 += v * b8; - t24 += v * b9; - t25 += v * b10; - t26 += v * b11; - t27 += v * b12; - t28 += v * b13; - t29 += v * b14; - t30 += v * b15; +// 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.admin_reports_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var admin_reports_v1; +(function (admin_reports_v1) { + /** + * Admin SDK API + * + * Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const admin = google.admin('reports_v1'); + * ``` + */ + class Admin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + this.channels = new Resource$Channels(this.context); + this.customerUsageReports = new Resource$Customerusagereports(this.context); + this.entityUsageReports = new Resource$Entityusagereports(this.context); + this.userUsageReport = new Resource$Userusagereport(this.context); + } + } + admin_reports_v1.Admin = Admin; + class Resource$Activities { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'applicationName'], + pathParams: ['applicationName', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey', 'applicationName'], + pathParams: ['applicationName', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_reports_v1.Resource$Activities = Resource$Activities; + class Resource$Channels { + constructor(context) { + this.context = context; + } + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_reports_v1.Resource$Channels = Resource$Channels; + class Resource$Customerusagereports { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['date'], + pathParams: ['date'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_reports_v1.Resource$Customerusagereports = Resource$Customerusagereports; + class Resource$Entityusagereports { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['entityType', 'entityKey', 'date'], + pathParams: ['date', 'entityKey', 'entityType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_reports_v1.Resource$Entityusagereports = Resource$Entityusagereports; + class Resource$Userusagereport { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'date'], + pathParams: ['date', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_reports_v1.Resource$Userusagereport = Resource$Userusagereport; +})(admin_reports_v1 = exports.admin_reports_v1 || (exports.admin_reports_v1 = {})); - t0 += 38 * t16; - t1 += 38 * t17; - t2 += 38 * t18; - t3 += 38 * t19; - t4 += 38 * t20; - t5 += 38 * t21; - t6 += 38 * t22; - t7 += 38 * t23; - t8 += 38 * t24; - t9 += 38 * t25; - t10 += 38 * t26; - t11 += 38 * t27; - t12 += 38 * t28; - t13 += 38 * t29; - t14 += 38 * t30; - // t15 left as is - // first car - c = 1; - v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; - v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; - v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; - v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; - v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; - v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; - v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; - v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; - v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; - v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; - v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; - v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; - v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; - v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; - v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; - v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; - t0 += c-1 + 37 * (c-1); +/***/ }), - // second car - c = 1; - v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; - v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; - v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; - v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; - v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; - v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; - v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; - v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; - v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; - v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; - v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; - v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; - v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; - v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; - v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; - v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; - t0 += c-1 + 37 * (c-1); +/***/ 760: +/***/ (function(module, __unusedexports, __webpack_require__) { - o[ 0] = t0; - o[ 1] = t1; - o[ 2] = t2; - o[ 3] = t3; - o[ 4] = t4; - o[ 5] = t5; - o[ 6] = t6; - o[ 7] = t7; - o[ 8] = t8; - o[ 9] = t9; - o[10] = t10; - o[11] = t11; - o[12] = t12; - o[13] = t13; - o[14] = t14; - o[15] = t15; -} +"use strict"; +const pump = __webpack_require__(5453); +const bufferStream = __webpack_require__(5582); -/***/ }), -/* 126 */ -/***/ (function(module) { +class MaxBufferError extends Error { + constructor() { + super('maxBuffer exceeded'); + this.name = 'MaxBufferError'; + } +} -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ +function getStream(inputStream, options) { + if (!inputStream) { + return Promise.reject(new Error('Expected a stream')); + } -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; + options = Object.assign({maxBuffer: Infinity}, options); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + const {maxBuffer} = options; -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; + let stream; + return new Promise((resolve, reject) => { + const rejectPromise = error => { + if (error) { // A null check + error.bufferedData = stream.getBufferedValue(); + } + reject(error); + }; -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]'; + stream = pump(inputStream, bufferStream(options), error => { + if (error) { + rejectPromise(error); + return; + } -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + resolve(); + }); -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; + stream.on('data', () => { + if (stream.getBufferedLength() > maxBuffer) { + rejectPromise(new MaxBufferError()); + } + }); + }).then(() => stream.getBufferedValue()); +} -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; +module.exports = getStream; +module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'})); +module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true})); +module.exports.MaxBufferError = MaxBufferError; -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); +/***/ }), -/** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludes(array, value) { - var length = array ? array.length : 0; - return !!length && baseIndexOf(array, value, 0) > -1; -} +/***/ 765: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/** - * This function is like `arrayIncludes` except that it accepts a comparator. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @param {Function} comparator The comparator invoked per element. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; -} - -/** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; -} - -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return baseFindIndex(array, baseIsNaN, fromIndex); - } - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; -} - -/** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ -function baseIsNaN(value) { - return value !== value; -} - -/** - * Checks if a cache value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function cacheHas(cache, key) { - return cache.has(key); -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var splice = arrayProto.splice; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - Set = getNative(root, 'Set'), - nativeCreate = getNative(Object, 'create'); - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ -function SetCache(values) { - var index = -1, - length = values ? values.length : 0; - - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} - -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} - -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} - -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.uniqBy` without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ -function baseUniq(array, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - length = array.length, - isCommon = true, - result = [], - seen = result; - - if (comparator) { - isCommon = false; - includes = arrayIncludesWith; - } - else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array); - if (set) { - return setToArray(set); - } - isCommon = false; - includes = cacheHas; - seen = new SetCache; - } - else { - seen = iteratee ? [] : result; - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); - } - } - return result; -} - -/** - * Creates a set object of `values`. - * - * @private - * @param {Array} values The values to add to the set. - * @returns {Object} Returns the new set. - */ -var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { - return new Set(values); -}; - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a duplicate-free version of an array, using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurrence of each - * element is kept. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.uniq([2, 1, 2]); - * // => [2, 1] - */ -function uniq(array) { - return (array && array.length) - ? baseUniq(array) - : []; -} - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * This method returns `undefined`. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Util - * @example - * - * _.times(2, _.noop); - * // => [undefined, undefined] - */ -function noop() { - // No operation performed. -} - -module.exports = uniq; - - -/***/ }), -/* 127 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; +"use strict"; // Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); @@ -39247,54 +41904,53 @@ module.exports = uniq; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.pubsub_v1beta2 = void 0; +exports.appengine_v1alpha = 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 = __webpack_require__(927); -var pubsub_v1beta2; -(function (pubsub_v1beta2) { +var appengine_v1alpha; +(function (appengine_v1alpha) { /** - * Cloud Pub/Sub API + * App Engine Admin API * - * Provides reliable, many-to-many, asynchronous messaging between applications. + * Provisions and manages developers' App Engine applications. * * @example + * ```js * const {google} = require('googleapis'); - * const pubsub = google.pubsub('v1beta2'); - * - * @namespace pubsub - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Pubsub + * const appengine = google.appengine('v1alpha'); + * ``` */ - class Pubsub { + class Appengine { constructor(options, google) { this.context = { _options: options || {}, google, }; + this.apps = new Resource$Apps(this.context); this.projects = new Resource$Projects(this.context); } } - pubsub_v1beta2.Pubsub = Pubsub; - class Resource$Projects { + appengine_v1alpha.Appengine = Appengine; + class Resource$Apps { constructor(context) { this.context = context; - this.subscriptions = new Resource$Projects$Subscriptions(this.context); - this.topics = new Resource$Projects$Topics(this.context); + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); } } - pubsub_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Subscriptions { + appengine_v1alpha.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { constructor(context) { this.context = context; } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39307,25 +41963,25 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39338,25 +41994,26 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39369,25 +42026,26 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39400,25 +42058,25 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39431,24 +42089,31 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + appengine_v1alpha.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -39462,25 +42127,31 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39493,25 +42164,25 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39524,25 +42195,26 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39555,25 +42227,26 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39586,25 +42259,25 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39617,32 +42290,32 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - pubsub_v1beta2.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; - class Resource$Projects$Topics { + appengine_v1alpha.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Locations { constructor(context) { this.context = context; - this.subscriptions = new Resource$Projects$Topics$Subscriptions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39655,25 +42328,25 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39686,24 +42359,30 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + appengine_v1alpha.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -39717,25 +42396,25 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39748,22 +42427,67 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + appengine_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -39779,25 +42503,31 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectsId'], + pathParams: ['projectsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39810,25 +42540,26 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['projectsId', 'locationsId', 'operationsId'], + pathParams: ['locationsId', 'operationsId', 'projectsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39841,25 +42572,131 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(appengine_v1alpha = exports.appengine_v1alpha || (exports.appengine_v1alpha = {})); + + +/***/ }), + +/***/ 772: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.sheets_v4 = exports.auth = exports.sheets = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v4_1 = __webpack_require__(5525); +Object.defineProperty(exports, "sheets_v4", { enumerable: true, get: function () { return v4_1.sheets_v4; } }); +exports.VERSIONS = { + v4: v4_1.sheets_v4.Sheets, +}; +function sheets(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sheets', versionOrOptions, exports.VERSIONS, this); +} +exports.sheets = sheets; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 790: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudtrace_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudtrace_v2; +(function (cloudtrace_v2) { + /** + * Cloud Trace API + * + * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudtrace = google.cloudtrace('v2'); + * ``` + */ + class Cloudtrace { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtrace_v2.Cloudtrace = Cloudtrace; + class Resource$Projects { + constructor(context) { + this.context = context; + this.traces = new Resource$Projects$Traces(this.context); + } + } + cloudtrace_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Traces { + constructor(context) { + this.context = context; + this.spans = new Resource$Projects$Traces$Spans(this.context); + } + batchWrite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39872,31 +42709,31 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/traces:batchWrite').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - pubsub_v1beta2.Resource$Projects$Topics = Resource$Projects$Topics; - class Resource$Projects$Topics$Subscriptions { + cloudtrace_v2.Resource$Projects$Traces = Resource$Projects$Traces; + class Resource$Projects$Traces$Spans { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + createSpan(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39909,31 +42746,32 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - pubsub_v1beta2.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; -})(pubsub_v1beta2 = exports.pubsub_v1beta2 || (exports.pubsub_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map + cloudtrace_v2.Resource$Projects$Traces$Spans = Resource$Projects$Traces$Spans; +})(cloudtrace_v2 = exports.cloudtrace_v2 || (exports.cloudtrace_v2 = {})); + /***/ }), -/* 128 */ + +/***/ 813: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -39951,48 +42789,51 @@ var pubsub_v1beta2; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.abusiveexperiencereport_v1 = void 0; +exports.managedidentities_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 = __webpack_require__(927); -var abusiveexperiencereport_v1; -(function (abusiveexperiencereport_v1) { +var managedidentities_v1; +(function (managedidentities_v1) { /** - * Abusive Experience Report API + * Managed Service for Microsoft Active Directory API * - * Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences. + * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). * * @example + * ```js * const {google} = require('googleapis'); - * const abusiveexperiencereport = google.abusiveexperiencereport('v1'); - * - * @namespace abusiveexperiencereport - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Abusiveexperiencereport + * const managedidentities = google.managedidentities('v1'); + * ``` */ - class Abusiveexperiencereport { + class Managedidentities { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.sites = new Resource$Sites(this.context); - this.violatingSites = new Resource$Violatingsites(this.context); + this.projects = new Resource$Projects(this.context); } } - abusiveexperiencereport_v1.Abusiveexperiencereport = Abusiveexperiencereport; - class Resource$Sites { + managedidentities_v1.Managedidentities = Managedidentities; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + managedidentities_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -40003,7 +42844,7 @@ var abusiveexperiencereport_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -40015,17 +42856,313 @@ var abusiveexperiencereport_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - abusiveexperiencereport_v1.Resource$Sites = Resource$Sites; - class Resource$Violatingsites { + managedidentities_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.domains = new Resource$Projects$Locations$Global$Domains(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + this.peerings = new Resource$Projects$Locations$Global$Peerings(this.context); + } + } + managedidentities_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Domains { constructor(context) { this.context = context; + this.backups = new Resource$Projects$Locations$Global$Domains$Backups(this.context); + this.sqlIntegrations = + new Resource$Projects$Locations$Global$Domains$Sqlintegrations(this.context); + } + attachTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + extendSchema(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+domain}:extendSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getLdapssettings(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -40040,1218 +43177,336 @@ var abusiveexperiencereport_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reconfigureTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAdminPassword(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateLdapssettings(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; -})(abusiveexperiencereport_v1 = exports.abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 129 */ -/***/ (function(module) { - -module.exports = require("child_process"); - -/***/ }), -/* 130 */, -/* 131 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Password-based encryption functions. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * An EncryptedPrivateKeyInfo: - * - * EncryptedPrivateKeyInfo ::= SEQUENCE { - * encryptionAlgorithm EncryptionAlgorithmIdentifier, - * encryptedData EncryptedData } - * - * EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * EncryptedData ::= OCTET STRING - */ -var forge = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(784); -__webpack_require__(794); -__webpack_require__(220); -__webpack_require__(988); -__webpack_require__(575); -__webpack_require__(76); -__webpack_require__(707); -__webpack_require__(999); -__webpack_require__(526); -__webpack_require__(54); - -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} - -// shortcut for asn.1 API -var asn1 = forge.asn1; - -/* Password-based encryption implementation. */ -var pki = forge.pki = forge.pki || {}; -module.exports = pki.pbe = forge.pbe = forge.pbe || {}; -var oids = pki.oids; - -// validator for an EncryptedPrivateKeyInfo structure -// Note: Currently only works w/algorithm params -var encryptedPrivateKeyValidator = { - name: 'EncryptedPrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedPrivateKeyInfo.encryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encryptionOid' - }, { - name: 'AlgorithmIdentifier.parameters', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'encryptionParams' - }] - }, { - // encryptedData - name: 'EncryptedPrivateKeyInfo.encryptedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encryptedData' - }] -}; - -// validator for a PBES2Algorithms structure -// Note: Currently only works w/PBKDF2 + AES encryption schemes -var PBES2AlgorithmsValidator = { - name: 'PBES2Algorithms', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.keyDerivationFunc', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.keyDerivationFunc.oid', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'kdfOid' - }, { - name: 'PBES2Algorithms.params', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.params.salt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'kdfSalt' - }, { - name: 'PBES2Algorithms.params.iterationCount', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'kdfIterationCount' - }, { - name: 'PBES2Algorithms.params.keyLength', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - optional: true, - capture: 'keyLength' - }, { - // prf - name: 'PBES2Algorithms.params.prf', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'PBES2Algorithms.params.prf.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'prfOid' - }] - }] - }] - }, { - name: 'PBES2Algorithms.encryptionScheme', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.encryptionScheme.oid', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encOid' - }, { - name: 'PBES2Algorithms.encryptionScheme.iv', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encIv' - }] - }] -}; - -var pkcs12PbeParamsValidator = { - name: 'pkcs-12PbeParams', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'pkcs-12PbeParams.salt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'salt' - }, { - name: 'pkcs-12PbeParams.iterations', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'iterations' - }] -}; - -/** - * Encrypts a ASN.1 PrivateKeyInfo object, producing an EncryptedPrivateKeyInfo. - * - * PBES2Algorithms ALGORITHM-IDENTIFIER ::= - * { {PBES2-params IDENTIFIED BY id-PBES2}, ...} - * - * id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13} - * - * PBES2-params ::= SEQUENCE { - * keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}}, - * encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} - * } - * - * PBES2-KDFs ALGORITHM-IDENTIFIER ::= - * { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... } - * - * PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... } - * - * PBKDF2-params ::= SEQUENCE { - * salt CHOICE { - * specified OCTET STRING, - * otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}} - * }, - * iterationCount INTEGER (1..MAX), - * keyLength INTEGER (1..MAX) OPTIONAL, - * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 - * } - * - * @param obj the ASN.1 PrivateKeyInfo object. - * @param password the password to encrypt with. - * @param options: - * algorithm the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. - * count the iteration count to use. - * saltSize the salt size to use. - * prfAlgorithm the PRF message digest algorithm to use - * ('sha1', 'sha224', 'sha256', 'sha384', 'sha512') - * - * @return the ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptPrivateKeyInfo = function(obj, password, options) { - // set default options - options = options || {}; - options.saltSize = options.saltSize || 8; - options.count = options.count || 2048; - options.algorithm = options.algorithm || 'aes128'; - options.prfAlgorithm = options.prfAlgorithm || 'sha1'; - - // generate PBE params - var salt = forge.random.getBytesSync(options.saltSize); - var count = options.count; - var countBytes = asn1.integerToDer(count); - var dkLen; - var encryptionAlgorithm; - var encryptedData; - if(options.algorithm.indexOf('aes') === 0 || options.algorithm === 'des') { - // do PBES2 - var ivLen, encOid, cipherFn; - switch(options.algorithm) { - case 'aes128': - dkLen = 16; - ivLen = 16; - encOid = oids['aes128-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes192': - dkLen = 24; - ivLen = 16; - encOid = oids['aes192-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes256': - dkLen = 32; - ivLen = 16; - encOid = oids['aes256-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'des': - dkLen = 8; - ivLen = 8; - encOid = oids['desCBC']; - cipherFn = forge.des.createEncryptionCipher; - break; - default: - var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); - error.algorithm = options.algorithm; - throw error; - } - - // get PRF message digest - var prfAlgorithm = 'hmacWith' + options.prfAlgorithm.toUpperCase(); - var md = prfAlgorithmToMessageDigest(prfAlgorithm); - - // encrypt private key using pbe SHA-1 and AES/DES - var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); - var iv = forge.random.getBytesSync(ivLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(asn1.toDer(obj)); - cipher.finish(); - encryptedData = cipher.output.getBytes(); - - // get PBKDF2-params - var params = createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm); - - encryptionAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pkcs5PBES2']).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // keyDerivationFunc - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pkcs5PBKDF2']).getBytes()), - // PBKDF2-params - params - ]), - // encryptionScheme - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(encOid).getBytes()), - // iv - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, iv) - ]) - ]) - ]); - } else if(options.algorithm === '3des') { - // Do PKCS12 PBE - dkLen = 24; - - var saltBytes = new forge.util.ByteBuffer(salt); - var dk = pki.pbe.generatePkcs12Key(password, saltBytes, 1, count, dkLen); - var iv = pki.pbe.generatePkcs12Key(password, saltBytes, 2, count, dkLen); - var cipher = forge.des.createEncryptionCipher(dk); - cipher.start(iv); - cipher.update(asn1.toDer(obj)); - cipher.finish(); - encryptedData = cipher.output.getBytes(); - - encryptionAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pbeWithSHAAnd3-KeyTripleDES-CBC']).getBytes()), - // pkcs-12PbeParams - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // salt - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), - // iteration count - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - countBytes.getBytes()) - ]) - ]); - } else { - var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); - error.algorithm = options.algorithm; - throw error; - } - - // EncryptedPrivateKeyInfo - var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // encryptionAlgorithm - encryptionAlgorithm, - // encryptedData - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, encryptedData) - ]); - return rval; -}; - -/** - * Decrypts a ASN.1 PrivateKeyInfo object. - * - * @param obj the ASN.1 EncryptedPrivateKeyInfo object. - * @param password the password to decrypt with. - * - * @return the ASN.1 PrivateKeyInfo on success, null on failure. - */ -pki.decryptPrivateKeyInfo = function(obj, password) { - var rval = null; - - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(obj, encryptedPrivateKeyValidator, capture, errors)) { - var error = new Error('Cannot read encrypted private key. ' + - 'ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } - - // get cipher - var oid = asn1.derToOid(capture.encryptionOid); - var cipher = pki.pbe.getCipher(oid, capture.encryptionParams, password); - - // get encrypted data - var encrypted = forge.util.createBuffer(capture.encryptedData); - - cipher.update(encrypted); - if(cipher.finish()) { - rval = asn1.fromDer(cipher.output); - } - - return rval; -}; - -/** - * Converts a EncryptedPrivateKeyInfo to PEM format. - * - * @param epki the EncryptedPrivateKeyInfo. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted encrypted private key. - */ -pki.encryptedPrivateKeyToPem = function(epki, maxline) { - // convert to DER, then PEM-encode - var msg = { - type: 'ENCRYPTED PRIVATE KEY', - body: asn1.toDer(epki).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/** - * Converts a PEM-encoded EncryptedPrivateKeyInfo to ASN.1 format. Decryption - * is not performed. - * - * @param pem the EncryptedPrivateKeyInfo in PEM-format. - * - * @return the ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptedPrivateKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'ENCRYPTED PRIVATE KEY') { - var error = new Error('Could not convert encrypted private key from PEM; ' + - 'PEM header type is "ENCRYPTED PRIVATE KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert encrypted private key from PEM; ' + - 'PEM is encrypted.'); - } - - // convert DER to ASN.1 object - return asn1.fromDer(msg.body); -}; - -/** - * Encrypts an RSA private key. By default, the key will be wrapped in - * a PrivateKeyInfo and encrypted to produce a PKCS#8 EncryptedPrivateKeyInfo. - * This is the standard, preferred way to encrypt a private key. - * - * To produce a non-standard PEM-encrypted private key that uses encapsulated - * headers to indicate the encryption algorithm (old-style non-PKCS#8 OpenSSL - * private key encryption), set the 'legacy' option to true. Note: Using this - * option will cause the iteration count to be forced to 1. - * - * Note: The 'des' algorithm is supported, but it is not considered to be - * secure because it only uses a single 56-bit key. If possible, it is highly - * recommended that a different algorithm be used. - * - * @param rsaKey the RSA key to encrypt. - * @param password the password to use. - * @param options: - * algorithm: the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des', 'des'). - * count: the iteration count to use. - * saltSize: the salt size to use. - * legacy: output an old non-PKCS#8 PEM-encrypted+encapsulated - * headers (DEK-Info) private key. - * - * @return the PEM-encoded ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptRsaPrivateKey = function(rsaKey, password, options) { - // standard PKCS#8 - options = options || {}; - if(!options.legacy) { - // encrypt PrivateKeyInfo - var rval = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(rsaKey)); - rval = pki.encryptPrivateKeyInfo(rval, password, options); - return pki.encryptedPrivateKeyToPem(rval); - } - - // legacy non-PKCS#8 - var algorithm; - var iv; - var dkLen; - var cipherFn; - switch(options.algorithm) { - case 'aes128': - algorithm = 'AES-128-CBC'; - dkLen = 16; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes192': - algorithm = 'AES-192-CBC'; - dkLen = 24; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes256': - algorithm = 'AES-256-CBC'; - dkLen = 32; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case '3des': - algorithm = 'DES-EDE3-CBC'; - dkLen = 24; - iv = forge.random.getBytesSync(8); - cipherFn = forge.des.createEncryptionCipher; - break; - case 'des': - algorithm = 'DES-CBC'; - dkLen = 8; - iv = forge.random.getBytesSync(8); - cipherFn = forge.des.createEncryptionCipher; - break; - default: - var error = new Error('Could not encrypt RSA private key; unsupported ' + - 'encryption algorithm "' + options.algorithm + '".'); - error.algorithm = options.algorithm; - throw error; - } - - // encrypt private key using OpenSSL legacy key derivation - var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(asn1.toDer(pki.privateKeyToAsn1(rsaKey))); - cipher.finish(); - - var msg = { - type: 'RSA PRIVATE KEY', - procType: { - version: '4', - type: 'ENCRYPTED' - }, - dekInfo: { - algorithm: algorithm, - parameters: forge.util.bytesToHex(iv).toUpperCase() - }, - body: cipher.output.getBytes() - }; - return forge.pem.encode(msg); -}; - -/** - * Decrypts an RSA private key. - * - * @param pem the PEM-formatted EncryptedPrivateKeyInfo to decrypt. - * @param password the password to use. - * - * @return the RSA key on success, null on failure. - */ -pki.decryptRsaPrivateKey = function(pem, password) { - var rval = null; - - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'ENCRYPTED PRIVATE KEY' && - msg.type !== 'PRIVATE KEY' && - msg.type !== 'RSA PRIVATE KEY') { - var error = new Error('Could not convert private key from PEM; PEM header type ' + - 'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".'); - error.headerType = error; - throw error; - } - - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - var dkLen; - var cipherFn; - switch(msg.dekInfo.algorithm) { - case 'DES-CBC': - dkLen = 8; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'DES-EDE3-CBC': - dkLen = 24; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'AES-128-CBC': - dkLen = 16; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'AES-192-CBC': - dkLen = 24; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'AES-256-CBC': - dkLen = 32; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'RC2-40-CBC': - dkLen = 5; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 40); - }; - break; - case 'RC2-64-CBC': - dkLen = 8; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 64); - }; - break; - case 'RC2-128-CBC': - dkLen = 16; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 128); - }; - break; - default: - var error = new Error('Could not decrypt private key; unsupported ' + - 'encryption algorithm "' + msg.dekInfo.algorithm + '".'); - error.algorithm = msg.dekInfo.algorithm; - throw error; - } - - // use OpenSSL legacy key derivation - var iv = forge.util.hexToBytes(msg.dekInfo.parameters); - var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(forge.util.createBuffer(msg.body)); - if(cipher.finish()) { - rval = cipher.output.getBytes(); - } else { - return rval; - } - } else { - rval = msg.body; - } - - if(msg.type === 'ENCRYPTED PRIVATE KEY') { - rval = pki.decryptPrivateKeyInfo(asn1.fromDer(rval), password); - } else { - // decryption already performed above - rval = asn1.fromDer(rval); - } - - if(rval !== null) { - rval = pki.privateKeyFromAsn1(rval); - } - - return rval; -}; - -/** - * Derives a PKCS#12 key. - * - * @param password the password to derive the key material from, null or - * undefined for none. - * @param salt the salt, as a ByteBuffer, to use. - * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). - * @param iter the iteration count. - * @param n the number of bytes to derive from the password. - * @param md the message digest to use, defaults to SHA-1. - * - * @return a ByteBuffer with the bytes derived from the password. - */ -pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) { - var j, l; - - if(typeof md === 'undefined' || md === null) { - if(!('sha1' in forge.md)) { - throw new Error('"sha1" hash algorithm unavailable.'); - } - md = forge.md.sha1.create(); - } - - var u = md.digestLength; - var v = md.blockLength; - var result = new forge.util.ByteBuffer(); - - /* Convert password to Unicode byte buffer + trailing 0-byte. */ - var passBuf = new forge.util.ByteBuffer(); - if(password !== null && password !== undefined) { - for(l = 0; l < password.length; l++) { - passBuf.putInt16(password.charCodeAt(l)); - } - passBuf.putInt16(0); - } - - /* Length of salt and password in BYTES. */ - var p = passBuf.length(); - var s = salt.length(); - - /* 1. Construct a string, D (the "diversifier"), by concatenating - v copies of ID. */ - var D = new forge.util.ByteBuffer(); - D.fillWithByte(id, v); - - /* 2. Concatenate copies of the salt together to create a string S of length - v * ceil(s / v) bytes (the final copy of the salt may be trunacted - to create S). - Note that if the salt is the empty string, then so is S. */ - var Slen = v * Math.ceil(s / v); - var S = new forge.util.ByteBuffer(); - for(l = 0; l < Slen; l++) { - S.putByte(salt.at(l % s)); - } - - /* 3. Concatenate copies of the password together to create a string P of - length v * ceil(p / v) bytes (the final copy of the password may be - truncated to create P). - Note that if the password is the empty string, then so is P. */ - var Plen = v * Math.ceil(p / v); - var P = new forge.util.ByteBuffer(); - for(l = 0; l < Plen; l++) { - P.putByte(passBuf.at(l % p)); - } - - /* 4. Set I=S||P to be the concatenation of S and P. */ - var I = S; - I.putBuffer(P); - - /* 5. Set c=ceil(n / u). */ - var c = Math.ceil(n / u); - - /* 6. For i=1, 2, ..., c, do the following: */ - for(var i = 1; i <= c; i++) { - /* a) Set Ai=H^r(D||I). (l.e. the rth hash of D||I, H(H(H(...H(D||I)))) */ - var buf = new forge.util.ByteBuffer(); - buf.putBytes(D.bytes()); - buf.putBytes(I.bytes()); - for(var round = 0; round < iter; round++) { - md.start(); - md.update(buf.getBytes()); - buf = md.digest(); - } - - /* b) Concatenate copies of Ai to create a string B of length v bytes (the - final copy of Ai may be truncated to create B). */ - var B = new forge.util.ByteBuffer(); - for(l = 0; l < v; l++) { - B.putByte(buf.at(l % u)); - } - - /* c) Treating I as a concatenation I0, I1, ..., Ik-1 of v-byte blocks, - where k=ceil(s / v) + ceil(p / v), modify I by setting - Ij=(Ij+B+1) mod 2v for each j. */ - var k = Math.ceil(s / v) + Math.ceil(p / v); - var Inew = new forge.util.ByteBuffer(); - for(j = 0; j < k; j++) { - var chunk = new forge.util.ByteBuffer(I.getBytes(v)); - var x = 0x1ff; - for(l = B.length() - 1; l >= 0; l--) { - x = x >> 8; - x += B.at(l) + chunk.at(l); - chunk.setAt(l, x & 0xff); - } - Inew.putBuffer(chunk); - } - I = Inew; - - /* Add Ai to A. */ - result.putBuffer(buf); - } - - result.truncate(result.length() - n); - return result; -}; - -/** - * Get new Forge cipher object instance. - * - * @param oid the OID (in string notation). - * @param params the ASN.1 params object. - * @param password the password to decrypt with. - * - * @return new cipher object instance. - */ -pki.pbe.getCipher = function(oid, params, password) { - switch(oid) { - case pki.oids['pkcs5PBES2']: - return pki.pbe.getCipherForPBES2(oid, params, password); - - case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: - case pki.oids['pbewithSHAAnd40BitRC2-CBC']: - return pki.pbe.getCipherForPKCS12PBE(oid, params, password); - - default: - var error = new Error('Cannot read encrypted PBE data block. Unsupported OID.'); - error.oid = oid; - error.supportedOids = [ - 'pkcs5PBES2', - 'pbeWithSHAAnd3-KeyTripleDES-CBC', - 'pbewithSHAAnd40BitRC2-CBC' - ]; - throw error; - } -}; - -/** - * Get new Forge cipher object instance according to PBES2 params block. - * - * The returned cipher instance is already started using the IV - * from PBES2 parameter block. - * - * @param oid the PKCS#5 PBKDF2 OID (in string notation). - * @param params the ASN.1 PBES2-params object. - * @param password the password to decrypt with. - * - * @return new cipher object instance. - */ -pki.pbe.getCipherForPBES2 = function(oid, params, password) { - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(params, PBES2AlgorithmsValidator, capture, errors)) { - var error = new Error('Cannot read password-based-encryption algorithm ' + - 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } - - // check oids - oid = asn1.derToOid(capture.kdfOid); - if(oid !== pki.oids['pkcs5PBKDF2']) { - var error = new Error('Cannot read encrypted private key. ' + - 'Unsupported key derivation function OID.'); - error.oid = oid; - error.supportedOids = ['pkcs5PBKDF2']; - throw error; - } - oid = asn1.derToOid(capture.encOid); - if(oid !== pki.oids['aes128-CBC'] && - oid !== pki.oids['aes192-CBC'] && - oid !== pki.oids['aes256-CBC'] && - oid !== pki.oids['des-EDE3-CBC'] && - oid !== pki.oids['desCBC']) { - var error = new Error('Cannot read encrypted private key. ' + - 'Unsupported encryption scheme OID.'); - error.oid = oid; - error.supportedOids = [ - 'aes128-CBC', 'aes192-CBC', 'aes256-CBC', 'des-EDE3-CBC', 'desCBC']; - throw error; - } - - // set PBE params - var salt = capture.kdfSalt; - var count = forge.util.createBuffer(capture.kdfIterationCount); - count = count.getInt(count.length() << 3); - var dkLen; - var cipherFn; - switch(pki.oids[oid]) { - case 'aes128-CBC': - dkLen = 16; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'aes192-CBC': - dkLen = 24; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'aes256-CBC': - dkLen = 32; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'des-EDE3-CBC': - dkLen = 24; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'desCBC': - dkLen = 8; - cipherFn = forge.des.createDecryptionCipher; - break; - } - - // get PRF message digest - var md = prfOidToMessageDigest(capture.prfOid); - - // decrypt private key using pbe with chosen PRF and AES/DES - var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); - var iv = capture.encIv; - var cipher = cipherFn(dk); - cipher.start(iv); - - return cipher; -}; - -/** - * Get new Forge cipher object instance for PKCS#12 PBE. - * - * The returned cipher instance is already started using the key & IV - * derived from the provided password and PKCS#12 PBE salt. - * - * @param oid The PKCS#12 PBE OID (in string notation). - * @param params The ASN.1 PKCS#12 PBE-params object. - * @param password The password to decrypt with. - * - * @return the new cipher object instance. - */ -pki.pbe.getCipherForPKCS12PBE = function(oid, params, password) { - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(params, pkcs12PbeParamsValidator, capture, errors)) { - var error = new Error('Cannot read password-based-encryption algorithm ' + - 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } - - var salt = forge.util.createBuffer(capture.salt); - var count = forge.util.createBuffer(capture.iterations); - count = count.getInt(count.length() << 3); - - var dkLen, dIvLen, cipherFn; - switch(oid) { - case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: - dkLen = 24; - dIvLen = 8; - cipherFn = forge.des.startDecrypting; - break; - - case pki.oids['pbewithSHAAnd40BitRC2-CBC']: - dkLen = 5; - dIvLen = 8; - cipherFn = function(key, iv) { - var cipher = forge.rc2.createDecryptionCipher(key, 40); - cipher.start(iv, null); - return cipher; - }; - break; - - default: - var error = new Error('Cannot read PKCS #12 PBE data block. Unsupported OID.'); - error.oid = oid; - throw error; - } - - // get PRF message digest - var md = prfOidToMessageDigest(capture.prfOid); - var key = pki.pbe.generatePkcs12Key(password, salt, 1, count, dkLen, md); - md.start(); - var iv = pki.pbe.generatePkcs12Key(password, salt, 2, count, dIvLen, md); - - return cipherFn(key, iv); -}; - -/** - * OpenSSL's legacy key derivation function. - * - * See: http://www.openssl.org/docs/crypto/EVP_BytesToKey.html - * - * @param password the password to derive the key from. - * @param salt the salt to use, null for none. - * @param dkLen the number of bytes needed for the derived key. - * @param [options] the options to use: - * [md] an optional message digest object to use. - */ -pki.pbe.opensslDeriveBytes = function(password, salt, dkLen, md) { - if(typeof md === 'undefined' || md === null) { - if(!('md5' in forge.md)) { - throw new Error('"md5" hash algorithm unavailable.'); - } - md = forge.md.md5.create(); - } - if(salt === null) { - salt = ''; - } - var digests = [hash(md, password + salt)]; - for(var length = 16, i = 1; length < dkLen; ++i, length += 16) { - digests.push(hash(md, digests[i - 1] + password + salt)); - } - return digests.join('').substr(0, dkLen); -}; - -function hash(md, bytes) { - return md.start().update(bytes).digest().getBytes(); -} - -function prfOidToMessageDigest(prfOid) { - // get PRF algorithm, default to SHA-1 - var prfAlgorithm; - if(!prfOid) { - prfAlgorithm = 'hmacWithSHA1'; - } else { - prfAlgorithm = pki.oids[asn1.derToOid(prfOid)]; - if(!prfAlgorithm) { - var error = new Error('Unsupported PRF OID.'); - error.oid = prfOid; - error.supported = [ - 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', - 'hmacWithSHA512']; - throw error; - } - } - return prfAlgorithmToMessageDigest(prfAlgorithm); -} - -function prfAlgorithmToMessageDigest(prfAlgorithm) { - var factory = forge.md; - switch(prfAlgorithm) { - case 'hmacWithSHA224': - factory = forge.md.sha512; - case 'hmacWithSHA1': - case 'hmacWithSHA256': - case 'hmacWithSHA384': - case 'hmacWithSHA512': - prfAlgorithm = prfAlgorithm.substr(8).toLowerCase(); - break; - default: - var error = new Error('Unsupported PRF algorithm.'); - error.algorithm = prfAlgorithm; - error.supported = [ - 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', - 'hmacWithSHA512']; - throw error; - } - if(!factory || !(prfAlgorithm in factory)) { - throw new Error('Unknown hash algorithm: ' + prfAlgorithm); - } - return factory[prfAlgorithm].create(); -} - -function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) { - var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // salt - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), - // iteration count - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - countBytes.getBytes()) - ]); - // when PRF algorithm is not SHA-1 default, add key length and PRF algorithm - if(prfAlgorithm !== 'hmacWithSHA1') { - params.value.push( - // key length - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(dkLen.toString(16))), - // AlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids[prfAlgorithm]).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ])); - } - return params; -} - - -/***/ }), -/* 132 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.accessapproval = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(42); -const v1beta1_1 = __webpack_require__(780); -exports.VERSIONS = { - v1: v1_1.accessapproval_v1.Accessapproval, - v1beta1: v1beta1_1.accessapproval_v1beta1.Accessapproval, -}; -function accessapproval(versionOrOptions) { - return googleapis_common_1.getAPI('accessapproval', versionOrOptions, exports.VERSIONS, this); -} -exports.accessapproval = accessapproval; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 133 */, -/* 134 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.memcache_v1beta2 = 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 = __webpack_require__(927); -var memcache_v1beta2; -(function (memcache_v1beta2) { - /** - * Cloud Memorystore for Memcached API - * - * Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. - * - * @example - * const {google} = require('googleapis'); - * const memcache = google.memcache('v1beta2'); - * - * @namespace memcache - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Memcache - */ - class Memcache { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - memcache_v1beta2.Memcache = Memcache; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - memcache_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + managedidentities_v1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Domains$Backups { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -41259,36 +43514,31 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - memcache_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { - constructor(context) { - this.context = context; - } - applyParameters(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -41296,92 +43546,95 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -41389,30 +43642,31 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -41420,61 +43674,69 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + managedidentities_v1.Resource$Projects$Locations$Global$Domains$Backups = Resource$Projects$Locations$Global$Domains$Backups; + class Resource$Projects$Locations$Global$Domains$Sqlintegrations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -41482,92 +43744,101 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + managedidentities_v1.Resource$Projects$Locations$Global$Domains$Sqlintegrations = Resource$Projects$Locations$Global$Domains$Sqlintegrations; + class Resource$Projects$Locations$Global$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateParameters(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -41575,19 +43846,13 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - memcache_v1beta2.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41600,11 +43865,11 @@ var memcache_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -41612,30 +43877,31 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -41643,30 +43909,69 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + managedidentities_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; + class Resource$Projects$Locations$Global$Peerings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -41674,13 +43979,13 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41693,10 +43998,10 @@ var memcache_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -41705,149 +44010,45 @@ var memcache_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - memcache_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(memcache_v1beta2 = exports.memcache_v1beta2 || (exports.memcache_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 135 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = Octokit; - -const { request } = __webpack_require__(753); -const Hook = __webpack_require__(102); - -const parseClientOptions = __webpack_require__(36); - -function Octokit(plugins, options) { - options = options || {}; - const hook = new Hook.Collection(); - const log = Object.assign( - { - debug: () => {}, - info: () => {}, - warn: console.warn, - error: console.error - }, - options && options.log - ); - const api = { - hook, - log, - request: request.defaults(parseClientOptions(options, log, hook)) - }; - - plugins.forEach(pluginFunction => pluginFunction(api, options)); - - return api; -} - - -/***/ }), -/* 136 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.billingbudgets_v1beta1 = 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 = __webpack_require__(927); -var billingbudgets_v1beta1; -(function (billingbudgets_v1beta1) { - /** - * Cloud Billing Budget API - * - * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. - * - * @example - * const {google} = require('googleapis'); - * const billingbudgets = google.billingbudgets('v1beta1'); - * - * @namespace billingbudgets - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Billingbudgets - */ - class Billingbudgets { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.billingAccounts = new Resource$Billingaccounts(this.context); - } - } - billingbudgets_v1beta1.Billingbudgets = Billingbudgets; - class Resource$Billingaccounts { - constructor(context) { - this.context = context; - this.budgets = new Resource$Billingaccounts$Budgets(this.context); - } - } - billingbudgets_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; - class Resource$Billingaccounts$Budgets { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41860,25 +44061,25 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41891,11 +44092,11 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -41903,385 +44104,1182 @@ var billingbudgets_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - billingbudgets_v1beta1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; -})(billingbudgets_v1beta1 = exports.billingbudgets_v1beta1 || (exports.billingbudgets_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + managedidentities_v1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; +})(managedidentities_v1 = exports.managedidentities_v1 || (exports.managedidentities_v1 = {})); + /***/ }), -/* 137 */ + +/***/ 828: /***/ (function(module, __unusedexports, __webpack_require__) { /** - * Prime number generation API. + * Advanced Encryption Standard (AES) implementation. + * + * This implementation is based on the public domain library 'jscrypto' which + * was written by: + * + * Emily Stark (estark@stanford.edu) + * Mike Hamburg (mhamburg@stanford.edu) + * Dan Boneh (dabo@cs.stanford.edu) + * + * Parts of this code are based on the OpenSSL implementation of AES: + * http://www.openssl.org * * @author Dave Longley * - * Copyright (c) 2014 Digital Bazaar, Inc. + * Copyright (c) 2010-2014 Digital Bazaar, Inc. */ var forge = __webpack_require__(239); -__webpack_require__(54); -__webpack_require__(349); -__webpack_require__(707); +__webpack_require__(6102); +__webpack_require__(158); +__webpack_require__(7152); -(function() { +/* AES API */ +module.exports = forge.aes = forge.aes || {}; -// forge.prime already defined -if(forge.prime) { - module.exports = forge.prime; - return; -} +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('AES-', key); + * cipher.start({iv: iv}); + * + * Creates an AES cipher object to encrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as a string of bytes, an array of bytes, + * a byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.startEncrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: false, + mode: mode + }); + cipher.start(iv); + return cipher; +}; -/* PRIME API */ -var prime = module.exports = forge.prime = forge.prime || {}; +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('AES-', key); + * + * Creates an AES cipher object to encrypt data using the given symmetric key. + * + * The key may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.createEncryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: false, + mode: mode + }); +}; -var BigInteger = forge.jsbn.BigInteger; +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('AES-', key); + * decipher.start({iv: iv}); + * + * Creates an AES cipher object to decrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as a string of bytes, an array of bytes, + * a byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.startDecrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: true, + mode: mode + }); + cipher.start(iv); + return cipher; +}; -// primes are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 -var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; -var THIRTY = new BigInteger(null); -THIRTY.fromInt(30); -var op_or = function(x, y) {return x|y;}; +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('AES-', key); + * + * Creates an AES cipher object to decrypt data using the given symmetric key. + * + * The key may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.createDecryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: true, + mode: mode + }); +}; /** - * Generates a random probable prime with the given number of bits. + * Creates a new AES cipher algorithm object. * - * Alternative algorithms can be specified by name as a string or as an - * object with custom options like so: + * @param name the name of the algorithm. + * @param mode the mode factory function. * - * { - * name: 'PRIMEINC', - * options: { - * maxBlockTime: , - * millerRabinTests: , - * workerScript: , - * workers: . - * workLoad: the size of the work load, ie: number of possible prime - * numbers for each web worker to check per work assignment, - * (default: 100). - * } - * } + * @return the AES algorithm object. + */ +forge.aes.Algorithm = function(name, mode) { + if(!init) { + initialize(); + } + var self = this; + self.name = name; + self.mode = new mode({ + blockSize: 16, + cipher: { + encrypt: function(inBlock, outBlock) { + return _updateBlock(self._w, inBlock, outBlock, false); + }, + decrypt: function(inBlock, outBlock) { + return _updateBlock(self._w, inBlock, outBlock, true); + } + } + }); + self._init = false; +}; + +/** + * Initializes this AES algorithm by expanding its key. * - * @param bits the number of bits for the prime number. * @param options the options to use. - * [algorithm] the algorithm to use (default: 'PRIMEINC'). - * [prng] a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". - * - * @return callback(err, num) called once the operation completes. + * key the key to use with this algorithm. + * decrypt true if the algorithm should be initialized for decryption, + * false for encryption. */ -prime.generateProbablePrime = function(bits, options, callback) { - if(typeof options === 'function') { - callback = options; - options = {}; +forge.aes.Algorithm.prototype.initialize = function(options) { + if(this._init) { + return; } - options = options || {}; - // default to PRIMEINC algorithm - var algorithm = options.algorithm || 'PRIMEINC'; - if(typeof algorithm === 'string') { - algorithm = {name: algorithm}; + var key = options.key; + var tmp; + + /* Note: The key may be a string of bytes, an array of bytes, a byte + buffer, or an array of 32-bit integers. If the key is in bytes, then + it must be 16, 24, or 32 bytes in length. If it is in 32-bit + integers, it must be 4, 6, or 8 integers long. */ + + if(typeof key === 'string' && + (key.length === 16 || key.length === 24 || key.length === 32)) { + // convert key string into byte buffer + key = forge.util.createBuffer(key); + } else if(forge.util.isArray(key) && + (key.length === 16 || key.length === 24 || key.length === 32)) { + // convert key integer array into byte buffer + tmp = key; + key = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + key.putByte(tmp[i]); + } } - algorithm.options = algorithm.options || {}; - // create prng with api that matches BigInteger secure random - var prng = options.prng || forge.random; - var rng = { - // x is an array to fill with bytes - nextBytes: function(x) { - var b = prng.getBytesSync(x.length); - for(var i = 0; i < x.length; ++i) { - x[i] = b.charCodeAt(i); + // convert key byte buffer into 32-bit integer array + if(!forge.util.isArray(key)) { + tmp = key; + key = []; + + // key lengths of 16, 24, 32 bytes allowed + var len = tmp.length(); + if(len === 16 || len === 24 || len === 32) { + len = len >>> 2; + for(var i = 0; i < len; ++i) { + key.push(tmp.getInt32()); } } - }; + } - if(algorithm.name === 'PRIMEINC') { - return primeincFindPrime(bits, rng, algorithm.options, callback); + // key must be an array of 32-bit integers by now + if(!forge.util.isArray(key) || + !(key.length === 4 || key.length === 6 || key.length === 8)) { + throw new Error('Invalid key parameter.'); } - throw new Error('Invalid prime generation algorithm: ' + algorithm.name); + // encryption operation is always used for these modes + var mode = this.mode.name; + var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1); + + // do key expansion + this._w = _expandKey(key, options.decrypt && !encryptOp); + this._init = true; }; -function primeincFindPrime(bits, rng, options, callback) { - if('workers' in options) { - return primeincFindPrimeWithWorkers(bits, rng, options, callback); +/** + * Expands a key. Typically only used for testing. + * + * @param key the symmetric key to expand, as an array of 32-bit words. + * @param decrypt true to expand for decryption, false for encryption. + * + * @return the expanded key. + */ +forge.aes._expandKey = function(key, decrypt) { + if(!init) { + initialize(); } - return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); + return _expandKey(key, decrypt); +}; + +/** + * Updates a single block. Typically only used for testing. + * + * @param w the expanded key to use. + * @param input an array of block-size 32-bit words. + * @param output an array of block-size 32-bit words. + * @param decrypt true to decrypt, false to encrypt. + */ +forge.aes._updateBlock = _updateBlock; + +/** Register AES algorithms **/ + +registerAlgorithm('AES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('AES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('AES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('AES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('AES-CTR', forge.cipher.modes.ctr); +registerAlgorithm('AES-GCM', forge.cipher.modes.gcm); + +function registerAlgorithm(name, mode) { + var factory = function() { + return new forge.aes.Algorithm(name, mode); + }; + forge.cipher.registerAlgorithm(name, factory); } -function primeincFindPrimeWithoutWorkers(bits, rng, options, callback) { - // initialize random number - var num = generateRandom(bits, rng); +/** AES implementation **/ - /* Note: All primes are of the form 30k+i for i < 30 and gcd(30, i)=1. The - number we are given is always aligned at 30k + 1. Each time the number is - determined not to be prime we add to get to the next 'i', eg: if the number - was at 30k + 1 we add 6. */ - var deltaIdx = 0; +var init = false; // not yet initialized +var Nb = 4; // number of words comprising the state (AES = 4) +var sbox; // non-linear substitution table used in key expansion +var isbox; // inversion of sbox +var rcon; // round constant word array +var mix; // mix-columns table +var imix; // inverse mix-columns table - // get required number of MR tests - var mrTests = getMillerRabinTests(num.bitLength()); - if('millerRabinTests' in options) { - mrTests = options.millerRabinTests; +/** + * Performs initialization, ie: precomputes tables to optimize for speed. + * + * One way to understand how AES works is to imagine that 'addition' and + * 'multiplication' are interfaces that require certain mathematical + * properties to hold true (ie: they are associative) but they might have + * different implementations and produce different kinds of results ... + * provided that their mathematical properties remain true. AES defines + * its own methods of addition and multiplication but keeps some important + * properties the same, ie: associativity and distributivity. The + * explanation below tries to shed some light on how AES defines addition + * and multiplication of bytes and 32-bit words in order to perform its + * encryption and decryption algorithms. + * + * The basics: + * + * The AES algorithm views bytes as binary representations of polynomials + * that have either 1 or 0 as the coefficients. It defines the addition + * or subtraction of two bytes as the XOR operation. It also defines the + * multiplication of two bytes as a finite field referred to as GF(2^8) + * (Note: 'GF' means "Galois Field" which is a field that contains a finite + * number of elements so GF(2^8) has 256 elements). + * + * This means that any two bytes can be represented as binary polynomials; + * when they multiplied together and modularly reduced by an irreducible + * polynomial of the 8th degree, the results are the field GF(2^8). The + * specific irreducible polynomial that AES uses in hexadecimal is 0x11b. + * This multiplication is associative with 0x01 as the identity: + * + * (b * 0x01 = GF(b, 0x01) = b). + * + * The operation GF(b, 0x02) can be performed at the byte level by left + * shifting b once and then XOR'ing it (to perform the modular reduction) + * with 0x11b if b is >= 128. Repeated application of the multiplication + * of 0x02 can be used to implement the multiplication of any two bytes. + * + * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can + * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these + * factors can each be multiplied by 0x57 and then added together. To do + * the multiplication, values for 0x57 multiplied by each of these 3 factors + * can be precomputed and stored in a table. To add them, the values from + * the table are XOR'd together. + * + * AES also defines addition and multiplication of words, that is 4-byte + * numbers represented as polynomials of 3 degrees where the coefficients + * are the values of the bytes. + * + * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0. + * + * Addition is performed by XOR'ing like powers of x. Multiplication + * is performed in two steps, the first is an algebriac expansion as + * you would do normally (where addition is XOR). But the result is + * a polynomial larger than 3 degrees and thus it cannot fit in a word. So + * next the result is modularly reduced by an AES-specific polynomial of + * degree 4 which will always produce a polynomial of less than 4 degrees + * such that it will fit in a word. In AES, this polynomial is x^4 + 1. + * + * The modular product of two polynomials 'a' and 'b' is thus: + * + * d(x) = d3x^3 + d2x^2 + d1x + d0 + * with + * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3) + * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3) + * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3) + * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3) + * + * As a matrix: + * + * [d0] = [a0 a3 a2 a1][b0] + * [d1] [a1 a0 a3 a2][b1] + * [d2] [a2 a1 a0 a3][b2] + * [d3] [a3 a2 a1 a0][b3] + * + * Special polynomials defined by AES (0x02 == {02}): + * a(x) = {03}x^3 + {01}x^2 + {01}x + {02} + * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}. + * + * These polynomials are used in the MixColumns() and InverseMixColumns() + * operations, respectively, to cause each element in the state to affect + * the output (referred to as diffusing). + * + * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the + * polynomial x3. + * + * The ShiftRows() method modifies the last 3 rows in the state (where + * the state is 4 words with 4 bytes per word) by shifting bytes cyclically. + * The 1st byte in the second row is moved to the end of the row. The 1st + * and 2nd bytes in the third row are moved to the end of the row. The 1st, + * 2nd, and 3rd bytes are moved in the fourth row. + * + * More details on how AES arithmetic works: + * + * In the polynomial representation of binary numbers, XOR performs addition + * and subtraction and multiplication in GF(2^8) denoted as GF(a, b) + * corresponds with the multiplication of polynomials modulo an irreducible + * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply + * polynomial 'a' with polynomial 'b' and then do a modular reduction by + * an AES-specific irreducible polynomial of degree 8. + * + * A polynomial is irreducible if its only divisors are one and itself. For + * the AES algorithm, this irreducible polynomial is: + * + * m(x) = x^8 + x^4 + x^3 + x + 1, + * + * or {01}{1b} in hexadecimal notation, where each coefficient is a bit: + * 100011011 = 283 = 0x11b. + * + * For example, GF(0x57, 0x83) = 0xc1 because + * + * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1 + * 0x85 = 131 = 10000101 = x^7 + x + 1 + * + * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1) + * = x^13 + x^11 + x^9 + x^8 + x^7 + + * x^7 + x^5 + x^3 + x^2 + x + + * x^6 + x^4 + x^2 + x + 1 + * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y + * y modulo (x^8 + x^4 + x^3 + x + 1) + * = x^7 + x^6 + 1. + * + * The modular reduction by m(x) guarantees the result will be a binary + * polynomial of less than degree 8, so that it can fit in a byte. + * + * The operation to multiply a binary polynomial b with x (the polynomial + * x in binary representation is 00000010) is: + * + * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1 + * + * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the + * most significant bit is 0 in b) then the result is already reduced. If + * it is 1, then we can reduce it by subtracting m(x) via an XOR. + * + * It follows that multiplication by x (00000010 or 0x02) can be implemented + * by performing a left shift followed by a conditional bitwise XOR with + * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by + * higher powers of x can be implemented by repeated application of xtime(). + * + * By adding intermediate results, multiplication by any constant can be + * implemented. For instance: + * + * GF(0x57, 0x13) = 0xfe because: + * + * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1) + * + * Note: We XOR with 0x11b instead of 0x1b because in javascript our + * datatype for b can be larger than 1 byte, so a left shift will not + * automatically eliminate bits that overflow a byte ... by XOR'ing the + * overflow bit with 1 (the extra one from 0x11b) we zero it out. + * + * GF(0x57, 0x02) = xtime(0x57) = 0xae + * GF(0x57, 0x04) = xtime(0xae) = 0x47 + * GF(0x57, 0x08) = xtime(0x47) = 0x8e + * GF(0x57, 0x10) = xtime(0x8e) = 0x07 + * + * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10)) + * + * And by the distributive property (since XOR is addition and GF() is + * multiplication): + * + * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10) + * = 0x57 ^ 0xae ^ 0x07 + * = 0xfe. + */ +function initialize() { + init = true; + + /* Populate the Rcon table. These are the values given by + [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02) + in the field of GF(2^8), where i starts at 1. + + rcon[0] = [0x00, 0x00, 0x00, 0x00] + rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1 + rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2 + ... + rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B + rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36 + + We only store the first byte because it is the only one used. + */ + rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36]; + + // compute xtime table which maps i onto GF(i, 0x02) + var xtime = new Array(256); + for(var i = 0; i < 128; ++i) { + xtime[i] = i << 1; + xtime[i + 128] = (i + 128) << 1 ^ 0x11B; } - // find prime nearest to 'num' for maxBlockTime ms - // 10 ms gives 5ms of leeway for other calculations before dropping - // below 60fps (1000/60 == 16.67), but in reality, the number will - // likely be higher due to an 'atomic' big int modPow - var maxBlockTime = 10; - if('maxBlockTime' in options) { - maxBlockTime = options.maxBlockTime; + // compute all other tables + sbox = new Array(256); + isbox = new Array(256); + mix = new Array(4); + imix = new Array(4); + for(var i = 0; i < 4; ++i) { + mix[i] = new Array(256); + imix[i] = new Array(256); } + var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime; + for(var i = 0; i < 256; ++i) { + /* We need to generate the SubBytes() sbox and isbox tables so that + we can perform byte substitutions. This requires us to traverse + all of the elements in GF, find their multiplicative inverses, + and apply to each the following affine transformation: - _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); -} + bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^ + b(i + 7) mod 8 ^ ci + for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the + ith bit of a byte c with the value {63} or {01100011}. -function _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback) { - var start = +new Date(); - do { - // overflow, regenerate random number - if(num.bitLength() > bits) { - num = generateRandom(bits, rng); - } - // do primality test - if(num.isProbablePrime(mrTests)) { - return callback(null, num); - } - // get next potential prime - num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); - } while(maxBlockTime < 0 || (+new Date() - start < maxBlockTime)); + It is possible to traverse every possible value in a Galois field + using what is referred to as a 'generator'. There are many + generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully + traverse GF we iterate 255 times, multiplying by our generator + each time. - // keep trying later - forge.util.setImmediate(function() { - _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); - }); -} + On each iteration we can determine the multiplicative inverse for + the current element. -// NOTE: This algorithm is indeterminate in nature because workers -// run in parallel looking at different segments of numbers. Even if this -// algorithm is run twice with the same input from a predictable RNG, it -// may produce different outputs. -function primeincFindPrimeWithWorkers(bits, rng, options, callback) { - // web workers unavailable - if(typeof Worker === 'undefined') { - return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); - } + Suppose there is an element in GF 'e'. For a given generator 'g', + e = g^x. The multiplicative inverse of e is g^(255 - x). It turns + out that if use the inverse of a generator as another generator + it will produce all of the corresponding multiplicative inverses + at the same time. For this reason, we choose 5 as our inverse + generator because it only requires 2 multiplies and 1 add and its + inverse, 82, requires relatively few operations as well. - // initialize random number - var num = generateRandom(bits, rng); + In order to apply the affine transformation, the multiplicative + inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a + bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and + 'x'. Then 's' is left shifted and the high bit of 's' is made the + low bit. The resulting value is stored in 's'. Then 'x' is XOR'd + with 's' and stored in 'x'. On each subsequent iteration the same + operation is performed. When 4 iterations are complete, 'x' is + XOR'd with 'c' (0x63) and the transformed value is stored in 'x'. + For example: - // use web workers to generate keys - var numWorkers = options.workers; - var workLoad = options.workLoad || 100; - var range = workLoad * 30 / 8; - var workerScript = options.workerScript || 'forge/prime.worker.js'; - if(numWorkers === -1) { - return forge.util.estimateCores(function(err, cores) { - if(err) { - // default to 2 - cores = 2; - } - numWorkers = cores - 1; - generate(); - }); - } - generate(); + s = 01000001 + x = 01000001 - function generate() { - // require at least 1 worker - numWorkers = Math.max(1, numWorkers); + iteration 1: s = 10000010, x ^= s + iteration 2: s = 00000101, x ^= s + iteration 3: s = 00001010, x ^= s + iteration 4: s = 00010100, x ^= s + x ^= 0x63 - // TODO: consider optimizing by starting workers outside getPrime() ... - // note that in order to clean up they will have to be made internally - // asynchronous which may actually be slower + This can be done with a loop where s = (s << 1) | (s >> 7). However, + it can also be done by using a single 16-bit (in this case 32-bit) + number 'sx'. Since XOR is an associative operation, we can set 'sx' + to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times. + The most significant bits will flow into the high 8 bit positions + and be correctly XOR'd with one another. All that remains will be + to cycle the high 8 bits by XOR'ing them all with the lower 8 bits + afterwards. - // start workers immediately - var workers = []; - for(var i = 0; i < numWorkers; ++i) { - // FIXME: fix path or use blob URLs - workers[i] = new Worker(workerScript); - } - var running = numWorkers; + At the same time we're populating sbox and isbox we can precompute + the multiplication we'll need to do to do MixColumns() later. + */ - // listen for requests from workers and assign ranges to find prime - for(var i = 0; i < numWorkers; ++i) { - workers[i].addEventListener('message', workerMessage); - } + // apply affine transformation + sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4); + sx = (sx >> 8) ^ (sx & 255) ^ 0x63; - /* Note: The distribution of random numbers is unknown. Therefore, each - web worker is continuously allocated a range of numbers to check for a - random number until one is found. + // update tables + sbox[e] = sx; + isbox[sx] = e; - Every 30 numbers will be checked just 8 times, because prime numbers - have the form: + /* Mixing columns is done using matrix multiplication. The columns + that are to be mixed are each a single word in the current state. + The state has Nb columns (4 columns). Therefore each column is a + 4 byte word. So to mix the columns in a single column 'c' where + its rows are r0, r1, r2, and r3, we use the following matrix + multiplication: - 30k+i, for i < 30 and gcd(30, i)=1 (there are 8 values of i for this) + [2 3 1 1]*[r0,c]=[r'0,c] + [1 2 3 1] [r1,c] [r'1,c] + [1 1 2 3] [r2,c] [r'2,c] + [3 1 1 2] [r3,c] [r'3,c] - Therefore, if we want a web worker to run N checks before asking for - a new range of numbers, each range must contain N*30/8 numbers. + r0, r1, r2, and r3 are each 1 byte of one of the words in the + state (a column). To do matrix multiplication for each mixed + column c' we multiply the corresponding row from the left matrix + with the corresponding column from the right matrix. In total, we + get 4 equations: - For 100 checks (workLoad), this is a range of 375. */ + r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c + r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c + r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c + r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c - var found = false; - function workerMessage(e) { - // ignore message, prime already found - if(found) { - return; - } + As usual, the multiplication is as previously defined and the + addition is XOR. In order to optimize mixing columns we can store + the multiplication results in tables. If you think of the whole + column as a word (it might help to visualize by mentally rotating + the equations above by counterclockwise 90 degrees) then you can + see that it would be useful to map the multiplications performed on + each byte (r0, r1, r2, r3) onto a word as well. For instance, we + could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the + highest 8 bits and 3*r0 in the lowest 8 bits (with the other two + respectively in the middle). This means that a table can be + constructed that uses r0 as an index to the word. We can do the + same with r1, r2, and r3, creating a total of 4 tables. - --running; - var data = e.data; - if(data.found) { - // terminate all workers - for(var i = 0; i < workers.length; ++i) { - workers[i].terminate(); - } - found = true; - return callback(null, new BigInteger(data.prime, 16)); - } + To construct a full c', we can just look up each byte of c in + their respective tables and XOR the results together. - // overflow, regenerate random number - if(num.bitLength() > bits) { - num = generateRandom(bits, rng); - } + Also, to build each table we only have to calculate the word + for 2,1,1,3 for every byte ... which we can do on each iteration + of this loop since we will iterate over every byte. After we have + calculated 2,1,1,3 we can get the results for the other tables + by cycling the byte at the end to the beginning. For instance + we can take the result of table 2,1,1,3 and produce table 3,2,1,1 + by moving the right most byte to the left most position just like + how you can imagine the 3 moved out of 2,1,1,3 and to the front + to produce 3,2,1,1. - // assign new range to check - var hex = num.toString(16); + There is another optimization in that the same multiples of + the current element we need in order to advance our generator + to the next iteration can be reused in performing the 2,1,1,3 + calculation. We also calculate the inverse mix column tables, + with e,9,d,b being the inverse of 2,1,1,3. - // start prime search - e.target.postMessage({ - hex: hex, - workLoad: workLoad - }); + When we're done, and we need to actually mix columns, the first + byte of each state word should be put through mix[0] (2,1,1,3), + the second through mix[1] (3,2,1,1) and so forth. Then they should + be XOR'd together to produce the fully mixed column. + */ - num.dAddOffset(range, 0); + // calculate mix and imix table values + sx2 = xtime[sx]; + e2 = xtime[e]; + e4 = xtime[e2]; + e8 = xtime[e4]; + me = + (sx2 << 24) ^ // 2 + (sx << 16) ^ // 1 + (sx << 8) ^ // 1 + (sx ^ sx2); // 3 + ime = + (e2 ^ e4 ^ e8) << 24 ^ // E (14) + (e ^ e8) << 16 ^ // 9 + (e ^ e4 ^ e8) << 8 ^ // D (13) + (e ^ e2 ^ e8); // B (11) + // produce each of the mix tables by rotating the 2,1,1,3 value + for(var n = 0; n < 4; ++n) { + mix[n][e] = me; + imix[n][sx] = ime; + // cycle the right most byte to the left most position + // ie: 2,1,1,3 becomes 3,2,1,1 + me = me << 24 | me >>> 8; + ime = ime << 24 | ime >>> 8; + } + + // get next element and inverse + if(e === 0) { + // 1 is the inverse of 1 + e = ei = 1; + } else { + // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator) + // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator) + e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]]; + ei ^= xtime[xtime[ei]]; } } } /** - * Generates a random number using the given number of bits and RNG. + * Generates a key schedule using the AES key expansion algorithm. * - * @param bits the number of bits for the number. - * @param rng the random number generator to use. + * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion + * routine to generate a key schedule. The Key Expansion generates a total + * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words, + * and each of the Nr rounds requires Nb words of key data. The resulting + * key schedule consists of a linear array of 4-byte words, denoted [wi ], + * with i in the range 0 <= i < Nb(Nr + 1). * - * @return the random number. - */ -function generateRandom(bits, rng) { - var num = new BigInteger(bits, rng); - // force MSB set - var bits1 = bits - 1; - if(!num.testBit(bits1)) { - num.bitwiseTo(BigInteger.ONE.shiftLeft(bits1), op_or, num); - } - // align number on 30k+1 boundary - num.dAddOffset(31 - num.mod(THIRTY).byteValue(), 0); - return num; -} - -/** - * Returns the required number of Miller-Rabin tests to generate a - * prime with an error probability of (1/2)^80. + * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk) + * AES-128 (Nb=4, Nk=4, Nr=10) + * AES-192 (Nb=4, Nk=6, Nr=12) + * AES-256 (Nb=4, Nk=8, Nr=14) + * Note: Nr=Nk+6. * - * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * Nb is the number of columns (32-bit words) comprising the State (or + * number of bytes in a block). For AES, Nb=4. * - * @param bits the bit size. + * @param key the key to schedule (as an array of 32-bit words). + * @param decrypt true to modify the key schedule to decrypt, false not to. * - * @return the required number of iterations. + * @return the generated key schedule. */ -function getMillerRabinTests(bits) { - if(bits <= 100) return 27; - if(bits <= 150) return 18; - if(bits <= 200) return 15; - if(bits <= 250) return 12; - if(bits <= 300) return 9; - if(bits <= 350) return 8; - if(bits <= 400) return 7; - if(bits <= 500) return 6; - if(bits <= 600) return 5; - if(bits <= 800) return 4; - if(bits <= 1250) return 3; - return 2; +function _expandKey(key, decrypt) { + // copy the key's words to initialize the key schedule + var w = key.slice(0); + + /* RotWord() will rotate a word, moving the first byte to the last + byte's position (shifting the other bytes left). + + We will be getting the value of Rcon at i / Nk. 'i' will iterate + from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in + a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from + 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will + increase by 1. We use a counter iNk to keep track of this. + */ + + // go through the rounds expanding the key + var temp, iNk = 1; + var Nk = w.length; + var Nr1 = Nk + 6 + 1; + var end = Nb * Nr1; + for(var i = Nk; i < end; ++i) { + temp = w[i - 1]; + if(i % Nk === 0) { + // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk] + temp = + sbox[temp >>> 16 & 255] << 24 ^ + sbox[temp >>> 8 & 255] << 16 ^ + sbox[temp & 255] << 8 ^ + sbox[temp >>> 24] ^ (rcon[iNk] << 24); + iNk++; + } else if(Nk > 6 && (i % Nk === 4)) { + // temp = SubWord(temp) + temp = + sbox[temp >>> 24] << 24 ^ + sbox[temp >>> 16 & 255] << 16 ^ + sbox[temp >>> 8 & 255] << 8 ^ + sbox[temp & 255]; + } + w[i] = w[i - Nk] ^ temp; + } + + /* When we are updating a cipher block we always use the code path for + encryption whether we are decrypting or not (to shorten code and + simplify the generation of look up tables). However, because there + are differences in the decryption algorithm, other than just swapping + in different look up tables, we must transform our key schedule to + account for these changes: + + 1. The decryption algorithm gets its key rounds in reverse order. + 2. The decryption algorithm adds the round key before mixing columns + instead of afterwards. + + We don't need to modify our key schedule to handle the first case, + we can just traverse the key schedule in reverse order when decrypting. + + The second case requires a little work. + + The tables we built for performing rounds will take an input and then + perform SubBytes() and MixColumns() or, for the decrypt version, + InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires + us to AddRoundKey() before InvMixColumns(). This means we'll need to + apply some transformations to the round key to inverse-mix its columns + so they'll be correct for moving AddRoundKey() to after the state has + had its columns inverse-mixed. + + To inverse-mix the columns of the state when we're decrypting we use a + lookup table that will apply InvSubBytes() and InvMixColumns() at the + same time. However, the round key's bytes are not inverse-substituted + in the decryption algorithm. To get around this problem, we can first + substitute the bytes in the round key so that when we apply the + transformation via the InvSubBytes()+InvMixColumns() table, it will + undo our substitution leaving us with the original value that we + want -- and then inverse-mix that value. + + This change will correctly alter our key schedule so that we can XOR + each round key with our already transformed decryption state. This + allows us to use the same code path as the encryption algorithm. + + We make one more change to the decryption key. Since the decryption + algorithm runs in reverse from the encryption algorithm, we reverse + the order of the round keys to avoid having to iterate over the key + schedule backwards when running the encryption algorithm later in + decryption mode. In addition to reversing the order of the round keys, + we also swap each round key's 2nd and 4th rows. See the comments + section where rounds are performed for more details about why this is + done. These changes are done inline with the other substitution + described above. + */ + if(decrypt) { + var tmp; + var m0 = imix[0]; + var m1 = imix[1]; + var m2 = imix[2]; + var m3 = imix[3]; + var wnew = w.slice(0); + end = w.length; + for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) { + // do not sub the first or last round key (round keys are Nb + // words) as no column mixing is performed before they are added, + // but do change the key order + if(i === 0 || i === (end - Nb)) { + wnew[i] = w[wi]; + wnew[i + 1] = w[wi + 3]; + wnew[i + 2] = w[wi + 2]; + wnew[i + 3] = w[wi + 1]; + } else { + // substitute each round key byte because the inverse-mix + // table will inverse-substitute it (effectively cancel the + // substitution because round key bytes aren't sub'd in + // decryption mode) and swap indexes 3 and 1 + for(var n = 0; n < Nb; ++n) { + tmp = w[wi + n]; + wnew[i + (3&-n)] = + m0[sbox[tmp >>> 24]] ^ + m1[sbox[tmp >>> 16 & 255]] ^ + m2[sbox[tmp >>> 8 & 255]] ^ + m3[sbox[tmp & 255]]; + } + } + } + w = wnew; + } + + return w; } -})(); +/** + * Updates a single block (16 bytes) using AES. The update will either + * encrypt or decrypt the block. + * + * @param w the key schedule. + * @param input the input block (an array of 32-bit words). + * @param output the updated output block. + * @param decrypt true to decrypt the block, false to encrypt it. + */ +function _updateBlock(w, input, output, decrypt) { + /* + Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) + begin + byte state[4,Nb] + state = in + AddRoundKey(state, w[0, Nb-1]) + for round = 1 step 1 to Nr-1 + SubBytes(state) + ShiftRows(state) + MixColumns(state) + AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) + end for + SubBytes(state) + ShiftRows(state) + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + out = state + end + + InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) + begin + byte state[4,Nb] + state = in + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + for round = Nr-1 step -1 downto 1 + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) + InvMixColumns(state) + end for + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[0, Nb-1]) + out = state + end + */ + + // Encrypt: AddRoundKey(state, w[0, Nb-1]) + // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + var Nr = w.length / 4 - 1; + var m0, m1, m2, m3, sub; + if(decrypt) { + m0 = imix[0]; + m1 = imix[1]; + m2 = imix[2]; + m3 = imix[3]; + sub = isbox; + } else { + m0 = mix[0]; + m1 = mix[1]; + m2 = mix[2]; + m3 = mix[3]; + sub = sbox; + } + var a, b, c, d, a2, b2, c2; + a = input[0] ^ w[0]; + b = input[decrypt ? 3 : 1] ^ w[1]; + c = input[2] ^ w[2]; + d = input[decrypt ? 1 : 3] ^ w[3]; + var i = 3; + + /* In order to share code we follow the encryption algorithm when both + encrypting and decrypting. To account for the changes required in the + decryption algorithm, we use different lookup tables when decrypting + and use a modified key schedule to account for the difference in the + order of transformations applied when performing rounds. We also get + key rounds in reverse order (relative to encryption). */ + for(var round = 1; round < Nr; ++round) { + /* As described above, we'll be using table lookups to perform the + column mixing. Each column is stored as a word in the state (the + array 'input' has one column as a word at each index). In order to + mix a column, we perform these transformations on each row in c, + which is 1 byte in each word. The new column for c0 is c'0: + + m0 m1 m2 m3 + r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0 + r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0 + r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0 + r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0 + + So using mix tables where c0 is a word with r0 being its upper + 8 bits and r3 being its lower 8 bits: + + m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0] + ... + m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3] + + Therefore to mix the columns in each word in the state we + do the following (& 255 omitted for brevity): + c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + + However, before mixing, the algorithm requires us to perform + ShiftRows(). The ShiftRows() transformation cyclically shifts the + last 3 rows of the state over different offsets. The first row + (r = 0) is not shifted. + + s'_r,c = s_r,(c + shift(r, Nb) mod Nb + for 0 < r < 4 and 0 <= c < Nb and + shift(1, 4) = 1 + shift(2, 4) = 2 + shift(3, 4) = 3. + + This causes the first byte in r = 1 to be moved to the end of + the row, the first 2 bytes in r = 2 to be moved to the end of + the row, the first 3 bytes in r = 3 to be moved to the end of + the row: + + r1: [c0 c1 c2 c3] => [c1 c2 c3 c0] + r2: [c0 c1 c2 c3] [c2 c3 c0 c1] + r3: [c0 c1 c2 c3] [c3 c0 c1 c2] + + We can make these substitutions inline with our column mixing to + generate an updated set of equations to produce each word in the + state (note the columns have changed positions): + + c0 c1 c2 c3 => c0 c1 c2 c3 + c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte) + c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes) + c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes) + + Therefore: + + c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3 + c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3 + c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3 + c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3 + + c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0 + c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0 + c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0 + c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0 + + ... and so forth for c'2 and c'3. The important distinction is + that the columns are cycling, with c0 being used with the m0 + map when calculating c0, but c1 being used with the m0 map when + calculating c1 ... and so forth. + + When performing the inverse we transform the mirror image and + skip the bottom row, instead of the top one, and move upwards: + + c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption + c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes) + c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption + c3 c2 c1 c0 c3 c2 c1 c0 + + If you compare the resulting matrices for ShiftRows()+MixColumns() + and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are + different (in encrypt mode vs. decrypt mode). So in order to use + the same code to handle both encryption and decryption, we will + need to do some mapping. + + If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be + a row number in the state, then the resulting matrix in encryption + mode for applying the above transformations would be: + + r1: a b c d + r2: b c d a + r3: c d a b + r4: d a b c + + If we did the same in decryption mode we would get: + + r1: a d c b + r2: b a d c + r3: c b a d + r4: d c b a + + If instead we swap d and b (set b=c3 and d=c1), then we get: + + r1: a b c d + r2: d a b c + r3: c d a b + r4: b c d a + + Now the 1st and 3rd rows are the same as the encryption matrix. All + we need to do then to make the mapping exactly the same is to swap + the 2nd and 4th rows when in decryption mode. To do this without + having to do it on each iteration, we swapped the 2nd and 4th rows + in the decryption key schedule. We also have to do the swap above + when we first pull in the input and when we set the final output. */ + a2 = + m0[a >>> 24] ^ + m1[b >>> 16 & 255] ^ + m2[c >>> 8 & 255] ^ + m3[d & 255] ^ w[++i]; + b2 = + m0[b >>> 24] ^ + m1[c >>> 16 & 255] ^ + m2[d >>> 8 & 255] ^ + m3[a & 255] ^ w[++i]; + c2 = + m0[c >>> 24] ^ + m1[d >>> 16 & 255] ^ + m2[a >>> 8 & 255] ^ + m3[b & 255] ^ w[++i]; + d = + m0[d >>> 24] ^ + m1[a >>> 16 & 255] ^ + m2[b >>> 8 & 255] ^ + m3[c & 255] ^ w[++i]; + a = a2; + b = b2; + c = c2; + } + + /* + Encrypt: + SubBytes(state) + ShiftRows(state) + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + + Decrypt: + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[0, Nb-1]) + */ + // Note: rows are shifted inline + output[0] = + (sub[a >>> 24] << 24) ^ + (sub[b >>> 16 & 255] << 16) ^ + (sub[c >>> 8 & 255] << 8) ^ + (sub[d & 255]) ^ w[++i]; + output[decrypt ? 3 : 1] = + (sub[b >>> 24] << 24) ^ + (sub[c >>> 16 & 255] << 16) ^ + (sub[d >>> 8 & 255] << 8) ^ + (sub[a & 255]) ^ w[++i]; + output[2] = + (sub[c >>> 24] << 24) ^ + (sub[d >>> 16 & 255] << 16) ^ + (sub[a >>> 8 & 255] << 8) ^ + (sub[b & 255]) ^ w[++i]; + output[decrypt ? 1 : 3] = + (sub[d >>> 24] << 24) ^ + (sub[a >>> 16 & 255] << 16) ^ + (sub[b >>> 8 & 255] << 8) ^ + (sub[c & 255]) ^ w[++i]; +} + +/** + * Deprecated. Instead, use: + * + * forge.cipher.createCipher('AES-', key); + * forge.cipher.createDecipher('AES-', key); + * + * Creates a deprecated AES cipher object. This object's mode will default to + * CBC (cipher-block-chaining). + * + * The key and iv may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param options the options to use. + * key the symmetric key to use. + * output the buffer to write to. + * decrypt true for decryption, false for encryption. + * mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +function _createCipher(options) { + options = options || {}; + var mode = (options.mode || 'CBC').toUpperCase(); + var algorithm = 'AES-' + mode; + + var cipher; + if(options.decrypt) { + cipher = forge.cipher.createDecipher(algorithm, options.key); + } else { + cipher = forge.cipher.createCipher(algorithm, options.key); + } + + // backwards compatible start API + var start = cipher.start; + cipher.start = function(iv, options) { + // backwards compatibility: support second arg as output buffer + var output = null; + if(options instanceof forge.util.ByteBuffer) { + output = options; + options = {}; + } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; + + return cipher; +} /***/ }), -/* 138 */, -/* 139 */ + +/***/ 839: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -42299,49 +45297,80 @@ function getMillerRabinTests(bits) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.doubleclickbidmanager_v1_1 = void 0; +exports.content_v2_1 = 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 = __webpack_require__(927); -var doubleclickbidmanager_v1_1; -(function (doubleclickbidmanager_v1_1) { +var content_v2_1; +(function (content_v2_1) { /** - * DoubleClick Bid Manager API + * Content API for Shopping * - * API for viewing and managing your reports in DoubleClick Bid Manager. + * Manage your product listings and accounts for Google Shopping * * @example + * ```js * const {google} = require('googleapis'); - * const doubleclickbidmanager = google.doubleclickbidmanager('v1.1'); - * - * @namespace doubleclickbidmanager - * @type {Function} - * @version v1.1 - * @variation v1.1 - * @param {object=} options Options for Doubleclickbidmanager + * const content = google.content('v2.1'); + * ``` */ - class Doubleclickbidmanager { + class Content { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.lineitems = new Resource$Lineitems(this.context); - this.queries = new Resource$Queries(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountstatuses = new Resource$Accountstatuses(this.context); + this.accounttax = new Resource$Accounttax(this.context); + this.buyongoogleprograms = new Resource$Buyongoogleprograms(this.context); + this.collections = new Resource$Collections(this.context); + this.collectionstatuses = new Resource$Collectionstatuses(this.context); + this.conversionsources = new Resource$Conversionsources(this.context); + this.csses = new Resource$Csses(this.context); + this.datafeeds = new Resource$Datafeeds(this.context); + this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); + this.freelistingsprogram = new Resource$Freelistingsprogram(this.context); + this.liasettings = new Resource$Liasettings(this.context); + this.localinventory = new Resource$Localinventory(this.context); + this.orderinvoices = new Resource$Orderinvoices(this.context); + this.orderreports = new Resource$Orderreports(this.context); + this.orderreturns = new Resource$Orderreturns(this.context); + this.orders = new Resource$Orders(this.context); + this.ordertrackingsignals = new Resource$Ordertrackingsignals(this.context); + this.pos = new Resource$Pos(this.context); + this.productdeliverytime = new Resource$Productdeliverytime(this.context); + this.products = new Resource$Products(this.context); + this.productstatuses = new Resource$Productstatuses(this.context); + this.promotions = new Resource$Promotions(this.context); + this.pubsubnotificationsettings = new Resource$Pubsubnotificationsettings(this.context); + this.quotas = new Resource$Quotas(this.context); + this.recommendations = new Resource$Recommendations(this.context); + this.regionalinventory = new Resource$Regionalinventory(this.context); + this.regions = new Resource$Regions(this.context); this.reports = new Resource$Reports(this.context); - this.sdf = new Resource$Sdf(this.context); + this.repricingrules = new Resource$Repricingrules(this.context); + this.returnaddress = new Resource$Returnaddress(this.context); + this.returnpolicy = new Resource$Returnpolicy(this.context); + this.returnpolicyonline = new Resource$Returnpolicyonline(this.context); + this.settlementreports = new Resource$Settlementreports(this.context); + this.settlementtransactions = new Resource$Settlementtransactions(this.context); + this.shippingsettings = new Resource$Shippingsettings(this.context); + this.shoppingadsprogram = new Resource$Shoppingadsprogram(this.context); } } - doubleclickbidmanager_v1_1.Doubleclickbidmanager = Doubleclickbidmanager; - class Resource$Lineitems { + content_v2_1.Content = Content; + class Resource$Accounts { constructor(context) { this.context = context; + this.credentials = new Resource$Accounts$Credentials(this.context); + this.labels = new Resource$Accounts$Labels(this.context); + this.returncarrier = new Resource$Accounts$Returncarrier(this.context); } - downloadlineitems(paramsOrCallback, optionsOrCallback, callback) { + authinfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42354,12 +45383,11 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/doubleclickbidmanager/v1.1/lineitems/downloadlineitems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -42367,13 +45395,13 @@ var doubleclickbidmanager_v1_1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadlineitems(paramsOrCallback, optionsOrCallback, callback) { + claimwebsite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42386,10 +45414,42 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + custombatch(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://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/lineitems/uploadlineitems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -42398,19 +45458,327 @@ var doubleclickbidmanager_v1_1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + link(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listlinks(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/listlinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + requestphoneverification(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/requestphoneverification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatelabels(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/updatelabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyphonenumber(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/verifyphonenumber').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - doubleclickbidmanager_v1_1.Resource$Lineitems = Resource$Lineitems; - class Resource$Queries { + content_v2_1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Credentials { constructor(context) { this.context = context; } - createquery(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42423,25 +45791,31 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounts/{accountId}/credentials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletequery(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Accounts$Credentials = Resource$Accounts$Credentials; + class Resource$Accounts$Labels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42454,26 +45828,58 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['accountId', 'labelId'], + pathParams: ['accountId', 'labelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getquery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -42484,25 +45890,25 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listqueries(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42515,26 +45921,33 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/queries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['accountId', 'labelId'], + pathParams: ['accountId', 'labelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runquery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2_1.Resource$Accounts$Labels = Resource$Accounts$Labels; + class Resource$Accounts$Returncarrier { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -42545,31 +45958,126 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounts/{accountId}/returncarrier').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'carrierAccountId'], + pathParams: ['accountId', 'carrierAccountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/accounts/{accountId}/returncarrier').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'carrierAccountId'], + pathParams: ['accountId', 'carrierAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - doubleclickbidmanager_v1_1.Resource$Queries = Resource$Queries; - class Resource$Reports { + content_v2_1.Resource$Accounts$Returncarrier = Resource$Accounts$Returncarrier; + class Resource$Accountstatuses { constructor(context) { this.context = context; } - listreports(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42582,32 +46090,95 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - doubleclickbidmanager_v1_1.Resource$Reports = Resource$Reports; - class Resource$Sdf { + content_v2_1.Resource$Accountstatuses = Resource$Accountstatuses; + class Resource$Accounttax { constructor(context) { this.context = context; } - download(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -42618,10 +46189,10 @@ var doubleclickbidmanager_v1_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/sdf/download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -42630,1024 +46201,14 @@ var doubleclickbidmanager_v1_1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - doubleclickbidmanager_v1_1.Resource$Sdf = Resource$Sdf; -})(doubleclickbidmanager_v1_1 = exports.doubleclickbidmanager_v1_1 || (exports.doubleclickbidmanager_v1_1 = {})); -//# sourceMappingURL=v1.1.js.map - -/***/ }), -/* 140 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = authenticationBeforeRequest; - -const btoa = __webpack_require__(675); -const uniq = __webpack_require__(126); - -function authenticationBeforeRequest(state, options) { - if (!state.auth.type) { - return; - } - - if (state.auth.type === "basic") { - const hash = btoa(`${state.auth.username}:${state.auth.password}`); - options.headers.authorization = `Basic ${hash}`; - return; - } - - if (state.auth.type === "token") { - options.headers.authorization = `token ${state.auth.token}`; - return; - } - - if (state.auth.type === "app") { - options.headers.authorization = `Bearer ${state.auth.token}`; - const acceptHeaders = options.headers.accept - .split(",") - .concat("application/vnd.github.machine-man-preview+json"); - options.headers.accept = uniq(acceptHeaders) - .filter(Boolean) - .join(","); - return; - } - - options.url += options.url.indexOf("?") === -1 ? "?" : "&"; - - if (state.auth.token) { - options.url += `access_token=${encodeURIComponent(state.auth.token)}`; - return; - } - - const key = encodeURIComponent(state.auth.key); - const secret = encodeURIComponent(state.auth.secret); - options.url += `client_id=${key}&client_secret=${secret}`; -} - - -/***/ }), -/* 141 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -var net = __webpack_require__(631); -var tls = __webpack_require__(16); -var http = __webpack_require__(605); -var https = __webpack_require__(34); -var events = __webpack_require__(614); -var assert = __webpack_require__(357); -var util = __webpack_require__(669); - - -exports.httpOverHttp = httpOverHttp; -exports.httpsOverHttp = httpsOverHttp; -exports.httpOverHttps = httpOverHttps; -exports.httpsOverHttps = httpsOverHttps; - - -function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - return agent; -} - -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - -function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; -} - -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - - -function TunnelingAgent(options) { - var self = this; - self.options = options || {}; - self.proxyOptions = self.options.proxy || {}; - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; - self.requests = []; - self.sockets = []; - - self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress); - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i]; - if (pending.host === options.host && pending.port === options.port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1); - pending.request.onSocket(socket); - return; - } - } - socket.destroy(); - self.removeSocket(socket); - }); -} -util.inherits(TunnelingAgent, events.EventEmitter); - -TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self = this; - var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); - - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push(options); - return; - } - - // If we are under maxSockets create a new one. - self.createSocket(options, function(socket) { - socket.on('free', onFree); - socket.on('close', onCloseOrRemove); - socket.on('agentRemove', onCloseOrRemove); - req.onSocket(socket); - - function onFree() { - self.emit('free', socket, options); - } - - function onCloseOrRemove(err) { - self.removeSocket(socket); - socket.removeListener('free', onFree); - socket.removeListener('close', onCloseOrRemove); - socket.removeListener('agentRemove', onCloseOrRemove); - } - }); -}; - -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this; - var placeholder = {}; - self.sockets.push(placeholder); - - var connectOptions = mergeOptions({}, self.proxyOptions, { - method: 'CONNECT', - path: options.host + ':' + options.port, - agent: false, - headers: { - host: options.host + ':' + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; - } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - new Buffer(connectOptions.proxyAuth).toString('base64'); - } - - debug('making CONNECT request'); - var connectReq = self.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; // for v0.6 - connectReq.once('response', onResponse); // for v0.6 - connectReq.once('upgrade', onUpgrade); // for v0.6 - connectReq.once('connect', onConnect); // for v0.7 or later - connectReq.once('error', onError); - connectReq.end(); - - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true; - } - - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head); - }); - } - - function onConnect(res, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); - - if (res.statusCode !== 200) { - debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); - socket.destroy(); - var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug('got illegal response body from proxy'); - socket.destroy(); - var error = new Error('got illegal response body from proxy'); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - return cb(socket); - } - - function onError(cause) { - connectReq.removeAllListeners(); - - debug('tunneling socket could not be established, cause=%s\n', - cause.message, cause.stack); - var error = new Error('tunneling socket could not be established, ' + - 'cause=' + cause.message); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - } -}; - -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) { - return; - } - this.sockets.splice(pos, 1); - - var pending = this.requests.shift(); - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createSocket(pending, function(socket) { - pending.request.onSocket(socket); - }); - } -}; - -function createSecureSocket(options, cb) { - var self = this; - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - var hostHeader = options.request.getHeader('host'); - var tlsOptions = mergeOptions({}, self.options, { - socket: socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host - }); - - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions); - self.sockets[self.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); - }); -} - - -function toOptions(host, port, localAddress) { - if (typeof host === 'string') { // since v0.10 - return { - host: host, - port: port, - localAddress: localAddress - }; - } - return host; // for v0.11 or later -} - -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === 'object') { - var keys = Object.keys(overrides); - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j]; - if (overrides[k] !== undefined) { - target[k] = overrides[k]; - } - } - } - } - return target; -} - - -var debug; -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0]; - } else { - args.unshift('TUNNEL:'); - } - console.error.apply(console, args); - } -} else { - debug = function() {}; -} -exports.debug = debug; // for test - - -/***/ }), -/* 142 */ -/***/ (function(module) { - -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} - - -/***/ }), -/* 143 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of RSA-KEM. - * - * @author Lautaro Cozzani Rodriguez - * @author Dave Longley - * - * Copyright (c) 2014 Lautaro Cozzani - * Copyright (c) 2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); -__webpack_require__(707); -__webpack_require__(349); - -module.exports = forge.kem = forge.kem || {}; - -var BigInteger = forge.jsbn.BigInteger; - -/** - * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. - */ -forge.kem.rsa = {}; - -/** - * Creates an RSA KEM API object for generating a secret asymmetric key. - * - * The symmetric key may be generated via a call to 'encrypt', which will - * produce a ciphertext to be transmitted to the recipient and a key to be - * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which - * will produce the same secret key for the recipient to use to decrypt a - * message that was encrypted with the secret key. - * - * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). - * @param options the options to use. - * [prng] a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". - */ -forge.kem.rsa.create = function(kdf, options) { - options = options || {}; - var prng = options.prng || forge.random; - - var kem = {}; - - /** - * Generates a secret key and its encapsulation. - * - * @param publicKey the RSA public key to encrypt with. - * @param keyLength the length, in bytes, of the secret key to generate. - * - * @return an object with: - * encapsulation: the ciphertext for generating the secret key, as a - * binary-encoded string of bytes. - * key: the secret key to use for encrypting a message. - */ - kem.encrypt = function(publicKey, keyLength) { - // generate a random r where 1 < r < n - var byteLength = Math.ceil(publicKey.n.bitLength() / 8); - var r; - do { - r = new BigInteger( - forge.util.bytesToHex(prng.getBytesSync(byteLength)), - 16).mod(publicKey.n); - } while(r.compareTo(BigInteger.ONE) <= 0); - - // prepend r with zeros - r = forge.util.hexToBytes(r.toString(16)); - var zeros = byteLength - r.length; - if(zeros > 0) { - r = forge.util.fillString(String.fromCharCode(0), zeros) + r; - } - - // encrypt the random - var encapsulation = publicKey.encrypt(r, 'NONE'); - - // generate the secret key - var key = kdf.generate(r, keyLength); - - return {encapsulation: encapsulation, key: key}; - }; - - /** - * Decrypts an encapsulated secret key. - * - * @param privateKey the RSA private key to decrypt with. - * @param encapsulation the ciphertext for generating the secret key, as - * a binary-encoded string of bytes. - * @param keyLength the length, in bytes, of the secret key to generate. - * - * @return the secret key as a binary-encoded string of bytes. - */ - kem.decrypt = function(privateKey, encapsulation, keyLength) { - // decrypt the encapsulation and generate the secret key - var r = privateKey.decrypt(encapsulation, 'NONE'); - return kdf.generate(r, keyLength); - }; - - return kem; -}; - -// TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? - -/** - * Creates a key derivation API object that implements KDF1 per ISO 18033-2. - * - * @param md the hash API to use. - * @param [digestLength] an optional digest length that must be positive and - * less than or equal to md.digestLength. - * - * @return a KDF1 API object. - */ -forge.kem.kdf1 = function(md, digestLength) { - _createKDF(this, md, 0, digestLength || md.digestLength); -}; - -/** - * Creates a key derivation API object that implements KDF2 per ISO 18033-2. - * - * @param md the hash API to use. - * @param [digestLength] an optional digest length that must be positive and - * less than or equal to md.digestLength. - * - * @return a KDF2 API object. - */ -forge.kem.kdf2 = function(md, digestLength) { - _createKDF(this, md, 1, digestLength || md.digestLength); -}; - -/** - * Creates a KDF1 or KDF2 API object. - * - * @param md the hash API to use. - * @param counterStart the starting index for the counter. - * @param digestLength the digest length to use. - * - * @return the KDF API object. - */ -function _createKDF(kdf, md, counterStart, digestLength) { - /** - * Generate a key of the specified length. - * - * @param x the binary-encoded byte string to generate a key from. - * @param length the number of bytes to generate (the size of the key). - * - * @return the key as a binary-encoded string. - */ - kdf.generate = function(x, length) { - var key = new forge.util.ByteBuffer(); - - // run counter from counterStart to ceil(length / Hash.len) - var k = Math.ceil(length / digestLength) + counterStart; - - var c = new forge.util.ByteBuffer(); - for(var i = counterStart; i < k; ++i) { - // I2OSP(i, 4): convert counter to an octet string of 4 octets - c.putInt32(i); - - // digest 'x' and the counter and add the result to the key - md.start(); - md.update(x + c.getBytes()); - var hash = md.digest(); - key.putBytes(hash.getBytes(digestLength)); - } - - // truncate to the correct key length - key.truncate(key.length() - length); - return key.getBytes(); - }; -} - - -/***/ }), -/* 144 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.pubsub = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(598); -const v1beta1a_1 = __webpack_require__(553); -const v1beta2_1 = __webpack_require__(127); -exports.VERSIONS = { - v1: v1_1.pubsub_v1.Pubsub, - v1beta1a: v1beta1a_1.pubsub_v1beta1a.Pubsub, - v1beta2: v1beta2_1.pubsub_v1beta2.Pubsub, -}; -function pubsub(versionOrOptions) { - return googleapis_common_1.getAPI('pubsub', versionOrOptions, exports.VERSIONS, this); -} -exports.pubsub = pubsub; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 145 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const pump = __webpack_require__(453); -const bufferStream = __webpack_require__(966); - -class MaxBufferError extends Error { - constructor() { - super('maxBuffer exceeded'); - this.name = 'MaxBufferError'; - } -} - -function getStream(inputStream, options) { - if (!inputStream) { - return Promise.reject(new Error('Expected a stream')); - } - - options = Object.assign({maxBuffer: Infinity}, options); - - const {maxBuffer} = options; - - let stream; - return new Promise((resolve, reject) => { - const rejectPromise = error => { - if (error) { // A null check - error.bufferedData = stream.getBufferedValue(); - } - reject(error); - }; - - stream = pump(inputStream, bufferStream(options), error => { - if (error) { - rejectPromise(error); - return; - } - - resolve(); - }); - - stream.on('data', () => { - if (stream.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }).then(() => stream.getBufferedValue()); -} - -module.exports = getStream; -module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'})); -module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true})); -module.exports.MaxBufferError = MaxBufferError; - - -/***/ }), -/* 146 */, -/* 147 */, -/* 148 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.firebasehosting = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(202); -exports.VERSIONS = { - v1beta1: v1beta1_1.firebasehosting_v1beta1.Firebasehosting, -}; -function firebasehosting(versionOrOptions) { - return googleapis_common_1.getAPI('firebasehosting', versionOrOptions, exports.VERSIONS, this); -} -exports.firebasehosting = firebasehosting; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 149 */ -/***/ (function(module, exports, __webpack_require__) { - -/* eslint-disable node/no-deprecated-api */ -var buffer = __webpack_require__(407) -var Buffer = buffer.Buffer - -// alternative to using Object.keys for old browsers -function copyProps (src, dst) { - for (var key in src) { - dst[key] = src[key] - } -} -if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { - module.exports = buffer -} else { - // Copy properties from require('buffer') - copyProps(buffer, exports) - exports.Buffer = SafeBuffer -} - -function SafeBuffer (arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length) -} - -SafeBuffer.prototype = Object.create(Buffer.prototype) - -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer) - -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number') - } - return Buffer(arg, encodingOrOffset, length) -} - -SafeBuffer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - var buf = Buffer(size) - if (fill !== undefined) { - if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) - } - } else { - buf.fill(0) - } - return buf -} - -SafeBuffer.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return Buffer(size) -} - -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return buffer.SlowBuffer(size) -} - - -/***/ }), -/* 150 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.doubleclickbidmanager = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1_1 = __webpack_require__(139); -const v1_1 = __webpack_require__(25); -exports.VERSIONS = { - 'v1.1': v1_1_1.doubleclickbidmanager_v1_1.Doubleclickbidmanager, - v1: v1_1.doubleclickbidmanager_v1.Doubleclickbidmanager, -}; -function doubleclickbidmanager(versionOrOptions) { - return googleapis_common_1.getAPI('doubleclickbidmanager', versionOrOptions, exports.VERSIONS, this); -} -exports.doubleclickbidmanager = doubleclickbidmanager; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 151 */, -/* 152 */ -/***/ (function(module) { - -module.exports = register - -function register (state, name, method, options) { - if (typeof method !== 'function') { - throw new Error('method for before hook must be a function') - } - - if (!options) { - options = {} - } - - if (Array.isArray(name)) { - return name.reverse().reduce(function (callback, name) { - return register.bind(null, state, name, callback, options) - }, method)() - } - - return Promise.resolve() - .then(function () { - if (!state.registry[name]) { - return method(options) - } - - return (state.registry[name]).reduce(function (method, registered) { - return registered.hook.bind(null, method, options) - }, method)() - }) -} - - -/***/ }), -/* 153 */, -/* 154 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.tpu_v1alpha1 = 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 = __webpack_require__(927); -var tpu_v1alpha1; -(function (tpu_v1alpha1) { - /** - * Cloud TPU API - * - * TPU API provides customers with access to Google TPU technology. - * - * @example - * const {google} = require('googleapis'); - * const tpu = google.tpu('v1alpha1'); - * - * @namespace tpu - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Tpu - */ - class Tpu { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - tpu_v1alpha1.Tpu = Tpu; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - tpu_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); - this.nodes = new Resource$Projects$Locations$Nodes(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.tensorflowVersions = new Resource$Projects$Locations$Tensorflowversions(this.context); - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -43658,27 +46219,26 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -43689,31 +46249,25 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tpu_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Acceleratortypes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43726,25 +46280,31 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Accounttax = Resource$Accounttax; + class Resource$Buyongoogleprograms { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43757,31 +46317,26 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tpu_v1alpha1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; - class Resource$Projects$Locations$Nodes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43794,25 +46349,26 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + onboard(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43825,25 +46381,26 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/onboard').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43856,25 +46413,26 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43887,25 +46445,26 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reimage(paramsOrCallback, optionsOrCallback, callback) { + requestreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43918,25 +46477,32 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/requestreview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Buyongoogleprograms = Resource$Buyongoogleprograms; + class Resource$Collections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43949,25 +46515,25 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/collections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43980,31 +46546,91 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/collections/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'collectionId'], + pathParams: ['collectionId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/collections/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'collectionId'], + pathParams: ['collectionId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/collections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1alpha1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; - class Resource$Projects$Locations$Operations { + content_v2_1.Resource$Collections = Resource$Collections; + class Resource$Collectionstatuses { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44017,22 +46643,91 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/collectionstatuses/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'collectionId'], + pathParams: ['collectionId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/collectionstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + content_v2_1.Resource$Collectionstatuses = Resource$Collectionstatuses; + class Resource$Conversionsources { + 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/conversionsources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -44048,22 +46743,23 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -44079,22 +46775,23 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -44110,31 +46807,155 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/conversionsources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Tensorflowversions { + content_v2_1.Resource$Conversionsources = Resource$Conversionsources; + class Resource$Csses { 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['cssGroupId', 'cssDomainId'], + pathParams: ['cssDomainId', 'cssGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{cssGroupId}/csses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['cssGroupId'], + pathParams: ['cssGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatelabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44147,25 +46968,251 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['cssGroupId', 'cssDomainId'], + pathParams: ['cssDomainId', 'cssGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + content_v2_1.Resource$Csses = Resource$Csses; + class Resource$Datafeeds { + constructor(context) { + this.context = context; + } + custombatch(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchnow(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + content_v2_1.Resource$Datafeeds = Resource$Datafeeds; + class Resource$Datafeedstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44178,118 +47225,163 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1alpha1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; -})(tpu_v1alpha1 = exports.tpu_v1alpha1 || (exports.tpu_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 155 */ -/***/ (function(module) { - -"use strict"; - - -const arrify = value => { - if (value === null || value === undefined) { - return []; - } - - if (Array.isArray(value)) { - return value; - } - - if (typeof value === 'string') { - return [value]; - } - - if (typeof value[Symbol.iterator] === 'function') { - return [...value]; - } - - return [value]; -}; - -module.exports = arrify; - - -/***/ }), -/* 156 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.language_v1beta2 = 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 = __webpack_require__(927); -var language_v1beta2; -(function (language_v1beta2) { - /** - * Cloud Natural Language API - * - * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. - * - * @example - * const {google} = require('googleapis'); - * const language = google.language('v1beta2'); - * - * @namespace language - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Language - */ - class Language { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + content_v2_1.Resource$Datafeedstatuses = Resource$Datafeedstatuses; + class Resource$Freelistingsprogram { + 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/freelistingsprogram').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, }; - this.documents = new Resource$Documents(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + requestreview(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/freelistingsprogram/requestreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - language_v1beta2.Language = Language; - class Resource$Documents { + content_v2_1.Resource$Freelistingsprogram = Resource$Freelistingsprogram; + class Resource$Liasettings { constructor(context) { this.context = context; } - analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44302,10 +47394,10 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -44314,13 +47406,43 @@ var language_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { + 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44333,11 +47455,73 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listposdataproviders(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -44345,13 +47529,13 @@ var language_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44364,25 +47548,26 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId', 'gmbEmail'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44395,25 +47580,66 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - annotateText(paramsOrCallback, optionsOrCallback, callback) { + setinventoryverificationcontact(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'merchantId', + 'accountId', + 'country', + 'language', + 'contactName', + 'contactEmail', + ], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44426,25 +47652,26 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - classifyText(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44457,10 +47684,47 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + content_v2_1.Resource$Liasettings = Resource$Liasettings; + class Resource$Localinventory { + constructor(context) { + this.context = context; + } + custombatch(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/localinventory/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -44469,1092 +47733,51 @@ var language_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/products/{productId}/localinventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - language_v1beta2.Resource$Documents = Resource$Documents; -})(language_v1beta2 = exports.language_v1beta2 || (exports.language_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 157 */, -/* 158 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Supported cipher modes. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); - -forge.cipher = forge.cipher || {}; - -// supported cipher modes -var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {}; - -/** Electronic codebook (ECB) (Don't use this; it's not secure) **/ - -modes.ecb = function(options) { - options = options || {}; - this.name = 'ECB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); -}; - -modes.ecb.prototype.start = function(options) {}; - -modes.ecb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } - - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } - - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); - - // write output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } -}; - -modes.ecb.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } - - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } - - // decrypt block - this.cipher.decrypt(this._inBlock, this._outBlock); - - // write output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } -}; - -modes.ecb.prototype.pad = function(input, options) { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (input.length() === this.blockSize ? - this.blockSize : (this.blockSize - input.length())); - input.fillWithByte(padding, padding); - return true; -}; - -modes.ecb.prototype.unpad = function(output, options) { - // check for error: input data not a multiple of blockSize - if(options.overflow > 0) { - return false; - } - - // ensure padding byte count is valid - var len = output.length(); - var count = output.at(len - 1); - if(count > (this.blockSize << 2)) { - return false; - } - - // trim off padding bytes - output.truncate(count); - return true; -}; - -/** Cipher-block Chaining (CBC) **/ - -modes.cbc = function(options) { - options = options || {}; - this.name = 'CBC'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); -}; - -modes.cbc.prototype.start = function(options) { - // Note: legacy support for using IV residue (has security flaws) - // if IV is null, reuse block from previous processing - if(options.iv === null) { - // must have a previous block - if(!this._prev) { - throw new Error('Invalid IV parameter.'); - } - this._iv = this._prev.slice(0); - } else if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } else { - // save IV as "previous" block - this._iv = transformIV(options.iv, this.blockSize); - this._prev = this._iv.slice(0); - } -}; - -modes.cbc.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } - - // get next block - // CBC XOR's IV (or previous block) with plaintext - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._prev[i] ^ input.getInt32(); - } - - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); - - // write output, save previous block - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } - this._prev = this._outBlock; -}; - -modes.cbc.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } - - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } - - // decrypt block - this.cipher.decrypt(this._inBlock, this._outBlock); - - // write output, save previous ciphered block - // CBC XOR's IV (or previous block) with ciphertext - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._prev[i] ^ this._outBlock[i]); - } - this._prev = this._inBlock.slice(0); -}; - -modes.cbc.prototype.pad = function(input, options) { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (input.length() === this.blockSize ? - this.blockSize : (this.blockSize - input.length())); - input.fillWithByte(padding, padding); - return true; -}; - -modes.cbc.prototype.unpad = function(output, options) { - // check for error: input data not a multiple of blockSize - if(options.overflow > 0) { - return false; - } - - // ensure padding byte count is valid - var len = output.length(); - var count = output.at(len - 1); - if(count > (this.blockSize << 2)) { - return false; - } - - // trim off padding bytes - output.truncate(count); - return true; -}; - -/** Cipher feedback (CFB) **/ - -modes.cfb = function(options) { - options = options || {}; - this.name = 'CFB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; - -modes.cfb.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; -}; - -modes.cfb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } - - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); - - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output, write input as output - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32() ^ this._outBlock[i]; - output.putInt32(this._inBlock[i]); - } - return; - } - - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - - // XOR input with output, write input as partial output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialBlock[i] = input.getInt32() ^ this._outBlock[i]; - this._partialOutput.putInt32(this._partialBlock[i]); - } - - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._partialBlock[i]; - } - } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } - - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } - - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; -}; - -modes.cfb.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } - - // encrypt block (CFB always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); - - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output, write input as output - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - output.putInt32(this._inBlock[i] ^ this._outBlock[i]); - } - return; - } - - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - - // XOR input with output, write input as partial output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialBlock[i] = input.getInt32(); - this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]); - } - - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._partialBlock[i]; - } - } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } - - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } - - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; -}; - -/** Output feedback (OFB) **/ - -modes.ofb = function(options) { - options = options || {}; - this.name = 'OFB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; - -modes.ofb.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; -}; - -modes.ofb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(input.length() === 0) { - return true; - } - - // encrypt block (OFB always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); - - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output and update next input - for(var i = 0; i < this._ints; ++i) { - output.putInt32(input.getInt32() ^ this._outBlock[i]); - this._inBlock[i] = this._outBlock[i]; - } - return; - } - - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } - - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._outBlock[i]; - } - } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } - - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } - - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; -}; - -modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt; - -/** Counter (CTR) **/ - -modes.ctr = function(options) { - options = options || {}; - this.name = 'CTR'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; - -modes.ctr.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; -}; - -modes.ctr.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } - - // encrypt block (CTR always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); - - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(input.getInt32() ^ this._outBlock[i]); - } - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } - - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } - - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } - - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; - } - - // block complete, increment counter (input block) - inc32(this._inBlock); -}; - -modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt; - -/** Galois/Counter Mode (GCM) **/ - -modes.gcm = function(options) { - options = options || {}; - this.name = 'GCM'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; - - // R is actually this value concatenated with 120 more zero bits, but - // we only XOR against R so the other zeros have no effect -- we just - // apply this value to the first integer in a block - this._R = 0xE1000000; -}; - -modes.gcm.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // ensure IV is a byte buffer - var iv = forge.util.createBuffer(options.iv); - - // no ciphered data processed yet - this._cipherLength = 0; - - // default additional data is none - var additionalData; - if('additionalData' in options) { - additionalData = forge.util.createBuffer(options.additionalData); - } else { - additionalData = forge.util.createBuffer(); - } - - // default tag length is 128 bits - if('tagLength' in options) { - this._tagLength = options.tagLength; - } else { - this._tagLength = 128; - } - - // if tag is given, ensure tag matches tag length - this._tag = null; - if(options.decrypt) { - // save tag to check later - this._tag = forge.util.createBuffer(options.tag).getBytes(); - if(this._tag.length !== (this._tagLength / 8)) { - throw new Error('Authentication tag does not match tag length.'); - } - } - - // create tmp storage for hash calculation - this._hashBlock = new Array(this._ints); - - // no tag generated yet - this.tag = null; - - // generate hash subkey - // (apply block cipher to "zero" block) - this._hashSubkey = new Array(this._ints); - this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); - - // generate table M - // use 4-bit tables (32 component decomposition of a 16 byte value) - // 8-bit tables take more space and are known to have security - // vulnerabilities (in native implementations) - this.componentBits = 4; - this._m = this.generateHashTable(this._hashSubkey, this.componentBits); - - // Note: support IV length different from 96 bits? (only supporting - // 96 bits is recommended by NIST SP-800-38D) - // generate J_0 - var ivLength = iv.length(); - if(ivLength === 12) { - // 96-bit IV - this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1]; - } else { - // IV is NOT 96-bits - this._j0 = [0, 0, 0, 0]; - while(iv.length() > 0) { - this._j0 = this.ghash( - this._hashSubkey, this._j0, - [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]); - } - this._j0 = this.ghash( - this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8))); - } - - // generate ICB (initial counter block) - this._inBlock = this._j0.slice(0); - inc32(this._inBlock); - this._partialBytes = 0; - - // consume authentication data - additionalData = forge.util.createBuffer(additionalData); - // save additional data length as a BE 64-bit number - this._aDataLength = from64To32(additionalData.length() * 8); - // pad additional data to 128 bit (16 byte) block size - var overflow = additionalData.length() % this.blockSize; - if(overflow) { - additionalData.fillWithByte(0, this.blockSize - overflow); - } - this._s = [0, 0, 0, 0]; - while(additionalData.length() > 0) { - this._s = this.ghash(this._hashSubkey, this._s, [ - additionalData.getInt32(), - additionalData.getInt32(), - additionalData.getInt32(), - additionalData.getInt32() - ]); - } -}; - -modes.gcm.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } - - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); - - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i] ^= input.getInt32()); - } - this._cipherLength += this.blockSize; - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } - - if(partialBytes <= 0 || finish) { - // handle overflow prior to hashing - if(finish) { - // get block overflow - var overflow = inputLength % this.blockSize; - this._cipherLength += overflow; - // truncate for hash function - this._partialOutput.truncate(this.blockSize - overflow); - } else { - this._cipherLength += this.blockSize; - } - - // get output block for hashing - for(var i = 0; i < this._ints; ++i) { - this._outBlock[i] = this._partialOutput.getInt32(); - } - this._partialOutput.read -= this.blockSize; - } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } - - if(partialBytes > 0 && !finish) { - // block still incomplete, restore input buffer, get partial output, - // and return early - input.read -= this.blockSize; - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } - - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; - } - - // update hash block S - this._s = this.ghash(this._hashSubkey, this._s, this._outBlock); - - // increment counter (input block) - inc32(this._inBlock); -}; - -modes.gcm.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - var inputLength = input.length(); - if(inputLength < this.blockSize && !(finish && inputLength > 0)) { - return true; - } - - // encrypt block (GCM always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); - - // increment counter (input block) - inc32(this._inBlock); - - // update hash block S - this._hashBlock[0] = input.getInt32(); - this._hashBlock[1] = input.getInt32(); - this._hashBlock[2] = input.getInt32(); - this._hashBlock[3] = input.getInt32(); - this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock); - - // XOR hash input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i] ^ this._hashBlock[i]); - } - - // increment cipher data length - if(inputLength < this.blockSize) { - this._cipherLength += inputLength % this.blockSize; - } else { - this._cipherLength += this.blockSize; - } -}; - -modes.gcm.prototype.afterFinish = function(output, options) { - var rval = true; - - // handle overflow - if(options.decrypt && options.overflow) { - output.truncate(this.blockSize - options.overflow); - } - - // handle authentication tag - this.tag = forge.util.createBuffer(); - - // concatenate additional data length with cipher length - var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8)); - - // include lengths in hash - this._s = this.ghash(this._hashSubkey, this._s, lengths); - - // do GCTR(J_0, S) - var tag = []; - this.cipher.encrypt(this._j0, tag); - for(var i = 0; i < this._ints; ++i) { - this.tag.putInt32(this._s[i] ^ tag[i]); - } - - // trim tag to length - this.tag.truncate(this.tag.length() % (this._tagLength / 8)); - - // check authentication tag - if(options.decrypt && this.tag.bytes() !== this._tag) { - rval = false; - } - - return rval; -}; - -/** - * See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois - * field multiplication. The field, GF(2^128), is defined by the polynomial: - * - * x^128 + x^7 + x^2 + x + 1 - * - * Which is represented in little-endian binary form as: 11100001 (0xe1). When - * the value of a coefficient is 1, a bit is set. The value R, is the - * concatenation of this value and 120 zero bits, yielding a 128-bit value - * which matches the block size. - * - * This function will multiply two elements (vectors of bytes), X and Y, in - * the field GF(2^128). The result is initialized to zero. For each bit of - * X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd) - * by the current value of Y. For each bit, the value of Y will be raised by - * a power of x (multiplied by the polynomial x). This can be achieved by - * shifting Y once to the right. If the current value of Y, prior to being - * multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial. - * Otherwise, we must divide by R after shifting to find the remainder. - * - * @param x the first block to multiply by the second. - * @param y the second block to multiply by the first. - * - * @return the block result of the multiplication. - */ -modes.gcm.prototype.multiply = function(x, y) { - var z_i = [0, 0, 0, 0]; - var v_i = y.slice(0); - - // calculate Z_128 (block has 128 bits) - for(var i = 0; i < 128; ++i) { - // if x_i is 0, Z_{i+1} = Z_i (unchanged) - // else Z_{i+1} = Z_i ^ V_i - // get x_i by finding 32-bit int position, then left shift 1 by remainder - var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32)); - if(x_i) { - z_i[0] ^= v_i[0]; - z_i[1] ^= v_i[1]; - z_i[2] ^= v_i[2]; - z_i[3] ^= v_i[3]; - } - - // if LSB(V_i) is 1, V_i = V_i >> 1 - // else V_i = (V_i >> 1) ^ R - this.pow(v_i, v_i); - } - - return z_i; -}; - -modes.gcm.prototype.pow = function(x, out) { - // if LSB(x) is 1, x = x >>> 1 - // else x = (x >>> 1) ^ R - var lsb = x[3] & 1; - - // always do x >>> 1: - // starting with the rightmost integer, shift each integer to the right - // one bit, pulling in the bit from the integer to the left as its top - // most bit (do this for the last 3 integers) - for(var i = 3; i > 0; --i) { - out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31); - } - // shift the first integer normally - out[0] = x[0] >>> 1; - - // if lsb was not set, then polynomial had a degree of 127 and doesn't - // need to divided; otherwise, XOR with R to find the remainder; we only - // need to XOR the first integer since R technically ends w/120 zero bits - if(lsb) { - out[0] ^= this._R; - } -}; - -modes.gcm.prototype.tableMultiply = function(x) { - // assumes 4-bit tables are used - var z = [0, 0, 0, 0]; - for(var i = 0; i < 32; ++i) { - var idx = (i / 8) | 0; - var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF; - var ah = this._m[i][x_i]; - z[0] ^= ah[0]; - z[1] ^= ah[1]; - z[2] ^= ah[2]; - z[3] ^= ah[3]; - } - return z; -}; - -/** - * A continuing version of the GHASH algorithm that operates on a single - * block. The hash block, last hash value (Ym) and the new block to hash - * are given. - * - * @param h the hash block. - * @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash. - * @param x the block to hash. - * - * @return the hashed value (Ym). - */ -modes.gcm.prototype.ghash = function(h, y, x) { - y[0] ^= x[0]; - y[1] ^= x[1]; - y[2] ^= x[2]; - y[3] ^= x[3]; - return this.tableMultiply(y); - //return this.multiply(y, h); -}; - -/** - * Precomputes a table for multiplying against the hash subkey. This - * mechanism provides a substantial speed increase over multiplication - * performed without a table. The table-based multiplication this table is - * for solves X * H by multiplying each component of X by H and then - * composing the results together using XOR. - * - * This function can be used to generate tables with different bit sizes - * for the components, however, this implementation assumes there are - * 32 components of X (which is a 16 byte vector), therefore each component - * takes 4-bits (so the table is constructed with bits=4). - * - * @param h the hash subkey. - * @param bits the bit size for a component. - */ -modes.gcm.prototype.generateHashTable = function(h, bits) { - // TODO: There are further optimizations that would use only the - // first table M_0 (or some variant) along with a remainder table; - // this can be explored in the future - var multiplier = 8 / bits; - var perInt = 4 * multiplier; - var size = 16 * multiplier; - var m = new Array(size); - for(var i = 0; i < size; ++i) { - var tmp = [0, 0, 0, 0]; - var idx = (i / perInt) | 0; - var shft = ((perInt - 1 - (i % perInt)) * bits); - tmp[idx] = (1 << (bits - 1)) << shft; - m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits); - } - return m; -}; - -/** - * Generates a table for multiplying against the hash subkey for one - * particular component (out of all possible component values). - * - * @param mid the pre-multiplied value for the middle key of the table. - * @param bits the bit size for a component. - */ -modes.gcm.prototype.generateSubHashTable = function(mid, bits) { - // compute the table quickly by minimizing the number of - // POW operations -- they only need to be performed for powers of 2, - // all other entries can be composed from those powers using XOR - var size = 1 << bits; - var half = size >>> 1; - var m = new Array(size); - m[half] = mid.slice(0); - var i = half >>> 1; - while(i > 0) { - // raise m0[2 * i] and store in m0[i] - this.pow(m[2 * i], m[i] = []); - i >>= 1; - } - i = 2; - while(i < half) { - for(var j = 1; j < i; ++j) { - var m_i = m[i]; - var m_j = m[j]; - m[i + j] = [ - m_i[0] ^ m_j[0], - m_i[1] ^ m_j[1], - m_i[2] ^ m_j[2], - m_i[3] ^ m_j[3] - ]; - } - i *= 2; - } - m[0] = [0, 0, 0, 0]; - /* Note: We could avoid storing these by doing composition during multiply - calculate top half using composition by speed is preferred. */ - for(i = half + 1; i < size; ++i) { - var c = m[i ^ half]; - m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]]; - } - return m; -}; - -/** Utility functions */ - -function transformIV(iv, blockSize) { - if(typeof iv === 'string') { - // convert iv string into byte buffer - iv = forge.util.createBuffer(iv); - } - - if(forge.util.isArray(iv) && iv.length > 4) { - // convert iv byte array into byte buffer - var tmp = iv; - iv = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - iv.putByte(tmp[i]); - } - } - - if(iv.length() < blockSize) { - throw new Error( - 'Invalid IV length; got ' + iv.length() + - ' bytes and expected ' + blockSize + ' bytes.'); - } - - if(!forge.util.isArray(iv)) { - // convert iv byte buffer into 32-bit integer array - var ints = []; - var blocks = blockSize / 4; - for(var i = 0; i < blocks; ++i) { - ints.push(iv.getInt32()); - } - iv = ints; - } - - return iv; -} - -function inc32(block) { - // increment last 32 bits of block only - block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; -} - -function from64To32(num) { - // convert 64-bit number to two BE Int32s - return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; -} - - -/***/ }), -/* 159 */, -/* 160 */, -/* 161 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.spanner_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 = __webpack_require__(927); -var spanner_v1; -(function (spanner_v1) { - /** - * Cloud Spanner API - * - * Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service. - * - * @example - * const {google} = require('googleapis'); - * const spanner = google.spanner('v1'); - * - * @namespace spanner - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Spanner - */ - class Spanner { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - spanner_v1.Spanner = Spanner; - class Resource$Projects { - constructor(context) { - this.context = context; - this.instanceConfigs = new Resource$Projects$Instanceconfigs(this.context); - this.instances = new Resource$Projects$Instances(this.context); - } - } - spanner_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Instanceconfigs { + content_v2_1.Resource$Localinventory = Resource$Localinventory; + class Resource$Orderinvoices { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45567,25 +47790,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45598,36 +47822,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - spanner_v1.Resource$Projects$Instanceconfigs = Resource$Projects$Instanceconfigs; - class Resource$Projects$Instances { + content_v2_1.Resource$Orderinvoices = Resource$Orderinvoices; + class Resource$Orderreports { constructor(context) { this.context = context; - this.backupOperations = new Resource$Projects$Instances$Backupoperations(this.context); - this.backups = new Resource$Projects$Instances$Backups(this.context); - this.databaseOperations = new Resource$Projects$Instances$Databaseoperations(this.context); - this.databases = new Resource$Projects$Instances$Databases(this.context); - this.operations = new Resource$Projects$Instances$Operations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + listdisbursements(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45640,25 +47860,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listtransactions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45671,25 +47891,33 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'disbursementId'], + pathParams: ['disbursementId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Orderreports = Resource$Orderreports; + class Resource$Orderreturns { + constructor(context) { + this.context = context; + this.labels = new Resource$Orderreturns$Labels(this.context); + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45702,25 +47930,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + createorderreturn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45733,27 +47962,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreturns/createOrderReturn').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -45764,56 +47993,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}').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://spanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45826,25 +48024,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45857,31 +48055,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/process').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - spanner_v1.Resource$Projects$Instances = Resource$Projects$Instances; - class Resource$Projects$Instances$Backupoperations { + content_v2_1.Resource$Orderreturns = Resource$Orderreturns; + class Resource$Orderreturns$Labels { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45894,32 +48093,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backupOperations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - spanner_v1.Resource$Projects$Instances$Backupoperations = Resource$Projects$Instances$Backupoperations; - class Resource$Projects$Instances$Backups { + content_v2_1.Resource$Orderreturns$Labels = Resource$Orderreturns$Labels; + class Resource$Orders { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Instances$Backups$Operations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45932,25 +48131,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + advancetestorder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45963,27 +48163,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -45994,25 +48194,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + cancellineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46025,25 +48225,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46056,25 +48257,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + captureOrder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46087,25 +48289,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/captureOrder').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + createtestorder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46118,25 +48321,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + createtestreturn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46149,33 +48352,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - spanner_v1.Resource$Projects$Instances$Backups = Resource$Projects$Instances$Backups; - class Resource$Projects$Instances$Backups$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46186,25 +48382,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46217,25 +48413,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46248,25 +48445,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46279,33 +48477,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - spanner_v1.Resource$Projects$Instances$Backups$Operations = Resource$Projects$Instances$Backups$Operations; - class Resource$Projects$Instances$Databaseoperations { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46316,33 +48508,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databaseOperations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - spanner_v1.Resource$Projects$Instances$Databaseoperations = Resource$Projects$Instances$Databaseoperations; - class Resource$Projects$Instances$Databases { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Instances$Databases$Operations(this.context); - this.sessions = new Resource$Projects$Instances$Databases$Sessions(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + refunditem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46355,25 +48539,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/refunditem').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dropDatabase(paramsOrCallback, optionsOrCallback, callback) { + refundorder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46386,25 +48570,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/refundorder').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46417,25 +48602,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDdl(paramsOrCallback, optionsOrCallback, callback) { + returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46448,25 +48634,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46479,25 +48666,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + shiplineitems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46510,25 +48698,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46541,25 +48730,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databases:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46572,25 +48762,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateshipment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46603,25 +48794,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDdl(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Orders = Resource$Orders; + class Resource$Ordertrackingsignals { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46634,33 +48832,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/ordertrackingsignals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - spanner_v1.Resource$Projects$Instances$Databases = Resource$Projects$Instances$Databases; - class Resource$Projects$Instances$Databases$Operations { + content_v2_1.Resource$Ordertrackingsignals = Resource$Ordertrackingsignals; + class Resource$Pos { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46671,27 +48868,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/pos/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46702,27 +48898,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46733,27 +48929,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46764,33 +48960,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - spanner_v1.Resource$Projects$Instances$Databases$Operations = Resource$Projects$Instances$Databases$Operations; - class Resource$Projects$Instances$Databases$Sessions { - constructor(context) { - this.context = context; - } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + inventory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46801,27 +48991,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/sessions:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46832,27 +49022,27 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + sale(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -46863,24 +49053,30 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + content_v2_1.Resource$Pos = Resource$Pos; + class Resource$Productdeliverytime { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -46894,22 +49090,22 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/productdeliverytime').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -46925,25 +49121,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/productdeliverytime/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeBatchDml(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46956,25 +49153,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:executeBatchDml').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2.1/{merchantId}/productdeliverytime/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeSql(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Productdeliverytime = Resource$Productdeliverytime; + class Resource$Products { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46987,27 +49191,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:executeSql').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/products/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeStreamingSql(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47018,27 +49221,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:executeStreamingSql').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47049,27 +49251,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47080,27 +49281,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partitionQuery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47111,27 +49311,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partitionRead(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47142,25 +49341,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:partitionRead').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - read(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Products = Resource$Products; + class Resource$Productstatuses { + constructor(context) { + this.context = context; + this.repricingreports = new Resource$Productstatuses$Repricingreports(this.context); + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47173,25 +49379,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:read').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47204,25 +49410,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - streamingRead(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47235,31 +49441,31 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:streamingRead').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - spanner_v1.Resource$Projects$Instances$Databases$Sessions = Resource$Projects$Instances$Databases$Sessions; - class Resource$Projects$Instances$Operations { + content_v2_1.Resource$Productstatuses = Resource$Productstatuses; + class Resource$Productstatuses$Repricingreports { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47272,25 +49478,32 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2.1/{merchantId}/productstatuses/{productId}/repricingreports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Productstatuses$Repricingreports = Resource$Productstatuses$Repricingreports; + class Resource$Promotions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47303,27 +49516,26 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/promotions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47334,25 +49546,31 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/promotions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'id'], + pathParams: ['id', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Promotions = Resource$Promotions; + class Resource$Pubsubnotificationsettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47365,109 +49583,25 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - spanner_v1.Resource$Projects$Instances$Operations = Resource$Projects$Instances$Operations; -})(spanner_v1 = exports.spanner_v1 || (exports.spanner_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 162 */, -/* 163 */, -/* 164 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.displayvideo_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 = __webpack_require__(927); -var displayvideo_v1; -(function (displayvideo_v1) { - /** - * Display & Video 360 API - * - * Display & Video 360 API allows users to manage and create campaigns and reports. - * - * @example - * const {google} = require('googleapis'); - * const displayvideo = google.displayvideo('v1'); - * - * @namespace displayvideo - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Displayvideo - */ - class Displayvideo { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.advertisers = new Resource$Advertisers(this.context); - this.combinedAudiences = new Resource$Combinedaudiences(this.context); - this.customLists = new Resource$Customlists(this.context); - this.firstAndThirdPartyAudiences = new Resource$Firstandthirdpartyaudiences(this.context); - this.floodlightGroups = new Resource$Floodlightgroups(this.context); - this.googleAudiences = new Resource$Googleaudiences(this.context); - this.inventorySourceGroups = new Resource$Inventorysourcegroups(this.context); - this.inventorySources = new Resource$Inventorysources(this.context); - this.media = new Resource$Media(this.context); - this.partners = new Resource$Partners(this.context); - this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); - this.targetingTypes = new Resource$Targetingtypes(this.context); - } - } - displayvideo_v1.Displayvideo = Displayvideo; - class Resource$Advertisers { - constructor(context) { - this.context = context; - this.assets = new Resource$Advertisers$Assets(this.context); - this.campaigns = new Resource$Advertisers$Campaigns(this.context); - this.channels = new Resource$Advertisers$Channels(this.context); - this.creatives = new Resource$Advertisers$Creatives(this.context); - this.insertionOrders = new Resource$Advertisers$Insertionorders(this.context); - this.lineItems = new Resource$Advertisers$Lineitems(this.context); - this.locationLists = new Resource$Advertisers$Locationlists(this.context); - this.negativeKeywordLists = new Resource$Advertisers$Negativekeywordlists(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47480,27 +49614,32 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + content_v2_1.Resource$Pubsubnotificationsettings = Resource$Pubsubnotificationsettings; + class Resource$Quotas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47511,26 +49650,33 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/quotas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2_1.Resource$Quotas = Resource$Quotas; + class Resource$Recommendations { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47541,26 +49687,27 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/recommendations/generate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + reportInteraction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47571,25 +49718,32 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/recommendations/reportInteraction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Recommendations = Resource$Recommendations; + class Resource$Regionalinventory { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47602,31 +49756,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/regionalinventory/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Advertisers = Resource$Advertisers; - class Resource$Advertisers$Assets { - constructor(context) { - this.context = context; - } - upload(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47639,34 +49787,33 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/products/{productId}/regionalinventory').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Advertisers$Assets = Resource$Advertisers$Assets; - class Resource$Advertisers$Campaigns { + content_v2_1.Resource$Regionalinventory = Resource$Regionalinventory; + class Resource$Regions { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47677,27 +49824,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47708,28 +49854,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['merchantId', 'regionId'], + pathParams: ['merchantId', 'regionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47740,28 +49884,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['merchantId', 'regionId'], + pathParams: ['merchantId', 'regionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47772,27 +49914,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47803,34 +49944,32 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['merchantId', 'regionId'], + pathParams: ['merchantId', 'regionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Advertisers$Campaigns = Resource$Advertisers$Campaigns; - class Resource$Advertisers$Channels { + content_v2_1.Resource$Regions = Resource$Regions; + class Resource$Reports { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47841,25 +49980,32 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/reports/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Reports = Resource$Reports; + class Resource$Repricingrules { + constructor(context) { + this.context = context; + this.repricingreports = new Resource$Repricingrules$Repricingreports(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47872,31 +50018,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Advertisers$Channels = Resource$Advertisers$Channels; - class Resource$Advertisers$Creatives { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47909,25 +50049,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47940,26 +50080,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'creativeId'], - pathParams: ['advertiserId', 'creativeId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47972,26 +50111,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'creativeId'], - pathParams: ['advertiserId', 'creativeId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48004,25 +50142,31 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Repricingrules = Resource$Repricingrules; + class Resource$Repricingrules$Repricingreports { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48035,32 +50179,32 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/content/v2.1/{merchantId}/repricingrules/{ruleId}/repricingreports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'creativeId'], - pathParams: ['advertiserId', 'creativeId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Advertisers$Creatives = Resource$Advertisers$Creatives; - class Resource$Advertisers$Insertionorders { + content_v2_1.Resource$Repricingrules$Repricingreports = Resource$Repricingrules$Repricingreports; + class Resource$Returnaddress { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48073,22 +50217,22 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/returnaddress/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -48104,23 +50248,23 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['merchantId', 'returnAddressId'], + pathParams: ['merchantId', 'returnAddressId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -48136,26 +50280,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['merchantId', 'returnAddressId'], + pathParams: ['merchantId', 'returnAddressId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48168,25 +50312,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48199,33 +50343,31 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Advertisers$Insertionorders = Resource$Advertisers$Insertionorders; - class Resource$Advertisers$Lineitems { + content_v2_1.Resource$Returnaddress = Resource$Returnaddress; + class Resource$Returnpolicy { constructor(context) { this.context = context; - this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); } - bulkEditLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48238,26 +50380,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/returnpolicy/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkListLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48270,91 +50411,27 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkListLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -48365,26 +50442,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48397,25 +50474,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48428,35 +50505,27 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Advertisers$Lineitems = Resource$Advertisers$Lineitems; - class Resource$Advertisers$Lineitems$Targetingtypes { - constructor(context) { - this.context = context; - this.assignedTargetingOptions = new Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions(this.context); - } - } - displayvideo_v1.Resource$Advertisers$Lineitems$Targetingtypes = Resource$Advertisers$Lineitems$Targetingtypes; - class Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions { + content_v2_1.Resource$Returnpolicy = Resource$Returnpolicy; + class Resource$Returnpolicyonline { constructor(context) { this.context = context; } @@ -48473,23 +50542,22 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicyonline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], - pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -48505,33 +50573,23 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [ - 'advertiserId', - 'lineItemId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'lineItemId', - 'targetingType', - ], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -48547,33 +50605,23 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'lineItemId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'lineItemId', - 'targetingType', - ], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -48589,32 +50637,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicyonline').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], - pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions; - class Resource$Advertisers$Locationlists { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48627,59 +50668,28 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['advertiserId', 'locationListId'], - pathParams: ['advertiserId', 'locationListId'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Advertisers$Locationlists = Resource$Advertisers$Locationlists; - class Resource$Advertisers$Negativekeywordlists { + content_v2_1.Resource$Returnpolicyonline = Resource$Returnpolicyonline; + class Resource$Settlementreports { constructor(context) { this.context = context; } @@ -48696,91 +50706,23 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - displayvideo_v1.Resource$Advertisers$Negativekeywordlists = Resource$Advertisers$Negativekeywordlists; - class Resource$Combinedaudiences { - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/settlementreports/{settlementId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['combinedAudienceId'], - pathParams: ['combinedAudienceId'], + requiredParams: ['merchantId', 'settlementId'], + pathParams: ['merchantId', 'settlementId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -48796,97 +50738,31 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/settlementreports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Combinedaudiences = Resource$Combinedaudiences; - class Resource$Customlists { + content_v2_1.Resource$Settlementreports = Resource$Settlementreports; + class Resource$Settlementtransactions { 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['customListId'], - pathParams: ['customListId'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/customLists').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); - } - } - } - displayvideo_v1.Resource$Customlists = Resource$Customlists; - class Resource$Firstandthirdpartyaudiences { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48899,162 +50775,32 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['firstAndThirdPartyAudienceId'], - pathParams: ['firstAndThirdPartyAudienceId'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/firstAndThirdPartyAudiences').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); - } - } - } - displayvideo_v1.Resource$Firstandthirdpartyaudiences = Resource$Firstandthirdpartyaudiences; - class Resource$Floodlightgroups { - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['floodlightGroupId'], - pathParams: ['floodlightGroupId'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['floodlightGroupId'], - pathParams: ['floodlightGroupId'], + requiredParams: ['merchantId', 'settlementId'], + pathParams: ['merchantId', 'settlementId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Floodlightgroups = Resource$Floodlightgroups; - class Resource$Googleaudiences { + content_v2_1.Resource$Settlementtransactions = Resource$Settlementtransactions; + class Resource$Shippingsettings { 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['googleAudienceId'], - pathParams: ['googleAudienceId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49067,11 +50813,11 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -49079,18 +50825,12 @@ var displayvideo_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Googleaudiences = Resource$Googleaudiences; - class Resource$Inventorysourcegroups { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -49104,62 +50844,26 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], - 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Inventorysourcegroups = Resource$Inventorysourcegroups; - class Resource$Inventorysources { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49172,25 +50876,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['inventorySourceId'], - pathParams: ['inventorySourceId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49203,102 +50907,54 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/inventorySources').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); - } - } - } - displayvideo_v1.Resource$Inventorysources = Resource$Inventorysources; - class Resource$Media { - constructor(context) { - this.context = context; - } - download(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Media = Resource$Media; - class Resource$Partners { - constructor(context) { - this.context = context; - this.channels = new Resource$Partners$Channels(this.context); - } - } - displayvideo_v1.Resource$Partners = Resource$Partners; - class Resource$Partners$Channels { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getsupportedpickupservices(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -49314,32 +50970,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Partners$Channels = Resource$Partners$Channels; - class Resource$Sdfdownloadtasks { - constructor(context) { - this.context = context; - this.operations = new Resource$Sdfdownloadtasks$Operations(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49352,27 +51001,28 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; - class Resource$Sdfdownloadtasks$Operations { + content_v2_1.Resource$Shippingsettings = Resource$Shippingsettings; + class Resource$Shoppingadsprogram { constructor(context) { this.context = context; } @@ -49389,38 +51039,25 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/shoppingadsprogram').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - displayvideo_v1.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; - class Resource$Targetingtypes { - constructor(context) { - this.context = context; - this.targetingOptions = new Resource$Targetingtypes$Targetingoptions(this.context); - } - } - displayvideo_v1.Resource$Targetingtypes = Resource$Targetingtypes; - class Resource$Targetingtypes$Targetingoptions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + requestreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49433,20792 +51070,13309 @@ var displayvideo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['targetingType', 'targetingOptionId'], - pathParams: ['targetingOptionId', 'targetingType'], - 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://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/shoppingadsprogram/requestreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['targetingType'], - pathParams: ['targetingType'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - displayvideo_v1.Resource$Targetingtypes$Targetingoptions = Resource$Targetingtypes$Targetingoptions; -})(displayvideo_v1 = exports.displayvideo_v1 || (exports.displayvideo_v1 = {})); -//# sourceMappingURL=v1.js.map + content_v2_1.Resource$Shoppingadsprogram = Resource$Shoppingadsprogram; +})(content_v2_1 = exports.content_v2_1 || (exports.content_v2_1 = {})); + /***/ }), -/* 165 */ + +/***/ 842: /***/ (function(__unusedmodule, exports, __webpack_require__) { "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.Endpoint = void 0; -const apirequest_1 = __webpack_require__(276); -class Endpoint { - constructor(options) { - this._options = options || {}; - } - /** - * Given a schema, add methods and resources to a target. - * - * @param {object} target The target to which to apply the schema. - * @param {object} rootSchema The top-level schema, so we don't lose track of it - * during recursion. - * @param {object} schema The current schema from which to extract methods and - * resources. - * @param {object} context The context to add to each method. - */ - applySchema(target, rootSchema, schema, context) { - this.applyMethodsFromSchema(target, rootSchema, schema, context); - if (schema.resources) { - for (const resourceName in schema.resources) { - if (Object.prototype.hasOwnProperty.call(schema.resources, resourceName)) { - const resource = schema.resources[resourceName]; - if (!target[resourceName]) { - target[resourceName] = {}; - } - this.applySchema(target[resourceName], rootSchema, resource, context); - } - } - } - } - /** - * Given a schema, add methods to a target. - * - * @param {object} target The target to which to apply the methods. - * @param {object} rootSchema The top-level schema, so we don't lose track of it - * during recursion. - * @param {object} schema The current schema from which to extract methods. - * @param {object} context The context to add to each method. - */ - applyMethodsFromSchema(target, rootSchema, schema, context) { - if (schema.methods) { - for (const name in schema.methods) { - if (Object.prototype.hasOwnProperty.call(schema.methods, name)) { - const method = schema.methods[name]; - target[name] = this.makeMethod(rootSchema, method, context); - } - } - } - } - /** - * Given a method schema, add a method to a target. - * - * @param target The target to which to add the method. - * @param schema The top-level schema that contains the rootUrl, etc. - * @param method The method schema from which to generate the method. - * @param context The context to add to the method. - */ - makeMethod(schema, method, context) { - return (paramsOrCallback, callback) => { - const params = typeof paramsOrCallback === 'function' ? {} : paramsOrCallback; - callback = - typeof paramsOrCallback === 'function' - ? paramsOrCallback - : callback; - const schemaUrl = buildurl(schema.rootUrl + schema.servicePath + method.path); - const parameters = { - options: { - url: schemaUrl.substring(1, schemaUrl.length - 1), - method: method.httpMethod, - }, - params, - requiredParams: method.parameterOrder || [], - pathParams: this.getPathParams(method.parameters), - context, - }; - if (method.mediaUpload && - method.mediaUpload.protocols && - method.mediaUpload.protocols.simple && - method.mediaUpload.protocols.simple.path) { - const mediaUrl = buildurl(schema.rootUrl + method.mediaUpload.protocols.simple.path); - parameters.mediaUrl = mediaUrl.substring(1, mediaUrl.length - 1); - } - if (!callback) { - return apirequest_1.createAPIRequest(parameters); - } - apirequest_1.createAPIRequest(parameters, callback); - return; - }; - } - getPathParams(params) { - const pathParams = new Array(); - if (typeof params !== 'object') { - params = {}; - } - Object.keys(params).forEach(key => { - if (params[key].location === 'path') { - pathParams.push(key); - } - }); - return pathParams; - } -} -exports.Endpoint = Endpoint; -/** - * Build a string used to create a URL from the discovery doc provided URL. - * replace double slashes with single slash (except in https://) - * @private - * @param input URL to build from - * @return Resulting built URL - */ -function buildurl(input) { - return input ? `'${input}'`.replace(/([^:]\/)\/+/g, '$1') : ''; -} -//# sourceMappingURL=endpoint.js.map -/***/ }), -/* 166 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +Object.defineProperty(exports, '__esModule', { value: true }); -"use strict"; +var deprecation = __webpack_require__(7692); -// 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.dns_v1beta2 = 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 = __webpack_require__(927); -var dns_v1beta2; -(function (dns_v1beta2) { - /** - * Google Cloud DNS API - * - * Configures and serves authoritative DNS records. - * - * @example - * const {google} = require('googleapis'); - * const dns = google.dns('v1beta2'); - * - * @namespace dns - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Dns - */ - class Dns { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.changes = new Resource$Changes(this.context); - this.dnsKeys = new Resource$Dnskeys(this.context); - this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); - this.managedZones = new Resource$Managedzones(this.context); - this.policies = new Resource$Policies(this.context); - this.projects = new Resource$Projects(this.context); - this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); - } - } - dns_v1beta2.Dns = Dns; - class Resource$Changes { - constructor(context) { - this.context = context; +var endpointsByScope = { + actions: { + cancelWorkflowRun: { + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + run_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runs/:run_id/cancel" + }, + createOrUpdateSecretForRepo: { + method: "PUT", + params: { + encrypted_value: { + type: "string" + }, + key_id: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone', 'changeId'], - pathParams: ['changeId', 'managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/secrets/:name" + }, + createRegistrationToken: { + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runners/registration-token" + }, + createRemoveToken: { + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - dns_v1beta2.Resource$Changes = Resource$Changes; - class Resource$Dnskeys { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/actions/runners/remove-token" + }, + deleteArtifact: { + method: "DELETE", + params: { + artifact_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" + }, + deleteSecretFromRepo: { + method: "DELETE", + params: { + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/secrets/:name" + }, + downloadArtifact: { + method: "GET", + params: { + archive_format: { + required: true, + type: "string" + }, + artifact_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - dns_v1beta2.Resource$Dnskeys = Resource$Dnskeys; - class Resource$Managedzoneoperations { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format" + }, + getArtifact: { + method: "GET", + params: { + artifact_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone', 'operation'], - pathParams: ['managedZone', 'operation', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" + }, + getPublicKey: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/secrets/public-key" + }, + getSecret: { + method: "GET", + params: { + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - dns_v1beta2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; - class Resource$Managedzones { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/actions/secrets/:name" + }, + getSelfHostedRunner: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + runner_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runners/:runner_id" + }, + getWorkflow: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + workflow_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/workflows/:workflow_id" + }, + getWorkflowJob: { + method: "GET", + params: { + job_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/jobs/:job_id" + }, + getWorkflowRun: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + run_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runs/:run_id" + }, + listDownloadsForSelfHostedRunnerApplication: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runners/downloads" + }, + listJobsForWorkflowRun: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + run_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runs/:run_id/jobs" + }, + listRepoWorkflowRuns: { + method: "GET", + params: { + actor: { + type: "string" + }, + branch: { + type: "string" + }, + event: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + status: { + enum: ["completed", "status", "conclusion"], + type: "string" } - } - dns_v1beta2.Resource$Managedzones = Resource$Managedzones; - class Resource$Policies { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/actions/runs" + }, + listRepoWorkflows: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/workflows" + }, + listSecretsForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/secrets" + }, + listSelfHostedRunnersForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runners" + }, + listWorkflowJobLogs: { + method: "GET", + params: { + job_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/jobs/:job_id/logs" + }, + listWorkflowRunArtifacts: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + run_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts" + }, + listWorkflowRunLogs: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + run_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runs/:run_id/logs" + }, + listWorkflowRuns: { + method: "GET", + params: { + actor: { + type: "string" + }, + branch: { + type: "string" + }, + event: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + status: { + enum: ["completed", "status", "conclusion"], + type: "string" + }, + workflow_id: { + required: true, + type: "integer" } - } - dns_v1beta2.Resource$Policies = Resource$Policies; - class Resource$Projects { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs" + }, + reRunWorkflow: { + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + run_id: { + required: true, + type: "integer" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/actions/runs/:run_id/rerun" + }, + removeSelfHostedRunner: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + runner_id: { + required: true, + type: "integer" } + }, + url: "/repos/:owner/:repo/actions/runners/:runner_id" } - dns_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Resourcerecordsets { - constructor(context) { - this.context = context; + }, + activity: { + checkStarringRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/starred/:owner/:repo" + }, + deleteRepoSubscription: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - dns_v1beta2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; -})(dns_v1beta2 = exports.dns_v1beta2 || (exports.dns_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 167 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.websecurityscanner_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 = __webpack_require__(927); -var websecurityscanner_v1; -(function (websecurityscanner_v1) { - /** - * Web Security Scanner API - * - * Scans your Compute and App Engine apps for common web vulnerabilities. - * - * @example - * const {google} = require('googleapis'); - * const websecurityscanner = google.websecurityscanner('v1'); - * - * @namespace websecurityscanner - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Websecurityscanner - */ - class Websecurityscanner { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); + }, + url: "/repos/:owner/:repo/subscription" + }, + deleteThreadSubscription: { + method: "DELETE", + params: { + thread_id: { + required: true, + type: "integer" } - } - websecurityscanner_v1.Websecurityscanner = Websecurityscanner; - class Resource$Projects { - constructor(context) { - this.context = context; - this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + }, + url: "/notifications/threads/:thread_id/subscription" + }, + getRepoSubscription: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - websecurityscanner_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Scanconfigs { - constructor(context) { - this.context = context; - this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(this.context); + }, + url: "/repos/:owner/:repo/subscription" + }, + getThread: { + method: "GET", + params: { + thread_id: { + required: true, + type: "integer" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scanConfigs').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); - } + }, + url: "/notifications/threads/:thread_id" + }, + getThreadSubscription: { + method: "GET", + params: { + thread_id: { + required: true, + type: "integer" } - 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://websecurityscanner.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); - } + }, + url: "/notifications/threads/:thread_id/subscription" + }, + listEventsForOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://websecurityscanner.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); - } + }, + url: "/users/:username/events/orgs/:org" + }, + listEventsForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scanConfigs').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); - } + }, + url: "/users/:username/events" + }, + listFeeds: { + method: "GET", + params: {}, + url: "/feeds" + }, + listNotifications: { + method: "GET", + params: { + all: { + type: "boolean" + }, + before: { + type: "string" + }, + page: { + type: "integer" + }, + participating: { + type: "boolean" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/notifications" + }, + listNotificationsForRepo: { + method: "GET", + params: { + all: { + type: "boolean" + }, + before: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + participating: { + type: "boolean" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" } - 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://websecurityscanner.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); - } + }, + url: "/repos/:owner/:repo/notifications" + }, + listPublicEvents: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - websecurityscanner_v1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; - class Resource$Projects$Scanconfigs$Scanruns { - constructor(context) { - this.context = context; - this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); - this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); - this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context); + }, + url: "/events" + }, + listPublicEventsForOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://websecurityscanner.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); - } + }, + url: "/orgs/:org/events" + }, + listPublicEventsForRepoNetwork: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scanRuns').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); - } + }, + url: "/networks/:owner/:repo/events" + }, + listPublicEventsForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://websecurityscanner.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); - } + }, + url: "/users/:username/events/public" + }, + listReceivedEventsForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - } - websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; - class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { - constructor(context) { - this.context = context; + }, + url: "/users/:username/received_events" + }, + listReceivedPublicEventsForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/crawledUrls').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); - } + }, + url: "/users/:username/received_events/public" + }, + listRepoEvents: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; - class Resource$Projects$Scanconfigs$Scanruns$Findings { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/events" + }, + listReposStarredByAuthenticatedUser: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - 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://websecurityscanner.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); - } + }, + url: "/user/starred" + }, + listReposStarredByUser: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + sort: { + enum: ["created", "updated"], + type: "string" + }, + username: { + required: true, + type: "string" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').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); - } + }, + url: "/users/:username/starred" + }, + listReposWatchedByUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - } - websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; - class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { - constructor(context) { - this.context = context; + }, + url: "/users/:username/subscriptions" + }, + listStargazersForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://websecurityscanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findingTypeStats').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); - } + }, + url: "/repos/:owner/:repo/stargazers" + }, + listWatchedReposForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/subscriptions" + }, + listWatchersForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + } + }, + url: "/repos/:owner/:repo/subscribers" + }, + markAsRead: { + method: "PUT", + params: { + last_read_at: { + type: "string" + } + }, + url: "/notifications" + }, + markNotificationsAsReadForRepo: { + method: "PUT", + params: { + last_read_at: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + } + }, + url: "/repos/:owner/:repo/notifications" + }, + markThreadAsRead: { + method: "PATCH", + params: { + thread_id: { + required: true, + type: "integer" + } + }, + url: "/notifications/threads/:thread_id" + }, + setRepoSubscription: { + method: "PUT", + params: { + ignored: { + type: "boolean" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + subscribed: { + type: "boolean" + } + }, + url: "/repos/:owner/:repo/subscription" + }, + setThreadSubscription: { + method: "PUT", + params: { + ignored: { + type: "boolean" + }, + thread_id: { + required: true, + type: "integer" + } + }, + url: "/notifications/threads/:thread_id/subscription" + }, + starRepo: { + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + } + }, + url: "/user/starred/:owner/:repo" + }, + unstarRepo: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } + }, + url: "/user/starred/:owner/:repo" } - websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; -})(websecurityscanner_v1 = exports.websecurityscanner_v1 || (exports.websecurityscanner_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 168 */ -/***/ (function(module) { - -"use strict"; - -const alias = ['stdin', 'stdout', 'stderr']; - -const hasAlias = opts => alias.some(x => Boolean(opts[x])); - -module.exports = opts => { - if (!opts) { - return null; - } - - if (opts.stdio && hasAlias(opts)) { - throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`); - } - - if (typeof opts.stdio === 'string') { - return opts.stdio; - } - - const stdio = opts.stdio || []; - - if (!Array.isArray(stdio)) { - throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); - } - - const result = []; - const len = Math.max(stdio.length, alias.length); - - for (let i = 0; i < len; i++) { - let value = null; - - if (stdio[i] !== undefined) { - value = stdio[i]; - } else if (opts[alias[i]] !== undefined) { - value = opts[alias[i]]; - } - - result[i] = value; - } - - return result; -}; - - -/***/ }), -/* 169 */, -/* 170 */, -/* 171 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * A Javascript implementation of Transport Layer Security (TLS). - * - * @author Dave Longley - * - * Copyright (c) 2009-2014 Digital Bazaar, Inc. - * - * The TLS Handshake Protocol involves the following steps: - * - * - Exchange hello messages to agree on algorithms, exchange random values, - * and check for session resumption. - * - * - Exchange the necessary cryptographic parameters to allow the client and - * server to agree on a premaster secret. - * - * - Exchange certificates and cryptographic information to allow the client - * and server to authenticate themselves. - * - * - Generate a master secret from the premaster secret and exchanged random - * values. - * - * - Provide security parameters to the record layer. - * - * - Allow the client and server to verify that their peer has calculated the - * same security parameters and that the handshake occurred without tampering - * by an attacker. - * - * Up to 4 different messages may be sent during a key exchange. The server - * certificate, the server key exchange, the client certificate, and the - * client key exchange. - * - * A typical handshake (from the client's perspective). - * - * 1. Client sends ClientHello. - * 2. Client receives ServerHello. - * 3. Client receives optional Certificate. - * 4. Client receives optional ServerKeyExchange. - * 5. Client receives ServerHelloDone. - * 6. Client sends optional Certificate. - * 7. Client sends ClientKeyExchange. - * 8. Client sends optional CertificateVerify. - * 9. Client sends ChangeCipherSpec. - * 10. Client sends Finished. - * 11. Client receives ChangeCipherSpec. - * 12. Client receives Finished. - * 13. Client sends/receives application data. - * - * To reuse an existing session: - * - * 1. Client sends ClientHello with session ID for reuse. - * 2. Client receives ServerHello with same session ID if reusing. - * 3. Client receives ChangeCipherSpec message if reusing. - * 4. Client receives Finished. - * 5. Client sends ChangeCipherSpec. - * 6. Client sends Finished. - * - * Note: Client ignores HelloRequest if in the middle of a handshake. - * - * Record Layer: - * - * The record layer fragments information blocks into TLSPlaintext records - * carrying data in chunks of 2^14 bytes or less. Client message boundaries are - * not preserved in the record layer (i.e., multiple client messages of the - * same ContentType MAY be coalesced into a single TLSPlaintext record, or a - * single message MAY be fragmented across several records). - * - * struct { - * uint8 major; - * uint8 minor; - * } ProtocolVersion; - * - * struct { - * ContentType type; - * ProtocolVersion version; - * uint16 length; - * opaque fragment[TLSPlaintext.length]; - * } TLSPlaintext; - * - * type: - * The higher-level protocol used to process the enclosed fragment. - * - * version: - * The version of the protocol being employed. TLS Version 1.2 uses version - * {3, 3}. TLS Version 1.0 uses version {3, 1}. Note that a client that - * supports multiple versions of TLS may not know what version will be - * employed before it receives the ServerHello. - * - * length: - * The length (in bytes) of the following TLSPlaintext.fragment. The length - * MUST NOT exceed 2^14 = 16384 bytes. - * - * fragment: - * The application data. This data is transparent and treated as an - * independent block to be dealt with by the higher-level protocol specified - * by the type field. - * - * Implementations MUST NOT send zero-length fragments of Handshake, Alert, or - * ChangeCipherSpec content types. Zero-length fragments of Application data - * MAY be sent as they are potentially useful as a traffic analysis - * countermeasure. - * - * Note: Data of different TLS record layer content types MAY be interleaved. - * Application data is generally of lower precedence for transmission than - * other content types. However, records MUST be delivered to the network in - * the same order as they are protected by the record layer. Recipients MUST - * receive and process interleaved application layer traffic during handshakes - * subsequent to the first one on a connection. - * - * struct { - * ContentType type; // same as TLSPlaintext.type - * ProtocolVersion version;// same as TLSPlaintext.version - * uint16 length; - * opaque fragment[TLSCompressed.length]; - * } TLSCompressed; - * - * length: - * The length (in bytes) of the following TLSCompressed.fragment. - * The length MUST NOT exceed 2^14 + 1024. - * - * fragment: - * The compressed form of TLSPlaintext.fragment. - * - * Note: A CompressionMethod.null operation is an identity operation; no fields - * are altered. In this implementation, since no compression is supported, - * uncompressed records are always the same as compressed records. - * - * Encryption Information: - * - * The encryption and MAC functions translate a TLSCompressed structure into a - * TLSCiphertext. The decryption functions reverse the process. The MAC of the - * record also includes a sequence number so that missing, extra, or repeated - * messages are detectable. - * - * struct { - * ContentType type; - * ProtocolVersion version; - * uint16 length; - * select (SecurityParameters.cipher_type) { - * case stream: GenericStreamCipher; - * case block: GenericBlockCipher; - * case aead: GenericAEADCipher; - * } fragment; - * } TLSCiphertext; - * - * type: - * The type field is identical to TLSCompressed.type. - * - * version: - * The version field is identical to TLSCompressed.version. - * - * length: - * The length (in bytes) of the following TLSCiphertext.fragment. - * The length MUST NOT exceed 2^14 + 2048. - * - * fragment: - * The encrypted form of TLSCompressed.fragment, with the MAC. - * - * Note: Only CBC Block Ciphers are supported by this implementation. - * - * The TLSCompressed.fragment structures are converted to/from block - * TLSCiphertext.fragment structures. - * - * struct { - * opaque IV[SecurityParameters.record_iv_length]; - * block-ciphered struct { - * opaque content[TLSCompressed.length]; - * opaque MAC[SecurityParameters.mac_length]; - * uint8 padding[GenericBlockCipher.padding_length]; - * uint8 padding_length; - * }; - * } GenericBlockCipher; - * - * The MAC is generated as described in Section 6.2.3.1. - * - * IV: - * The Initialization Vector (IV) SHOULD be chosen at random, and MUST be - * unpredictable. Note that in versions of TLS prior to 1.1, there was no - * IV field, and the last ciphertext block of the previous record (the "CBC - * residue") was used as the IV. This was changed to prevent the attacks - * described in [CBCATT]. For block ciphers, the IV length is of length - * SecurityParameters.record_iv_length, which is equal to the - * SecurityParameters.block_size. - * - * padding: - * Padding that is added to force the length of the plaintext to be an - * integral multiple of the block cipher's block length. The padding MAY be - * any length up to 255 bytes, as long as it results in the - * TLSCiphertext.length being an integral multiple of the block length. - * Lengths longer than necessary might be desirable to frustrate attacks on - * a protocol that are based on analysis of the lengths of exchanged - * messages. Each uint8 in the padding data vector MUST be filled with the - * padding length value. The receiver MUST check this padding and MUST use - * the bad_record_mac alert to indicate padding errors. - * - * padding_length: - * The padding length MUST be such that the total size of the - * GenericBlockCipher structure is a multiple of the cipher's block length. - * Legal values range from zero to 255, inclusive. This length specifies the - * length of the padding field exclusive of the padding_length field itself. - * - * The encrypted data length (TLSCiphertext.length) is one more than the sum of - * SecurityParameters.block_length, TLSCompressed.length, - * SecurityParameters.mac_length, and padding_length. - * - * Example: If the block length is 8 bytes, the content length - * (TLSCompressed.length) is 61 bytes, and the MAC length is 20 bytes, then the - * length before padding is 82 bytes (this does not include the IV. Thus, the - * padding length modulo 8 must be equal to 6 in order to make the total length - * an even multiple of 8 bytes (the block length). The padding length can be - * 6, 14, 22, and so on, through 254. If the padding length were the minimum - * necessary, 6, the padding would be 6 bytes, each containing the value 6. - * Thus, the last 8 octets of the GenericBlockCipher before block encryption - * would be xx 06 06 06 06 06 06 06, where xx is the last octet of the MAC. - * - * Note: With block ciphers in CBC mode (Cipher Block Chaining), it is critical - * that the entire plaintext of the record be known before any ciphertext is - * transmitted. Otherwise, it is possible for the attacker to mount the attack - * described in [CBCATT]. - * - * Implementation note: Canvel et al. [CBCTIME] have demonstrated a timing - * attack on CBC padding based on the time required to compute the MAC. In - * order to defend against this attack, implementations MUST ensure that - * record processing time is essentially the same whether or not the padding - * is correct. In general, the best way to do this is to compute the MAC even - * if the padding is incorrect, and only then reject the packet. For instance, - * if the pad appears to be incorrect, the implementation might assume a - * zero-length pad and then compute the MAC. This leaves a small timing - * channel, since MAC performance depends, to some extent, on the size of the - * data fragment, but it is not believed to be large enough to be exploitable, - * due to the large block size of existing MACs and the small size of the - * timing signal. - */ -var forge = __webpack_require__(239); -__webpack_require__(784); -__webpack_require__(0); -__webpack_require__(237); -__webpack_require__(76); -__webpack_require__(954); -__webpack_require__(707); -__webpack_require__(908); -__webpack_require__(54); - -/** - * Generates pseudo random bytes by mixing the result of two hash functions, - * MD5 and SHA-1. - * - * prf_TLS1(secret, label, seed) = - * P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed); - * - * Each P_hash function functions as follows: - * - * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) + - * HMAC_hash(secret, A(2) + seed) + - * HMAC_hash(secret, A(3) + seed) + ... - * A() is defined as: - * A(0) = seed - * A(i) = HMAC_hash(secret, A(i-1)) - * - * The '+' operator denotes concatenation. - * - * As many iterations A(N) as are needed are performed to generate enough - * pseudo random byte output. If an iteration creates more data than is - * necessary, then it is truncated. - * - * Therefore: - * A(1) = HMAC_hash(secret, A(0)) - * = HMAC_hash(secret, seed) - * A(2) = HMAC_hash(secret, A(1)) - * = HMAC_hash(secret, HMAC_hash(secret, seed)) - * - * Therefore: - * P_hash(secret, seed) = - * HMAC_hash(secret, HMAC_hash(secret, A(0)) + seed) + - * HMAC_hash(secret, HMAC_hash(secret, A(1)) + seed) + - * ... - * - * Therefore: - * P_hash(secret, seed) = - * HMAC_hash(secret, HMAC_hash(secret, seed) + seed) + - * HMAC_hash(secret, HMAC_hash(secret, HMAC_hash(secret, seed)) + seed) + - * ... - * - * @param secret the secret to use. - * @param label the label to use. - * @param seed the seed value to use. - * @param length the number of bytes to generate. - * - * @return the pseudo random bytes in a byte buffer. - */ -var prf_TLS1 = function(secret, label, seed, length) { - var rval = forge.util.createBuffer(); - - /* For TLS 1.0, the secret is split in half, into two secrets of equal - length. If the secret has an odd length then the last byte of the first - half will be the same as the first byte of the second. The length of the - two secrets is half of the secret rounded up. */ - var idx = (secret.length >> 1); - var slen = idx + (secret.length & 1); - var s1 = secret.substr(0, slen); - var s2 = secret.substr(idx, slen); - var ai = forge.util.createBuffer(); - var hmac = forge.hmac.create(); - seed = label + seed; - - // determine the number of iterations that must be performed to generate - // enough output bytes, md5 creates 16 byte hashes, sha1 creates 20 - var md5itr = Math.ceil(length / 16); - var sha1itr = Math.ceil(length / 20); - - // do md5 iterations - hmac.start('MD5', s1); - var md5bytes = forge.util.createBuffer(); - ai.putBytes(seed); - for(var i = 0; i < md5itr; ++i) { - // HMAC_hash(secret, A(i-1)) - hmac.start(null, null); - hmac.update(ai.getBytes()); - ai.putBuffer(hmac.digest()); - - // HMAC_hash(secret, A(i) + seed) - hmac.start(null, null); - hmac.update(ai.bytes() + seed); - md5bytes.putBuffer(hmac.digest()); - } - - // do sha1 iterations - hmac.start('SHA1', s2); - var sha1bytes = forge.util.createBuffer(); - ai.clear(); - ai.putBytes(seed); - for(var i = 0; i < sha1itr; ++i) { - // HMAC_hash(secret, A(i-1)) - hmac.start(null, null); - hmac.update(ai.getBytes()); - ai.putBuffer(hmac.digest()); - - // HMAC_hash(secret, A(i) + seed) - hmac.start(null, null); - hmac.update(ai.bytes() + seed); - sha1bytes.putBuffer(hmac.digest()); - } - - // XOR the md5 bytes with the sha1 bytes - rval.putBytes(forge.util.xorBytes( - md5bytes.getBytes(), sha1bytes.getBytes(), length)); - - return rval; -}; - -/** - * Generates pseudo random bytes using a SHA256 algorithm. For TLS 1.2. - * - * @param secret the secret to use. - * @param label the label to use. - * @param seed the seed value to use. - * @param length the number of bytes to generate. - * - * @return the pseudo random bytes in a byte buffer. - */ -var prf_sha256 = function(secret, label, seed, length) { - // FIXME: implement me for TLS 1.2 -}; - -/** - * Gets a MAC for a record using the SHA-1 hash algorithm. - * - * @param key the mac key. - * @param state the sequence number (array of two 32-bit integers). - * @param record the record. - * - * @return the sha-1 hash (20 bytes) for the given record. - */ -var hmac_sha1 = function(key, seqNum, record) { - /* MAC is computed like so: - HMAC_hash( - key, seqNum + - TLSCompressed.type + - TLSCompressed.version + - TLSCompressed.length + - TLSCompressed.fragment) - */ - var hmac = forge.hmac.create(); - hmac.start('SHA1', key); - var b = forge.util.createBuffer(); - b.putInt32(seqNum[0]); - b.putInt32(seqNum[1]); - b.putByte(record.type); - b.putByte(record.version.major); - b.putByte(record.version.minor); - b.putInt16(record.length); - b.putBytes(record.fragment.bytes()); - hmac.update(b.getBytes()); - return hmac.digest().getBytes(); -}; - -/** - * Compresses the TLSPlaintext record into a TLSCompressed record using the - * deflate algorithm. - * - * @param c the TLS connection. - * @param record the TLSPlaintext record to compress. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. - */ -var deflate = function(c, record, s) { - var rval = false; - - try { - var bytes = c.deflate(record.fragment.getBytes()); - record.fragment = forge.util.createBuffer(bytes); - record.length = bytes.length; - rval = true; - } catch(ex) { - // deflate error, fail out - } - - return rval; -}; - -/** - * Decompresses the TLSCompressed record into a TLSPlaintext record using the - * deflate algorithm. - * - * @param c the TLS connection. - * @param record the TLSCompressed record to decompress. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. - */ -var inflate = function(c, record, s) { - var rval = false; - - try { - var bytes = c.inflate(record.fragment.getBytes()); - record.fragment = forge.util.createBuffer(bytes); - record.length = bytes.length; - rval = true; - } catch(ex) { - // inflate error, fail out - } - - return rval; -}; - -/** - * Reads a TLS variable-length vector from a byte buffer. - * - * Variable-length vectors are defined by specifying a subrange of legal - * lengths, inclusively, using the notation . When these are - * encoded, the actual length precedes the vector's contents in the byte - * stream. The length will be in the form of a number consuming as many bytes - * as required to hold the vector's specified maximum (ceiling) length. A - * variable-length vector with an actual length field of zero is referred to - * as an empty vector. - * - * @param b the byte buffer. - * @param lenBytes the number of bytes required to store the length. - * - * @return the resulting byte buffer. - */ -var readVector = function(b, lenBytes) { - var len = 0; - switch(lenBytes) { - case 1: - len = b.getByte(); - break; - case 2: - len = b.getInt16(); - break; - case 3: - len = b.getInt24(); - break; - case 4: - len = b.getInt32(); - break; - } - - // read vector bytes into a new buffer - return forge.util.createBuffer(b.getBytes(len)); -}; - -/** - * Writes a TLS variable-length vector to a byte buffer. - * - * @param b the byte buffer. - * @param lenBytes the number of bytes required to store the length. - * @param v the byte buffer vector. - */ -var writeVector = function(b, lenBytes, v) { - // encode length at the start of the vector, where the number of bytes for - // the length is the maximum number of bytes it would take to encode the - // vector's ceiling - b.putInt(v.length(), lenBytes << 3); - b.putBuffer(v); -}; - -/** - * The tls implementation. - */ -var tls = {}; - -/** - * Version: TLS 1.2 = 3.3, TLS 1.1 = 3.2, TLS 1.0 = 3.1. Both TLS 1.1 and - * TLS 1.2 were still too new (ie: openSSL didn't implement them) at the time - * of this implementation so TLS 1.0 was implemented instead. - */ -tls.Versions = { - TLS_1_0: {major: 3, minor: 1}, - TLS_1_1: {major: 3, minor: 2}, - TLS_1_2: {major: 3, minor: 3} -}; -tls.SupportedVersions = [ - tls.Versions.TLS_1_1, - tls.Versions.TLS_1_0 -]; -tls.Version = tls.SupportedVersions[0]; - -/** - * Maximum fragment size. True maximum is 16384, but we fragment before that - * to allow for unusual small increases during compression. - */ -tls.MaxFragment = 16384 - 1024; - -/** - * Whether this entity is considered the "client" or "server". - * enum { server, client } ConnectionEnd; - */ -tls.ConnectionEnd = { - server: 0, - client: 1 -}; - -/** - * Pseudo-random function algorithm used to generate keys from the master - * secret. - * enum { tls_prf_sha256 } PRFAlgorithm; - */ -tls.PRFAlgorithm = { - tls_prf_sha256: 0 -}; - -/** - * Bulk encryption algorithms. - * enum { null, rc4, des3, aes } BulkCipherAlgorithm; - */ -tls.BulkCipherAlgorithm = { - none: null, - rc4: 0, - des3: 1, - aes: 2 -}; - -/** - * Cipher types. - * enum { stream, block, aead } CipherType; - */ -tls.CipherType = { - stream: 0, - block: 1, - aead: 2 -}; - -/** - * MAC (Message Authentication Code) algorithms. - * enum { null, hmac_md5, hmac_sha1, hmac_sha256, - * hmac_sha384, hmac_sha512} MACAlgorithm; - */ -tls.MACAlgorithm = { - none: null, - hmac_md5: 0, - hmac_sha1: 1, - hmac_sha256: 2, - hmac_sha384: 3, - hmac_sha512: 4 -}; - -/** - * Compression algorithms. - * enum { null(0), deflate(1), (255) } CompressionMethod; - */ -tls.CompressionMethod = { - none: 0, - deflate: 1 -}; - -/** - * TLS record content types. - * enum { - * change_cipher_spec(20), alert(21), handshake(22), - * application_data(23), (255) - * } ContentType; - */ -tls.ContentType = { - change_cipher_spec: 20, - alert: 21, - handshake: 22, - application_data: 23, - heartbeat: 24 -}; - -/** - * TLS handshake types. - * enum { - * hello_request(0), client_hello(1), server_hello(2), - * certificate(11), server_key_exchange (12), - * certificate_request(13), server_hello_done(14), - * certificate_verify(15), client_key_exchange(16), - * finished(20), (255) - * } HandshakeType; - */ -tls.HandshakeType = { - hello_request: 0, - client_hello: 1, - server_hello: 2, - certificate: 11, - server_key_exchange: 12, - certificate_request: 13, - server_hello_done: 14, - certificate_verify: 15, - client_key_exchange: 16, - finished: 20 -}; - -/** - * TLS Alert Protocol. - * - * enum { warning(1), fatal(2), (255) } AlertLevel; - * - * enum { - * close_notify(0), - * unexpected_message(10), - * bad_record_mac(20), - * decryption_failed(21), - * record_overflow(22), - * decompression_failure(30), - * handshake_failure(40), - * bad_certificate(42), - * unsupported_certificate(43), - * certificate_revoked(44), - * certificate_expired(45), - * certificate_unknown(46), - * illegal_parameter(47), - * unknown_ca(48), - * access_denied(49), - * decode_error(50), - * decrypt_error(51), - * export_restriction(60), - * protocol_version(70), - * insufficient_security(71), - * internal_error(80), - * user_canceled(90), - * no_renegotiation(100), - * (255) - * } AlertDescription; - * - * struct { - * AlertLevel level; - * AlertDescription description; - * } Alert; - */ -tls.Alert = {}; -tls.Alert.Level = { - warning: 1, - fatal: 2 -}; -tls.Alert.Description = { - close_notify: 0, - unexpected_message: 10, - bad_record_mac: 20, - decryption_failed: 21, - record_overflow: 22, - decompression_failure: 30, - handshake_failure: 40, - bad_certificate: 42, - unsupported_certificate: 43, - certificate_revoked: 44, - certificate_expired: 45, - certificate_unknown: 46, - illegal_parameter: 47, - unknown_ca: 48, - access_denied: 49, - decode_error: 50, - decrypt_error: 51, - export_restriction: 60, - protocol_version: 70, - insufficient_security: 71, - internal_error: 80, - user_canceled: 90, - no_renegotiation: 100 -}; - -/** - * TLS Heartbeat Message types. - * enum { - * heartbeat_request(1), - * heartbeat_response(2), - * (255) - * } HeartbeatMessageType; - */ -tls.HeartbeatMessageType = { - heartbeat_request: 1, - heartbeat_response: 2 -}; - -/** - * Supported cipher suites. - */ -tls.CipherSuites = {}; - -/** - * Gets a supported cipher suite from its 2 byte ID. - * - * @param twoBytes two bytes in a string. - * - * @return the matching supported cipher suite or null. - */ -tls.getCipherSuite = function(twoBytes) { - var rval = null; - for(var key in tls.CipherSuites) { - var cs = tls.CipherSuites[key]; - if(cs.id[0] === twoBytes.charCodeAt(0) && - cs.id[1] === twoBytes.charCodeAt(1)) { - rval = cs; - break; - } - } - return rval; -}; - -/** - * Called when an unexpected record is encountered. - * - * @param c the connection. - * @param record the record. - */ -tls.handleUnexpected = function(c, record) { - // if connection is client and closed, ignore unexpected messages - var ignore = (!c.open && c.entity === tls.ConnectionEnd.client); - if(!ignore) { - c.error(c, { - message: 'Unexpected message. Received TLS record out of order.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.unexpected_message - } - }); - } -}; - -/** - * Called when a client receives a HelloRequest record. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleHelloRequest = function(c, record, length) { - // ignore renegotiation requests from the server during a handshake, but - // if handshaking, send a warning alert that renegotation is denied - if(!c.handshaking && c.handshakes > 0) { - // send alert warning - tls.queue(c, tls.createAlert(c, { - level: tls.Alert.Level.warning, - description: tls.Alert.Description.no_renegotiation - })); - tls.flush(c); - } - - // continue - c.process(); -}; - -/** - * Parses a hello message from a ClientHello or ServerHello record. - * - * @param record the record to parse. - * - * @return the parsed message. - */ -tls.parseHelloMessage = function(c, record, length) { - var msg = null; - - var client = (c.entity === tls.ConnectionEnd.client); - - // minimum of 38 bytes in message - if(length < 38) { - c.error(c, { - message: client ? - 'Invalid ServerHello message. Message too short.' : - 'Invalid ClientHello message. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } else { - // use 'remaining' to calculate # of remaining bytes in the message - var b = record.fragment; - var remaining = b.length(); - msg = { - version: { - major: b.getByte(), - minor: b.getByte() + }, + apps: { + addRepoToInstallation: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" }, - random: forge.util.createBuffer(b.getBytes(32)), - session_id: readVector(b, 1), - extensions: [] - }; - if(client) { - msg.cipher_suite = b.getBytes(2); - msg.compression_method = b.getByte(); - } else { - msg.cipher_suites = readVector(b, 2); - msg.compression_methods = readVector(b, 1); - } - - // read extensions if there are any bytes left in the message - remaining = length - (remaining - b.length()); - if(remaining > 0) { - // parse extensions - var exts = readVector(b, 2); - while(exts.length() > 0) { - msg.extensions.push({ - type: [exts.getByte(), exts.getByte()], - data: readVector(exts, 2) - }); - } - - // TODO: make extension support modular - if(!client) { - for(var i = 0; i < msg.extensions.length; ++i) { - var ext = msg.extensions[i]; - - // support SNI extension - if(ext.type[0] === 0x00 && ext.type[1] === 0x00) { - // get server name list - var snl = readVector(ext.data, 2); - while(snl.length() > 0) { - // read server name type - var snType = snl.getByte(); - - // only HostName type (0x00) is known, break out if - // another type is detected - if(snType !== 0x00) { - break; - } - - // add host name to server name list - c.session.extensions.server_name.serverNameList.push( - readVector(snl, 2).getBytes()); - } - } + method: "PUT", + params: { + installation_id: { + required: true, + type: "integer" + }, + repository_id: { + required: true, + type: "integer" } - } - } - - // version already set, do not allow version change - if(c.session.version) { - if(msg.version.major !== c.session.version.major || - msg.version.minor !== c.session.version.minor) { - return c.error(c, { - message: 'TLS version change is disallowed during renegotiation.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.protocol_version - } - }); - } - } - - // get the chosen (ServerHello) cipher suite - if(client) { - // FIXME: should be checking configured acceptable cipher suites - c.session.cipherSuite = tls.getCipherSuite(msg.cipher_suite); - } else { - // get a supported preferred (ClientHello) cipher suite - // choose the first supported cipher suite - var tmp = forge.util.createBuffer(msg.cipher_suites.bytes()); - while(tmp.length() > 0) { - // FIXME: should be checking configured acceptable suites - // cipher suites take up 2 bytes - c.session.cipherSuite = tls.getCipherSuite(tmp.getBytes(2)); - if(c.session.cipherSuite !== null) { - break; + }, + url: "/user/installations/:installation_id/repositories/:repository_id" + }, + checkAccountIsAssociatedWithAny: { + method: "GET", + params: { + account_id: { + required: true, + type: "integer" } - } - } - - // cipher suite not supported - if(c.session.cipherSuite === null) { - return c.error(c, { - message: 'No cipher suites in common.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.handshake_failure + }, + url: "/marketplace_listing/accounts/:account_id" + }, + checkAccountIsAssociatedWithAnyStubbed: { + method: "GET", + params: { + account_id: { + required: true, + type: "integer" + } + }, + url: "/marketplace_listing/stubbed/accounts/:account_id" + }, + checkAuthorization: { + deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization", + method: "GET", + params: { + access_token: { + required: true, + type: "string" }, - cipherSuite: forge.util.bytesToHex(msg.cipher_suite) - }); - } - - // TODO: handle compression methods - if(client) { - c.session.compressionMethod = msg.compression_method; - } else { - // no compression - c.session.compressionMethod = tls.CompressionMethod.none; - } - } - - return msg; -}; - -/** - * Creates security parameters for the given connection based on the given - * hello message. - * - * @param c the TLS connection. - * @param msg the hello message. - */ -tls.createSecurityParameters = function(c, msg) { - /* Note: security params are from TLS 1.2, some values like prf_algorithm - are ignored for TLS 1.0/1.1 and the builtin as specified in the spec is - used. */ - - // TODO: handle other options from server when more supported - - // get client and server randoms - var client = (c.entity === tls.ConnectionEnd.client); - var msgRandom = msg.random.bytes(); - var cRandom = client ? c.session.sp.client_random : msgRandom; - var sRandom = client ? msgRandom : tls.createRandom().getBytes(); - - // create new security parameters - c.session.sp = { - entity: c.entity, - prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256, - bulk_cipher_algorithm: null, - cipher_type: null, - enc_key_length: null, - block_length: null, - fixed_iv_length: null, - record_iv_length: null, - mac_algorithm: null, - mac_length: null, - mac_key_length: null, - compression_algorithm: c.session.compressionMethod, - pre_master_secret: null, - master_secret: null, - client_random: cRandom, - server_random: sRandom - }; -}; - -/** - * Called when a client receives a ServerHello record. - * - * When a ServerHello message will be sent: - * The server will send this message in response to a client hello message - * when it was able to find an acceptable set of algorithms. If it cannot - * find such a match, it will respond with a handshake failure alert. - * - * uint24 length; - * struct { - * ProtocolVersion server_version; - * Random random; - * SessionID session_id; - * CipherSuite cipher_suite; - * CompressionMethod compression_method; - * select(extensions_present) { - * case false: - * struct {}; - * case true: - * Extension extensions<0..2^16-1>; - * }; - * } ServerHello; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleServerHello = function(c, record, length) { - var msg = tls.parseHelloMessage(c, record, length); - if(c.fail) { - return; - } - - // ensure server version is compatible - if(msg.version.minor <= c.version.minor) { - c.version.minor = msg.version.minor; - } else { - return c.error(c, { - message: 'Incompatible TLS version.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.protocol_version - } - }); - } - - // indicate session version has been set - c.session.version = c.version; - - // get the session ID from the message - var sessionId = msg.session_id.bytes(); - - // if the session ID is not blank and matches the cached one, resume - // the session - if(sessionId.length > 0 && sessionId === c.session.id) { - // resuming session, expect a ChangeCipherSpec next - c.expect = SCC; - c.session.resuming = true; - - // get new server random - c.session.sp.server_random = msg.random.bytes(); - } else { - // not resuming, expect a server Certificate message next - c.expect = SCE; - c.session.resuming = false; - - // create new security parameters - tls.createSecurityParameters(c, msg); - } - - // set new session ID - c.session.id = sessionId; - - // continue - c.process(); -}; - -/** - * Called when a server receives a ClientHello record. - * - * When a ClientHello message will be sent: - * When a client first connects to a server it is required to send the - * client hello as its first message. The client can also send a client - * hello in response to a hello request or on its own initiative in order - * to renegotiate the security parameters in an existing connection. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleClientHello = function(c, record, length) { - var msg = tls.parseHelloMessage(c, record, length); - if(c.fail) { - return; - } - - // get the session ID from the message - var sessionId = msg.session_id.bytes(); - - // see if the given session ID is in the cache - var session = null; - if(c.sessionCache) { - session = c.sessionCache.getSession(sessionId); - if(session === null) { - // session ID not found - sessionId = ''; - } else if(session.version.major !== msg.version.major || - session.version.minor > msg.version.minor) { - // if session version is incompatible with client version, do not resume - session = null; - sessionId = ''; - } - } - - // no session found to resume, generate a new session ID - if(sessionId.length === 0) { - sessionId = forge.random.getBytes(32); - } - - // update session - c.session.id = sessionId; - c.session.clientHelloVersion = msg.version; - c.session.sp = {}; - if(session) { - // use version and security parameters from resumed session - c.version = c.session.version = session.version; - c.session.sp = session.sp; - } else { - // use highest compatible minor version - var version; - for(var i = 1; i < tls.SupportedVersions.length; ++i) { - version = tls.SupportedVersions[i]; - if(version.minor <= msg.version.minor) { - break; - } - } - c.version = {major: version.major, minor: version.minor}; - c.session.version = c.version; - } - - // if a session is set, resume it - if(session !== null) { - // resuming session, expect a ChangeCipherSpec next - c.expect = CCC; - c.session.resuming = true; - - // get new client random - c.session.sp.client_random = msg.random.bytes(); - } else { - // not resuming, expect a Certificate or ClientKeyExchange - c.expect = (c.verifyClient !== false) ? CCE : CKE; - c.session.resuming = false; - - // create new security parameters - tls.createSecurityParameters(c, msg); - } - - // connection now open - c.open = true; - - // queue server hello - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createServerHello(c) - })); - - if(c.session.resuming) { - // queue change cipher spec message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.change_cipher_spec, - data: tls.createChangeCipherSpec() - })); - - // create pending state - c.state.pending = tls.createConnectionState(c); - - // change current write state to pending write state - c.state.current.write = c.state.pending.write; - - // queue finished - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createFinished(c) - })); - } else { - // queue server certificate - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificate(c) - })); - - if(!c.fail) { - // queue server key exchange - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createServerKeyExchange(c) - })); - - // request client certificate if set - if(c.verifyClient !== false) { - // queue certificate request - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificateRequest(c) - })); - } - - // queue server hello done - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createServerHelloDone(c) - })); - } - } - - // send records - tls.flush(c); - - // continue - c.process(); -}; - -/** - * Called when a client receives a Certificate record. - * - * When this message will be sent: - * The server must send a certificate whenever the agreed-upon key exchange - * method is not an anonymous one. This message will always immediately - * follow the server hello message. - * - * Meaning of this message: - * The certificate type must be appropriate for the selected cipher suite's - * key exchange algorithm, and is generally an X.509v3 certificate. It must - * contain a key which matches the key exchange method, as follows. Unless - * otherwise specified, the signing algorithm for the certificate must be - * the same as the algorithm for the certificate key. Unless otherwise - * specified, the public key may be of any length. - * - * opaque ASN.1Cert<1..2^24-1>; - * struct { - * ASN.1Cert certificate_list<1..2^24-1>; - * } Certificate; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleCertificate = function(c, record, length) { - // minimum of 3 bytes in message - if(length < 3) { - return c.error(c, { - message: 'Invalid Certificate message. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } - - var b = record.fragment; - var msg = { - certificate_list: readVector(b, 3) - }; - - /* The sender's certificate will be first in the list (chain), each - subsequent one that follows will certify the previous one, but root - certificates (self-signed) that specify the certificate authority may - be omitted under the assumption that clients must already possess it. */ - var cert, asn1; - var certs = []; - try { - while(msg.certificate_list.length() > 0) { - // each entry in msg.certificate_list is a vector with 3 len bytes - cert = readVector(msg.certificate_list, 3); - asn1 = forge.asn1.fromDer(cert); - cert = forge.pki.certificateFromAsn1(asn1, true); - certs.push(cert); - } - } catch(ex) { - return c.error(c, { - message: 'Could not parse certificate list.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.bad_certificate - } - }); - } - - // ensure at least 1 certificate was provided if in client-mode - // or if verifyClient was set to true to require a certificate - // (as opposed to 'optional') - var client = (c.entity === tls.ConnectionEnd.client); - if((client || c.verifyClient === true) && certs.length === 0) { - // error, no certificate - c.error(c, { - message: client ? - 'No server certificate provided.' : - 'No client certificate provided.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } else if(certs.length === 0) { - // no certs to verify - // expect a ServerKeyExchange or ClientKeyExchange message next - c.expect = client ? SKE : CKE; - } else { - // save certificate in session - if(client) { - c.session.serverCertificate = certs[0]; - } else { - c.session.clientCertificate = certs[0]; - } - - if(tls.verifyCertificateChain(c, certs)) { - // expect a ServerKeyExchange or ClientKeyExchange message next - c.expect = client ? SKE : CKE; - } - } - - // continue - c.process(); -}; - -/** - * Called when a client receives a ServerKeyExchange record. - * - * When this message will be sent: - * This message will be sent immediately after the server certificate - * message (or the server hello message, if this is an anonymous - * negotiation). - * - * The server key exchange message is sent by the server only when the - * server certificate message (if sent) does not contain enough data to - * allow the client to exchange a premaster secret. - * - * Meaning of this message: - * This message conveys cryptographic information to allow the client to - * communicate the premaster secret: either an RSA public key to encrypt - * the premaster secret with, or a Diffie-Hellman public key with which the - * client can complete a key exchange (with the result being the premaster - * secret.) - * - * enum { - * dhe_dss, dhe_rsa, dh_anon, rsa, dh_dss, dh_rsa - * } KeyExchangeAlgorithm; - * - * struct { - * opaque dh_p<1..2^16-1>; - * opaque dh_g<1..2^16-1>; - * opaque dh_Ys<1..2^16-1>; - * } ServerDHParams; - * - * struct { - * select(KeyExchangeAlgorithm) { - * case dh_anon: - * ServerDHParams params; - * case dhe_dss: - * case dhe_rsa: - * ServerDHParams params; - * digitally-signed struct { - * opaque client_random[32]; - * opaque server_random[32]; - * ServerDHParams params; - * } signed_params; - * case rsa: - * case dh_dss: - * case dh_rsa: - * struct {}; - * }; - * } ServerKeyExchange; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleServerKeyExchange = function(c, record, length) { - // this implementation only supports RSA, no Diffie-Hellman support - // so any length > 0 is invalid - if(length > 0) { - return c.error(c, { - message: 'Invalid key parameters. Only RSA is supported.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.unsupported_certificate - } - }); - } - - // expect an optional CertificateRequest message next - c.expect = SCR; - - // continue - c.process(); -}; - -/** - * Called when a client receives a ClientKeyExchange record. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleClientKeyExchange = function(c, record, length) { - // this implementation only supports RSA, no Diffie-Hellman support - // so any length < 48 is invalid - if(length < 48) { - return c.error(c, { - message: 'Invalid key parameters. Only RSA is supported.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.unsupported_certificate - } - }); - } - - var b = record.fragment; - var msg = { - enc_pre_master_secret: readVector(b, 2).getBytes() - }; - - // do rsa decryption - var privateKey = null; - if(c.getPrivateKey) { - try { - privateKey = c.getPrivateKey(c, c.session.serverCertificate); - privateKey = forge.pki.privateKeyFromPem(privateKey); - } catch(ex) { - c.error(c, { - message: 'Could not get private key.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error + client_id: { + required: true, + type: "string" } - }); - } - } - - if(privateKey === null) { - return c.error(c, { - message: 'No private key set.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } - - try { - // decrypt 48-byte pre-master secret - var sp = c.session.sp; - sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret); - - // ensure client hello version matches first 2 bytes - var version = c.session.clientHelloVersion; - if(version.major !== sp.pre_master_secret.charCodeAt(0) || - version.minor !== sp.pre_master_secret.charCodeAt(1)) { - // error, do not send alert (see BLEI attack below) - throw new Error('TLS version rollback attack detected.'); - } - } catch(ex) { - /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a - TLS server which is using PKCS#1 encoded RSA, so instead of - failing here, we generate 48 random bytes and use that as - the pre-master secret. */ - sp.pre_master_secret = forge.random.getBytes(48); - } - - // expect a CertificateVerify message if a Certificate was received that - // does not have fixed Diffie-Hellman params, otherwise expect - // ChangeCipherSpec - c.expect = CCC; - if(c.session.clientCertificate !== null) { - // only RSA support, so expect CertificateVerify - // TODO: support Diffie-Hellman - c.expect = CCV; - } - - // continue - c.process(); -}; - -/** - * Called when a client receives a CertificateRequest record. - * - * When this message will be sent: - * A non-anonymous server can optionally request a certificate from the - * client, if appropriate for the selected cipher suite. This message, if - * sent, will immediately follow the Server Key Exchange message (if it is - * sent; otherwise, the Server Certificate message). - * - * enum { - * rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4), - * rsa_ephemeral_dh_RESERVED(5), dss_ephemeral_dh_RESERVED(6), - * fortezza_dms_RESERVED(20), (255) - * } ClientCertificateType; - * - * opaque DistinguishedName<1..2^16-1>; - * - * struct { - * ClientCertificateType certificate_types<1..2^8-1>; - * SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>; - * DistinguishedName certificate_authorities<0..2^16-1>; - * } CertificateRequest; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleCertificateRequest = function(c, record, length) { - // minimum of 3 bytes in message - if(length < 3) { - return c.error(c, { - message: 'Invalid CertificateRequest. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } - - // TODO: TLS 1.2+ has different format including - // SignatureAndHashAlgorithm after cert types - var b = record.fragment; - var msg = { - certificate_types: readVector(b, 1), - certificate_authorities: readVector(b, 2) - }; - - // save certificate request in session - c.session.certificateRequest = msg; - - // expect a ServerHelloDone message next - c.expect = SHD; - - // continue - c.process(); -}; - -/** - * Called when a server receives a CertificateVerify record. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleCertificateVerify = function(c, record, length) { - if(length < 2) { - return c.error(c, { - message: 'Invalid CertificateVerify. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } - - // rewind to get full bytes for message so it can be manually - // digested below (special case for CertificateVerify messages because - // they must be digested *after* handling as opposed to all others) - var b = record.fragment; - b.read -= 4; - var msgBytes = b.bytes(); - b.read += 4; - - var msg = { - signature: readVector(b, 2).getBytes() - }; - - // TODO: add support for DSA - - // generate data to verify - var verify = forge.util.createBuffer(); - verify.putBuffer(c.session.md5.digest()); - verify.putBuffer(c.session.sha1.digest()); - verify = verify.getBytes(); - - try { - var cert = c.session.clientCertificate; - /*b = forge.pki.rsa.decrypt( - msg.signature, cert.publicKey, true, verify.length); - if(b !== verify) {*/ - if(!cert.publicKey.verify(verify, msg.signature, 'NONE')) { - throw new Error('CertificateVerify signature does not match.'); - } - - // digest message now that it has been handled - c.session.md5.update(msgBytes); - c.session.sha1.update(msgBytes); - } catch(ex) { - return c.error(c, { - message: 'Bad signature in CertificateVerify.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.handshake_failure - } - }); - } - - // expect ChangeCipherSpec - c.expect = CCC; - - // continue - c.process(); -}; - -/** - * Called when a client receives a ServerHelloDone record. - * - * When this message will be sent: - * The server hello done message is sent by the server to indicate the end - * of the server hello and associated messages. After sending this message - * the server will wait for a client response. - * - * Meaning of this message: - * This message means that the server is done sending messages to support - * the key exchange, and the client can proceed with its phase of the key - * exchange. - * - * Upon receipt of the server hello done message the client should verify - * that the server provided a valid certificate if required and check that - * the server hello parameters are acceptable. - * - * struct {} ServerHelloDone; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleServerHelloDone = function(c, record, length) { - // len must be 0 bytes - if(length > 0) { - return c.error(c, { - message: 'Invalid ServerHelloDone message. Invalid length.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.record_overflow - } - }); - } - - if(c.serverCertificate === null) { - // no server certificate was provided - var error = { - message: 'No server certificate provided. Not enough security.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.insufficient_security - } - }; - - // call application callback - var depth = 0; - var ret = c.verify(c, error.alert.description, depth, []); - if(ret !== true) { - // check for custom alert info - if(ret || ret === 0) { - // set custom message and alert description - if(typeof ret === 'object' && !forge.util.isArray(ret)) { - if(ret.message) { - error.message = ret.message; - } - if(ret.alert) { - error.alert.description = ret.alert; - } - } else if(typeof ret === 'number') { - // set custom alert description - error.alert.description = ret; + }, + url: "/applications/:client_id/tokens/:access_token" + }, + checkToken: { + headers: { + accept: "application/vnd.github.doctor-strange-preview+json" + }, + method: "POST", + params: { + access_token: { + type: "string" + }, + client_id: { + required: true, + type: "string" } - } - - // send error - return c.error(c, error); - } - } - - // create client certificate message if requested - if(c.session.certificateRequest !== null) { - record = tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificate(c) - }); - tls.queue(c, record); - } - - // create client key exchange message - record = tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createClientKeyExchange(c) - }); - tls.queue(c, record); - - // expect no messages until the following callback has been called - c.expect = SER; - - // create callback to handle client signature (for client-certs) - var callback = function(c, signature) { - if(c.session.certificateRequest !== null && - c.session.clientCertificate !== null) { - // create certificate verify message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificateVerify(c, signature) - })); - } - - // create change cipher spec message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.change_cipher_spec, - data: tls.createChangeCipherSpec() - })); - - // create pending state - c.state.pending = tls.createConnectionState(c); - - // change current write state to pending write state - c.state.current.write = c.state.pending.write; - - // create finished message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createFinished(c) - })); - - // expect a server ChangeCipherSpec message next - c.expect = SCC; - - // send records - tls.flush(c); - - // continue - c.process(); - }; - - // if there is no certificate request or no client certificate, do - // callback immediately - if(c.session.certificateRequest === null || - c.session.clientCertificate === null) { - return callback(c, null); - } - - // otherwise get the client signature - tls.getClientSignature(c, callback); -}; - -/** - * Called when a ChangeCipherSpec record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleChangeCipherSpec = function(c, record) { - if(record.fragment.getByte() !== 0x01) { - return c.error(c, { - message: 'Invalid ChangeCipherSpec message received.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } - - // create pending state if: - // 1. Resuming session in client mode OR - // 2. NOT resuming session in server mode - var client = (c.entity === tls.ConnectionEnd.client); - if((c.session.resuming && client) || (!c.session.resuming && !client)) { - c.state.pending = tls.createConnectionState(c); - } - - // change current read state to pending read state - c.state.current.read = c.state.pending.read; - - // clear pending state if: - // 1. NOT resuming session in client mode OR - // 2. resuming a session in server mode - if((!c.session.resuming && client) || (c.session.resuming && !client)) { - c.state.pending = null; - } - - // expect a Finished record next - c.expect = client ? SFI : CFI; - - // continue - c.process(); -}; - -/** - * Called when a Finished record is received. - * - * When this message will be sent: - * A finished message is always sent immediately after a change - * cipher spec message to verify that the key exchange and - * authentication processes were successful. It is essential that a - * change cipher spec message be received between the other - * handshake messages and the Finished message. - * - * Meaning of this message: - * The finished message is the first protected with the just- - * negotiated algorithms, keys, and secrets. Recipients of finished - * messages must verify that the contents are correct. Once a side - * has sent its Finished message and received and validated the - * Finished message from its peer, it may begin to send and receive - * application data over the connection. - * - * struct { - * opaque verify_data[verify_data_length]; - * } Finished; - * - * verify_data - * PRF(master_secret, finished_label, Hash(handshake_messages)) - * [0..verify_data_length-1]; - * - * finished_label - * For Finished messages sent by the client, the string - * "client finished". For Finished messages sent by the server, the - * string "server finished". - * - * verify_data_length depends on the cipher suite. If it is not specified - * by the cipher suite, then it is 12. Versions of TLS < 1.2 always used - * 12 bytes. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleFinished = function(c, record, length) { - // rewind to get full bytes for message so it can be manually - // digested below (special case for Finished messages because they - // must be digested *after* handling as opposed to all others) - var b = record.fragment; - b.read -= 4; - var msgBytes = b.bytes(); - b.read += 4; - - // message contains only verify_data - var vd = record.fragment.getBytes(); - - // ensure verify data is correct - b = forge.util.createBuffer(); - b.putBuffer(c.session.md5.digest()); - b.putBuffer(c.session.sha1.digest()); - - // set label based on entity type - var client = (c.entity === tls.ConnectionEnd.client); - var label = client ? 'server finished' : 'client finished'; - - // TODO: determine prf function and verify length for TLS 1.2 - var sp = c.session.sp; - var vdl = 12; - var prf = prf_TLS1; - b = prf(sp.master_secret, label, b.getBytes(), vdl); - if(b.getBytes() !== vd) { - return c.error(c, { - message: 'Invalid verify_data in Finished message.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.decrypt_error - } - }); - } - - // digest finished message now that it has been handled - c.session.md5.update(msgBytes); - c.session.sha1.update(msgBytes); - - // resuming session as client or NOT resuming session as server - if((c.session.resuming && client) || (!c.session.resuming && !client)) { - // create change cipher spec message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.change_cipher_spec, - data: tls.createChangeCipherSpec() - })); - - // change current write state to pending write state, clear pending - c.state.current.write = c.state.pending.write; - c.state.pending = null; - - // create finished message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createFinished(c) - })); - } - - // expect application data next - c.expect = client ? SAD : CAD; - - // handshake complete - c.handshaking = false; - ++c.handshakes; - - // save access to peer certificate - c.peerCertificate = client ? - c.session.serverCertificate : c.session.clientCertificate; - - // send records - tls.flush(c); - - // now connected - c.isConnected = true; - c.connected(c); - - // continue - c.process(); -}; - -/** - * Called when an Alert record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleAlert = function(c, record) { - // read alert - var b = record.fragment; - var alert = { - level: b.getByte(), - description: b.getByte() - }; - - // TODO: consider using a table? - // get appropriate message - var msg; - switch(alert.description) { - case tls.Alert.Description.close_notify: - msg = 'Connection closed.'; - break; - case tls.Alert.Description.unexpected_message: - msg = 'Unexpected message.'; - break; - case tls.Alert.Description.bad_record_mac: - msg = 'Bad record MAC.'; - break; - case tls.Alert.Description.decryption_failed: - msg = 'Decryption failed.'; - break; - case tls.Alert.Description.record_overflow: - msg = 'Record overflow.'; - break; - case tls.Alert.Description.decompression_failure: - msg = 'Decompression failed.'; - break; - case tls.Alert.Description.handshake_failure: - msg = 'Handshake failure.'; - break; - case tls.Alert.Description.bad_certificate: - msg = 'Bad certificate.'; - break; - case tls.Alert.Description.unsupported_certificate: - msg = 'Unsupported certificate.'; - break; - case tls.Alert.Description.certificate_revoked: - msg = 'Certificate revoked.'; - break; - case tls.Alert.Description.certificate_expired: - msg = 'Certificate expired.'; - break; - case tls.Alert.Description.certificate_unknown: - msg = 'Certificate unknown.'; - break; - case tls.Alert.Description.illegal_parameter: - msg = 'Illegal parameter.'; - break; - case tls.Alert.Description.unknown_ca: - msg = 'Unknown certificate authority.'; - break; - case tls.Alert.Description.access_denied: - msg = 'Access denied.'; - break; - case tls.Alert.Description.decode_error: - msg = 'Decode error.'; - break; - case tls.Alert.Description.decrypt_error: - msg = 'Decrypt error.'; - break; - case tls.Alert.Description.export_restriction: - msg = 'Export restriction.'; - break; - case tls.Alert.Description.protocol_version: - msg = 'Unsupported protocol version.'; - break; - case tls.Alert.Description.insufficient_security: - msg = 'Insufficient security.'; - break; - case tls.Alert.Description.internal_error: - msg = 'Internal error.'; - break; - case tls.Alert.Description.user_canceled: - msg = 'User canceled.'; - break; - case tls.Alert.Description.no_renegotiation: - msg = 'Renegotiation not supported.'; - break; - default: - msg = 'Unknown error.'; - break; - } - - // close connection on close_notify, not an error - if(alert.description === tls.Alert.Description.close_notify) { - return c.close(); - } - - // call error handler - c.error(c, { - message: msg, - send: false, - // origin is the opposite end - origin: (c.entity === tls.ConnectionEnd.client) ? 'server' : 'client', - alert: alert - }); - - // continue - c.process(); -}; - -/** - * Called when a Handshake record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleHandshake = function(c, record) { - // get the handshake type and message length - var b = record.fragment; - var type = b.getByte(); - var length = b.getInt24(); - - // see if the record fragment doesn't yet contain the full message - if(length > b.length()) { - // cache the record, clear its fragment, and reset the buffer read - // pointer before the type and length were read - c.fragmented = record; - record.fragment = forge.util.createBuffer(); - b.read -= 4; - - // continue - return c.process(); - } - - // full message now available, clear cache, reset read pointer to - // before type and length - c.fragmented = null; - b.read -= 4; - - // save the handshake bytes for digestion after handler is found - // (include type and length of handshake msg) - var bytes = b.bytes(length + 4); - - // restore read pointer - b.read += 4; - - // handle expected message - if(type in hsTable[c.entity][c.expect]) { - // initialize server session - if(c.entity === tls.ConnectionEnd.server && !c.open && !c.fail) { - c.handshaking = true; - c.session = { - version: null, - extensions: { - server_name: { - serverNameList: [] - } + }, + url: "/applications/:client_id/token" + }, + createContentAttachment: { + headers: { + accept: "application/vnd.github.corsair-preview+json" + }, + method: "POST", + params: { + body: { + required: true, + type: "string" }, - cipherSuite: null, - compressionMethod: null, - serverCertificate: null, - clientCertificate: null, - md5: forge.md.md5.create(), - sha1: forge.md.sha1.create() - }; - } - - /* Update handshake messages digest. Finished and CertificateVerify - messages are not digested here. They can't be digested as part of - the verify_data that they contain. These messages are manually - digested in their handlers. HelloRequest messages are simply never - included in the handshake message digest according to spec. */ - if(type !== tls.HandshakeType.hello_request && - type !== tls.HandshakeType.certificate_verify && - type !== tls.HandshakeType.finished) { - c.session.md5.update(bytes); - c.session.sha1.update(bytes); - } - - // handle specific handshake type record - hsTable[c.entity][c.expect][type](c, record, length); - } else { - // unexpected record - tls.handleUnexpected(c, record); - } -}; - -/** - * Called when an ApplicationData record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleApplicationData = function(c, record) { - // buffer data, notify that its ready - c.data.putBuffer(record.fragment); - c.dataReady(c); - - // continue - c.process(); -}; - -/** - * Called when a Heartbeat record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleHeartbeat = function(c, record) { - // get the heartbeat type and payload - var b = record.fragment; - var type = b.getByte(); - var length = b.getInt16(); - var payload = b.getBytes(length); - - if(type === tls.HeartbeatMessageType.heartbeat_request) { - // discard request during handshake or if length is too large - if(c.handshaking || length > payload.length) { - // continue - return c.process(); - } - // retransmit payload - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.heartbeat, - data: tls.createHeartbeat( - tls.HeartbeatMessageType.heartbeat_response, payload) - })); - tls.flush(c); - } else if(type === tls.HeartbeatMessageType.heartbeat_response) { - // check payload against expected payload, discard heartbeat if no match - if(payload !== c.expectedHeartbeatPayload) { - // continue - return c.process(); - } - - // notify that a valid heartbeat was received - if(c.heartbeatReceived) { - c.heartbeatReceived(c, forge.util.createBuffer(payload)); - } - } - - // continue - c.process(); -}; - -/** - * The transistional state tables for receiving TLS records. It maps the - * current TLS engine state and a received record to a function to handle the - * record and update the state. - * - * For instance, if the current state is SHE, then the TLS engine is expecting - * a ServerHello record. Once a record is received, the handler function is - * looked up using the state SHE and the record's content type. - * - * The resulting function will either be an error handler or a record handler. - * The function will take whatever action is appropriate and update the state - * for the next record. - * - * The states are all based on possible server record types. Note that the - * client will never specifically expect to receive a HelloRequest or an alert - * from the server so there is no state that reflects this. These messages may - * occur at any time. - * - * There are two tables for mapping states because there is a second tier of - * types for handshake messages. Once a record with a content type of handshake - * is received, the handshake record handler will look up the handshake type in - * the secondary map to get its appropriate handler. - * - * Valid message orders are as follows: - * - * =======================FULL HANDSHAKE====================== - * Client Server - * - * ClientHello --------> - * ServerHello - * Certificate* - * ServerKeyExchange* - * CertificateRequest* - * <-------- ServerHelloDone - * Certificate* - * ClientKeyExchange - * CertificateVerify* - * [ChangeCipherSpec] - * Finished --------> - * [ChangeCipherSpec] - * <-------- Finished - * Application Data <-------> Application Data - * - * =====================SESSION RESUMPTION===================== - * Client Server - * - * ClientHello --------> - * ServerHello - * [ChangeCipherSpec] - * <-------- Finished - * [ChangeCipherSpec] - * Finished --------> - * Application Data <-------> Application Data - */ -// client expect states (indicate which records are expected to be received) -var SHE = 0; // rcv server hello -var SCE = 1; // rcv server certificate -var SKE = 2; // rcv server key exchange -var SCR = 3; // rcv certificate request -var SHD = 4; // rcv server hello done -var SCC = 5; // rcv change cipher spec -var SFI = 6; // rcv finished -var SAD = 7; // rcv application data -var SER = 8; // not expecting any messages at this point - -// server expect states -var CHE = 0; // rcv client hello -var CCE = 1; // rcv client certificate -var CKE = 2; // rcv client key exchange -var CCV = 3; // rcv certificate verify -var CCC = 4; // rcv change cipher spec -var CFI = 5; // rcv finished -var CAD = 6; // rcv application data -var CER = 7; // not expecting any messages at this point - -// map client current expect state and content type to function -var __ = tls.handleUnexpected; -var R0 = tls.handleChangeCipherSpec; -var R1 = tls.handleAlert; -var R2 = tls.handleHandshake; -var R3 = tls.handleApplicationData; -var R4 = tls.handleHeartbeat; -var ctTable = []; -ctTable[tls.ConnectionEnd.client] = [ -// CC,AL,HS,AD,HB -/*SHE*/[__,R1,R2,__,R4], -/*SCE*/[__,R1,R2,__,R4], -/*SKE*/[__,R1,R2,__,R4], -/*SCR*/[__,R1,R2,__,R4], -/*SHD*/[__,R1,R2,__,R4], -/*SCC*/[R0,R1,__,__,R4], -/*SFI*/[__,R1,R2,__,R4], -/*SAD*/[__,R1,R2,R3,R4], -/*SER*/[__,R1,R2,__,R4] -]; - -// map server current expect state and content type to function -ctTable[tls.ConnectionEnd.server] = [ -// CC,AL,HS,AD -/*CHE*/[__,R1,R2,__,R4], -/*CCE*/[__,R1,R2,__,R4], -/*CKE*/[__,R1,R2,__,R4], -/*CCV*/[__,R1,R2,__,R4], -/*CCC*/[R0,R1,__,__,R4], -/*CFI*/[__,R1,R2,__,R4], -/*CAD*/[__,R1,R2,R3,R4], -/*CER*/[__,R1,R2,__,R4] -]; - -// map client current expect state and handshake type to function -var H0 = tls.handleHelloRequest; -var H1 = tls.handleServerHello; -var H2 = tls.handleCertificate; -var H3 = tls.handleServerKeyExchange; -var H4 = tls.handleCertificateRequest; -var H5 = tls.handleServerHelloDone; -var H6 = tls.handleFinished; -var hsTable = []; -hsTable[tls.ConnectionEnd.client] = [ -// HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI -/*SHE*/[__,__,H1,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*SCE*/[H0,__,__,__,__,__,__,__,__,__,__,H2,H3,H4,H5,__,__,__,__,__,__], -/*SKE*/[H0,__,__,__,__,__,__,__,__,__,__,__,H3,H4,H5,__,__,__,__,__,__], -/*SCR*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,H4,H5,__,__,__,__,__,__], -/*SHD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,H5,__,__,__,__,__,__], -/*SCC*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*SFI*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], -/*SAD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*SER*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] -]; - -// map server current expect state and handshake type to function -// Note: CAD[CH] does not map to FB because renegotation is prohibited -var H7 = tls.handleClientHello; -var H8 = tls.handleClientKeyExchange; -var H9 = tls.handleCertificateVerify; -hsTable[tls.ConnectionEnd.server] = [ -// 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI -/*CHE*/[__,H7,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*CCE*/[__,__,__,__,__,__,__,__,__,__,__,H2,__,__,__,__,__,__,__,__,__], -/*CKE*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H8,__,__,__,__], -/*CCV*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H9,__,__,__,__,__], -/*CCC*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*CFI*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], -/*CAD*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*CER*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] -]; - -/** - * Generates the master_secret and keys using the given security parameters. - * - * The security parameters for a TLS connection state are defined as such: - * - * struct { - * ConnectionEnd entity; - * PRFAlgorithm prf_algorithm; - * BulkCipherAlgorithm bulk_cipher_algorithm; - * CipherType cipher_type; - * uint8 enc_key_length; - * uint8 block_length; - * uint8 fixed_iv_length; - * uint8 record_iv_length; - * MACAlgorithm mac_algorithm; - * uint8 mac_length; - * uint8 mac_key_length; - * CompressionMethod compression_algorithm; - * opaque master_secret[48]; - * opaque client_random[32]; - * opaque server_random[32]; - * } SecurityParameters; - * - * Note that this definition is from TLS 1.2. In TLS 1.0 some of these - * parameters are ignored because, for instance, the PRFAlgorithm is a - * builtin-fixed algorithm combining iterations of MD5 and SHA-1 in TLS 1.0. - * - * The Record Protocol requires an algorithm to generate keys required by the - * current connection state. - * - * The master secret is expanded into a sequence of secure bytes, which is then - * split to a client write MAC key, a server write MAC key, a client write - * encryption key, and a server write encryption key. In TLS 1.0 a client write - * IV and server write IV are also generated. Each of these is generated from - * the byte sequence in that order. Unused values are empty. In TLS 1.2, some - * AEAD ciphers may additionally require a client write IV and a server write - * IV (see Section 6.2.3.3). - * - * When keys, MAC keys, and IVs are generated, the master secret is used as an - * entropy source. - * - * To generate the key material, compute: - * - * master_secret = PRF(pre_master_secret, "master secret", - * ClientHello.random + ServerHello.random) - * - * key_block = PRF(SecurityParameters.master_secret, - * "key expansion", - * SecurityParameters.server_random + - * SecurityParameters.client_random); - * - * until enough output has been generated. Then, the key_block is - * partitioned as follows: - * - * client_write_MAC_key[SecurityParameters.mac_key_length] - * server_write_MAC_key[SecurityParameters.mac_key_length] - * client_write_key[SecurityParameters.enc_key_length] - * server_write_key[SecurityParameters.enc_key_length] - * client_write_IV[SecurityParameters.fixed_iv_length] - * server_write_IV[SecurityParameters.fixed_iv_length] - * - * In TLS 1.2, the client_write_IV and server_write_IV are only generated for - * implicit nonce techniques as described in Section 3.2.1 of [AEAD]. This - * implementation uses TLS 1.0 so IVs are generated. - * - * Implementation note: The currently defined cipher suite which requires the - * most material is AES_256_CBC_SHA256. It requires 2 x 32 byte keys and 2 x 32 - * byte MAC keys, for a total 128 bytes of key material. In TLS 1.0 it also - * requires 2 x 16 byte IVs, so it actually takes 160 bytes of key material. - * - * @param c the connection. - * @param sp the security parameters to use. - * - * @return the security keys. - */ -tls.generateKeys = function(c, sp) { - // TLS_RSA_WITH_AES_128_CBC_SHA (required to be compliant with TLS 1.2) & - // TLS_RSA_WITH_AES_256_CBC_SHA are the only cipher suites implemented - // at present - - // TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is required to be compliant with - // TLS 1.0 but we don't care right now because AES is better and we have - // an implementation for it - - // TODO: TLS 1.2 implementation - /* - // determine the PRF - var prf; - switch(sp.prf_algorithm) { - case tls.PRFAlgorithm.tls_prf_sha256: - prf = prf_sha256; - break; - default: - // should never happen - throw new Error('Invalid PRF'); - } - */ - - // TLS 1.0/1.1 implementation - var prf = prf_TLS1; - - // concatenate server and client random - var random = sp.client_random + sp.server_random; - - // only create master secret if session is new - if(!c.session.resuming) { - // create master secret, clean up pre-master secret - sp.master_secret = prf( - sp.pre_master_secret, 'master secret', random, 48).bytes(); - sp.pre_master_secret = null; - } - - // generate the amount of key material needed - random = sp.server_random + sp.client_random; - var length = 2 * sp.mac_key_length + 2 * sp.enc_key_length; - - // include IV for TLS/1.0 - var tls10 = (c.version.major === tls.Versions.TLS_1_0.major && - c.version.minor === tls.Versions.TLS_1_0.minor); - if(tls10) { - length += 2 * sp.fixed_iv_length; - } - var km = prf(sp.master_secret, 'key expansion', random, length); - - // split the key material into the MAC and encryption keys - var rval = { - client_write_MAC_key: km.getBytes(sp.mac_key_length), - server_write_MAC_key: km.getBytes(sp.mac_key_length), - client_write_key: km.getBytes(sp.enc_key_length), - server_write_key: km.getBytes(sp.enc_key_length) - }; - - // include TLS 1.0 IVs - if(tls10) { - rval.client_write_IV = km.getBytes(sp.fixed_iv_length); - rval.server_write_IV = km.getBytes(sp.fixed_iv_length); - } - - return rval; -}; - -/** - * Creates a new initialized TLS connection state. A connection state has - * a read mode and a write mode. - * - * compression state: - * The current state of the compression algorithm. - * - * cipher state: - * The current state of the encryption algorithm. This will consist of the - * scheduled key for that connection. For stream ciphers, this will also - * contain whatever state information is necessary to allow the stream to - * continue to encrypt or decrypt data. - * - * MAC key: - * The MAC key for the connection. - * - * sequence number: - * Each connection state contains a sequence number, which is maintained - * separately for read and write states. The sequence number MUST be set to - * zero whenever a connection state is made the active state. Sequence - * numbers are of type uint64 and may not exceed 2^64-1. Sequence numbers do - * not wrap. If a TLS implementation would need to wrap a sequence number, - * it must renegotiate instead. A sequence number is incremented after each - * record: specifically, the first record transmitted under a particular - * connection state MUST use sequence number 0. - * - * @param c the connection. - * - * @return the new initialized TLS connection state. - */ -tls.createConnectionState = function(c) { - var client = (c.entity === tls.ConnectionEnd.client); - - var createMode = function() { - var mode = { - // two 32-bit numbers, first is most significant - sequenceNumber: [0, 0], - macKey: null, - macLength: 0, - macFunction: null, - cipherState: null, - cipherFunction: function(record) {return true;}, - compressionState: null, - compressFunction: function(record) {return true;}, - updateSequenceNumber: function() { - if(mode.sequenceNumber[1] === 0xFFFFFFFF) { - mode.sequenceNumber[1] = 0; - ++mode.sequenceNumber[0]; - } else { - ++mode.sequenceNumber[1]; + content_reference_id: { + required: true, + type: "integer" + }, + title: { + required: true, + type: "string" } - } - }; - return mode; - }; - var state = { - read: createMode(), - write: createMode() - }; - - // update function in read mode will decrypt then decompress a record - state.read.update = function(c, record) { - if(!state.read.cipherFunction(record, state.read)) { - c.error(c, { - message: 'Could not decrypt record or bad MAC.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - // doesn't matter if decryption failed or MAC was - // invalid, return the same error so as not to reveal - // which one occurred - description: tls.Alert.Description.bad_record_mac + }, + url: "/content_references/:content_reference_id/attachments" + }, + createFromManifest: { + headers: { + accept: "application/vnd.github.fury-preview+json" + }, + method: "POST", + params: { + code: { + required: true, + type: "string" } - }); - } else if(!state.read.compressFunction(c, record, state.read)) { - c.error(c, { - message: 'Could not decompress record.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.decompression_failure + }, + url: "/app-manifests/:code/conversions" + }, + createInstallationToken: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "POST", + params: { + installation_id: { + required: true, + type: "integer" + }, + permissions: { + type: "object" + }, + repository_ids: { + type: "integer[]" } - }); - } - return !c.fail; - }; - - // update function in write mode will compress then encrypt a record - state.write.update = function(c, record) { - if(!state.write.compressFunction(c, record, state.write)) { - // error, but do not send alert since it would require - // compression as well - c.error(c, { - message: 'Could not compress record.', - send: false, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error + }, + url: "/app/installations/:installation_id/access_tokens" + }, + deleteAuthorization: { + headers: { + accept: "application/vnd.github.doctor-strange-preview+json" + }, + method: "DELETE", + params: { + access_token: { + type: "string" + }, + client_id: { + required: true, + type: "string" } - }); - } else if(!state.write.cipherFunction(record, state.write)) { - // error, but do not send alert since it would require - // encryption as well - c.error(c, { - message: 'Could not encrypt record.', - send: false, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error + }, + url: "/applications/:client_id/grant" + }, + deleteInstallation: { + headers: { + accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json" + }, + method: "DELETE", + params: { + installation_id: { + required: true, + type: "integer" } - }); - } - return !c.fail; - }; - - // handle security parameters - if(c.session) { - var sp = c.session.sp; - c.session.cipherSuite.initSecurityParameters(sp); - - // generate keys - sp.keys = tls.generateKeys(c, sp); - state.read.macKey = client ? - sp.keys.server_write_MAC_key : sp.keys.client_write_MAC_key; - state.write.macKey = client ? - sp.keys.client_write_MAC_key : sp.keys.server_write_MAC_key; - - // cipher suite setup - c.session.cipherSuite.initConnectionState(state, c, sp); - - // compression setup - switch(sp.compression_algorithm) { - case tls.CompressionMethod.none: - break; - case tls.CompressionMethod.deflate: - state.read.compressFunction = inflate; - state.write.compressFunction = deflate; - break; - default: - throw new Error('Unsupported compression algorithm.'); - } - } - - return state; -}; - -/** - * Creates a Random structure. - * - * struct { - * uint32 gmt_unix_time; - * opaque random_bytes[28]; - * } Random; - * - * gmt_unix_time: - * The current time and date in standard UNIX 32-bit format (seconds since - * the midnight starting Jan 1, 1970, UTC, ignoring leap seconds) according - * to the sender's internal clock. Clocks are not required to be set - * correctly by the basic TLS protocol; higher-level or application - * protocols may define additional requirements. Note that, for historical - * reasons, the data element is named using GMT, the predecessor of the - * current worldwide time base, UTC. - * random_bytes: - * 28 bytes generated by a secure random number generator. - * - * @return the Random structure as a byte array. - */ -tls.createRandom = function() { - // get UTC milliseconds - var d = new Date(); - var utc = +d + d.getTimezoneOffset() * 60000; - var rval = forge.util.createBuffer(); - rval.putInt32(utc); - rval.putBytes(forge.random.getBytes(28)); - return rval; -}; - -/** - * Creates a TLS record with the given type and data. - * - * @param c the connection. - * @param options: - * type: the record type. - * data: the plain text data in a byte buffer. - * - * @return the created record. - */ -tls.createRecord = function(c, options) { - if(!options.data) { - return null; - } - var record = { - type: options.type, - version: { - major: c.version.major, - minor: c.version.minor + }, + url: "/app/installations/:installation_id" }, - length: options.data.length(), - fragment: options.data - }; - return record; -}; - -/** - * Creates a TLS alert record. - * - * @param c the connection. - * @param alert: - * level: the TLS alert level. - * description: the TLS alert description. - * - * @return the created alert record. - */ -tls.createAlert = function(c, alert) { - var b = forge.util.createBuffer(); - b.putByte(alert.level); - b.putByte(alert.description); - return tls.createRecord(c, { - type: tls.ContentType.alert, - data: b - }); -}; - -/* The structure of a TLS handshake message. - * - * struct { - * HandshakeType msg_type; // handshake type - * uint24 length; // bytes in message - * select(HandshakeType) { - * case hello_request: HelloRequest; - * case client_hello: ClientHello; - * case server_hello: ServerHello; - * case certificate: Certificate; - * case server_key_exchange: ServerKeyExchange; - * case certificate_request: CertificateRequest; - * case server_hello_done: ServerHelloDone; - * case certificate_verify: CertificateVerify; - * case client_key_exchange: ClientKeyExchange; - * case finished: Finished; - * } body; - * } Handshake; - */ - -/** - * Creates a ClientHello message. - * - * opaque SessionID<0..32>; - * enum { null(0), deflate(1), (255) } CompressionMethod; - * uint8 CipherSuite[2]; - * - * struct { - * ProtocolVersion client_version; - * Random random; - * SessionID session_id; - * CipherSuite cipher_suites<2..2^16-2>; - * CompressionMethod compression_methods<1..2^8-1>; - * select(extensions_present) { - * case false: - * struct {}; - * case true: - * Extension extensions<0..2^16-1>; - * }; - * } ClientHello; - * - * The extension format for extended client hellos and server hellos is: - * - * struct { - * ExtensionType extension_type; - * opaque extension_data<0..2^16-1>; - * } Extension; - * - * Here: - * - * - "extension_type" identifies the particular extension type. - * - "extension_data" contains information specific to the particular - * extension type. - * - * The extension types defined in this document are: - * - * enum { - * server_name(0), max_fragment_length(1), - * client_certificate_url(2), trusted_ca_keys(3), - * truncated_hmac(4), status_request(5), (65535) - * } ExtensionType; - * - * @param c the connection. - * - * @return the ClientHello byte buffer. - */ -tls.createClientHello = function(c) { - // save hello version - c.session.clientHelloVersion = { - major: c.version.major, - minor: c.version.minor - }; - - // create supported cipher suites - var cipherSuites = forge.util.createBuffer(); - for(var i = 0; i < c.cipherSuites.length; ++i) { - var cs = c.cipherSuites[i]; - cipherSuites.putByte(cs.id[0]); - cipherSuites.putByte(cs.id[1]); - } - var cSuites = cipherSuites.length(); - - // create supported compression methods, null always supported, but - // also support deflate if connection has inflate and deflate methods - var compressionMethods = forge.util.createBuffer(); - compressionMethods.putByte(tls.CompressionMethod.none); - // FIXME: deflate support disabled until issues with raw deflate data - // without zlib headers are resolved - /* - if(c.inflate !== null && c.deflate !== null) { - compressionMethods.putByte(tls.CompressionMethod.deflate); - } - */ - var cMethods = compressionMethods.length(); - - // create TLS SNI (server name indication) extension if virtual host - // has been specified, see RFC 3546 - var extensions = forge.util.createBuffer(); - if(c.virtualHost) { - // create extension struct - var ext = forge.util.createBuffer(); - ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes) - ext.putByte(0x00); - - /* In order to provide the server name, clients MAY include an - * extension of type "server_name" in the (extended) client hello. - * The "extension_data" field of this extension SHALL contain - * "ServerNameList" where: - * - * struct { - * NameType name_type; - * select(name_type) { - * case host_name: HostName; - * } name; - * } ServerName; - * - * enum { - * host_name(0), (255) - * } NameType; - * - * opaque HostName<1..2^16-1>; - * - * struct { - * ServerName server_name_list<1..2^16-1> - * } ServerNameList; - */ - var serverName = forge.util.createBuffer(); - serverName.putByte(0x00); // type host_name - writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost)); - - // ServerNameList is in extension_data - var snList = forge.util.createBuffer(); - writeVector(snList, 2, serverName); - writeVector(ext, 2, snList); - extensions.putBuffer(ext); - } - var extLength = extensions.length(); - if(extLength > 0) { - // add extension vector length - extLength += 2; - } - - // determine length of the handshake message - // cipher suites and compression methods size will need to be - // updated if more get added to the list - var sessionId = c.session.id; - var length = - sessionId.length + 1 + // session ID vector - 2 + // version (major + minor) - 4 + 28 + // random time and random bytes - 2 + cSuites + // cipher suites vector - 1 + cMethods + // compression methods vector - extLength; // extensions vector - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.client_hello); - rval.putInt24(length); // handshake length - rval.putByte(c.version.major); // major version - rval.putByte(c.version.minor); // minor version - rval.putBytes(c.session.sp.client_random); // random time + bytes - writeVector(rval, 1, forge.util.createBuffer(sessionId)); - writeVector(rval, 2, cipherSuites); - writeVector(rval, 1, compressionMethods); - if(extLength > 0) { - writeVector(rval, 2, extensions); - } - return rval; -}; - -/** - * Creates a ServerHello message. - * - * @param c the connection. - * - * @return the ServerHello byte buffer. - */ -tls.createServerHello = function(c) { - // determine length of the handshake message - var sessionId = c.session.id; - var length = - sessionId.length + 1 + // session ID vector - 2 + // version (major + minor) - 4 + 28 + // random time and random bytes - 2 + // chosen cipher suite - 1; // chosen compression method - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.server_hello); - rval.putInt24(length); // handshake length - rval.putByte(c.version.major); // major version - rval.putByte(c.version.minor); // minor version - rval.putBytes(c.session.sp.server_random); // random time + bytes - writeVector(rval, 1, forge.util.createBuffer(sessionId)); - rval.putByte(c.session.cipherSuite.id[0]); - rval.putByte(c.session.cipherSuite.id[1]); - rval.putByte(c.session.compressionMethod); - return rval; -}; - -/** - * Creates a Certificate message. - * - * When this message will be sent: - * This is the first message the client can send after receiving a server - * hello done message and the first message the server can send after - * sending a ServerHello. This client message is only sent if the server - * requests a certificate. If no suitable certificate is available, the - * client should send a certificate message containing no certificates. If - * client authentication is required by the server for the handshake to - * continue, it may respond with a fatal handshake failure alert. - * - * opaque ASN.1Cert<1..2^24-1>; - * - * struct { - * ASN.1Cert certificate_list<0..2^24-1>; - * } Certificate; - * - * @param c the connection. - * - * @return the Certificate byte buffer. - */ -tls.createCertificate = function(c) { - // TODO: check certificate request to ensure types are supported - - // get a certificate (a certificate as a PEM string) - var client = (c.entity === tls.ConnectionEnd.client); - var cert = null; - if(c.getCertificate) { - var hint; - if(client) { - hint = c.session.certificateRequest; - } else { - hint = c.session.extensions.server_name.serverNameList; - } - cert = c.getCertificate(c, hint); - } - - // buffer to hold certificate list - var certList = forge.util.createBuffer(); - if(cert !== null) { - try { - // normalize cert to a chain of certificates - if(!forge.util.isArray(cert)) { - cert = [cert]; - } - var asn1 = null; - for(var i = 0; i < cert.length; ++i) { - var msg = forge.pem.decode(cert[i])[0]; - if(msg.type !== 'CERTIFICATE' && - msg.type !== 'X509 CERTIFICATE' && - msg.type !== 'TRUSTED CERTIFICATE') { - var error = new Error('Could not convert certificate from PEM; PEM ' + - 'header type is not "CERTIFICATE", "X509 CERTIFICATE", or ' + - '"TRUSTED CERTIFICATE".'); - error.headerType = msg.type; - throw error; + deleteToken: { + headers: { + accept: "application/vnd.github.doctor-strange-preview+json" + }, + method: "DELETE", + params: { + access_token: { + type: "string" + }, + client_id: { + required: true, + type: "string" } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + }, + url: "/applications/:client_id/token" + }, + findOrgInstallation: { + deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)", + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" } - - var der = forge.util.createBuffer(msg.body); - if(asn1 === null) { - asn1 = forge.asn1.fromDer(der.bytes(), false); + }, + url: "/orgs/:org/installation" + }, + findRepoInstallation: { + deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)", + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - - // certificate entry is itself a vector with 3 length bytes - var certBuffer = forge.util.createBuffer(); - writeVector(certBuffer, 3, der); - - // add cert vector to cert list vector - certList.putBuffer(certBuffer); - } - - // save certificate - cert = forge.pki.certificateFromAsn1(asn1); - if(client) { - c.session.clientCertificate = cert; - } else { - c.session.serverCertificate = cert; - } - } catch(ex) { - return c.error(c, { - message: 'Could not send certificate list.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.bad_certificate + }, + url: "/repos/:owner/:repo/installation" + }, + findUserInstallation: { + deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)", + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + username: { + required: true, + type: "string" } - }); - } - } - - // determine length of the handshake message - var length = 3 + certList.length(); // cert list vector - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.certificate); - rval.putInt24(length); - writeVector(rval, 3, certList); - return rval; -}; - -/** - * Creates a ClientKeyExchange message. - * - * When this message will be sent: - * This message is always sent by the client. It will immediately follow the - * client certificate message, if it is sent. Otherwise it will be the first - * message sent by the client after it receives the server hello done - * message. - * - * Meaning of this message: - * With this message, the premaster secret is set, either though direct - * transmission of the RSA-encrypted secret, or by the transmission of - * Diffie-Hellman parameters which will allow each side to agree upon the - * same premaster secret. When the key exchange method is DH_RSA or DH_DSS, - * client certification has been requested, and the client was able to - * respond with a certificate which contained a Diffie-Hellman public key - * whose parameters (group and generator) matched those specified by the - * server in its certificate, this message will not contain any data. - * - * Meaning of this message: - * If RSA is being used for key agreement and authentication, the client - * generates a 48-byte premaster secret, encrypts it using the public key - * from the server's certificate or the temporary RSA key provided in a - * server key exchange message, and sends the result in an encrypted - * premaster secret message. This structure is a variant of the client - * key exchange message, not a message in itself. - * - * struct { - * select(KeyExchangeAlgorithm) { - * case rsa: EncryptedPreMasterSecret; - * case diffie_hellman: ClientDiffieHellmanPublic; - * } exchange_keys; - * } ClientKeyExchange; - * - * struct { - * ProtocolVersion client_version; - * opaque random[46]; - * } PreMasterSecret; - * - * struct { - * public-key-encrypted PreMasterSecret pre_master_secret; - * } EncryptedPreMasterSecret; - * - * A public-key-encrypted element is encoded as a vector <0..2^16-1>. - * - * @param c the connection. - * - * @return the ClientKeyExchange byte buffer. - */ -tls.createClientKeyExchange = function(c) { - // create buffer to encrypt - var b = forge.util.createBuffer(); - - // add highest client-supported protocol to help server avoid version - // rollback attacks - b.putByte(c.session.clientHelloVersion.major); - b.putByte(c.session.clientHelloVersion.minor); - - // generate and add 46 random bytes - b.putBytes(forge.random.getBytes(46)); - - // save pre-master secret - var sp = c.session.sp; - sp.pre_master_secret = b.getBytes(); - - // RSA-encrypt the pre-master secret - var key = c.session.serverCertificate.publicKey; - b = key.encrypt(sp.pre_master_secret); - - /* Note: The encrypted pre-master secret will be stored in a - public-key-encrypted opaque vector that has the length prefixed using - 2 bytes, so include those 2 bytes in the handshake message length. This - is done as a minor optimization instead of calling writeVector(). */ - - // determine length of the handshake message - var length = b.length + 2; - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.client_key_exchange); - rval.putInt24(length); - // add vector length bytes - rval.putInt16(b.length); - rval.putBytes(b); - return rval; -}; - -/** - * Creates a ServerKeyExchange message. - * - * @param c the connection. - * - * @return the ServerKeyExchange byte buffer. - */ -tls.createServerKeyExchange = function(c) { - // this implementation only supports RSA, no Diffie-Hellman support, - // so this record is empty - - // determine length of the handshake message - var length = 0; - - // build record fragment - var rval = forge.util.createBuffer(); - if(length > 0) { - rval.putByte(tls.HandshakeType.server_key_exchange); - rval.putInt24(length); - } - return rval; -}; - -/** - * Gets the signed data used to verify a client-side certificate. See - * tls.createCertificateVerify() for details. - * - * @param c the connection. - * @param callback the callback to call once the signed data is ready. - */ -tls.getClientSignature = function(c, callback) { - // generate data to RSA encrypt - var b = forge.util.createBuffer(); - b.putBuffer(c.session.md5.digest()); - b.putBuffer(c.session.sha1.digest()); - b = b.getBytes(); - - // create default signing function as necessary - c.getSignature = c.getSignature || function(c, b, callback) { - // do rsa encryption, call callback - var privateKey = null; - if(c.getPrivateKey) { - try { - privateKey = c.getPrivateKey(c, c.session.clientCertificate); - privateKey = forge.pki.privateKeyFromPem(privateKey); - } catch(ex) { - c.error(c, { - message: 'Could not get private key.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } - } - if(privateKey === null) { - c.error(c, { - message: 'No private key set.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error + }, + url: "/users/:username/installation" + }, + getAuthenticated: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: {}, + url: "/app" + }, + getBySlug: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + app_slug: { + required: true, + type: "string" } - }); - } else { - b = privateKey.sign(b, null); - } - callback(c, b); - }; - - // get client signature - c.getSignature(c, b, callback); -}; - -/** - * Creates a CertificateVerify message. - * - * Meaning of this message: - * This structure conveys the client's Diffie-Hellman public value - * (Yc) if it was not already included in the client's certificate. - * The encoding used for Yc is determined by the enumerated - * PublicValueEncoding. This structure is a variant of the client - * key exchange message, not a message in itself. - * - * When this message will be sent: - * This message is used to provide explicit verification of a client - * certificate. This message is only sent following a client - * certificate that has signing capability (i.e. all certificates - * except those containing fixed Diffie-Hellman parameters). When - * sent, it will immediately follow the client key exchange message. - * - * struct { - * Signature signature; - * } CertificateVerify; - * - * CertificateVerify.signature.md5_hash - * MD5(handshake_messages); - * - * Certificate.signature.sha_hash - * SHA(handshake_messages); - * - * Here handshake_messages refers to all handshake messages sent or - * received starting at client hello up to but not including this - * message, including the type and length fields of the handshake - * messages. - * - * select(SignatureAlgorithm) { - * case anonymous: struct { }; - * case rsa: - * digitally-signed struct { - * opaque md5_hash[16]; - * opaque sha_hash[20]; - * }; - * case dsa: - * digitally-signed struct { - * opaque sha_hash[20]; - * }; - * } Signature; - * - * In digital signing, one-way hash functions are used as input for a - * signing algorithm. A digitally-signed element is encoded as an opaque - * vector <0..2^16-1>, where the length is specified by the signing - * algorithm and key. - * - * In RSA signing, a 36-byte structure of two hashes (one SHA and one - * MD5) is signed (encrypted with the private key). It is encoded with - * PKCS #1 block type 0 or type 1 as described in [PKCS1]. - * - * In DSS, the 20 bytes of the SHA hash are run directly through the - * Digital Signing Algorithm with no additional hashing. - * - * @param c the connection. - * @param signature the signature to include in the message. - * - * @return the CertificateVerify byte buffer. - */ -tls.createCertificateVerify = function(c, signature) { - /* Note: The signature will be stored in a "digitally-signed" opaque - vector that has the length prefixed using 2 bytes, so include those - 2 bytes in the handshake message length. This is done as a minor - optimization instead of calling writeVector(). */ - - // determine length of the handshake message - var length = signature.length + 2; - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.certificate_verify); - rval.putInt24(length); - // add vector length bytes - rval.putInt16(signature.length); - rval.putBytes(signature); - return rval; -}; - -/** - * Creates a CertificateRequest message. - * - * @param c the connection. - * - * @return the CertificateRequest byte buffer. - */ -tls.createCertificateRequest = function(c) { - // TODO: support other certificate types - var certTypes = forge.util.createBuffer(); - - // common RSA certificate type - certTypes.putByte(0x01); - - // add distinguished names from CA store - var cAs = forge.util.createBuffer(); - for(var key in c.caStore.certs) { - var cert = c.caStore.certs[key]; - var dn = forge.pki.distinguishedNameToAsn1(cert.subject); - var byteBuffer = forge.asn1.toDer(dn); - cAs.putInt16(byteBuffer.length()); - cAs.putBuffer(byteBuffer); - } - - // TODO: TLS 1.2+ has a different format - - // determine length of the handshake message - var length = - 1 + certTypes.length() + - 2 + cAs.length(); - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.certificate_request); - rval.putInt24(length); - writeVector(rval, 1, certTypes); - writeVector(rval, 2, cAs); - return rval; -}; - -/** - * Creates a ServerHelloDone message. - * - * @param c the connection. - * - * @return the ServerHelloDone byte buffer. - */ -tls.createServerHelloDone = function(c) { - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.server_hello_done); - rval.putInt24(0); - return rval; -}; - -/** - * Creates a ChangeCipherSpec message. - * - * The change cipher spec protocol exists to signal transitions in - * ciphering strategies. The protocol consists of a single message, - * which is encrypted and compressed under the current (not the pending) - * connection state. The message consists of a single byte of value 1. - * - * struct { - * enum { change_cipher_spec(1), (255) } type; - * } ChangeCipherSpec; - * - * @return the ChangeCipherSpec byte buffer. - */ -tls.createChangeCipherSpec = function() { - var rval = forge.util.createBuffer(); - rval.putByte(0x01); - return rval; -}; - -/** - * Creates a Finished message. - * - * struct { - * opaque verify_data[12]; - * } Finished; - * - * verify_data - * PRF(master_secret, finished_label, MD5(handshake_messages) + - * SHA-1(handshake_messages)) [0..11]; - * - * finished_label - * For Finished messages sent by the client, the string "client - * finished". For Finished messages sent by the server, the - * string "server finished". - * - * handshake_messages - * All of the data from all handshake messages up to but not - * including this message. This is only data visible at the - * handshake layer and does not include record layer headers. - * This is the concatenation of all the Handshake structures as - * defined in 7.4 exchanged thus far. - * - * @param c the connection. - * - * @return the Finished byte buffer. - */ -tls.createFinished = function(c) { - // generate verify_data - var b = forge.util.createBuffer(); - b.putBuffer(c.session.md5.digest()); - b.putBuffer(c.session.sha1.digest()); - - // TODO: determine prf function and verify length for TLS 1.2 - var client = (c.entity === tls.ConnectionEnd.client); - var sp = c.session.sp; - var vdl = 12; - var prf = prf_TLS1; - var label = client ? 'client finished' : 'server finished'; - b = prf(sp.master_secret, label, b.getBytes(), vdl); - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.finished); - rval.putInt24(b.length()); - rval.putBuffer(b); - return rval; -}; - -/** - * Creates a HeartbeatMessage (See RFC 6520). - * - * struct { - * HeartbeatMessageType type; - * uint16 payload_length; - * opaque payload[HeartbeatMessage.payload_length]; - * opaque padding[padding_length]; - * } HeartbeatMessage; - * - * The total length of a HeartbeatMessage MUST NOT exceed 2^14 or - * max_fragment_length when negotiated as defined in [RFC6066]. - * - * type: The message type, either heartbeat_request or heartbeat_response. - * - * payload_length: The length of the payload. - * - * payload: The payload consists of arbitrary content. - * - * padding: The padding is random content that MUST be ignored by the - * receiver. The length of a HeartbeatMessage is TLSPlaintext.length - * for TLS and DTLSPlaintext.length for DTLS. Furthermore, the - * length of the type field is 1 byte, and the length of the - * payload_length is 2. Therefore, the padding_length is - * TLSPlaintext.length - payload_length - 3 for TLS and - * DTLSPlaintext.length - payload_length - 3 for DTLS. The - * padding_length MUST be at least 16. - * - * The sender of a HeartbeatMessage MUST use a random padding of at - * least 16 bytes. The padding of a received HeartbeatMessage message - * MUST be ignored. - * - * If the payload_length of a received HeartbeatMessage is too large, - * the received HeartbeatMessage MUST be discarded silently. - * - * @param c the connection. - * @param type the tls.HeartbeatMessageType. - * @param payload the heartbeat data to send as the payload. - * @param [payloadLength] the payload length to use, defaults to the - * actual payload length. - * - * @return the HeartbeatRequest byte buffer. - */ -tls.createHeartbeat = function(type, payload, payloadLength) { - if(typeof payloadLength === 'undefined') { - payloadLength = payload.length; - } - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(type); // heartbeat message type - rval.putInt16(payloadLength); // payload length - rval.putBytes(payload); // payload - // padding - var plaintextLength = rval.length(); - var paddingLength = Math.max(16, plaintextLength - payloadLength - 3); - rval.putBytes(forge.random.getBytes(paddingLength)); - return rval; -}; - -/** - * Fragments, compresses, encrypts, and queues a record for delivery. - * - * @param c the connection. - * @param record the record to queue. - */ -tls.queue = function(c, record) { - // error during record creation - if(!record) { - return; - } - - if(record.fragment.length() === 0) { - if(record.type === tls.ContentType.handshake || - record.type === tls.ContentType.alert || - record.type === tls.ContentType.change_cipher_spec) { - // Empty handshake, alert of change cipher spec messages are not allowed per the TLS specification and should not be sent. - return; - } - } - - // if the record is a handshake record, update handshake hashes - if(record.type === tls.ContentType.handshake) { - var bytes = record.fragment.bytes(); - c.session.md5.update(bytes); - c.session.sha1.update(bytes); - bytes = null; - } - - // handle record fragmentation - var records; - if(record.fragment.length() <= tls.MaxFragment) { - records = [record]; - } else { - // fragment data as long as it is too long - records = []; - var data = record.fragment.bytes(); - while(data.length > tls.MaxFragment) { - records.push(tls.createRecord(c, { - type: record.type, - data: forge.util.createBuffer(data.slice(0, tls.MaxFragment)) - })); - data = data.slice(tls.MaxFragment); - } - // add last record - if(data.length > 0) { - records.push(tls.createRecord(c, { - type: record.type, - data: forge.util.createBuffer(data) - })); - } - } - - // compress and encrypt all fragmented records - for(var i = 0; i < records.length && !c.fail; ++i) { - // update the record using current write state - var rec = records[i]; - var s = c.state.current.write; - if(s.update(c, rec)) { - // store record - c.records.push(rec); - } - } -}; - -/** - * Flushes all queued records to the output buffer and calls the - * tlsDataReady() handler on the given connection. - * - * @param c the connection. - * - * @return true on success, false on failure. - */ -tls.flush = function(c) { - for(var i = 0; i < c.records.length; ++i) { - var record = c.records[i]; - - // add record header and fragment - c.tlsData.putByte(record.type); - c.tlsData.putByte(record.version.major); - c.tlsData.putByte(record.version.minor); - c.tlsData.putInt16(record.fragment.length()); - c.tlsData.putBuffer(c.records[i].fragment); - } - c.records = []; - return c.tlsDataReady(c); -}; - -/** - * Maps a pki.certificateError to a tls.Alert.Description. - * - * @param error the error to map. - * - * @return the alert description. - */ -var _certErrorToAlertDesc = function(error) { - switch(error) { - case true: - return true; - case forge.pki.certificateError.bad_certificate: - return tls.Alert.Description.bad_certificate; - case forge.pki.certificateError.unsupported_certificate: - return tls.Alert.Description.unsupported_certificate; - case forge.pki.certificateError.certificate_revoked: - return tls.Alert.Description.certificate_revoked; - case forge.pki.certificateError.certificate_expired: - return tls.Alert.Description.certificate_expired; - case forge.pki.certificateError.certificate_unknown: - return tls.Alert.Description.certificate_unknown; - case forge.pki.certificateError.unknown_ca: - return tls.Alert.Description.unknown_ca; - default: - return tls.Alert.Description.bad_certificate; - } -}; - -/** - * Maps a tls.Alert.Description to a pki.certificateError. - * - * @param desc the alert description. - * - * @return the certificate error. - */ -var _alertDescToCertError = function(desc) { - switch(desc) { - case true: - return true; - case tls.Alert.Description.bad_certificate: - return forge.pki.certificateError.bad_certificate; - case tls.Alert.Description.unsupported_certificate: - return forge.pki.certificateError.unsupported_certificate; - case tls.Alert.Description.certificate_revoked: - return forge.pki.certificateError.certificate_revoked; - case tls.Alert.Description.certificate_expired: - return forge.pki.certificateError.certificate_expired; - case tls.Alert.Description.certificate_unknown: - return forge.pki.certificateError.certificate_unknown; - case tls.Alert.Description.unknown_ca: - return forge.pki.certificateError.unknown_ca; - default: - return forge.pki.certificateError.bad_certificate; - } -}; - -/** - * Verifies a certificate chain against the given connection's - * Certificate Authority store. - * - * @param c the TLS connection. - * @param chain the certificate chain to verify, with the root or highest - * authority at the end. - * - * @return true if successful, false if not. - */ -tls.verifyCertificateChain = function(c, chain) { - try { - // Make a copy of c.verifyOptions so that we can modify options.verify - // without modifying c.verifyOptions. - var options = {}; - for (var key in c.verifyOptions) { - options[key] = c.verifyOptions[key]; - } - - options.verify = function(vfd, depth, chain) { - // convert pki.certificateError to tls alert description - var desc = _certErrorToAlertDesc(vfd); - - // call application callback - var ret = c.verify(c, vfd, depth, chain); - if(ret !== true) { - if(typeof ret === 'object' && !forge.util.isArray(ret)) { - // throw custom error - var error = new Error('The application rejected the certificate.'); - error.send = true; - error.alert = { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.bad_certificate - }; - if(ret.message) { - error.message = ret.message; - } - if(ret.alert) { - error.alert.description = ret.alert; - } - throw error; + }, + url: "/apps/:app_slug" + }, + getInstallation: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + installation_id: { + required: true, + type: "integer" } - - // convert tls alert description to pki.certificateError - if(ret !== vfd) { - ret = _alertDescToCertError(ret); + }, + url: "/app/installations/:installation_id" + }, + getOrgInstallation: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" } - } - - return ret; - }; - - // verify chain - forge.pki.verifyCertificateChain(c.caStore, chain, options); - } catch(ex) { - // build tls error if not already customized - var err = ex; - if(typeof err !== 'object' || forge.util.isArray(err)) { - err = { - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: _certErrorToAlertDesc(ex) + }, + url: "/orgs/:org/installation" + }, + getRepoInstallation: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - }; - } - if(!('send' in err)) { - err.send = true; - } - if(!('alert' in err)) { - err.alert = { - level: tls.Alert.Level.fatal, - description: _certErrorToAlertDesc(err.error) - }; - } - - // send error - c.error(c, err); - } - - return !c.fail; -}; - -/** - * Creates a new TLS session cache. - * - * @param cache optional map of session ID to cached session. - * @param capacity the maximum size for the cache (default: 100). - * - * @return the new TLS session cache. - */ -tls.createSessionCache = function(cache, capacity) { - var rval = null; - - // assume input is already a session cache object - if(cache && cache.getSession && cache.setSession && cache.order) { - rval = cache; - } else { - // create cache - rval = {}; - rval.cache = cache || {}; - rval.capacity = Math.max(capacity || 100, 1); - rval.order = []; - - // store order for sessions, delete session overflow - for(var key in cache) { - if(rval.order.length <= capacity) { - rval.order.push(key); - } else { - delete cache[key]; - } - } - - // get a session from a session ID (or get any session) - rval.getSession = function(sessionId) { - var session = null; - var key = null; - - // if session ID provided, use it - if(sessionId) { - key = forge.util.bytesToHex(sessionId); - } else if(rval.order.length > 0) { - // get first session from cache - key = rval.order[0]; - } - - if(key !== null && key in rval.cache) { - // get cached session and remove from cache - session = rval.cache[key]; - delete rval.cache[key]; - for(var i in rval.order) { - if(rval.order[i] === key) { - rval.order.splice(i, 1); - break; - } + }, + url: "/repos/:owner/:repo/installation" + }, + getUserInstallation: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + username: { + required: true, + type: "string" } - } - - return session; - }; - - // set a session in the cache - rval.setSession = function(sessionId, session) { - // remove session from cache if at capacity - if(rval.order.length === rval.capacity) { - var key = rval.order.shift(); - delete rval.cache[key]; - } - // add session to cache - var key = forge.util.bytesToHex(sessionId); - rval.order.push(key); - rval.cache[key] = session; - }; - } - - return rval; -}; - -/** - * Creates a new TLS connection. - * - * See public createConnection() docs for more details. - * - * @param options the options for this connection. - * - * @return the new TLS connection. - */ -tls.createConnection = function(options) { - var caStore = null; - if(options.caStore) { - // if CA store is an array, convert it to a CA store object - if(forge.util.isArray(options.caStore)) { - caStore = forge.pki.createCaStore(options.caStore); - } else { - caStore = options.caStore; - } - } else { - // create empty CA store - caStore = forge.pki.createCaStore(); - } - - // setup default cipher suites - var cipherSuites = options.cipherSuites || null; - if(cipherSuites === null) { - cipherSuites = []; - for(var key in tls.CipherSuites) { - cipherSuites.push(tls.CipherSuites[key]); - } - } - - // set default entity - var entity = (options.server || false) ? - tls.ConnectionEnd.server : tls.ConnectionEnd.client; - - // create session cache if requested - var sessionCache = options.sessionCache ? - tls.createSessionCache(options.sessionCache) : null; - - // create TLS connection - var c = { - version: {major: tls.Version.major, minor: tls.Version.minor}, - entity: entity, - sessionId: options.sessionId, - caStore: caStore, - sessionCache: sessionCache, - cipherSuites: cipherSuites, - connected: options.connected, - virtualHost: options.virtualHost || null, - verifyClient: options.verifyClient || false, - verify: options.verify || function(cn, vfd, dpth, cts) {return vfd;}, - verifyOptions: options.verifyOptions || {}, - getCertificate: options.getCertificate || null, - getPrivateKey: options.getPrivateKey || null, - getSignature: options.getSignature || null, - input: forge.util.createBuffer(), - tlsData: forge.util.createBuffer(), - data: forge.util.createBuffer(), - tlsDataReady: options.tlsDataReady, - dataReady: options.dataReady, - heartbeatReceived: options.heartbeatReceived, - closed: options.closed, - error: function(c, ex) { - // set origin if not set - ex.origin = ex.origin || - ((c.entity === tls.ConnectionEnd.client) ? 'client' : 'server'); - - // send TLS alert - if(ex.send) { - tls.queue(c, tls.createAlert(c, ex.alert)); - tls.flush(c); - } - - // error is fatal by default - var fatal = (ex.fatal !== false); - if(fatal) { - // set fail flag - c.fail = true; - } - - // call error handler first - options.error(c, ex); - - if(fatal) { - // fatal error, close connection, do not clear fail - c.close(false); - } + }, + url: "/users/:username/installation" }, - deflate: options.deflate || null, - inflate: options.inflate || null - }; - - /** - * Resets a closed TLS connection for reuse. Called in c.close(). - * - * @param clearFail true to clear the fail flag (default: true). - */ - c.reset = function(clearFail) { - c.version = {major: tls.Version.major, minor: tls.Version.minor}; - c.record = null; - c.session = null; - c.peerCertificate = null; - c.state = { - pending: null, - current: null - }; - c.expect = (c.entity === tls.ConnectionEnd.client) ? SHE : CHE; - c.fragmented = null; - c.records = []; - c.open = false; - c.handshakes = 0; - c.handshaking = false; - c.isConnected = false; - c.fail = !(clearFail || typeof(clearFail) === 'undefined'); - c.input.clear(); - c.tlsData.clear(); - c.data.clear(); - c.state.current = tls.createConnectionState(c); - }; - - // do initial reset of connection - c.reset(); - - /** - * Updates the current TLS engine state based on the given record. - * - * @param c the TLS connection. - * @param record the TLS record to act on. - */ - var _update = function(c, record) { - // get record handler (align type in table by subtracting lowest) - var aligned = record.type - tls.ContentType.change_cipher_spec; - var handlers = ctTable[c.entity][c.expect]; - if(aligned in handlers) { - handlers[aligned](c, record); - } else { - // unexpected record - tls.handleUnexpected(c, record); - } - }; - - /** - * Reads the record header and initializes the next record on the given - * connection. - * - * @param c the TLS connection with the next record. - * - * @return 0 if the input data could be processed, otherwise the - * number of bytes required for data to be processed. - */ - var _readRecordHeader = function(c) { - var rval = 0; - - // get input buffer and its length - var b = c.input; - var len = b.length(); - - // need at least 5 bytes to initialize a record - if(len < 5) { - rval = 5 - len; - } else { - // enough bytes for header - // initialize record - c.record = { - type: b.getByte(), - version: { - major: b.getByte(), - minor: b.getByte() + listAccountsUserOrOrgOnPlan: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" }, - length: b.getInt16(), - fragment: forge.util.createBuffer(), - ready: false - }; - - // check record version - var compatibleVersion = (c.record.version.major === c.version.major); - if(compatibleVersion && c.session && c.session.version) { - // session version already set, require same minor version - compatibleVersion = (c.record.version.minor === c.version.minor); - } - if(!compatibleVersion) { - c.error(c, { - message: 'Incompatible TLS version.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.protocol_version - } - }); - } - } - - return rval; - }; - - /** - * Reads the next record's contents and appends its message to any - * previously fragmented message. - * - * @param c the TLS connection with the next record. - * - * @return 0 if the input data could be processed, otherwise the - * number of bytes required for data to be processed. - */ - var _readRecord = function(c) { - var rval = 0; - - // ensure there is enough input data to get the entire record - var b = c.input; - var len = b.length(); - if(len < c.record.length) { - // not enough data yet, return how much is required - rval = c.record.length - len; - } else { - // there is enough data to parse the pending record - // fill record fragment and compact input buffer - c.record.fragment.putBytes(b.getBytes(c.record.length)); - b.compact(); - - // update record using current read state - var s = c.state.current.read; - if(s.update(c, c.record)) { - // see if there is a previously fragmented message that the - // new record's message fragment should be appended to - if(c.fragmented !== null) { - // if the record type matches a previously fragmented - // record, append the record fragment to it - if(c.fragmented.type === c.record.type) { - // concatenate record fragments - c.fragmented.fragment.putBuffer(c.record.fragment); - c.record = c.fragmented; - } else { - // error, invalid fragmented record - c.error(c, { - message: 'Invalid fragmented record.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: - tls.Alert.Description.unexpected_message - } - }); - } + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + plan_id: { + required: true, + type: "integer" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - - // record is now ready - c.record.ready = true; - } - } - - return rval; - }; - - /** - * Performs a handshake using the TLS Handshake Protocol, as a client. - * - * This method should only be called if the connection is in client mode. - * - * @param sessionId the session ID to use, null to start a new one. - */ - c.handshake = function(sessionId) { - // error to call this in non-client mode - if(c.entity !== tls.ConnectionEnd.client) { - // not fatal error - c.error(c, { - message: 'Cannot initiate handshake as a server.', - fatal: false - }); - } else if(c.handshaking) { - // handshake is already in progress, fail but not fatal error - c.error(c, { - message: 'Handshake already in progress.', - fatal: false - }); - } else { - // clear fail flag on reuse - if(c.fail && !c.open && c.handshakes === 0) { - c.fail = false; - } - - // now handshaking - c.handshaking = true; - - // default to blank (new session) - sessionId = sessionId || ''; - - // if a session ID was specified, try to find it in the cache - var session = null; - if(sessionId.length > 0) { - if(c.sessionCache) { - session = c.sessionCache.getSession(sessionId); + }, + url: "/marketplace_listing/plans/:plan_id/accounts" + }, + listAccountsUserOrOrgOnPlanStubbed: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + plan_id: { + required: true, + type: "integer" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - - // matching session not found in cache, clear session ID - if(session === null) { - sessionId = ''; + }, + url: "/marketplace_listing/stubbed/plans/:plan_id/accounts" + }, + listInstallationReposForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + installation_id: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - - // no session given, grab a session from the cache, if available - if(sessionId.length === 0 && c.sessionCache) { - session = c.sessionCache.getSession(); - if(session !== null) { - sessionId = session.id; + }, + url: "/user/installations/:installation_id/repositories" + }, + listInstallations: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - - // set up session - c.session = { - id: sessionId, - version: null, - cipherSuite: null, - compressionMethod: null, - serverCertificate: null, - certificateRequest: null, - clientCertificate: null, - sp: {}, - md5: forge.md.md5.create(), - sha1: forge.md.sha1.create() - }; - - // use existing session information - if(session) { - // only update version on connection, session version not yet set - c.version = session.version; - c.session.sp = session.sp; - } - - // generate new client random - c.session.sp.client_random = tls.createRandom().getBytes(); - - // connection now open - c.open = true; - - // send hello - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createClientHello(c) - })); - tls.flush(c); - } - }; - - /** - * Called when TLS protocol data has been received from somewhere and should - * be processed by the TLS engine. - * - * @param data the TLS protocol data, as a string, to process. - * - * @return 0 if the data could be processed, otherwise the number of bytes - * required for data to be processed. - */ - c.process = function(data) { - var rval = 0; - - // buffer input data - if(data) { - c.input.putBytes(data); - } - - // process next record if no failure, process will be called after - // each record is handled (since handling can be asynchronous) - if(!c.fail) { - // reset record if ready and now empty - if(c.record !== null && - c.record.ready && c.record.fragment.isEmpty()) { - c.record = null; - } - - // if there is no pending record, try to read record header - if(c.record === null) { - rval = _readRecordHeader(c); - } - - // read the next record (if record not yet ready) - if(!c.fail && c.record !== null && !c.record.ready) { - rval = _readRecord(c); - } - - // record ready to be handled, update engine state - if(!c.fail && c.record !== null && c.record.ready) { - _update(c, c.record); - } - } - - return rval; - }; - - /** - * Requests that application data be packaged into a TLS record. The - * tlsDataReady handler will be called when the TLS record(s) have been - * prepared. - * - * @param data the application data, as a raw 'binary' encoded string, to - * be sent; to send utf-16/utf-8 string data, use the return value - * of util.encodeUtf8(str). - * - * @return true on success, false on failure. - */ - c.prepare = function(data) { - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.application_data, - data: forge.util.createBuffer(data) - })); - return tls.flush(c); - }; - - /** - * Requests that a heartbeat request be packaged into a TLS record for - * transmission. The tlsDataReady handler will be called when TLS record(s) - * have been prepared. - * - * When a heartbeat response has been received, the heartbeatReceived - * handler will be called with the matching payload. This handler can - * be used to clear a retransmission timer, etc. - * - * @param payload the heartbeat data to send as the payload in the message. - * @param [payloadLength] the payload length to use, defaults to the - * actual payload length. - * - * @return true on success, false on failure. - */ - c.prepareHeartbeatRequest = function(payload, payloadLength) { - if(payload instanceof forge.util.ByteBuffer) { - payload = payload.bytes(); - } - if(typeof payloadLength === 'undefined') { - payloadLength = payload.length; - } - c.expectedHeartbeatPayload = payload; - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.heartbeat, - data: tls.createHeartbeat( - tls.HeartbeatMessageType.heartbeat_request, payload, payloadLength) - })); - return tls.flush(c); - }; - - /** - * Closes the connection (sends a close_notify alert). - * - * @param clearFail true to clear the fail flag (default: true). - */ - c.close = function(clearFail) { - // save session if connection didn't fail - if(!c.fail && c.sessionCache && c.session) { - // only need to preserve session ID, version, and security params - var session = { - id: c.session.id, - version: c.session.version, - sp: c.session.sp - }; - session.sp.keys = null; - c.sessionCache.setSession(session.id, session); - } - - if(c.open) { - // connection no longer open, clear input - c.open = false; - c.input.clear(); - - // if connected or handshaking, send an alert - if(c.isConnected || c.handshaking) { - c.isConnected = c.handshaking = false; - - // send close_notify alert - tls.queue(c, tls.createAlert(c, { - level: tls.Alert.Level.warning, - description: tls.Alert.Description.close_notify - })); - tls.flush(c); - } - - // call handler - c.closed(c); - } - - // reset TLS connection, do not clear fail flag - c.reset(clearFail); - }; - - return c; -}; - -/* TLS API */ -module.exports = forge.tls = forge.tls || {}; - -// expose non-functions -for(var key in tls) { - if(typeof tls[key] !== 'function') { - forge.tls[key] = tls[key]; - } -} - -// expose prf_tls1 for testing -forge.tls.prf_tls1 = prf_TLS1; - -// expose sha1 hmac method -forge.tls.hmac_sha1 = hmac_sha1; - -// expose session cache creation -forge.tls.createSessionCache = tls.createSessionCache; - -/** - * Creates a new TLS connection. This does not make any assumptions about the - * transport layer that TLS is working on top of, ie: it does not assume there - * is a TCP/IP connection or establish one. A TLS connection is totally - * abstracted away from the layer is runs on top of, it merely establishes a - * secure channel between a client" and a "server". - * - * A TLS connection contains 4 connection states: pending read and write, and - * current read and write. - * - * At initialization, the current read and write states will be null. Only once - * the security parameters have been set and the keys have been generated can - * the pending states be converted into current states. Current states will be - * updated for each record processed. - * - * A custom certificate verify callback may be provided to check information - * like the common name on the server's certificate. It will be called for - * every certificate in the chain. It has the following signature: - * - * variable func(c, certs, index, preVerify) - * Where: - * c The TLS connection - * verified Set to true if certificate was verified, otherwise the alert - * tls.Alert.Description for why the certificate failed. - * depth The current index in the chain, where 0 is the server's cert. - * certs The certificate chain, *NOTE* if the server was anonymous then - * the chain will be empty. - * - * The function returns true on success and on failure either the appropriate - * tls.Alert.Description or an object with 'alert' set to the appropriate - * tls.Alert.Description and 'message' set to a custom error message. If true - * is not returned then the connection will abort using, in order of - * availability, first the returned alert description, second the preVerify - * alert description, and lastly the default 'bad_certificate'. - * - * There are three callbacks that can be used to make use of client-side - * certificates where each takes the TLS connection as the first parameter: - * - * getCertificate(conn, hint) - * The second parameter is a hint as to which certificate should be - * returned. If the connection entity is a client, then the hint will be - * the CertificateRequest message from the server that is part of the - * TLS protocol. If the connection entity is a server, then it will be - * the servername list provided via an SNI extension the ClientHello, if - * one was provided (empty array if not). The hint can be examined to - * determine which certificate to use (advanced). Most implementations - * will just return a certificate. The return value must be a - * PEM-formatted certificate or an array of PEM-formatted certificates - * that constitute a certificate chain, with the first in the array/chain - * being the client's certificate. - * getPrivateKey(conn, certificate) - * The second parameter is an forge.pki X.509 certificate object that - * is associated with the requested private key. The return value must - * be a PEM-formatted private key. - * getSignature(conn, bytes, callback) - * This callback can be used instead of getPrivateKey if the private key - * is not directly accessible in javascript or should not be. For - * instance, a secure external web service could provide the signature - * in exchange for appropriate credentials. The second parameter is a - * string of bytes to be signed that are part of the TLS protocol. These - * bytes are used to verify that the private key for the previously - * provided client-side certificate is accessible to the client. The - * callback is a function that takes 2 parameters, the TLS connection - * and the RSA encrypted (signed) bytes as a string. This callback must - * be called once the signature is ready. - * - * @param options the options for this connection: - * server: true if the connection is server-side, false for client. - * sessionId: a session ID to reuse, null for a new connection. - * caStore: an array of certificates to trust. - * sessionCache: a session cache to use. - * cipherSuites: an optional array of cipher suites to use, - * see tls.CipherSuites. - * connected: function(conn) called when the first handshake completes. - * virtualHost: the virtual server name to use in a TLS SNI extension. - * verifyClient: true to require a client certificate in server mode, - * 'optional' to request one, false not to (default: false). - * verify: a handler used to custom verify certificates in the chain. - * verifyOptions: an object with options for the certificate chain validation. - * See documentation of pki.verifyCertificateChain for possible options. - * verifyOptions.verify is ignored. If you wish to specify a verify handler - * use the verify key. - * getCertificate: an optional callback used to get a certificate or - * a chain of certificates (as an array). - * getPrivateKey: an optional callback used to get a private key. - * getSignature: an optional callback used to get a signature. - * tlsDataReady: function(conn) called when TLS protocol data has been - * prepared and is ready to be used (typically sent over a socket - * connection to its destination), read from conn.tlsData buffer. - * dataReady: function(conn) called when application data has - * been parsed from a TLS record and should be consumed by the - * application, read from conn.data buffer. - * closed: function(conn) called when the connection has been closed. - * error: function(conn, error) called when there was an error. - * deflate: function(inBytes) if provided, will deflate TLS records using - * the deflate algorithm if the server supports it. - * inflate: function(inBytes) if provided, will inflate TLS records using - * the deflate algorithm if the server supports it. - * - * @return the new TLS connection. - */ -forge.tls.createConnection = tls.createConnection; - - -/***/ }), -/* 172 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.firebase_v1beta1 = 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 = __webpack_require__(927); -var firebase_v1beta1; -(function (firebase_v1beta1) { - /** - * Firebase Management API - * - * The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps. - * - * @example - * const {google} = require('googleapis'); - * const firebase = google.firebase('v1beta1'); - * - * @namespace firebase - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Firebase - */ - class Firebase { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.availableProjects = new Resource$Availableprojects(this.context); - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); + }, + url: "/app/installations" + }, + listInstallationsForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - firebase_v1beta1.Firebase = Firebase; - class Resource$Availableprojects { - constructor(context) { - this.context = context; + }, + url: "/user/installations" + }, + listMarketplacePurchasesForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/availableProjects').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); - } + }, + url: "/user/marketplace_purchases" + }, + listMarketplacePurchasesForAuthenticatedUserStubbed: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - firebase_v1beta1.Resource$Availableprojects = Resource$Availableprojects; - class Resource$Operations { - constructor(context) { - this.context = context; + }, + url: "/user/marketplace_purchases/stubbed" + }, + listPlans: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/marketplace_listing/plans" + }, + listPlansStubbed: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - firebase_v1beta1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.androidApps = new Resource$Projects$Androidapps(this.context); - this.availableLocations = new Resource$Projects$Availablelocations(this.context); - this.defaultLocation = new Resource$Projects$Defaultlocation(this.context); - this.iosApps = new Resource$Projects$Iosapps(this.context); - this.webApps = new Resource$Projects$Webapps(this.context); + }, + url: "/marketplace_listing/stubbed/plans" + }, + listRepos: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - addFirebase(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+project}:addFirebase').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/installation/repositories" + }, + removeRepoFromInstallation: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "DELETE", + params: { + installation_id: { + required: true, + type: "integer" + }, + repository_id: { + required: true, + type: "integer" } - addGoogleAnalytics(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:addGoogleAnalytics').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); - } + }, + url: "/user/installations/:installation_id/repositories/:repository_id" + }, + resetAuthorization: { + deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization", + method: "POST", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/applications/:client_id/tokens/:access_token" + }, + resetToken: { + headers: { + accept: "application/vnd.github.doctor-strange-preview+json" + }, + method: "PATCH", + params: { + access_token: { + type: "string" + }, + client_id: { + required: true, + type: "string" } - getAdminSdkConfig(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/applications/:client_id/token" + }, + revokeAuthorizationForApplication: { + deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application", + method: "DELETE", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - getAnalyticsDetails(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/applications/:client_id/tokens/:access_token" + }, + revokeGrantForApplication: { + deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application", + method: "DELETE", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects').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); - } + }, + url: "/applications/:client_id/grants/:access_token" + }, + revokeInstallationToken: { + headers: { + accept: "application/vnd.github.gambit-preview+json" + }, + method: "DELETE", + params: {}, + url: "/installation/token" + } + }, + checks: { + create: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "POST", + params: { + actions: { + type: "object[]" + }, + "actions[].description": { + required: true, + type: "string" + }, + "actions[].identifier": { + required: true, + type: "string" + }, + "actions[].label": { + required: true, + type: "string" + }, + completed_at: { + type: "string" + }, + conclusion: { + enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"], + type: "string" + }, + details_url: { + type: "string" + }, + external_id: { + type: "string" + }, + head_sha: { + required: true, + type: "string" + }, + name: { + required: true, + type: "string" + }, + output: { + type: "object" + }, + "output.annotations": { + type: "object[]" + }, + "output.annotations[].annotation_level": { + enum: ["notice", "warning", "failure"], + required: true, + type: "string" + }, + "output.annotations[].end_column": { + type: "integer" + }, + "output.annotations[].end_line": { + required: true, + type: "integer" + }, + "output.annotations[].message": { + required: true, + type: "string" + }, + "output.annotations[].path": { + required: true, + type: "string" + }, + "output.annotations[].raw_details": { + type: "string" + }, + "output.annotations[].start_column": { + type: "integer" + }, + "output.annotations[].start_line": { + required: true, + type: "integer" + }, + "output.annotations[].title": { + type: "string" + }, + "output.images": { + type: "object[]" + }, + "output.images[].alt": { + required: true, + type: "string" + }, + "output.images[].caption": { + type: "string" + }, + "output.images[].image_url": { + required: true, + type: "string" + }, + "output.summary": { + required: true, + type: "string" + }, + "output.text": { + type: "string" + }, + "output.title": { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + started_at: { + type: "string" + }, + status: { + enum: ["queued", "in_progress", "completed"], + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/check-runs" + }, + createSuite: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "POST", + params: { + head_sha: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - removeAnalytics(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:removeAnalytics').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); - } - } - searchApps(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:searchApps').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); - } + }, + url: "/repos/:owner/:repo/check-suites" + }, + get: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "GET", + params: { + check_run_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - firebase_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Androidapps { - constructor(context) { - this.context = context; - this.sha = new Resource$Projects$Androidapps$Sha(this.context); + }, + url: "/repos/:owner/:repo/check-runs/:check_run_id" + }, + getSuite: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "GET", + params: { + check_suite_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/androidApps').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); - } + }, + url: "/repos/:owner/:repo/check-suites/:check_suite_id" + }, + listAnnotations: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "GET", + params: { + check_run_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations" + }, + listForRef: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "GET", + params: { + check_name: { + type: "string" + }, + filter: { + enum: ["latest", "all"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + status: { + enum: ["queued", "in_progress", "completed"], + type: "string" } - getConfig(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/commits/:ref/check-runs" + }, + listForSuite: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "GET", + params: { + check_name: { + type: "string" + }, + check_suite_id: { + required: true, + type: "integer" + }, + filter: { + enum: ["latest", "all"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + status: { + enum: ["queued", "in_progress", "completed"], + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/androidApps').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); - } + }, + url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs" + }, + listSuitesForRef: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "GET", + params: { + app_id: { + type: "integer" + }, + check_name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/commits/:ref/check-suites" + }, + rerequestSuite: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "POST", + params: { + check_suite_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - firebase_v1beta1.Resource$Projects$Androidapps = Resource$Projects$Androidapps; - class Resource$Projects$Androidapps$Sha { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest" + }, + setSuitesPreferences: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "PATCH", + params: { + auto_trigger_checks: { + type: "object[]" + }, + "auto_trigger_checks[].app_id": { + required: true, + type: "integer" + }, + "auto_trigger_checks[].setting": { + required: true, + type: "boolean" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sha').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); - } + }, + url: "/repos/:owner/:repo/check-suites/preferences" + }, + update: { + headers: { + accept: "application/vnd.github.antiope-preview+json" + }, + method: "PATCH", + params: { + actions: { + type: "object[]" + }, + "actions[].description": { + required: true, + type: "string" + }, + "actions[].identifier": { + required: true, + type: "string" + }, + "actions[].label": { + required: true, + type: "string" + }, + check_run_id: { + required: true, + type: "integer" + }, + completed_at: { + type: "string" + }, + conclusion: { + enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"], + type: "string" + }, + details_url: { + type: "string" + }, + external_id: { + type: "string" + }, + name: { + type: "string" + }, + output: { + type: "object" + }, + "output.annotations": { + type: "object[]" + }, + "output.annotations[].annotation_level": { + enum: ["notice", "warning", "failure"], + required: true, + type: "string" + }, + "output.annotations[].end_column": { + type: "integer" + }, + "output.annotations[].end_line": { + required: true, + type: "integer" + }, + "output.annotations[].message": { + required: true, + type: "string" + }, + "output.annotations[].path": { + required: true, + type: "string" + }, + "output.annotations[].raw_details": { + type: "string" + }, + "output.annotations[].start_column": { + type: "integer" + }, + "output.annotations[].start_line": { + required: true, + type: "integer" + }, + "output.annotations[].title": { + type: "string" + }, + "output.images": { + type: "object[]" + }, + "output.images[].alt": { + required: true, + type: "string" + }, + "output.images[].caption": { + type: "string" + }, + "output.images[].image_url": { + required: true, + type: "string" + }, + "output.summary": { + required: true, + type: "string" + }, + "output.text": { + type: "string" + }, + "output.title": { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + started_at: { + type: "string" + }, + status: { + enum: ["queued", "in_progress", "completed"], + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/check-runs/:check_run_id" + } + }, + codesOfConduct: { + getConductCode: { + headers: { + accept: "application/vnd.github.scarlet-witch-preview+json" + }, + method: "GET", + params: { + key: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sha').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); - } + }, + url: "/codes_of_conduct/:key" + }, + getForRepo: { + headers: { + accept: "application/vnd.github.scarlet-witch-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } + }, + url: "/repos/:owner/:repo/community/code_of_conduct" + }, + listConductCodes: { + headers: { + accept: "application/vnd.github.scarlet-witch-preview+json" + }, + method: "GET", + params: {}, + url: "/codes_of_conduct" } - firebase_v1beta1.Resource$Projects$Androidapps$Sha = Resource$Projects$Androidapps$Sha; - class Resource$Projects$Availablelocations { - constructor(context) { - this.context = context; + }, + emojis: { + get: { + method: "GET", + params: {}, + url: "/emojis" + } + }, + gists: { + checkIsStarred: { + method: "GET", + params: { + gist_id: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/availableLocations').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); - } + }, + url: "/gists/:gist_id/star" + }, + create: { + method: "POST", + params: { + description: { + type: "string" + }, + files: { + required: true, + type: "object" + }, + "files.content": { + type: "string" + }, + public: { + type: "boolean" } - } - firebase_v1beta1.Resource$Projects$Availablelocations = Resource$Projects$Availablelocations; - class Resource$Projects$Defaultlocation { - constructor(context) { - this.context = context; + }, + url: "/gists" + }, + createComment: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + gist_id: { + required: true, + type: "string" } - finalize(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/defaultLocation:finalize').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); - } + }, + url: "/gists/:gist_id/comments" + }, + delete: { + method: "DELETE", + params: { + gist_id: { + required: true, + type: "string" } - } - firebase_v1beta1.Resource$Projects$Defaultlocation = Resource$Projects$Defaultlocation; - class Resource$Projects$Iosapps { - constructor(context) { - this.context = context; + }, + url: "/gists/:gist_id" + }, + deleteComment: { + method: "DELETE", + params: { + comment_id: { + required: true, + type: "integer" + }, + gist_id: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/iosApps').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); - } + }, + url: "/gists/:gist_id/comments/:comment_id" + }, + fork: { + method: "POST", + params: { + gist_id: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/gists/:gist_id/forks" + }, + get: { + method: "GET", + params: { + gist_id: { + required: true, + type: "string" } - getConfig(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/gists/:gist_id" + }, + getComment: { + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + gist_id: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/iosApps').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); - } + }, + url: "/gists/:gist_id/comments/:comment_id" + }, + getRevision: { + method: "GET", + params: { + gist_id: { + required: true, + type: "string" + }, + sha: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/gists/:gist_id/:sha" + }, + list: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" } - } - firebase_v1beta1.Resource$Projects$Iosapps = Resource$Projects$Iosapps; - class Resource$Projects$Webapps { - constructor(context) { - this.context = context; + }, + url: "/gists" + }, + listComments: { + method: "GET", + params: { + gist_id: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/webApps').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); - } + }, + url: "/gists/:gist_id/comments" + }, + listCommits: { + method: "GET", + params: { + gist_id: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/gists/:gist_id/commits" + }, + listForks: { + method: "GET", + params: { + gist_id: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - getConfig(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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/gists/:gist_id/forks" + }, + listPublic: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/webApps').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); - } + }, + url: "/gists/public" + }, + listPublicForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" + }, + username: { + required: true, + type: "string" } - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/users/:username/gists" + }, + listStarred: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" } - } - firebase_v1beta1.Resource$Projects$Webapps = Resource$Projects$Webapps; -})(firebase_v1beta1 = exports.firebase_v1beta1 || (exports.firebase_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 173 */, -/* 174 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(739); - -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - - -/***/ }), -/* 175 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.redis_v1beta1 = 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 = __webpack_require__(927); -var redis_v1beta1; -(function (redis_v1beta1) { - /** - * Google Cloud Memorystore for Redis API - * - * Creates and manages Redis instances on the Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const redis = google.redis('v1beta1'); - * - * @namespace redis - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Redis - */ - class Redis { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); + }, + url: "/gists/starred" + }, + star: { + method: "PUT", + params: { + gist_id: { + required: true, + type: "string" } - } - redis_v1beta1.Redis = Redis; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + }, + url: "/gists/:gist_id/star" + }, + unstar: { + method: "DELETE", + params: { + gist_id: { + required: true, + type: "string" + } + }, + url: "/gists/:gist_id/star" + }, + update: { + method: "PATCH", + params: { + description: { + type: "string" + }, + files: { + type: "object" + }, + "files.content": { + type: "string" + }, + "files.filename": { + type: "string" + }, + gist_id: { + required: true, + type: "string" + } + }, + url: "/gists/:gist_id" + }, + updateComment: { + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_id: { + required: true, + type: "integer" + }, + gist_id: { + required: true, + type: "string" } + }, + url: "/gists/:gist_id/comments/:comment_id" } - redis_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); + }, + git: { + createBlob: { + method: "POST", + params: { + content: { + required: true, + type: "string" + }, + encoding: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/blobs" + }, + createCommit: { + method: "POST", + params: { + author: { + type: "object" + }, + "author.date": { + type: "string" + }, + "author.email": { + type: "string" + }, + "author.name": { + type: "string" + }, + committer: { + type: "object" + }, + "committer.date": { + type: "string" + }, + "committer.email": { + type: "string" + }, + "committer.name": { + type: "string" + }, + message: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + parents: { + required: true, + type: "string[]" + }, + repo: { + required: true, + type: "string" + }, + signature: { + type: "string" + }, + tree: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/commits" + }, + createRef: { + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + required: true, + type: "string" } - } - redis_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/git/refs" + }, + createTag: { + method: "POST", + params: { + message: { + required: true, + type: "string" + }, + object: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + tag: { + required: true, + type: "string" + }, + tagger: { + type: "object" + }, + "tagger.date": { + type: "string" + }, + "tagger.email": { + type: "string" + }, + "tagger.name": { + type: "string" + }, + type: { + enum: ["commit", "tree", "blob"], + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/tags" + }, + createTree: { + method: "POST", + params: { + base_tree: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + tree: { + required: true, + type: "object[]" + }, + "tree[].content": { + type: "string" + }, + "tree[].mode": { + enum: ["100644", "100755", "040000", "160000", "120000"], + type: "string" + }, + "tree[].path": { + type: "string" + }, + "tree[].sha": { + allowNull: true, + type: "string" + }, + "tree[].type": { + enum: ["blob", "tree", "commit"], + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/trees" + }, + deleteRef: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - export(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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').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); - } + }, + url: "/repos/:owner/:repo/git/refs/:ref" + }, + getBlob: { + method: "GET", + params: { + file_sha: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - failover(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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:failover').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); - } + }, + url: "/repos/:owner/:repo/git/blobs/:file_sha" + }, + getCommit: { + method: "GET", + params: { + commit_sha: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/commits/:commit_sha" + }, + getRef: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - import(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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').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); - } + }, + url: "/repos/:owner/:repo/git/ref/:ref" + }, + getTag: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + tag_sha: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/tags/:tag_sha" + }, + getTree: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + recursive: { + enum: ["1"], + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + tree_sha: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/trees/:tree_sha" + }, + listMatchingRefs: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/git/matching-refs/:ref" + }, + listRefs: { + method: "GET", + params: { + namespace: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + } + }, + url: "/repos/:owner/:repo/git/refs/:namespace" + }, + updateRef: { + method: "PATCH", + params: { + force: { + type: "boolean" + }, + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + required: true, + type: "string" } + }, + url: "/repos/:owner/:repo/git/refs/:ref" } - redis_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; + }, + gitignore: { + getTemplate: { + method: "GET", + params: { + name: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/gitignore/templates/:name" + }, + listTemplates: { + method: "GET", + params: {}, + url: "/gitignore/templates" + } + }, + interactions: { + addOrUpdateRestrictionsForOrg: { + headers: { + accept: "application/vnd.github.sombra-preview+json" + }, + method: "PUT", + params: { + limit: { + enum: ["existing_users", "contributors_only", "collaborators_only"], + required: true, + type: "string" + }, + org: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/orgs/:org/interaction-limits" + }, + addOrUpdateRestrictionsForRepo: { + headers: { + accept: "application/vnd.github.sombra-preview+json" + }, + method: "PUT", + params: { + limit: { + enum: ["existing_users", "contributors_only", "collaborators_only"], + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/interaction-limits" + }, + getRestrictionsForOrg: { + headers: { + accept: "application/vnd.github.sombra-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/orgs/:org/interaction-limits" + }, + getRestrictionsForRepo: { + headers: { + accept: "application/vnd.github.sombra-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - redis_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(redis_v1beta1 = exports.redis_v1beta1 || (exports.redis_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 176 */ -/***/ (function(module) { - -module.exports = removeHook - -function removeHook (state, name, method) { - if (!state.registry[name]) { - return - } - - var index = state.registry[name] - .map(function (registered) { return registered.orig }) - .indexOf(method) - - if (index === -1) { - return - } - - state.registry[name].splice(index, 1) -} - - -/***/ }), -/* 177 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "v1", { - enumerable: true, - get: function () { - return _v.default; - } -}); -Object.defineProperty(exports, "v3", { - enumerable: true, - get: function () { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", { - enumerable: true, - get: function () { - return _v3.default; - } -}); -Object.defineProperty(exports, "v5", { - enumerable: true, - get: function () { - return _v4.default; - } -}); -Object.defineProperty(exports, "NIL", { - enumerable: true, - get: function () { - return _nil.default; - } -}); -Object.defineProperty(exports, "version", { - enumerable: true, - get: function () { - return _version.default; - } -}); -Object.defineProperty(exports, "validate", { - enumerable: true, - get: function () { - return _validate.default; - } -}); -Object.defineProperty(exports, "stringify", { - enumerable: true, - get: function () { - return _stringify.default; - } -}); -Object.defineProperty(exports, "parse", { - enumerable: true, - get: function () { - return _parse.default; - } -}); - -var _v = _interopRequireDefault(__webpack_require__(560)); - -var _v2 = _interopRequireDefault(__webpack_require__(434)); - -var _v3 = _interopRequireDefault(__webpack_require__(257)); - -var _v4 = _interopRequireDefault(__webpack_require__(435)); - -var _nil = _interopRequireDefault(__webpack_require__(922)); - -var _version = _interopRequireDefault(__webpack_require__(496)); - -var _validate = _interopRequireDefault(__webpack_require__(89)); - -var _stringify = _interopRequireDefault(__webpack_require__(106)); - -var _parse = _interopRequireDefault(__webpack_require__(205)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/***/ }), -/* 178 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.content_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 = __webpack_require__(927); -var content_v2; -(function (content_v2) { - /** - * Content API for Shopping - * - * Manages product items, inventory, and Merchant Center accounts for Google Shopping. - * - * @example - * const {google} = require('googleapis'); - * const content = google.content('v2'); - * - * @namespace content - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Content - */ - class Content { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - this.accountstatuses = new Resource$Accountstatuses(this.context); - this.accounttax = new Resource$Accounttax(this.context); - this.datafeeds = new Resource$Datafeeds(this.context); - this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); - this.inventory = new Resource$Inventory(this.context); - this.liasettings = new Resource$Liasettings(this.context); - this.orderinvoices = new Resource$Orderinvoices(this.context); - this.orderreports = new Resource$Orderreports(this.context); - this.orderreturns = new Resource$Orderreturns(this.context); - this.orders = new Resource$Orders(this.context); - this.pos = new Resource$Pos(this.context); - this.products = new Resource$Products(this.context); - this.productstatuses = new Resource$Productstatuses(this.context); - this.shippingsettings = new Resource$Shippingsettings(this.context); + }, + url: "/repos/:owner/:repo/interaction-limits" + }, + removeRestrictionsForOrg: { + headers: { + accept: "application/vnd.github.sombra-preview+json" + }, + method: "DELETE", + params: { + org: { + required: true, + type: "string" } - } - content_v2.Content = Content; - class Resource$Accounts { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/interaction-limits" + }, + removeRestrictionsForRepo: { + headers: { + accept: "application/vnd.github.sombra-preview+json" + }, + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - authinfo(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/accounts/authinfo').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); - } + }, + url: "/repos/:owner/:repo/interaction-limits" + } + }, + issues: { + addAssignees: { + method: "POST", + params: { + assignees: { + type: "string[]" + }, + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - claimwebsite(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/assignees" + }, + addLabels: { + method: "POST", + params: { + issue_number: { + required: true, + type: "integer" + }, + labels: { + required: true, + type: "string[]" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/accounts/batch').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); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/labels" + }, + checkAssignee: { + method: "GET", + params: { + assignee: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/assignees/:assignee" + }, + create: { + method: "POST", + params: { + assignee: { + type: "string" + }, + assignees: { + type: "string[]" + }, + body: { + type: "string" + }, + labels: { + type: "string[]" + }, + milestone: { + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + title: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues" + }, + createComment: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/comments" + }, + createLabel: { + method: "POST", + params: { + color: { + required: true, + type: "string" + }, + description: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - link(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/labels" + }, + createMilestone: { + method: "POST", + params: { + description: { + type: "string" + }, + due_on: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + state: { + enum: ["open", "closed"], + type: "string" + }, + title: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/milestones" + }, + deleteComment: { + method: "DELETE", + params: { + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/comments/:comment_id" + }, + deleteLabel: { + method: "DELETE", + params: { + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - content_v2.Resource$Accounts = Resource$Accounts; - class Resource$Accountstatuses { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/labels/:name" + }, + deleteMilestone: { + method: "DELETE", + params: { + milestone_number: { + required: true, + type: "integer" + }, + number: { + alias: "milestone_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/accountstatuses/batch').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); - } + }, + url: "/repos/:owner/:repo/milestones/:milestone_number" + }, + get: { + method: "GET", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number" + }, + getComment: { + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/comments/:comment_id" + }, + getEvent: { + method: "GET", + params: { + event_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - content_v2.Resource$Accountstatuses = Resource$Accountstatuses; - class Resource$Accounttax { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/issues/events/:event_id" + }, + getLabel: { + method: "GET", + params: { + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/accounttax/batch').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); - } + }, + url: "/repos/:owner/:repo/labels/:name" + }, + getMilestone: { + method: "GET", + params: { + milestone_number: { + required: true, + type: "integer" + }, + number: { + alias: "milestone_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/milestones/:milestone_number" + }, + list: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + filter: { + enum: ["assigned", "created", "mentioned", "subscribed", "all"], + type: "string" + }, + labels: { + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated", "comments"], + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/issues" + }, + listAssignees: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/assignees" + }, + listComments: { + method: "GET", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" } - } - content_v2.Resource$Accounttax = Resource$Accounttax; - class Resource$Datafeeds { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/issues/:issue_number/comments" + }, + listCommentsForRepo: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/datafeeds/batch').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); - } + }, + url: "/repos/:owner/:repo/issues/comments" + }, + listEvents: { + method: "GET", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/events" + }, + listEventsForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - fetchnow(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/events" + }, + listEventsForTimeline: { + headers: { + accept: "application/vnd.github.mockingbird-preview+json" + }, + method: "GET", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/timeline" + }, + listForAuthenticatedUser: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + filter: { + enum: ["assigned", "created", "mentioned", "subscribed", "all"], + type: "string" + }, + labels: { + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated", "comments"], + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/issues" + }, + listForOrg: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + filter: { + enum: ["assigned", "created", "mentioned", "subscribed", "all"], + type: "string" + }, + labels: { + type: "string" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated", "comments"], + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/issues" + }, + listForRepo: { + method: "GET", + params: { + assignee: { + type: "string" + }, + creator: { + type: "string" + }, + direction: { + enum: ["asc", "desc"], + type: "string" + }, + labels: { + type: "string" + }, + mentioned: { + type: "string" + }, + milestone: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated", "comments"], + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues" + }, + listLabelsForMilestone: { + method: "GET", + params: { + milestone_number: { + required: true, + type: "integer" + }, + number: { + alias: "milestone_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - content_v2.Resource$Datafeeds = Resource$Datafeeds; - class Resource$Datafeedstatuses { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/milestones/:milestone_number/labels" + }, + listLabelsForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/datafeedstatuses/batch').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); - } + }, + url: "/repos/:owner/:repo/labels" + }, + listLabelsOnIssue: { + method: "GET", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/labels" + }, + listMilestonesForRepo: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + sort: { + enum: ["due_on", "completeness"], + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/milestones" + }, + lock: { + method: "PUT", + params: { + issue_number: { + required: true, + type: "integer" + }, + lock_reason: { + enum: ["off-topic", "too heated", "resolved", "spam"], + type: "string" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - content_v2.Resource$Datafeedstatuses = Resource$Datafeedstatuses; - class Resource$Inventory { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/issues/:issue_number/lock" + }, + removeAssignees: { + method: "DELETE", + params: { + assignees: { + type: "string[]" + }, + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/inventory/batch').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); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/assignees" + }, + removeLabel: { + method: "DELETE", + params: { + issue_number: { + required: true, + type: "integer" + }, + name: { + required: true, + type: "string" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - set(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/inventory/{storeCode}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'storeCode', 'productId'], - pathParams: ['merchantId', 'productId', 'storeCode'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/labels/:name" + }, + removeLabels: { + method: "DELETE", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - content_v2.Resource$Inventory = Resource$Inventory; - class Resource$Liasettings { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/issues/:issue_number/labels" + }, + replaceLabels: { + method: "PUT", + params: { + issue_number: { + required: true, + type: "integer" + }, + labels: { + type: "string[]" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/liasettings/batch').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); - } - } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/labels" + }, + unlock: { + method: "DELETE", + params: { + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - getaccessiblegmbaccounts(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/lock" + }, + update: { + method: "PATCH", + params: { + assignee: { + type: "string" + }, + assignees: { + type: "string[]" + }, + body: { + type: "string" + }, + issue_number: { + required: true, + type: "integer" + }, + labels: { + type: "string[]" + }, + milestone: { + allowNull: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + state: { + enum: ["open", "closed"], + type: "string" + }, + title: { + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number" + }, + updateComment: { + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - listposdataproviders(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/liasettings/posdataproviders').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); - } + }, + url: "/repos/:owner/:repo/issues/comments/:comment_id" + }, + updateLabel: { + method: "PATCH", + params: { + color: { + type: "string" + }, + current_name: { + required: true, + type: "string" + }, + description: { + type: "string" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - requestgmbaccess(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'accountId', 'gmbEmail'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/labels/:current_name" + }, + updateMilestone: { + method: "PATCH", + params: { + description: { + type: "string" + }, + due_on: { + type: "string" + }, + milestone_number: { + required: true, + type: "integer" + }, + number: { + alias: "milestone_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + state: { + enum: ["open", "closed"], + type: "string" + }, + title: { + type: "string" } - requestinventoryverification(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'country', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/milestones/:milestone_number" + } + }, + licenses: { + get: { + method: "GET", + params: { + license: { + required: true, + type: "string" } - setinventoryverificationcontact(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: [ - 'merchantId', - 'accountId', - 'contactEmail', - 'contactName', - 'country', - 'language', - ], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/licenses/:license" + }, + getForRepo: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - setposdataprovider(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/license" + }, + list: { + deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)", + method: "GET", + params: {}, + url: "/licenses" + }, + listCommonlyUsed: { + method: "GET", + params: {}, + url: "/licenses" + } + }, + markdown: { + render: { + method: "POST", + params: { + context: { + type: "string" + }, + mode: { + enum: ["markdown", "gfm"], + type: "string" + }, + text: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/markdown" + }, + renderRaw: { + headers: { + "content-type": "text/plain; charset=utf-8" + }, + method: "POST", + params: { + data: { + mapTo: "data", + required: true, + type: "string" } + }, + url: "/markdown/raw" } - content_v2.Resource$Liasettings = Resource$Liasettings; - class Resource$Orderinvoices { - constructor(context) { - this.context = context; + }, + meta: { + get: { + method: "GET", + params: {}, + url: "/meta" + } + }, + migrations: { + cancelImport: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - createchargeinvoice(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/import" + }, + deleteArchiveForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "DELETE", + params: { + migration_id: { + required: true, + type: "integer" } - createrefundinvoice(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/migrations/:migration_id/archive" + }, + deleteArchiveForOrg: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "DELETE", + params: { + migration_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - } - content_v2.Resource$Orderinvoices = Resource$Orderinvoices; - class Resource$Orderreports { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/migrations/:migration_id/archive" + }, + downloadArchiveForOrg: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - listdisbursements(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'disbursementStartDate'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/migrations/:migration_id/archive" + }, + getArchiveForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" } - listtransactions(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [ - 'merchantId', - 'disbursementId', - 'transactionStartDate', - ], - pathParams: ['disbursementId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/migrations/:migration_id/archive" + }, + getArchiveForOrg: { + deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)", + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - } - content_v2.Resource$Orderreports = Resource$Orderreports; - class Resource$Orderreturns { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/migrations/:migration_id/archive" + }, + getCommitAuthors: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/import/authors" + }, + getImportProgress: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/import" + }, + getLargeFiles: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - content_v2.Resource$Orderreturns = Resource$Orderreturns; - class Resource$Orders { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/import/large_files" + }, + getStatusForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" } - acknowledge(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/migrations/:migration_id" + }, + getStatusForOrg: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - advancetestorder(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/migrations/:migration_id" + }, + listForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/migrations" + }, + listForOrg: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - cancellineitem(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/migrations" + }, + listReposForOrg: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - canceltestorderbycustomer(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/migrations/:migration_id/repositories" + }, + listReposForUser: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "GET", + params: { + migration_id: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - createtestorder(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/:migration_id/repositories" + }, + mapCommitAuthor: { + method: "PATCH", + params: { + author_id: { + required: true, + type: "integer" + }, + email: { + type: "string" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - createtestreturn(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/import/authors/:author_id" + }, + setLfsPreference: { + method: "PATCH", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + use_lfs: { + enum: ["opt_in", "opt_out"], + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/orders/batch').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); - } + }, + url: "/repos/:owner/:repo/import/lfs" + }, + startForAuthenticatedUser: { + method: "POST", + params: { + exclude_attachments: { + type: "boolean" + }, + lock_repositories: { + type: "boolean" + }, + repositories: { + required: true, + type: "string[]" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/migrations" + }, + startForOrg: { + method: "POST", + params: { + exclude_attachments: { + type: "boolean" + }, + lock_repositories: { + type: "boolean" + }, + org: { + required: true, + type: "string" + }, + repositories: { + required: true, + type: "string[]" } - getbymerchantorderid(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'merchantOrderId'], - pathParams: ['merchantId', 'merchantOrderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/migrations" + }, + startImport: { + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + tfvc_project: { + type: "string" + }, + vcs: { + enum: ["subversion", "git", "mercurial", "tfvc"], + type: "string" + }, + vcs_password: { + type: "string" + }, + vcs_url: { + required: true, + type: "string" + }, + vcs_username: { + type: "string" } - gettestordertemplate(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'templateName'], - pathParams: ['merchantId', 'templateName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/import" + }, + unlockRepoForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "DELETE", + params: { + migration_id: { + required: true, + type: "integer" + }, + repo_name: { + required: true, + type: "string" } - instorerefundlineitem(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/migrations/:migration_id/repos/:repo_name/lock" + }, + unlockRepoForOrg: { + headers: { + accept: "application/vnd.github.wyandotte-preview+json" + }, + method: "DELETE", + params: { + migration_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + repo_name: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" + }, + updateImport: { + method: "PATCH", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + vcs_password: { + type: "string" + }, + vcs_username: { + type: "string" } - refund(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/refund').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/import" + } + }, + oauthAuthorizations: { + checkAuthorization: { + deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)", + method: "GET", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - rejectreturnlineitem(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/:client_id/tokens/:access_token" + }, + createAuthorization: { + deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization", + method: "POST", + params: { + client_id: { + type: "string" + }, + client_secret: { + type: "string" + }, + fingerprint: { + type: "string" + }, + note: { + required: true, + type: "string" + }, + note_url: { + type: "string" + }, + scopes: { + type: "string[]" } - returnlineitem(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/returnLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/authorizations" + }, + deleteAuthorization: { + deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization", + method: "DELETE", + params: { + authorization_id: { + required: true, + type: "integer" } - returnrefundlineitem(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/authorizations/:authorization_id" + }, + deleteGrant: { + deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant", + method: "DELETE", + params: { + grant_id: { + required: true, + type: "integer" } - setlineitemmetadata(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/grants/:grant_id" + }, + getAuthorization: { + deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization", + method: "GET", + params: { + authorization_id: { + required: true, + type: "integer" } - shiplineitems(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/authorizations/:authorization_id" + }, + getGrant: { + deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant", + method: "GET", + params: { + grant_id: { + required: true, + type: "integer" } - updatelineitemshippingdetails(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/grants/:grant_id" + }, + getOrCreateAuthorizationForApp: { + deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app", + method: "PUT", + params: { + client_id: { + required: true, + type: "string" + }, + client_secret: { + required: true, + type: "string" + }, + fingerprint: { + type: "string" + }, + note: { + type: "string" + }, + note_url: { + type: "string" + }, + scopes: { + type: "string[]" } - updatemerchantorderid(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/authorizations/clients/:client_id" + }, + getOrCreateAuthorizationForAppAndFingerprint: { + deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint", + method: "PUT", + params: { + client_id: { + required: true, + type: "string" + }, + client_secret: { + required: true, + type: "string" + }, + fingerprint: { + required: true, + type: "string" + }, + note: { + type: "string" + }, + note_url: { + type: "string" + }, + scopes: { + type: "string[]" } - updateshipment(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/authorizations/clients/:client_id/:fingerprint" + }, + getOrCreateAuthorizationForAppFingerprint: { + deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)", + method: "PUT", + params: { + client_id: { + required: true, + type: "string" + }, + client_secret: { + required: true, + type: "string" + }, + fingerprint: { + required: true, + type: "string" + }, + note: { + type: "string" + }, + note_url: { + type: "string" + }, + scopes: { + type: "string[]" } - } - content_v2.Resource$Orders = Resource$Orders; - class Resource$Pos { - constructor(context) { - this.context = context; + }, + url: "/authorizations/clients/:client_id/:fingerprint" + }, + listAuthorizations: { + deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/pos/batch').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); - } + }, + url: "/authorizations" + }, + listGrants: { + deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/grants" + }, + resetAuthorization: { + deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)", + method: "POST", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/:client_id/tokens/:access_token" + }, + revokeAuthorizationForApplication: { + deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)", + method: "DELETE", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/:client_id/tokens/:access_token" + }, + revokeGrantForApplication: { + deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)", + method: "DELETE", + params: { + access_token: { + required: true, + type: "string" + }, + client_id: { + required: true, + type: "string" } - inventory(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - sale(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/applications/:client_id/grants/:access_token" + }, + updateAuthorization: { + deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization", + method: "PATCH", + params: { + add_scopes: { + type: "string[]" + }, + authorization_id: { + required: true, + type: "integer" + }, + fingerprint: { + type: "string" + }, + note: { + type: "string" + }, + note_url: { + type: "string" + }, + remove_scopes: { + type: "string[]" + }, + scopes: { + type: "string[]" } + }, + url: "/authorizations/:authorization_id" } - content_v2.Resource$Pos = Resource$Pos; - class Resource$Products { - constructor(context) { - this.context = context; + }, + orgs: { + addOrUpdateMembership: { + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + role: { + enum: ["admin", "member"], + type: "string" + }, + username: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/products/batch').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); - } + }, + url: "/orgs/:org/memberships/:username" + }, + blockUser: { + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/blocks/:username" + }, + checkBlockedUser: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/blocks/:username" + }, + checkMembership: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/members/:username" + }, + checkPublicMembership: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/public_members/:username" + }, + concealMembership: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - content_v2.Resource$Products = Resource$Products; - class Resource$Productstatuses { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/public_members/:username" + }, + convertMemberToOutsideCollaborator: { + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/productstatuses/batch').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); - } + }, + url: "/orgs/:org/outside_collaborators/:username" + }, + createHook: { + method: "POST", + params: { + active: { + type: "boolean" + }, + config: { + required: true, + type: "object" + }, + "config.content_type": { + type: "string" + }, + "config.insecure_ssl": { + type: "string" + }, + "config.secret": { + type: "string" + }, + "config.url": { + required: true, + type: "string" + }, + events: { + type: "string[]" + }, + name: { + required: true, + type: "string" + }, + org: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/hooks" + }, + createInvitation: { + method: "POST", + params: { + email: { + type: "string" + }, + invitee_id: { + type: "integer" + }, + org: { + required: true, + type: "string" + }, + role: { + enum: ["admin", "direct_member", "billing_manager"], + type: "string" + }, + team_ids: { + type: "integer[]" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/invitations" + }, + deleteHook: { + method: "DELETE", + params: { + hook_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - } - content_v2.Resource$Productstatuses = Resource$Productstatuses; - class Resource$Shippingsettings { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/hooks/:hook_id" + }, + get: { + method: "GET", + params: { + org: { + required: true, + type: "string" } - custombatch(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/shippingsettings/batch').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); - } + }, + url: "/orgs/:org" + }, + getHook: { + method: "GET", + params: { + hook_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/hooks/:hook_id" + }, + getMembership: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - getsupportedcarriers(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/memberships/:username" + }, + getMembershipForAuthenticatedUser: { + method: "GET", + params: { + org: { + required: true, + type: "string" } - getsupportedholidays(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/memberships/orgs/:org" + }, + list: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "integer" } - getsupportedpickupservices(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/organizations" + }, + listBlockedUsers: { + method: "GET", + params: { + org: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/blocks" + }, + listForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/orgs" + }, + listForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" } - } - content_v2.Resource$Shippingsettings = Resource$Shippingsettings; -})(content_v2 = exports.content_v2 || (exports.content_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 179 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.oslogin_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 = __webpack_require__(927); -var oslogin_v1; -(function (oslogin_v1) { - /** - * Cloud OS Login API - * - * You can use OS Login to manage access to your VM instances using IAM roles. - * - * @example - * const {google} = require('googleapis'); - * const oslogin = google.oslogin('v1'); - * - * @namespace oslogin - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Oslogin - */ - class Oslogin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.users = new Resource$Users(this.context); + }, + url: "/users/:username/orgs" + }, + listHooks: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - oslogin_v1.Oslogin = Oslogin; - class Resource$Users { - constructor(context) { - this.context = context; - this.projects = new Resource$Users$Projects(this.context); - this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); + }, + url: "/orgs/:org/hooks" + }, + listInstallations: { + headers: { + accept: "application/vnd.github.machine-man-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - getLoginProfile(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://oslogin.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}/loginProfile').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); - } + }, + url: "/orgs/:org/installations" + }, + listInvitationTeams: { + method: "GET", + params: { + invitation_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - importSshPublicKey(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://oslogin.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:importSshPublicKey').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); - } + }, + url: "/orgs/:org/invitations/:invitation_id/teams" + }, + listMembers: { + method: "GET", + params: { + filter: { + enum: ["2fa_disabled", "all"], + type: "string" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + role: { + enum: ["all", "admin", "member"], + type: "string" } - } - oslogin_v1.Resource$Users = Resource$Users; - class Resource$Users$Projects { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/members" + }, + listMemberships: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + state: { + enum: ["active", "pending"], + type: "string" } - 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://oslogin.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); - } + }, + url: "/user/memberships/orgs" + }, + listOutsideCollaborators: { + method: "GET", + params: { + filter: { + enum: ["2fa_disabled", "all"], + type: "string" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - oslogin_v1.Resource$Users$Projects = Resource$Users$Projects; - class Resource$Users$Sshpublickeys { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/outside_collaborators" + }, + listPendingInvitations: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://oslogin.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); - } + }, + url: "/orgs/:org/invitations" + }, + listPublicMembers: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://oslogin.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); - } + }, + url: "/orgs/:org/public_members" + }, + pingHook: { + method: "POST", + params: { + hook_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - 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://oslogin.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/orgs/:org/hooks/:hook_id/pings" + }, + publicizeMembership: { + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - oslogin_v1.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; -})(oslogin_v1 = exports.oslogin_v1 || (exports.oslogin_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 180 */, -/* 181 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.iap = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(86); -const v1beta1_1 = __webpack_require__(868); -exports.VERSIONS = { - v1: v1_1.iap_v1.Iap, - v1beta1: v1beta1_1.iap_v1beta1.Iap, -}; -function iap(versionOrOptions) { - return googleapis_common_1.getAPI('iap', versionOrOptions, exports.VERSIONS, this); -} -exports.iap = iap; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 182 */ -/***/ (function(module) { - -/** - * Base-N/Base-X encoding/decoding functions. - * - * Original implementation from base-x: - * https://github.com/cryptocoinjs/base-x - * - * Which is MIT licensed: - * - * The MIT License (MIT) - * - * Copyright base-x contributors (c) 2016 - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ -var api = {}; -module.exports = api; - -// baseN alphabet indexes -var _reverseAlphabets = {}; - -/** - * BaseN-encodes a Uint8Array using the given alphabet. - * - * @param input the Uint8Array to encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the baseN-encoded output string. - */ -api.encode = function(input, alphabet, maxline) { - if(typeof alphabet !== 'string') { - throw new TypeError('"alphabet" must be a string.'); - } - if(maxline !== undefined && typeof maxline !== 'number') { - throw new TypeError('"maxline" must be a number.'); - } - - var output = ''; - - if(!(input instanceof Uint8Array)) { - // assume forge byte buffer - output = _encodeWithByteBuffer(input, alphabet); - } else { - var i = 0; - var base = alphabet.length; - var first = alphabet.charAt(0); - var digits = [0]; - for(i = 0; i < input.length; ++i) { - for(var j = 0, carry = input[i]; j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % base; - carry = (carry / base) | 0; - } - - while(carry > 0) { - digits.push(carry % base); - carry = (carry / base) | 0; - } - } - - // deal with leading zeros - for(i = 0; input[i] === 0 && i < input.length - 1; ++i) { - output += first; - } - // convert digits to a string - for(i = digits.length - 1; i >= 0; --i) { - output += alphabet[digits[i]]; - } - } - - if(maxline) { - var regex = new RegExp('.{1,' + maxline + '}', 'g'); - output = output.match(regex).join('\r\n'); - } - - return output; -}; - -/** - * Decodes a baseN-encoded (using the given alphabet) string to a - * Uint8Array. - * - * @param input the baseN-encoded input string. - * - * @return the Uint8Array. - */ -api.decode = function(input, alphabet) { - if(typeof input !== 'string') { - throw new TypeError('"input" must be a string.'); - } - if(typeof alphabet !== 'string') { - throw new TypeError('"alphabet" must be a string.'); - } - - var table = _reverseAlphabets[alphabet]; - if(!table) { - // compute reverse alphabet - table = _reverseAlphabets[alphabet] = []; - for(var i = 0; i < alphabet.length; ++i) { - table[alphabet.charCodeAt(i)] = i; - } - } - - // remove whitespace characters - input = input.replace(/\s/g, ''); - - var base = alphabet.length; - var first = alphabet.charAt(0); - var bytes = [0]; - for(var i = 0; i < input.length; i++) { - var value = table[input.charCodeAt(i)]; - if(value === undefined) { - return; - } - - for(var j = 0, carry = value; j < bytes.length; ++j) { - carry += bytes[j] * base; - bytes[j] = carry & 0xff; - carry >>= 8; - } - - while(carry > 0) { - bytes.push(carry & 0xff); - carry >>= 8; - } - } - - // deal with leading zeros - for(var k = 0; input[k] === first && k < input.length - 1; ++k) { - bytes.push(0); - } - - if(typeof Buffer !== 'undefined') { - return Buffer.from(bytes.reverse()); - } - - return new Uint8Array(bytes.reverse()); -}; - -function _encodeWithByteBuffer(input, alphabet) { - var i = 0; - var base = alphabet.length; - var first = alphabet.charAt(0); - var digits = [0]; - for(i = 0; i < input.length(); ++i) { - for(var j = 0, carry = input.at(i); j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % base; - carry = (carry / base) | 0; - } - - while(carry > 0) { - digits.push(carry % base); - carry = (carry / base) | 0; - } - } - - var output = ''; - - // deal with leading zeros - for(i = 0; input.at(i) === 0 && i < input.length() - 1; ++i) { - output += first; - } - // convert digits to a string - for(i = digits.length - 1; i >= 0; --i) { - output += alphabet[digits[i]]; - } - - return output; -} - - -/***/ }), -/* 183 */ -/***/ (function(module) { - -module.exports = addHook - -function addHook (state, kind, name, hook) { - var orig = hook - if (!state.registry[name]) { - state.registry[name] = [] - } - - if (kind === 'before') { - hook = function (method, options) { - return Promise.resolve() - .then(orig.bind(null, options)) - .then(method.bind(null, options)) - } - } - - if (kind === 'after') { - hook = function (method, options) { - var result - return Promise.resolve() - .then(method.bind(null, options)) - .then(function (result_) { - result = result_ - return orig(result, options) - }) - .then(function () { - return result - }) - } - } - - if (kind === 'error') { - hook = function (method, options) { - return Promise.resolve() - .then(method.bind(null, options)) - .catch(function (error) { - return orig(error, options) - }) - } - } - - state.registry[name].push({ - hook: hook, - orig: orig - }) -} - - -/***/ }), -/* 184 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.discovery = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(358); -exports.VERSIONS = { - v1: v1_1.discovery_v1.Discovery, -}; -function discovery(versionOrOptions) { - return googleapis_common_1.getAPI('discovery', versionOrOptions, exports.VERSIONS, this); -} -exports.discovery = discovery; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 185 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Node.js module for Forge mask generation functions. - * - * @author Stefan Siegl - * - * Copyright 2012 Stefan Siegl - */ -var forge = __webpack_require__(239); -__webpack_require__(592); - -module.exports = forge.mgf = forge.mgf || {}; -forge.mgf.mgf1 = forge.mgf1; - - -/***/ }), -/* 186 */, -/* 187 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudtasks_v2beta3 = 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 = __webpack_require__(927); -var cloudtasks_v2beta3; -(function (cloudtasks_v2beta3) { - /** - * Cloud Tasks API - * - * Manages the execution of large numbers of distributed requests. - * - * @example - * const {google} = require('googleapis'); - * const cloudtasks = google.cloudtasks('v2beta3'); - * - * @namespace cloudtasks - * @type {Function} - * @version v2beta3 - * @variation v2beta3 - * @param {object=} options Options for Cloudtasks - */ - class Cloudtasks { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); + }, + url: "/orgs/:org/public_members/:username" + }, + removeMember: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - cloudtasks_v2beta3.Cloudtasks = Cloudtasks; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + }, + url: "/orgs/:org/members/:username" + }, + removeMembership: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - cloudtasks_v2beta3.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.queues = new Resource$Projects$Locations$Queues(this.context); + }, + url: "/orgs/:org/memberships/:username" + }, + removeOutsideCollaborator: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/orgs/:org/outside_collaborators/:username" + }, + unblockUser: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/orgs/:org/blocks/:username" + }, + update: { + method: "PATCH", + params: { + billing_email: { + type: "string" + }, + company: { + type: "string" + }, + default_repository_permission: { + enum: ["read", "write", "admin", "none"], + type: "string" + }, + description: { + type: "string" + }, + email: { + type: "string" + }, + has_organization_projects: { + type: "boolean" + }, + has_repository_projects: { + type: "boolean" + }, + location: { + type: "string" + }, + members_allowed_repository_creation_type: { + enum: ["all", "private", "none"], + type: "string" + }, + members_can_create_internal_repositories: { + type: "boolean" + }, + members_can_create_private_repositories: { + type: "boolean" + }, + members_can_create_public_repositories: { + type: "boolean" + }, + members_can_create_repositories: { + type: "boolean" + }, + name: { + type: "string" + }, + org: { + required: true, + type: "string" } - } - cloudtasks_v2beta3.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Queues { - constructor(context) { - this.context = context; - this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + }, + url: "/orgs/:org" + }, + updateHook: { + method: "PATCH", + params: { + active: { + type: "boolean" + }, + config: { + type: "object" + }, + "config.content_type": { + type: "string" + }, + "config.insecure_ssl": { + type: "string" + }, + "config.secret": { + type: "string" + }, + "config.url": { + required: true, + type: "string" + }, + events: { + type: "string[]" + }, + hook_id: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/queues').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); - } + }, + url: "/orgs/:org/hooks/:hook_id" + }, + updateMembership: { + method: "PATCH", + params: { + org: { + required: true, + type: "string" + }, + state: { + enum: ["active"], + required: true, + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/user/memberships/orgs/:org" + } + }, + projects: { + addCollaborator: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PUT", + params: { + permission: { + enum: ["read", "write", "admin"], + type: "string" + }, + project_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/projects/:project_id/collaborators/:username" + }, + createCard: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + column_id: { + required: true, + type: "integer" + }, + content_id: { + type: "integer" + }, + content_type: { + type: "string" + }, + note: { + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+resource}:getIamPolicy').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); - } + }, + url: "/projects/columns/:column_id/cards" + }, + createColumn: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + name: { + required: true, + type: "string" + }, + project_id: { + required: true, + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/queues').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); - } + }, + url: "/projects/:project_id/columns" + }, + createForAuthenticatedUser: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + body: { + type: "string" + }, + name: { + required: true, + type: "string" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/user/projects" + }, + createForOrg: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + body: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + org: { + required: true, + type: "string" } - pause(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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:pause').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); - } - } - purge(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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:purge').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); - } + }, + url: "/orgs/:org/projects" + }, + createForRepo: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + body: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - resume(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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:resume').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); - } + }, + url: "/repos/:owner/:repo/projects" + }, + delete: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "DELETE", + params: { + project_id: { + required: true, + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/projects/:project_id" + }, + deleteCard: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "DELETE", + params: { + card_id: { + required: true, + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/projects/columns/cards/:card_id" + }, + deleteColumn: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "DELETE", + params: { + column_id: { + required: true, + type: "integer" } - } - cloudtasks_v2beta3.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; - class Resource$Projects$Locations$Queues$Tasks { - constructor(context) { - this.context = context; + }, + url: "/projects/columns/:column_id" + }, + get: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + project_id: { + required: true, + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/tasks').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); - } + }, + url: "/projects/:project_id" + }, + getCard: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + card_id: { + required: true, + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/projects/columns/cards/:card_id" + }, + getColumn: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + column_id: { + required: true, + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+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); - } + }, + url: "/projects/columns/:column_id" + }, + listCards: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + archived_state: { + enum: ["all", "archived", "not_archived"], + type: "string" + }, + column_id: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/tasks').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); - } + }, + url: "/projects/columns/:column_id/cards" + }, + listCollaborators: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + affiliation: { + enum: ["outside", "direct", "all"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + project_id: { + required: true, + type: "integer" } - run(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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:run').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); - } + }, + url: "/projects/:project_id/collaborators" + }, + listColumns: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + project_id: { + required: true, + type: "integer" } - } - cloudtasks_v2beta3.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; -})(cloudtasks_v2beta3 = exports.cloudtasks_v2beta3 || (exports.cloudtasks_v2beta3 = {})); -//# sourceMappingURL=v2beta3.js.map - -/***/ }), -/* 188 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.ml = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(905); -exports.VERSIONS = { - v1: v1_1.ml_v1.Ml, -}; -function ml(versionOrOptions) { - return googleapis_common_1.getAPI('ml', versionOrOptions, exports.VERSIONS, this); -} -exports.ml = ml; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 189 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.storagetransfer_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 = __webpack_require__(927); -var storagetransfer_v1; -(function (storagetransfer_v1) { - /** - * Storage Transfer API - * - * Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets. - * - * @example - * const {google} = require('googleapis'); - * const storagetransfer = google.storagetransfer('v1'); - * - * @namespace storagetransfer - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Storagetransfer - */ - class Storagetransfer { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.googleServiceAccounts = new Resource$Googleserviceaccounts(this.context); - this.transferJobs = new Resource$Transferjobs(this.context); - this.transferOperations = new Resource$Transferoperations(this.context); + }, + url: "/projects/:project_id/columns" + }, + listForOrg: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - } - storagetransfer_v1.Storagetransfer = Storagetransfer; - class Resource$Googleserviceaccounts { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/projects" + }, + listForRepo: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - 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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/googleServiceAccounts/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/projects" + }, + listForUser: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" + }, + username: { + required: true, + type: "string" } - } - storagetransfer_v1.Resource$Googleserviceaccounts = Resource$Googleserviceaccounts; - class Resource$Transferjobs { - constructor(context) { - this.context = context; + }, + url: "/users/:username/projects" + }, + moveCard: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + card_id: { + required: true, + type: "integer" + }, + column_id: { + type: "integer" + }, + position: { + required: true, + type: "string", + validation: "^(top|bottom|after:\\d+)$" } - 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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/transferJobs').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); - } + }, + url: "/projects/columns/cards/:card_id/moves" + }, + moveColumn: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "POST", + params: { + column_id: { + required: true, + type: "integer" + }, + position: { + required: true, + type: "string", + validation: "^(first|last|after:\\d+)$" } - 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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['jobName'], - pathParams: ['jobName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/projects/columns/:column_id/moves" + }, + removeCollaborator: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "DELETE", + params: { + project_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/transferJobs').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); - } + }, + url: "/projects/:project_id/collaborators/:username" + }, + reviewUserPermissionLevel: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + project_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['jobName'], - pathParams: ['jobName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/projects/:project_id/collaborators/:username/permission" + }, + update: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PATCH", + params: { + body: { + type: "string" + }, + name: { + type: "string" + }, + organization_permission: { + type: "string" + }, + private: { + type: "boolean" + }, + project_id: { + required: true, + type: "integer" + }, + state: { + enum: ["open", "closed"], + type: "string" } - } - storagetransfer_v1.Resource$Transferjobs = Resource$Transferjobs; - class Resource$Transferoperations { - constructor(context) { - this.context = context; + }, + url: "/projects/:project_id" + }, + updateCard: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PATCH", + params: { + archived: { + type: "boolean" + }, + card_id: { + required: true, + type: "integer" + }, + note: { + type: "string" } - 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://storagetransfer.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); - } + }, + url: "/projects/columns/cards/:card_id" + }, + updateColumn: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PATCH", + params: { + column_id: { + required: true, + type: "integer" + }, + name: { + required: true, + type: "string" } - 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://storagetransfer.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); - } + }, + url: "/projects/columns/:column_id" + } + }, + pulls: { + checkIfMerged: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://storagetransfer.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); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/merge" + }, + create: { + method: "POST", + params: { + base: { + required: true, + type: "string" + }, + body: { + type: "string" + }, + draft: { + type: "boolean" + }, + head: { + required: true, + type: "string" + }, + maintainer_can_modify: { + type: "boolean" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + title: { + required: true, + type: "string" } - pause(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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:pause').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); - } - } - resume(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://storagetransfer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resume').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); - } + }, + url: "/repos/:owner/:repo/pulls" + }, + createComment: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + commit_id: { + required: true, + type: "string" + }, + in_reply_to: { + deprecated: true, + description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", + type: "integer" + }, + line: { + type: "integer" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + position: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + side: { + enum: ["LEFT", "RIGHT"], + type: "string" + }, + start_line: { + type: "integer" + }, + start_side: { + enum: ["LEFT", "RIGHT", "side"], + type: "string" } - } - storagetransfer_v1.Resource$Transferoperations = Resource$Transferoperations; -})(storagetransfer_v1 = exports.storagetransfer_v1 || (exports.storagetransfer_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 190 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.clouderrorreporting = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(313); -exports.VERSIONS = { - v1beta1: v1beta1_1.clouderrorreporting_v1beta1.Clouderrorreporting, -}; -function clouderrorreporting(versionOrOptions) { - return googleapis_common_1.getAPI('clouderrorreporting', versionOrOptions, exports.VERSIONS, this); -} -exports.clouderrorreporting = clouderrorreporting; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 191 */ -/***/ (function(module) { - -module.exports = require("querystring"); - -/***/ }), -/* 192 */ -/***/ (function(module) { - -"use strict"; - - -function getParamSize(keySize) { - var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); - return result; -} - -var paramBytesForAlg = { - ES256: getParamSize(256), - ES384: getParamSize(384), - ES512: getParamSize(521) -}; - -function getParamBytesForAlg(alg) { - var paramBytes = paramBytesForAlg[alg]; - if (paramBytes) { - return paramBytes; - } - - throw new Error('Unknown algorithm "' + alg + '"'); -} - -module.exports = getParamBytesForAlg; - - -/***/ }), -/* 193 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.binaryauthorization = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(3); -const v1beta1_1 = __webpack_require__(542); -exports.VERSIONS = { - v1: v1_1.binaryauthorization_v1.Binaryauthorization, - v1beta1: v1beta1_1.binaryauthorization_v1beta1.Binaryauthorization, -}; -function binaryauthorization(versionOrOptions) { - return googleapis_common_1.getAPI('binaryauthorization', versionOrOptions, exports.VERSIONS, this); -} -exports.binaryauthorization = binaryauthorization; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 194 */, -/* 195 */, -/* 196 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var bufferEqual = __webpack_require__(79); -var Buffer = __webpack_require__(149).Buffer; -var crypto = __webpack_require__(417); -var formatEcdsa = __webpack_require__(815); -var util = __webpack_require__(669); - -var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' -var MSG_INVALID_SECRET = 'secret must be a string or buffer'; -var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; -var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; - -var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; -if (supportsKeyObjects) { - MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; - MSG_INVALID_SECRET += 'or a KeyObject'; -} - -function checkIsPublicKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return; - } - - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key.type !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key.asymmetricKeyType !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } -}; - -function checkIsPrivateKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return; - } - - if (typeof key === 'object') { - return; - } - - throw typeError(MSG_INVALID_SIGNER_KEY); -}; - -function checkIsSecretKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return key; - } - - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_SECRET); - } - - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_SECRET); - } - - if (key.type !== 'secret') { - throw typeError(MSG_INVALID_SECRET); - } - - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_SECRET); - } -} - -function fromBase64(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} - -function toBase64(base64url) { - base64url = base64url.toString(); - - var padding = 4 - base64url.length % 4; - if (padding !== 4) { - for (var i = 0; i < padding; ++i) { - base64url += '='; - } - } - - return base64url - .replace(/\-/g, '+') - .replace(/_/g, '/'); -} - -function typeError(template) { - var args = [].slice.call(arguments, 1); - var errMsg = util.format.bind(util, template).apply(null, args); - return new TypeError(errMsg); -} - -function bufferOrString(obj) { - return Buffer.isBuffer(obj) || typeof obj === 'string'; -} - -function normalizeInput(thing) { - if (!bufferOrString(thing)) - thing = JSON.stringify(thing); - return thing; -} - -function createHmacSigner(bits) { - return function sign(thing, secret) { - checkIsSecretKey(secret); - thing = normalizeInput(thing); - var hmac = crypto.createHmac('sha' + bits, secret); - var sig = (hmac.update(thing), hmac.digest('base64')) - return fromBase64(sig); - } -} - -function createHmacVerifier(bits) { - return function verify(thing, signature, secret) { - var computedSig = createHmacSigner(bits)(thing, secret); - return bufferEqual(Buffer.from(signature), Buffer.from(computedSig)); - } -} - -function createKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - // Even though we are specifying "RSA" here, this works with ECDSA - // keys as well. - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); - return fromBase64(sig); - } -} - -function createKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify(publicKey, signature, 'base64'); - } -} - -function createPSSKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign({ - key: privateKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, 'base64')); - return fromBase64(sig); - } -} - -function createPSSKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify({ - key: publicKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, signature, 'base64'); - } -} - -function createECDSASigner(bits) { - var inner = createKeySigner(bits); - return function sign() { - var signature = inner.apply(null, arguments); - signature = formatEcdsa.derToJose(signature, 'ES' + bits); - return signature; - }; -} - -function createECDSAVerifer(bits) { - var inner = createKeyVerifier(bits); - return function verify(thing, signature, publicKey) { - signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); - var result = inner(thing, signature, publicKey); - return result; - }; -} - -function createNoneSigner() { - return function sign() { - return ''; - } -} - -function createNoneVerifier() { - return function verify(thing, signature) { - return signature === ''; - } -} - -module.exports = function jwa(algorithm) { - var signerFactories = { - hs: createHmacSigner, - rs: createKeySigner, - ps: createPSSKeySigner, - es: createECDSASigner, - none: createNoneSigner, - } - var verifierFactories = { - hs: createHmacVerifier, - rs: createKeyVerifier, - ps: createPSSKeyVerifier, - es: createECDSAVerifer, - none: createNoneVerifier, - } - var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); - if (!match) - throw typeError(MSG_INVALID_ALGORITHM, algorithm); - var algo = (match[1] || match[3]).toLowerCase(); - var bits = match[2]; - - return { - sign: signerFactories[algo](bits), - verify: verifierFactories[algo](bits), - } -}; - - -/***/ }), -/* 197 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = isexe -isexe.sync = sync - -var fs = __webpack_require__(747) - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), options) -} - -function checkStat (stat, options) { - return stat.isFile() && checkMode(stat, options) -} - -function checkMode (stat, options) { - var mod = stat.mode - var uid = stat.uid - var gid = stat.gid - - var myUid = options.uid !== undefined ? - options.uid : process.getuid && process.getuid() - var myGid = options.gid !== undefined ? - options.gid : process.getgid && process.getgid() - - var u = parseInt('100', 8) - var g = parseInt('010', 8) - var o = parseInt('001', 8) - var ug = u | g - - var ret = (mod & o) || - (mod & g) && gid === myGid || - (mod & u) && uid === myUid || - (mod & ug) && myUid === 0 - - return ret -} - - -/***/ }), -/* 198 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.jobs = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(787); -const v3_1 = __webpack_require__(924); -const v3p1beta1_1 = __webpack_require__(30); -exports.VERSIONS = { - v2: v2_1.jobs_v2.Jobs, - v3: v3_1.jobs_v3.Jobs, - v3p1beta1: v3p1beta1_1.jobs_v3p1beta1.Jobs, -}; -function jobs(versionOrOptions) { - return googleapis_common_1.getAPI('jobs', versionOrOptions, exports.VERSIONS, this); -} -exports.jobs = jobs; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 199 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.streetviewpublish = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(500); -exports.VERSIONS = { - v1: v1_1.streetviewpublish_v1.Streetviewpublish, -}; -function streetviewpublish(versionOrOptions) { - return googleapis_common_1.getAPI('streetviewpublish', versionOrOptions, exports.VERSIONS, this); -} -exports.streetviewpublish = streetviewpublish; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 200 */, -/* 201 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudbuild_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 = __webpack_require__(927); -var cloudbuild_v1; -(function (cloudbuild_v1) { - /** - * Cloud Build API - * - * Creates and manages builds on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const cloudbuild = google.cloudbuild('v1'); - * - * @namespace cloudbuild - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudbuild - */ - class Cloudbuild { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); + }, + url: "/repos/:owner/:repo/pulls/:pull_number/comments" + }, + createCommentReply: { + deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)", + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + commit_id: { + required: true, + type: "string" + }, + in_reply_to: { + deprecated: true, + description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", + type: "integer" + }, + line: { + type: "integer" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + position: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + side: { + enum: ["LEFT", "RIGHT"], + type: "string" + }, + start_line: { + type: "integer" + }, + start_side: { + enum: ["LEFT", "RIGHT", "side"], + type: "string" } - } - cloudbuild_v1.Cloudbuild = Cloudbuild; - class Resource$Operations { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/pulls/:pull_number/comments" + }, + createFromIssue: { + deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request", + method: "POST", + params: { + base: { + required: true, + type: "string" + }, + draft: { + type: "boolean" + }, + head: { + required: true, + type: "string" + }, + issue: { + required: true, + type: "integer" + }, + maintainer_can_modify: { + type: "boolean" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudbuild.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); - } + }, + url: "/repos/:owner/:repo/pulls" + }, + createReview: { + method: "POST", + params: { + body: { + type: "string" + }, + comments: { + type: "object[]" + }, + "comments[].body": { + required: true, + type: "string" + }, + "comments[].path": { + required: true, + type: "string" + }, + "comments[].position": { + required: true, + type: "integer" + }, + commit_id: { + type: "string" + }, + event: { + enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], + type: "string" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudbuild.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); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews" + }, + createReviewCommentReply: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudbuild.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); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies" + }, + createReviewRequest: { + method: "POST", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + reviewers: { + type: "string[]" + }, + team_reviewers: { + type: "string[]" } - } - cloudbuild_v1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.builds = new Resource$Projects$Builds(this.context); - this.triggers = new Resource$Projects$Triggers(this.context); + }, + url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" + }, + deleteComment: { + method: "DELETE", + params: { + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - cloudbuild_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Builds { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/pulls/comments/:comment_id" + }, + deletePendingReview: { + method: "DELETE", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + review_id: { + required: true, + type: "integer" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'id'], - pathParams: ['id', 'projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" + }, + deleteReviewRequest: { + method: "DELETE", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + reviewers: { + type: "string[]" + }, + team_reviewers: { + type: "string[]" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" + }, + dismissReview: { + method: "PUT", + params: { + message: { + required: true, + type: "string" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + review_id: { + required: true, + type: "integer" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/builds/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'id'], - pathParams: ['id', 'projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals" + }, + get: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number" + }, + getComment: { + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - retry(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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:retry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'id'], - pathParams: ['id', 'projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/comments/:comment_id" + }, + getCommentsForReview: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + review_id: { + required: true, + type: "integer" } - } - cloudbuild_v1.Resource$Projects$Builds = Resource$Projects$Builds; - class Resource$Projects$Triggers { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments" + }, + getReview: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + review_id: { + required: true, + type: "integer" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" + }, + list: { + method: "GET", + params: { + base: { + type: "string" + }, + direction: { + enum: ["asc", "desc"], + type: "string" + }, + head: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + sort: { + enum: ["created", "updated", "popularity", "long-running"], + type: "string" + }, + state: { + enum: ["open", "closed", "all"], + type: "string" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls" + }, + listComments: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/comments" + }, + listCommentsForRepo: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + since: { + type: "string" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/comments" + }, + listCommits: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/commits" + }, + listFiles: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - run(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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/files" + }, + listReviewRequests: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - cloudbuild_v1.Resource$Projects$Triggers = Resource$Projects$Triggers; -})(cloudbuild_v1 = exports.cloudbuild_v1 || (exports.cloudbuild_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 202 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.firebasehosting_v1beta1 = 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 = __webpack_require__(927); -var firebasehosting_v1beta1; -(function (firebasehosting_v1beta1) { - /** - * Firebase Hosting API - * - * The Firebase Hosting REST API enables programmatic and customizable deployments to your Firebase-hosted sites. Use this REST API to deploy new or updated hosting configurations and content files. - * - * @example - * const {google} = require('googleapis'); - * const firebasehosting = google.firebasehosting('v1beta1'); - * - * @namespace firebasehosting - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Firebasehosting - */ - class Firebasehosting { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - this.sites = new Resource$Sites(this.context); + }, + url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" + }, + listReviews: { + method: "GET", + params: { + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - firebasehosting_v1beta1.Firebasehosting = Firebasehosting; - class Resource$Projects { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Operations(this.context); - this.sites = new Resource$Projects$Sites(this.context); + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews" + }, + merge: { + method: "PUT", + params: { + commit_message: { + type: "string" + }, + commit_title: { + type: "string" + }, + merge_method: { + enum: ["merge", "squash", "rebase"], + type: "string" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + sha: { + type: "string" } - } - firebasehosting_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/pulls/:pull_number/merge" + }, + submitReview: { + method: "POST", + params: { + body: { + type: "string" + }, + event: { + enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], + required: true, + type: "string" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + review_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events" + }, + update: { + method: "PATCH", + params: { + base: { + type: "string" + }, + body: { + type: "string" + }, + maintainer_can_modify: { + type: "boolean" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + state: { + enum: ["open", "closed"], + type: "string" + }, + title: { + type: "string" } - } - firebasehosting_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; - class Resource$Projects$Sites { - constructor(context) { - this.context = context; - this.channels = new Resource$Projects$Sites$Channels(this.context); - this.domains = new Resource$Projects$Sites$Domains(this.context); - this.releases = new Resource$Projects$Sites$Releases(this.context); - this.versions = new Resource$Projects$Sites$Versions(this.context); + }, + url: "/repos/:owner/:repo/pulls/:pull_number" + }, + updateBranch: { + headers: { + accept: "application/vnd.github.lydian-preview+json" + }, + method: "PUT", + params: { + expected_head_sha: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - getConfig(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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/update-branch" + }, + updateComment: { + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - updateConfig(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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/pulls/comments/:comment_id" + }, + updateReview: { + method: "PUT", + params: { + body: { + required: true, + type: "string" + }, + number: { + alias: "pull_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + pull_number: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + review_id: { + required: true, + type: "integer" } + }, + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" } - firebasehosting_v1beta1.Resource$Projects$Sites = Resource$Projects$Sites; - class Resource$Projects$Sites$Channels { - constructor(context) { - this.context = context; - this.releases = new Resource$Projects$Sites$Channels$Releases(this.context); - } + }, + rateLimit: { + get: { + method: "GET", + params: {}, + url: "/rate_limit" } - firebasehosting_v1beta1.Resource$Projects$Sites$Channels = Resource$Projects$Sites$Channels; - class Resource$Projects$Sites$Channels$Releases { - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + reactions: { + createForCommitComment: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + comment_id: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } - } - } - firebasehosting_v1beta1.Resource$Projects$Sites$Channels$Releases = Resource$Projects$Sites$Channels$Releases; - class Resource$Projects$Sites$Domains { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/comments/:comment_id/reactions" + }, + createForIssue: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').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); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/reactions" + }, + createForIssueComment: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + comment_id: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" + }, + createForPullRequestReviewComment: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + comment_id: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" + }, + createForTeamDiscussion: { + deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').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); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/reactions" + }, + createForTeamDiscussionComment: { + deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + comment_number: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + createForTeamDiscussionCommentInOrg: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + comment_number: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - } - firebasehosting_v1beta1.Resource$Projects$Sites$Domains = Resource$Projects$Sites$Domains; - class Resource$Projects$Sites$Releases { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" + }, + createForTeamDiscussionCommentLegacy: { + deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + comment_number: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + createForTeamDiscussionInOrg: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" + }, + createForTeamDiscussionLegacy: { + deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "POST", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - firebasehosting_v1beta1.Resource$Projects$Sites$Releases = Resource$Projects$Sites$Releases; - class Resource$Projects$Sites$Versions { - constructor(context) { - this.context = context; - this.files = new Resource$Projects$Sites$Versions$Files(this.context); + }, + url: "/teams/:team_id/discussions/:discussion_number/reactions" + }, + delete: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "DELETE", + params: { + reaction_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').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); - } + }, + url: "/reactions/:reaction_id" + }, + listForCommitComment: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/comments/:comment_id/reactions" + }, + listForIssue: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + issue_number: { + required: true, + type: "integer" + }, + number: { + alias: "issue_number", + deprecated: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').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); - } + }, + url: "/repos/:owner/:repo/issues/:issue_number/reactions" + }, + listForIssueComment: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" + }, + listForPullRequestReviewComment: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - populateFiles(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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:populateFiles').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); - } + }, + url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" + }, + listForTeamDiscussion: { + deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - firebasehosting_v1beta1.Resource$Projects$Sites$Versions = Resource$Projects$Sites$Versions; - class Resource$Projects$Sites$Versions$Files { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions/:discussion_number/reactions" + }, + listForTeamDiscussionComment: { + deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + comment_number: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/files').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); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + listForTeamDiscussionCommentInOrg: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + comment_number: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - } - firebasehosting_v1beta1.Resource$Projects$Sites$Versions$Files = Resource$Projects$Sites$Versions$Files; - class Resource$Sites { - constructor(context) { - this.context = context; - this.channels = new Resource$Sites$Channels(this.context); - this.domains = new Resource$Sites$Domains(this.context); - this.releases = new Resource$Sites$Releases(this.context); - this.versions = new Resource$Sites$Versions(this.context); + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" + }, + listForTeamDiscussionCommentLegacy: { + deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + comment_number: { + required: true, + type: "integer" + }, + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - getConfig(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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + listForTeamDiscussionInOrg: { + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - updateConfig(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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" + }, + listForTeamDiscussionLegacy: { + deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy", + headers: { + accept: "application/vnd.github.squirrel-girl-preview+json" + }, + method: "GET", + params: { + content: { + enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } + }, + url: "/teams/:team_id/discussions/:discussion_number/reactions" } - firebasehosting_v1beta1.Resource$Sites = Resource$Sites; - class Resource$Sites$Channels { - constructor(context) { - this.context = context; - this.releases = new Resource$Sites$Channels$Releases(this.context); - } - } - firebasehosting_v1beta1.Resource$Sites$Channels = Resource$Sites$Channels; - class Resource$Sites$Channels$Releases { - constructor(context) { - this.context = context; + }, + repos: { + acceptInvitation: { + method: "PATCH", + params: { + invitation_id: { + required: true, + type: "integer" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + url: "/user/repository_invitations/:invitation_id" + }, + addCollaborator: { + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + repo: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + url: "/repos/:owner/:repo/collaborators/:username" + }, + addDeployKey: { + method: "POST", + params: { + key: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + read_only: { + type: "boolean" + }, + repo: { + required: true, + type: "string" + }, + title: { + type: "string" } - } - firebasehosting_v1beta1.Resource$Sites$Channels$Releases = Resource$Sites$Channels$Releases; - class Resource$Sites$Domains { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/keys" + }, + addProtectedBranchAdminEnforcement: { + method: "POST", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" + }, + addProtectedBranchAppRestrictions: { + method: "POST", + params: { + apps: { + mapTo: "data", + required: true, + type: "string[]" + }, + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" + }, + addProtectedBranchRequiredSignatures: { + headers: { + accept: "application/vnd.github.zzzax-preview+json" + }, + method: "POST", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" + }, + addProtectedBranchRequiredStatusChecksContexts: { + method: "POST", + params: { + branch: { + required: true, + type: "string" + }, + contexts: { + mapTo: "data", + required: true, + type: "string[]" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" + }, + addProtectedBranchTeamRestrictions: { + method: "POST", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + teams: { + mapTo: "data", + required: true, + type: "string[]" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" + }, + addProtectedBranchUserRestrictions: { + method: "POST", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + users: { + mapTo: "data", + required: true, + type: "string[]" } - } - firebasehosting_v1beta1.Resource$Sites$Domains = Resource$Sites$Domains; - class Resource$Sites$Releases { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" + }, + checkCollaborator: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + url: "/repos/:owner/:repo/collaborators/:username" + }, + checkVulnerabilityAlerts: { + headers: { + accept: "application/vnd.github.dorian-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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); - } + }, + url: "/repos/:owner/:repo/vulnerability-alerts" + }, + compareCommits: { + method: "GET", + params: { + base: { + required: true, + type: "string" + }, + head: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - firebasehosting_v1beta1.Resource$Sites$Releases = Resource$Sites$Releases; - class Resource$Sites$Versions { - constructor(context) { - this.context = context; - this.files = new Resource$Sites$Versions$Files(this.context); + }, + url: "/repos/:owner/:repo/compare/:base...:head" + }, + createCommitComment: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + commit_sha: { + required: true, + type: "string" + }, + line: { + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + path: { + type: "string" + }, + position: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + sha: { + alias: "commit_sha", + deprecated: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').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); - } + }, + url: "/repos/:owner/:repo/commits/:commit_sha/comments" + }, + createDeployment: { + method: "POST", + params: { + auto_merge: { + type: "boolean" + }, + description: { + type: "string" + }, + environment: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + payload: { + type: "string" + }, + production_environment: { + type: "boolean" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + required_contexts: { + type: "string[]" + }, + task: { + type: "string" + }, + transient_environment: { + type: "boolean" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/deployments" + }, + createDeploymentStatus: { + method: "POST", + params: { + auto_inactive: { + type: "boolean" + }, + deployment_id: { + required: true, + type: "integer" + }, + description: { + type: "string" + }, + environment: { + enum: ["production", "staging", "qa"], + type: "string" + }, + environment_url: { + type: "string" + }, + log_url: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + state: { + enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"], + required: true, + type: "string" + }, + target_url: { + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').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); - } + }, + url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" + }, + createDispatchEvent: { + method: "POST", + params: { + client_payload: { + type: "object" + }, + event_type: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + }, + url: "/repos/:owner/:repo/dispatches" + }, + createFile: { + deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", + method: "PUT", + params: { + author: { + type: "object" + }, + "author.email": { + required: true, + type: "string" + }, + "author.name": { + required: true, + type: "string" + }, + branch: { + type: "string" + }, + committer: { + type: "object" + }, + "committer.email": { + required: true, + type: "string" + }, + "committer.name": { + required: true, + type: "string" + }, + content: { + required: true, + type: "string" + }, + message: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + type: "string" } - populateFiles(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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:populateFiles').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); - } + }, + url: "/repos/:owner/:repo/contents/:path" + }, + createForAuthenticatedUser: { + method: "POST", + params: { + allow_merge_commit: { + type: "boolean" + }, + allow_rebase_merge: { + type: "boolean" + }, + allow_squash_merge: { + type: "boolean" + }, + auto_init: { + type: "boolean" + }, + delete_branch_on_merge: { + type: "boolean" + }, + description: { + type: "string" + }, + gitignore_template: { + type: "string" + }, + has_issues: { + type: "boolean" + }, + has_projects: { + type: "boolean" + }, + has_wiki: { + type: "boolean" + }, + homepage: { + type: "string" + }, + is_template: { + type: "boolean" + }, + license_template: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + private: { + type: "boolean" + }, + team_id: { + type: "integer" + }, + visibility: { + enum: ["public", "private", "visibility", "internal"], + type: "string" } - } - firebasehosting_v1beta1.Resource$Sites$Versions = Resource$Sites$Versions; - class Resource$Sites$Versions$Files { - constructor(context) { - this.context = context; + }, + url: "/user/repos" + }, + createFork: { + method: "POST", + params: { + organization: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://firebasehosting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/files').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); - } + }, + url: "/repos/:owner/:repo/forks" + }, + createHook: { + method: "POST", + params: { + active: { + type: "boolean" + }, + config: { + required: true, + type: "object" + }, + "config.content_type": { + type: "string" + }, + "config.insecure_ssl": { + type: "string" + }, + "config.secret": { + type: "string" + }, + "config.url": { + required: true, + type: "string" + }, + events: { + type: "string[]" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - firebasehosting_v1beta1.Resource$Sites$Versions$Files = Resource$Sites$Versions$Files; -})(firebasehosting_v1beta1 = exports.firebasehosting_v1beta1 || (exports.firebasehosting_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 203 */, -/* 204 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var bufferEqual = __webpack_require__(79); -var Buffer = __webpack_require__(149).Buffer; -var crypto = __webpack_require__(417); -var formatEcdsa = __webpack_require__(815); -var util = __webpack_require__(669); - -var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' -var MSG_INVALID_SECRET = 'secret must be a string or buffer'; -var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; -var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; - -var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; -if (supportsKeyObjects) { - MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; - MSG_INVALID_SECRET += 'or a KeyObject'; -} - -function checkIsPublicKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return; - } - - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key.type !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key.asymmetricKeyType !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } -}; - -function checkIsPrivateKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return; - } - - if (typeof key === 'object') { - return; - } - - throw typeError(MSG_INVALID_SIGNER_KEY); -}; - -function checkIsSecretKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - - if (typeof key === 'string') { - return key; - } - - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_SECRET); - } - - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_SECRET); - } - - if (key.type !== 'secret') { - throw typeError(MSG_INVALID_SECRET); - } - - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_SECRET); - } -} - -function fromBase64(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} - -function toBase64(base64url) { - base64url = base64url.toString(); - - var padding = 4 - base64url.length % 4; - if (padding !== 4) { - for (var i = 0; i < padding; ++i) { - base64url += '='; - } - } - - return base64url - .replace(/\-/g, '+') - .replace(/_/g, '/'); -} - -function typeError(template) { - var args = [].slice.call(arguments, 1); - var errMsg = util.format.bind(util, template).apply(null, args); - return new TypeError(errMsg); -} - -function bufferOrString(obj) { - return Buffer.isBuffer(obj) || typeof obj === 'string'; -} - -function normalizeInput(thing) { - if (!bufferOrString(thing)) - thing = JSON.stringify(thing); - return thing; -} - -function createHmacSigner(bits) { - return function sign(thing, secret) { - checkIsSecretKey(secret); - thing = normalizeInput(thing); - var hmac = crypto.createHmac('sha' + bits, secret); - var sig = (hmac.update(thing), hmac.digest('base64')) - return fromBase64(sig); - } -} - -function createHmacVerifier(bits) { - return function verify(thing, signature, secret) { - var computedSig = createHmacSigner(bits)(thing, secret); - return bufferEqual(Buffer.from(signature), Buffer.from(computedSig)); - } -} - -function createKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - // Even though we are specifying "RSA" here, this works with ECDSA - // keys as well. - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); - return fromBase64(sig); - } -} - -function createKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify(publicKey, signature, 'base64'); - } -} - -function createPSSKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign({ - key: privateKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, 'base64')); - return fromBase64(sig); - } -} - -function createPSSKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify({ - key: publicKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, signature, 'base64'); - } -} - -function createECDSASigner(bits) { - var inner = createKeySigner(bits); - return function sign() { - var signature = inner.apply(null, arguments); - signature = formatEcdsa.derToJose(signature, 'ES' + bits); - return signature; - }; -} - -function createECDSAVerifer(bits) { - var inner = createKeyVerifier(bits); - return function verify(thing, signature, publicKey) { - signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); - var result = inner(thing, signature, publicKey); - return result; - }; -} - -function createNoneSigner() { - return function sign() { - return ''; - } -} - -function createNoneVerifier() { - return function verify(thing, signature) { - return signature === ''; - } -} - -module.exports = function jwa(algorithm) { - var signerFactories = { - hs: createHmacSigner, - rs: createKeySigner, - ps: createPSSKeySigner, - es: createECDSASigner, - none: createNoneSigner, - } - var verifierFactories = { - hs: createHmacVerifier, - rs: createKeyVerifier, - ps: createPSSKeyVerifier, - es: createECDSAVerifer, - none: createNoneVerifier, - } - var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); - if (!match) - throw typeError(MSG_INVALID_ALGORITHM, algorithm); - var algo = (match[1] || match[3]).toLowerCase(); - var bits = match[2]; - - return { - sign: signerFactories[algo](bits), - verify: verifierFactories[algo](bits), - } -}; - - -/***/ }), -/* 205 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _validate = _interopRequireDefault(__webpack_require__(89)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ - - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; // Parse ........-####-....-....-............ - - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ - - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ - - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} - -var _default = parse; -exports.default = _default; - -/***/ }), -/* 206 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adsense_v1_4 = 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 = __webpack_require__(927); -var adsense_v1_4; -(function (adsense_v1_4) { - /** - * AdSense Management API - * - * Accesses AdSense publishers' inventory and generates performance reports. - * - * @example - * const {google} = require('googleapis'); - * const adsense = google.adsense('v1.4'); - * - * @namespace adsense - * @type {Function} - * @version v1.4 - * @variation v1.4 - * @param {object=} options Options for Adsense - */ - class Adsense { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - this.adclients = new Resource$Adclients(this.context); - this.adunits = new Resource$Adunits(this.context); - this.alerts = new Resource$Alerts(this.context); - this.customchannels = new Resource$Customchannels(this.context); - this.metadata = new Resource$Metadata(this.context); - this.payments = new Resource$Payments(this.context); - this.reports = new Resource$Reports(this.context); - this.savedadstyles = new Resource$Savedadstyles(this.context); - this.urlchannels = new Resource$Urlchannels(this.context); + }, + url: "/repos/:owner/:repo/hooks" + }, + createInOrg: { + method: "POST", + params: { + allow_merge_commit: { + type: "boolean" + }, + allow_rebase_merge: { + type: "boolean" + }, + allow_squash_merge: { + type: "boolean" + }, + auto_init: { + type: "boolean" + }, + delete_branch_on_merge: { + type: "boolean" + }, + description: { + type: "string" + }, + gitignore_template: { + type: "string" + }, + has_issues: { + type: "boolean" + }, + has_projects: { + type: "boolean" + }, + has_wiki: { + type: "boolean" + }, + homepage: { + type: "string" + }, + is_template: { + type: "boolean" + }, + license_template: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + org: { + required: true, + type: "string" + }, + private: { + type: "boolean" + }, + team_id: { + type: "integer" + }, + visibility: { + enum: ["public", "private", "visibility", "internal"], + type: "string" } - } - adsense_v1_4.Adsense = Adsense; - class Resource$Accounts { - constructor(context) { - this.context = context; - this.adclients = new Resource$Accounts$Adclients(this.context); - this.adunits = new Resource$Accounts$Adunits(this.context); - this.alerts = new Resource$Accounts$Alerts(this.context); - this.customchannels = new Resource$Accounts$Customchannels(this.context); - this.payments = new Resource$Accounts$Payments(this.context); - this.reports = new Resource$Accounts$Reports(this.context); - this.savedadstyles = new Resource$Accounts$Savedadstyles(this.context); - this.urlchannels = new Resource$Accounts$Urlchannels(this.context); + }, + url: "/orgs/:org/repos" + }, + createOrUpdateFile: { + method: "PUT", + params: { + author: { + type: "object" + }, + "author.email": { + required: true, + type: "string" + }, + "author.name": { + required: true, + type: "string" + }, + branch: { + type: "string" + }, + committer: { + type: "object" + }, + "committer.email": { + required: true, + type: "string" + }, + "committer.name": { + required: true, + type: "string" + }, + content: { + required: true, + type: "string" + }, + message: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/contents/:path" + }, + createRelease: { + method: "POST", + params: { + body: { + type: "string" + }, + draft: { + type: "boolean" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + prerelease: { + type: "boolean" + }, + repo: { + required: true, + type: "string" + }, + tag_name: { + required: true, + type: "string" + }, + target_commitish: { + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts').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); - } + }, + url: "/repos/:owner/:repo/releases" + }, + createStatus: { + method: "POST", + params: { + context: { + type: "string" + }, + description: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + required: true, + type: "string" + }, + state: { + enum: ["error", "failure", "pending", "success"], + required: true, + type: "string" + }, + target_url: { + type: "string" } - } - adsense_v1_4.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Adclients { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/statuses/:sha" + }, + createUsingTemplate: { + headers: { + accept: "application/vnd.github.baptiste-preview+json" + }, + method: "POST", + params: { + description: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + owner: { + type: "string" + }, + private: { + type: "boolean" + }, + template_owner: { + required: true, + type: "string" + }, + template_repo: { + required: true, + type: "string" } - getAdCode(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:template_owner/:template_repo/generate" + }, + declineInvitation: { + method: "DELETE", + params: { + invitation_id: { + required: true, + type: "integer" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/repository_invitations/:invitation_id" + }, + delete: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Adclients = Resource$Accounts$Adclients; - class Resource$Accounts$Adunits { - constructor(context) { - this.context = context; - this.customchannels = new Resource$Accounts$Adunits$Customchannels(this.context); + }, + url: "/repos/:owner/:repo" + }, + deleteCommitComment: { + method: "DELETE", + params: { + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/comments/:comment_id" + }, + deleteDownload: { + method: "DELETE", + params: { + download_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - getAdCode(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/downloads/:download_id" + }, + deleteFile: { + method: "DELETE", + params: { + author: { + type: "object" + }, + "author.email": { + type: "string" + }, + "author.name": { + type: "string" + }, + branch: { + type: "string" + }, + committer: { + type: "object" + }, + "committer.email": { + type: "string" + }, + "committer.name": { + type: "string" + }, + message: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/contents/:path" + }, + deleteHook: { + method: "DELETE", + params: { + hook_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Adunits = Resource$Accounts$Adunits; - class Resource$Accounts$Adunits$Customchannels { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/hooks/:hook_id" + }, + deleteInvitation: { + method: "DELETE", + params: { + invitation_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/invitations/:invitation_id" + }, + deleteRelease: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + release_id: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Adunits$Customchannels = Resource$Accounts$Adunits$Customchannels; - class Resource$Accounts$Alerts { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/releases/:release_id" + }, + deleteReleaseAsset: { + method: "DELETE", + params: { + asset_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['accountId', 'alertId'], - pathParams: ['accountId', 'alertId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/releases/assets/:asset_id" + }, + disableAutomatedSecurityFixes: { + headers: { + accept: "application/vnd.github.london-preview+json" + }, + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adsense_v1_4.Resource$Accounts$Alerts = Resource$Accounts$Alerts; - class Resource$Accounts$Customchannels { - constructor(context) { - this.context = context; - this.adunits = new Resource$Accounts$Customchannels$Adunits(this.context); + }, + url: "/repos/:owner/:repo/automated-security-fixes" + }, + disablePagesSite: { + headers: { + accept: "application/vnd.github.switcheroo-preview+json" + }, + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'customChannelId'], - pathParams: ['accountId', 'adClientId', 'customChannelId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pages" + }, + disableVulnerabilityAlerts: { + headers: { + accept: "application/vnd.github.dorian-preview+json" + }, + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/vulnerability-alerts" + }, + enableAutomatedSecurityFixes: { + headers: { + accept: "application/vnd.github.london-preview+json" + }, + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Customchannels = Resource$Accounts$Customchannels; - class Resource$Accounts$Customchannels$Adunits { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/automated-security-fixes" + }, + enablePagesSite: { + headers: { + accept: "application/vnd.github.switcheroo-preview+json" + }, + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + source: { + type: "object" + }, + "source.branch": { + enum: ["master", "gh-pages"], + type: "string" + }, + "source.path": { + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'customChannelId'], - pathParams: ['accountId', 'adClientId', 'customChannelId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pages" + }, + enableVulnerabilityAlerts: { + headers: { + accept: "application/vnd.github.dorian-preview+json" + }, + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Customchannels$Adunits = Resource$Accounts$Customchannels$Adunits; - class Resource$Accounts$Payments { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/vulnerability-alerts" + }, + get: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/payments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo" + }, + getAppsWithAccessToProtectedBranch: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Payments = Resource$Accounts$Payments; - class Resource$Accounts$Reports { - constructor(context) { - this.context = context; - this.saved = new Resource$Accounts$Reports$Saved(this.context); + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" + }, + getArchiveLink: { + method: "GET", + params: { + archive_format: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - generate(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'startDate', 'endDate'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/:archive_format/:ref" + }, + getBranch: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Reports = Resource$Accounts$Reports; - class Resource$Accounts$Reports$Saved { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/branches/:branch" + }, + getBranchProtection: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - generate(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'savedReportId'], - pathParams: ['accountId', 'savedReportId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection" + }, + getClones: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + per: { + enum: ["day", "week"], + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/reports/saved').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/traffic/clones" + }, + getCodeFrequencyStats: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Reports$Saved = Resource$Accounts$Reports$Saved; - class Resource$Accounts$Savedadstyles { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/stats/code_frequency" + }, + getCollaboratorPermissionLevel: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'savedAdStyleId'], - pathParams: ['accountId', 'savedAdStyleId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/collaborators/:username/permission" + }, + getCombinedStatusForRef: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/savedadstyles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/commits/:ref/status" + }, + getCommit: { + method: "GET", + params: { + commit_sha: { + alias: "ref", + deprecated: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + alias: "ref", + deprecated: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Savedadstyles = Resource$Accounts$Savedadstyles; - class Resource$Accounts$Urlchannels { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/commits/:ref" + }, + getCommitActivityStats: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/stats/commit_activity" + }, + getCommitComment: { + method: "GET", + params: { + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Accounts$Urlchannels = Resource$Accounts$Urlchannels; - class Resource$Adclients { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/comments/:comment_id" + }, + getCommitRefSha: { + deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit", + headers: { + accept: "application/vnd.github.v3.sha" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients').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); - } + }, + url: "/repos/:owner/:repo/commits/:ref" + }, + getContents: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + ref: { + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Adclients = Resource$Adclients; - class Resource$Adunits { - constructor(context) { - this.context = context; - this.customchannels = new Resource$Adunits$Customchannels(this.context); + }, + url: "/repos/:owner/:repo/contents/:path" + }, + getContributorsStats: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId', 'adUnitId'], - pathParams: ['adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/stats/contributors" + }, + getDeployKey: { + method: "GET", + params: { + key_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - getAdCode(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId', 'adUnitId'], - pathParams: ['adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/keys/:key_id" + }, + getDeployment: { + method: "GET", + params: { + deployment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/deployments/:deployment_id" + }, + getDeploymentStatus: { + method: "GET", + params: { + deployment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + status_id: { + required: true, + type: "integer" } - } - adsense_v1_4.Resource$Adunits = Resource$Adunits; - class Resource$Adunits$Customchannels { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id" + }, + getDownload: { + method: "GET", + params: { + download_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId', 'adUnitId'], - pathParams: ['adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/downloads/:download_id" + }, + getHook: { + method: "GET", + params: { + hook_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Adunits$Customchannels = Resource$Adunits$Customchannels; - class Resource$Alerts { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/hooks/:hook_id" + }, + getLatestPagesBuild: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pages/builds/latest" + }, + getLatestRelease: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/alerts').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); - } + }, + url: "/repos/:owner/:repo/releases/latest" + }, + getPages: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Alerts = Resource$Alerts; - class Resource$Customchannels { - constructor(context) { - this.context = context; - this.adunits = new Resource$Customchannels$Adunits(this.context); + }, + url: "/repos/:owner/:repo/pages" + }, + getPagesBuild: { + method: "GET", + params: { + build_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pages/builds/:build_id" + }, + getParticipationStats: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/stats/participation" + }, + getProtectedBranchAdminEnforcement: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Customchannels = Resource$Customchannels; - class Resource$Customchannels$Adunits { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" + }, + getProtectedBranchPullRequestReviewEnforcement: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" + }, + getProtectedBranchRequiredSignatures: { + headers: { + accept: "application/vnd.github.zzzax-preview+json" + }, + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Customchannels$Adunits = Resource$Customchannels$Adunits; - class Resource$Metadata { - constructor(context) { - this.context = context; - this.dimensions = new Resource$Metadata$Dimensions(this.context); - this.metrics = new Resource$Metadata$Metrics(this.context); + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" + }, + getProtectedBranchRequiredStatusChecks: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Metadata = Resource$Metadata; - class Resource$Metadata$Dimensions { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" + }, + getProtectedBranchRestrictions: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/metadata/dimensions').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" + }, + getPunchCardStats: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Metadata$Dimensions = Resource$Metadata$Dimensions; - class Resource$Metadata$Metrics { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/stats/punch_card" + }, + getReadme: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + ref: { + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/metadata/metrics').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); - } + }, + url: "/repos/:owner/:repo/readme" + }, + getRelease: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + release_id: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Metadata$Metrics = Resource$Metadata$Metrics; - class Resource$Payments { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/releases/:release_id" + }, + getReleaseAsset: { + method: "GET", + params: { + asset_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/payments').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); - } + }, + url: "/repos/:owner/:repo/releases/assets/:asset_id" + }, + getReleaseByTag: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + tag: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Payments = Resource$Payments; - class Resource$Reports { - constructor(context) { - this.context = context; - this.saved = new Resource$Reports$Saved(this.context); + }, + url: "/repos/:owner/:repo/releases/tags/:tag" + }, + getTeamsWithAccessToProtectedBranch: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - generate(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['startDate', 'endDate'], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" + }, + getTopPaths: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Reports = Resource$Reports; - class Resource$Reports$Saved { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/traffic/popular/paths" + }, + getTopReferrers: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - generate(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['savedReportId'], - pathParams: ['savedReportId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/traffic/popular/referrers" + }, + getUsersWithAccessToProtectedBranch: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/reports/saved').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" + }, + getViews: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + per: { + enum: ["day", "week"], + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Reports$Saved = Resource$Reports$Saved; - class Resource$Savedadstyles { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/traffic/views" + }, + list: { + method: "GET", + params: { + affiliation: { + type: "string" + }, + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + sort: { + enum: ["created", "updated", "pushed", "full_name"], + type: "string" + }, + type: { + enum: ["all", "owner", "public", "private", "member"], + type: "string" + }, + visibility: { + enum: ["all", "public", "private"], + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['savedAdStyleId'], - pathParams: ['savedAdStyleId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/user/repos" + }, + listAppsWithAccessToProtectedBranch: { + deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)", + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/savedadstyles').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" + }, + listAssetsForRelease: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + release_id: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Savedadstyles = Resource$Savedadstyles; - class Resource$Urlchannels { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/releases/:release_id/assets" + }, + listBranches: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + protected: { + type: "boolean" + }, + repo: { + required: true, + type: "string" } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches" + }, + listBranchesForHeadCommit: { + headers: { + accept: "application/vnd.github.groot-preview+json" + }, + method: "GET", + params: { + commit_sha: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - adsense_v1_4.Resource$Urlchannels = Resource$Urlchannels; -})(adsense_v1_4 = exports.adsense_v1_4 || (exports.adsense_v1_4 = {})); -//# sourceMappingURL=v1.4.js.map - -/***/ }), -/* 207 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -// Copyright 2014 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 }); -class LoginTicket { - /** - * Create a simple class to extract user ID from an ID Token - * - * @param {string} env Envelope of the jwt - * @param {TokenPayload} pay Payload of the jwt - * @constructor - */ - constructor(env, pay) { - this.envelope = env; - this.payload = pay; - } - getEnvelope() { - return this.envelope; - } - getPayload() { - return this.payload; - } - /** - * Create a simple class to extract user ID from an ID Token - * - * @return The user ID - */ - getUserId() { - const payload = this.getPayload(); - if (payload && payload.sub) { - return payload.sub; + }, + url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head" + }, + listCollaborators: { + method: "GET", + params: { + affiliation: { + enum: ["outside", "direct", "all"], + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - return null; - } - /** - * Returns attributes from the login ticket. This can contain - * various information about the user session. - * - * @return The envelope and payload - */ - getAttributes() { - return { envelope: this.getEnvelope(), payload: this.getPayload() }; - } -} -exports.LoginTicket = LoginTicket; -//# sourceMappingURL=loginticket.js.map - -/***/ }), -/* 208 */ -/***/ (function(module) { - -// Copyright 2020 The Oppia Authors. All Rights Reserved. -// -// 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. - -const openEvent = 'opened'; -// Github action sends a different type of event. -const openEventGithubActions = 'pull_request_target_opened'; -const reopenEventGithubActions = 'pull_request_target_reopened'; -const editEventGithubActions = 'pull_request_target_edited'; -const reopenEvent = 'pull_request_reopened'; -const PRUnlabelEvent = 'pull_request_unlabeled'; -const PRLabelEvent = 'pull_request_labeled'; -const synchronizeEvent = 'synchronize'; -const closeEvent = 'closed'; -const editEvent = 'pull_request_edited'; -const issuesLabelEvent = 'issues_labeled'; -const issuesAssignedEvent = 'issues_assigned'; -const pushEvent = 'push'; -const pullRequestReviewEvent = 'pr_review'; -const checkCompletedEvent = 'check_completed'; -const periodicCheckEvent = 'periodic-check-event'; -const issueCommentCreatedEvent = 'comment_created'; - -const periodicCheck = 'periodic-check'; -const claCheck = 'cla-check'; -const claCheckGithubAction = 'cla-check-github-action'; -const changelogCheck = 'changelog-check'; -const datastoreLabelCheck = 'datastore-label-check'; -const prLabelCheck = 'pr-label-check'; -const prTemplateCheck = 'pr-template-check'; -// This check is required in re-open events as well to -// prevent user from reopening the PR. -const branchCheck = 'branch-check'; -const wipCheck = 'wip-check'; -const assigneeCheck = 'assignee-check'; -const mergeConflictCheck = 'merge-conflict-check'; -const allMergeConflictCheck = 'all-merge-conflict-check'; -const jobCheck = 'job-check'; -const cronJobCheck = 'cron-job-check'; -const modelCheck = 'model-check'; -const issuesLabelCheck = 'issues-labeled-check'; -const issuesAssignedCheck = 'issues-assigned-check'; -const forcePushCheck = 'force-push-check'; -const pullRequestReviewCheck = 'pr-review-check'; -const codeOwnerCheck = 'code-owner-check'; -const ciFailureCheck = 'ci-failure-check'; -const updateWithDevelopCheck = 'update-with-develop-check'; -const respondToReviewCheck = 'respond-to-review-check'; -const staleBuildLabelCheck = 'stale-build-label-check'; -const dontMergeLabelCheck = 'dont-merge-label-check'; - -const checksWhitelist = { - // eslint-disable-next-line quote-props - 'oppia-android': { - [openEvent]: [claCheck], - [reopenEvent]: [], - [openEventGithubActions]: [claCheckGithubAction], - [reopenEventGithubActions]: [claCheckGithubAction], - [PRLabelEvent]: [], - [synchronizeEvent]: [], - [closeEvent]: [], - [editEvent]: [], - [issuesLabelEvent]: [], - [pullRequestReviewEvent]: [pullRequestReviewCheck], - [issueCommentCreatedEvent]: [respondToReviewCheck], - }, - // eslint-disable-next-line quote-props - 'oppia': { - [openEvent]: [ - claCheck, - changelogCheck, - codeOwnerCheck, - branchCheck, - jobCheck, - cronJobCheck, - modelCheck, - prTemplateCheck - ], - [openEventGithubActions]: [claCheckGithubAction, wipCheck], - [reopenEventGithubActions]: [claCheckGithubAction, wipCheck], - [editEventGithubActions]: [wipCheck], - [reopenEvent]: [ - changelogCheck, - branchCheck, - jobCheck, - cronJobCheck, - modelCheck, - prTemplateCheck - ], - [PRLabelEvent]: [assigneeCheck, prLabelCheck], - [synchronizeEvent]: [ - mergeConflictCheck, - jobCheck, - cronJobCheck, - modelCheck, - codeOwnerCheck - ], - [closeEvent]: [allMergeConflictCheck, updateWithDevelopCheck], - [editEvent]: [wipCheck], - [issuesLabelEvent]: [issuesLabelCheck], - [issuesAssignedEvent]: [issuesAssignedCheck], - [PRUnlabelEvent]: [datastoreLabelCheck, dontMergeLabelCheck, - staleBuildLabelCheck], - [pushEvent]: [forcePushCheck], - [periodicCheckEvent]: [periodicCheck], - [pullRequestReviewEvent]: [pullRequestReviewCheck], - [checkCompletedEvent]: [ciFailureCheck], - [issueCommentCreatedEvent]: [respondToReviewCheck] - }, - // eslint-disable-next-line quote-props - 'oppiabot': { - [openEvent]: [claCheck], - [reopenEvent]: [], - [openEventGithubActions]: [claCheckGithubAction], - [reopenEventGithubActions]: [claCheckGithubAction], - [synchronizeEvent]: [mergeConflictCheck], - [closeEvent]: [allMergeConflictCheck], - [editEvent]: [], - [issuesLabelEvent]: [], - [issuesAssignedEvent]: [], - [pushEvent]: [], - [pullRequestReviewEvent]: [pullRequestReviewCheck], - [issueCommentCreatedEvent]: [respondToReviewCheck], - }, -}; - -const blacklistedAuthors = ['translatewiki']; - -module.exports.openEvent = openEvent; -module.exports.reopenEvent = reopenEvent; -module.exports.PRUnlabelEvent = PRUnlabelEvent; -module.exports.PRLabelEvent = PRLabelEvent; -module.exports.synchronizeEvent = synchronizeEvent; -module.exports.closeEvent = closeEvent; -module.exports.editEvent = editEvent; -module.exports.issuesLabelEvent = issuesLabelEvent; -module.exports.issuesAssignedEvent = issuesAssignedEvent; -module.exports.pushEvent = pushEvent; -module.exports.pullRequestReviewEvent = pullRequestReviewEvent; -module.exports.checkCompletedEvent = checkCompletedEvent; -module.exports.periodicCheckEvent = periodicCheckEvent; -module.exports.issueCommentCreatedEvent = issueCommentCreatedEvent; - -module.exports.periodicCheck = periodicCheck; -module.exports.claCheck = claCheck; -module.exports.claCheckGithubAction = claCheckGithubAction; -module.exports.changelogCheck = changelogCheck; -module.exports.branchCheck = branchCheck; -module.exports.wipCheck = wipCheck; -module.exports.assigneeCheck = assigneeCheck; -module.exports.mergeConflictCheck = mergeConflictCheck; -module.exports.allMergeConflictCheck = allMergeConflictCheck; -module.exports.jobCheck = jobCheck; -module.exports.cronJobCheck = cronJobCheck; -module.exports.modelCheck = modelCheck; -module.exports.issuesLabelCheck = issuesLabelCheck; -module.exports.issuesAssignedCheck = issuesAssignedCheck; -module.exports.datastoreLabelCheck = datastoreLabelCheck; -module.exports.prLabelCheck = prLabelCheck; -module.exports.prTemplateCheck = prTemplateCheck; -module.exports.forcePushCheck = forcePushCheck; -module.exports.pullRequestReviewCheck = pullRequestReviewCheck; -module.exports.codeOwnerCheck = codeOwnerCheck; -module.exports.ciFailureCheck = ciFailureCheck; -module.exports.updateWithDevelopCheck = updateWithDevelopCheck; -module.exports.respondToReviewCheck = respondToReviewCheck; -module.exports.staleBuildLabelCheck = staleBuildLabelCheck; -module.exports.dontMergeLabelCheck = dontMergeLabelCheck; - -module.exports.getBlacklistedAuthors = function() { - return blacklistedAuthors; -}; - -module.exports.getChecksWhitelist = function() { - return checksWhitelist; -}; - - -/***/ }), -/* 209 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.prod_tt_sasportal = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1alpha1_1 = __webpack_require__(467); -exports.VERSIONS = { - v1alpha1: v1alpha1_1.prod_tt_sasportal_v1alpha1.Prod_tt_sasportal, -}; -function prod_tt_sasportal(versionOrOptions) { - return googleapis_common_1.getAPI('prod_tt_sasportal', versionOrOptions, exports.VERSIONS, this); -} -exports.prod_tt_sasportal = prod_tt_sasportal; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 210 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudiot_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 = __webpack_require__(927); -var cloudiot_v1; -(function (cloudiot_v1) { - /** - * Cloud IoT API - * - * Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const cloudiot = google.cloudiot('v1'); - * - * @namespace cloudiot - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudiot - */ - class Cloudiot { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); + }, + url: "/repos/:owner/:repo/collaborators" + }, + listCommentsForCommit: { + method: "GET", + params: { + commit_sha: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + ref: { + alias: "commit_sha", + deprecated: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - cloudiot_v1.Cloudiot = Cloudiot; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + }, + url: "/repos/:owner/:repo/commits/:commit_sha/comments" + }, + listCommitComments: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - cloudiot_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.registries = new Resource$Projects$Locations$Registries(this.context); + }, + url: "/repos/:owner/:repo/comments" + }, + listCommits: { + method: "GET", + params: { + author: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + path: { + type: "string" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + sha: { + type: "string" + }, + since: { + type: "string" + }, + until: { + type: "string" } - } - cloudiot_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Registries { - constructor(context) { - this.context = context; - this.devices = new Resource$Projects$Locations$Registries$Devices(this.context); - this.groups = new Resource$Projects$Locations$Registries$Groups(this.context); + }, + url: "/repos/:owner/:repo/commits" + }, + listContributors: { + method: "GET", + params: { + anon: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - bindDeviceToGateway(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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:bindDeviceToGateway').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); - } + }, + url: "/repos/:owner/:repo/contributors" + }, + listDeployKeys: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registries').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); - } + }, + url: "/repos/:owner/:repo/keys" + }, + listDeploymentStatuses: { + method: "GET", + params: { + deployment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" + }, + listDeployments: { + method: "GET", + params: { + environment: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + ref: { + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + type: "string" + }, + task: { + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/deployments" + }, + listDownloads: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').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); - } + }, + url: "/repos/:owner/:repo/downloads" + }, + listForOrg: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + sort: { + enum: ["created", "updated", "pushed", "full_name"], + type: "string" + }, + type: { + enum: ["all", "public", "private", "forks", "sources", "member", "internal"], + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registries').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); - } + }, + url: "/orgs/:org/repos" + }, + listForUser: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + sort: { + enum: ["created", "updated", "pushed", "full_name"], + type: "string" + }, + type: { + enum: ["all", "owner", "member"], + type: "string" + }, + username: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/users/:username/repos" + }, + listForks: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + sort: { + enum: ["newest", "oldest", "stargazers"], + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/forks" + }, + listHooks: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/hooks" + }, + listInvitations: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - unbindDeviceFromGateway(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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:unbindDeviceFromGateway').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); - } + }, + url: "/repos/:owner/:repo/invitations" + }, + listInvitationsForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - } - cloudiot_v1.Resource$Projects$Locations$Registries = Resource$Projects$Locations$Registries; - class Resource$Projects$Locations$Registries$Devices { - constructor(context) { - this.context = context; - this.configVersions = new Resource$Projects$Locations$Registries$Devices$Configversions(this.context); - this.states = new Resource$Projects$Locations$Registries$Devices$States(this.context); + }, + url: "/user/repository_invitations" + }, + listLanguages: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').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); - } + }, + url: "/repos/:owner/:repo/languages" + }, + listPagesBuilds: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/pages/builds" + }, + listProtectedBranchRequiredStatusChecksContexts: { + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" + }, + listProtectedBranchTeamRestrictions: { + deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)", + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" + }, + listProtectedBranchUserRestrictions: { + deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)", + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - modifyCloudToDeviceConfig(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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" + }, + listPublic: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "integer" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/repositories" + }, + listPullRequestsAssociatedWithCommit: { + headers: { + accept: "application/vnd.github.groot-preview+json" + }, + method: "GET", + params: { + commit_sha: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - sendCommandToDevice(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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:sendCommandToDevice').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); - } + }, + url: "/repos/:owner/:repo/commits/:commit_sha/pulls" + }, + listReleases: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - cloudiot_v1.Resource$Projects$Locations$Registries$Devices = Resource$Projects$Locations$Registries$Devices; - class Resource$Projects$Locations$Registries$Devices$Configversions { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/releases" + }, + listStatusesForRef: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + ref: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}/configVersions').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); - } + }, + url: "/repos/:owner/:repo/commits/:ref/statuses" + }, + listTags: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - } - cloudiot_v1.Resource$Projects$Locations$Registries$Devices$Configversions = Resource$Projects$Locations$Registries$Devices$Configversions; - class Resource$Projects$Locations$Registries$Devices$States { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/tags" + }, + listTeams: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}/states').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); - } + }, + url: "/repos/:owner/:repo/teams" + }, + listTeamsWithAccessToProtectedBranch: { + deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)", + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - cloudiot_v1.Resource$Projects$Locations$Registries$Devices$States = Resource$Projects$Locations$Registries$Devices$States; - class Resource$Projects$Locations$Registries$Groups { - constructor(context) { - this.context = context; - this.devices = new Resource$Projects$Locations$Registries$Groups$Devices(this.context); + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" + }, + listTopics: { + headers: { + accept: "application/vnd.github.mercy-preview+json" + }, + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').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); - } + }, + url: "/repos/:owner/:repo/topics" + }, + listUsersWithAccessToProtectedBranch: { + deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)", + method: "GET", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" + }, + merge: { + method: "POST", + params: { + base: { + required: true, + type: "string" + }, + commit_message: { + type: "string" + }, + head: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.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); - } + }, + url: "/repos/:owner/:repo/merges" + }, + pingHook: { + method: "POST", + params: { + hook_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - cloudiot_v1.Resource$Projects$Locations$Registries$Groups = Resource$Projects$Locations$Registries$Groups; - class Resource$Projects$Locations$Registries$Groups$Devices { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/hooks/:hook_id/pings" + }, + removeBranchProtection: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection" + }, + removeCollaborator: { + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - cloudiot_v1.Resource$Projects$Locations$Registries$Groups$Devices = Resource$Projects$Locations$Registries$Groups$Devices; -})(cloudiot_v1 = exports.cloudiot_v1 || (exports.cloudiot_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 211 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var osName = _interopDefault(__webpack_require__(2)); - -function getUserAgent() { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return "Windows "; - } - - return ""; - } -} - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 212 */, -/* 213 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module*/ -var Buffer = __webpack_require__(149).Buffer; -var DataStream = __webpack_require__(50); -var jwa = __webpack_require__(196); -var Stream = __webpack_require__(413); -var toString = __webpack_require__(594); -var util = __webpack_require__(669); - -function base64url(string, encoding) { - return Buffer - .from(string, encoding) - .toString('base64') - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} - -function jwsSecuredInput(header, payload, encoding) { - encoding = encoding || 'utf8'; - var encodedHeader = base64url(toString(header), 'binary'); - var encodedPayload = base64url(toString(payload), encoding); - return util.format('%s.%s', encodedHeader, encodedPayload); -} - -function jwsSign(opts) { - var header = opts.header; - var payload = opts.payload; - var secretOrKey = opts.secret || opts.privateKey; - var encoding = opts.encoding; - var algo = jwa(header.alg); - var securedInput = jwsSecuredInput(header, payload, encoding); - var signature = algo.sign(securedInput, secretOrKey); - return util.format('%s.%s', securedInput, signature); -} - -function SignStream(opts) { - var secret = opts.secret||opts.privateKey||opts.key; - var secretStream = new DataStream(secret); - this.readable = true; - this.header = opts.header; - this.encoding = opts.encoding; - this.secret = this.privateKey = this.key = secretStream; - this.payload = new DataStream(opts.payload); - this.secret.once('close', function () { - if (!this.payload.writable && this.readable) - this.sign(); - }.bind(this)); - - this.payload.once('close', function () { - if (!this.secret.writable && this.readable) - this.sign(); - }.bind(this)); -} -util.inherits(SignStream, Stream); - -SignStream.prototype.sign = function sign() { - try { - var signature = jwsSign({ - header: this.header, - payload: this.payload.buffer, - secret: this.secret.buffer, - encoding: this.encoding - }); - this.emit('done', signature); - this.emit('data', signature); - this.emit('end'); - this.readable = false; - return signature; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; - -SignStream.sign = jwsSign; - -module.exports = SignStream; - - -/***/ }), -/* 214 */, -/* 215 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.securitycenter = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(223); -const v1beta1_1 = __webpack_require__(246); -const v1p1alpha1_1 = __webpack_require__(44); -const v1p1beta1_1 = __webpack_require__(737); -exports.VERSIONS = { - v1: v1_1.securitycenter_v1.Securitycenter, - v1beta1: v1beta1_1.securitycenter_v1beta1.Securitycenter, - v1p1alpha1: v1p1alpha1_1.securitycenter_v1p1alpha1.Securitycenter, - v1p1beta1: v1p1beta1_1.securitycenter_v1p1beta1.Securitycenter, -}; -function securitycenter(versionOrOptions) { - return googleapis_common_1.getAPI('securitycenter', versionOrOptions, exports.VERSIONS, this); -} -exports.securitycenter = securitycenter; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 216 */, -/* 217 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.classroom_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 = __webpack_require__(927); -var classroom_v1; -(function (classroom_v1) { - /** - * Google Classroom API - * - * Manages classes, rosters, and invitations in Google Classroom. - * - * @example - * const {google} = require('googleapis'); - * const classroom = google.classroom('v1'); - * - * @namespace classroom - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Classroom - */ - class Classroom { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.courses = new Resource$Courses(this.context); - this.invitations = new Resource$Invitations(this.context); - this.registrations = new Resource$Registrations(this.context); - this.userProfiles = new Resource$Userprofiles(this.context); + }, + url: "/repos/:owner/:repo/collaborators/:username" + }, + removeDeployKey: { + method: "DELETE", + params: { + key_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - classroom_v1.Classroom = Classroom; - class Resource$Courses { - constructor(context) { - this.context = context; - this.aliases = new Resource$Courses$Aliases(this.context); - this.announcements = new Resource$Courses$Announcements(this.context); - this.courseWork = new Resource$Courses$Coursework(this.context); - this.students = new Resource$Courses$Students(this.context); - this.teachers = new Resource$Courses$Teachers(this.context); - this.topics = new Resource$Courses$Topics(this.context); + }, + url: "/repos/:owner/:repo/keys/:key_id" + }, + removeProtectedBranchAdminEnforcement: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" + }, + removeProtectedBranchAppRestrictions: { + method: "DELETE", + params: { + apps: { + mapTo: "data", + required: true, + type: "string[]" + }, + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" + }, + removeProtectedBranchPullRequestReviewEnforcement: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" + }, + removeProtectedBranchRequiredSignatures: { + headers: { + accept: "application/vnd.github.zzzax-preview+json" + }, + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses').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); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" + }, + removeProtectedBranchRequiredStatusChecks: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" + }, + removeProtectedBranchRequiredStatusChecksContexts: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + contexts: { + mapTo: "data", + required: true, + type: "string[]" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" + }, + removeProtectedBranchRestrictions: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - classroom_v1.Resource$Courses = Resource$Courses; - class Resource$Courses$Aliases { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" + }, + removeProtectedBranchTeamRestrictions: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + teams: { + mapTo: "data", + required: true, + type: "string[]" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" + }, + removeProtectedBranchUserRestrictions: { + method: "DELETE", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + users: { + mapTo: "data", + required: true, + type: "string[]" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['courseId', 'alias'], - pathParams: ['alias', 'courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" + }, + replaceProtectedBranchAppRestrictions: { + method: "PUT", + params: { + apps: { + mapTo: "data", + required: true, + type: "string[]" + }, + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" + }, + replaceProtectedBranchRequiredStatusChecksContexts: { + method: "PUT", + params: { + branch: { + required: true, + type: "string" + }, + contexts: { + mapTo: "data", + required: true, + type: "string[]" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - } - classroom_v1.Resource$Courses$Aliases = Resource$Courses$Aliases; - class Resource$Courses$Announcements { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" + }, + replaceProtectedBranchTeamRestrictions: { + method: "PUT", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + teams: { + mapTo: "data", + required: true, + type: "string[]" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" + }, + replaceProtectedBranchUserRestrictions: { + method: "PUT", + params: { + branch: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + users: { + mapTo: "data", + required: true, + type: "string[]" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" + }, + replaceTopics: { + headers: { + accept: "application/vnd.github.mercy-preview+json" + }, + method: "PUT", + params: { + names: { + required: true, + type: "string[]" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/topics" + }, + requestPageBuild: { + method: "POST", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pages/builds" + }, + retrieveCommunityProfileMetrics: { + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - modifyAssignees(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/announcements/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/community/profile" + }, + testPushHook: { + method: "POST", + params: { + hook_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/hooks/:hook_id/tests" + }, + transfer: { + method: "POST", + params: { + new_owner: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_ids: { + type: "integer[]" } - } - classroom_v1.Resource$Courses$Announcements = Resource$Courses$Announcements; - class Resource$Courses$Coursework { - constructor(context) { - this.context = context; - this.studentSubmissions = new Resource$Courses$Coursework$Studentsubmissions(this.context); + }, + url: "/repos/:owner/:repo/transfer" + }, + update: { + method: "PATCH", + params: { + allow_merge_commit: { + type: "boolean" + }, + allow_rebase_merge: { + type: "boolean" + }, + allow_squash_merge: { + type: "boolean" + }, + archived: { + type: "boolean" + }, + default_branch: { + type: "string" + }, + delete_branch_on_merge: { + type: "boolean" + }, + description: { + type: "string" + }, + has_issues: { + type: "boolean" + }, + has_projects: { + type: "boolean" + }, + has_wiki: { + type: "boolean" + }, + homepage: { + type: "string" + }, + is_template: { + type: "boolean" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + private: { + type: "boolean" + }, + repo: { + required: true, + type: "string" + }, + visibility: { + enum: ["public", "private", "visibility", "internal"], + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo" + }, + updateBranchProtection: { + method: "PUT", + params: { + allow_deletions: { + type: "boolean" + }, + allow_force_pushes: { + allowNull: true, + type: "boolean" + }, + branch: { + required: true, + type: "string" + }, + enforce_admins: { + allowNull: true, + required: true, + type: "boolean" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + required_linear_history: { + type: "boolean" + }, + required_pull_request_reviews: { + allowNull: true, + required: true, + type: "object" + }, + "required_pull_request_reviews.dismiss_stale_reviews": { + type: "boolean" + }, + "required_pull_request_reviews.dismissal_restrictions": { + type: "object" + }, + "required_pull_request_reviews.dismissal_restrictions.teams": { + type: "string[]" + }, + "required_pull_request_reviews.dismissal_restrictions.users": { + type: "string[]" + }, + "required_pull_request_reviews.require_code_owner_reviews": { + type: "boolean" + }, + "required_pull_request_reviews.required_approving_review_count": { + type: "integer" + }, + required_status_checks: { + allowNull: true, + required: true, + type: "object" + }, + "required_status_checks.contexts": { + required: true, + type: "string[]" + }, + "required_status_checks.strict": { + required: true, + type: "boolean" + }, + restrictions: { + allowNull: true, + required: true, + type: "object" + }, + "restrictions.apps": { + type: "string[]" + }, + "restrictions.teams": { + required: true, + type: "string[]" + }, + "restrictions.users": { + required: true, + type: "string[]" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection" + }, + updateCommitComment: { + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/comments/:comment_id" + }, + updateFile: { + deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", + method: "PUT", + params: { + author: { + type: "object" + }, + "author.email": { + required: true, + type: "string" + }, + "author.name": { + required: true, + type: "string" + }, + branch: { + type: "string" + }, + committer: { + type: "object" + }, + "committer.email": { + required: true, + type: "string" + }, + "committer.name": { + required: true, + type: "string" + }, + content: { + required: true, + type: "string" + }, + message: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + path: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + sha: { + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/contents/:path" + }, + updateHook: { + method: "PATCH", + params: { + active: { + type: "boolean" + }, + add_events: { + type: "string[]" + }, + config: { + type: "object" + }, + "config.content_type": { + type: "string" + }, + "config.insecure_ssl": { + type: "string" + }, + "config.secret": { + type: "string" + }, + "config.url": { + required: true, + type: "string" + }, + events: { + type: "string[]" + }, + hook_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + remove_events: { + type: "string[]" + }, + repo: { + required: true, + type: "string" } - modifyAssignees(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/hooks/:hook_id" + }, + updateInformationAboutPagesSite: { + method: "PUT", + params: { + cname: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + source: { + enum: ['"gh-pages"', '"master"', '"master /docs"'], + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/pages" + }, + updateInvitation: { + method: "PATCH", + params: { + invitation_id: { + required: true, + type: "integer" + }, + owner: { + required: true, + type: "string" + }, + permissions: { + enum: ["read", "write", "admin"], + type: "string" + }, + repo: { + required: true, + type: "string" } - } - classroom_v1.Resource$Courses$Coursework = Resource$Courses$Coursework; - class Resource$Courses$Coursework$Studentsubmissions { - constructor(context) { - this.context = context; + }, + url: "/repos/:owner/:repo/invitations/:invitation_id" + }, + updateProtectedBranchPullRequestReviewEnforcement: { + method: "PATCH", + params: { + branch: { + required: true, + type: "string" + }, + dismiss_stale_reviews: { + type: "boolean" + }, + dismissal_restrictions: { + type: "object" + }, + "dismissal_restrictions.teams": { + type: "string[]" + }, + "dismissal_restrictions.users": { + type: "string[]" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + require_code_owner_reviews: { + type: "boolean" + }, + required_approving_review_count: { + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" + }, + updateProtectedBranchRequiredStatusChecks: { + method: "PATCH", + params: { + branch: { + required: true, + type: "string" + }, + contexts: { + type: "string[]" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + strict: { + type: "boolean" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId'], - pathParams: ['courseId', 'courseWorkId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" + }, + updateRelease: { + method: "PATCH", + params: { + body: { + type: "string" + }, + draft: { + type: "boolean" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + prerelease: { + type: "boolean" + }, + release_id: { + required: true, + type: "integer" + }, + repo: { + required: true, + type: "string" + }, + tag_name: { + type: "string" + }, + target_commitish: { + type: "string" } - modifyAttachments(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/releases/:release_id" + }, + updateReleaseAsset: { + method: "PATCH", + params: { + asset_id: { + required: true, + type: "integer" + }, + label: { + type: "string" + }, + name: { + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/repos/:owner/:repo/releases/assets/:asset_id" + }, + uploadReleaseAsset: { + method: "POST", + params: { + data: { + mapTo: "data", + required: true, + type: "string | object" + }, + file: { + alias: "data", + deprecated: true, + type: "string | object" + }, + headers: { + required: true, + type: "object" + }, + "headers.content-length": { + required: true, + type: "integer" + }, + "headers.content-type": { + required: true, + type: "string" + }, + label: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + url: { + required: true, + type: "string" } - reclaim(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: ":url" + } + }, + search: { + code: { + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + q: { + required: true, + type: "string" + }, + sort: { + enum: ["indexed"], + type: "string" } - return(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/search/code" + }, + commits: { + headers: { + accept: "application/vnd.github.cloak-preview+json" + }, + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + q: { + required: true, + type: "string" + }, + sort: { + enum: ["author-date", "committer-date"], + type: "string" } - turnIn(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/search/commits" + }, + issues: { + deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)", + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + q: { + required: true, + type: "string" + }, + sort: { + enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"], + type: "string" } - } - classroom_v1.Resource$Courses$Coursework$Studentsubmissions = Resource$Courses$Coursework$Studentsubmissions; - class Resource$Courses$Students { - constructor(context) { - this.context = context; + }, + url: "/search/issues" + }, + issuesAndPullRequests: { + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + q: { + required: true, + type: "string" + }, + sort: { + enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"], + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/search/issues" + }, + labels: { + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + q: { + required: true, + type: "string" + }, + repository_id: { + required: true, + type: "integer" + }, + sort: { + enum: ["created", "updated"], + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/search/labels" + }, + repos: { + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + q: { + required: true, + type: "string" + }, + sort: { + enum: ["stars", "forks", "help-wanted-issues", "updated"], + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/search/repositories" + }, + topics: { + method: "GET", + params: { + q: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/search/topics" + }, + users: { + method: "GET", + params: { + order: { + enum: ["desc", "asc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + q: { + required: true, + type: "string" + }, + sort: { + enum: ["followers", "repositories", "joined"], + type: "string" } + }, + url: "/search/users" } - classroom_v1.Resource$Courses$Students = Resource$Courses$Students; - class Resource$Courses$Teachers { - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + teams: { + addMember: { + deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)", + method: "PUT", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/members/:username" + }, + addMemberLegacy: { + deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy", + method: "PUT", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/members/:username" + }, + addOrUpdateMembership: { + deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)", + method: "PUT", + params: { + role: { + enum: ["member", "maintainer"], + type: "string" + }, + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/memberships/:username" + }, + addOrUpdateMembershipInOrg: { + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + role: { + enum: ["member", "maintainer"], + type: "string" + }, + team_slug: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - classroom_v1.Resource$Courses$Teachers = Resource$Courses$Teachers; - class Resource$Courses$Topics { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/teams/:team_slug/memberships/:username" + }, + addOrUpdateMembershipLegacy: { + deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy", + method: "PUT", + params: { + role: { + enum: ["member", "maintainer"], + type: "string" + }, + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/memberships/:username" + }, + addOrUpdateProject: { + deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PUT", + params: { + permission: { + enum: ["read", "write", "admin"], + type: "string" + }, + project_id: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/projects/:project_id" + }, + addOrUpdateProjectInOrg: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + permission: { + enum: ["read", "write", "admin"], + type: "string" + }, + project_id: { + required: true, + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/projects/:project_id" + }, + addOrUpdateProjectLegacy: { + deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy", + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "PUT", + params: { + permission: { + enum: ["read", "write", "admin"], + type: "string" + }, + project_id: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['courseId'], - pathParams: ['courseId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/projects/:project_id" + }, + addOrUpdateRepo: { + deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)", + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/repos/:owner/:repo" + }, + addOrUpdateRepoInOrg: { + method: "PUT", + params: { + org: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - } - classroom_v1.Resource$Courses$Topics = Resource$Courses$Topics; - class Resource$Invitations { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" + }, + addOrUpdateRepoLegacy: { + deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy", + method: "PUT", + params: { + owner: { + required: true, + type: "string" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_id: { + required: true, + type: "integer" } - accept(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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/invitations/{id}:accept').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/repos/:owner/:repo" + }, + checkManagesRepo: { + deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)", + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/invitations').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); - } + }, + url: "/teams/:team_id/repos/:owner/:repo" + }, + checkManagesRepoInOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" + }, + checkManagesRepoLegacy: { + deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy", + method: "GET", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/repos/:owner/:repo" + }, + create: { + method: "POST", + params: { + description: { + type: "string" + }, + maintainers: { + type: "string[]" + }, + name: { + required: true, + type: "string" + }, + org: { + required: true, + type: "string" + }, + parent_team_id: { + type: "integer" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + privacy: { + enum: ["secret", "closed"], + type: "string" + }, + repo_names: { + type: "string[]" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/invitations').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); - } + }, + url: "/orgs/:org/teams" + }, + createDiscussion: { + deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)", + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + private: { + type: "boolean" + }, + team_id: { + required: true, + type: "integer" + }, + title: { + required: true, + type: "string" } - } - classroom_v1.Resource$Invitations = Resource$Invitations; - class Resource$Registrations { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions" + }, + createDiscussionComment: { + deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)", + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/registrations').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); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments" + }, + createDiscussionCommentInOrg: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/registrations/{registrationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['registrationId'], - pathParams: ['registrationId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" + }, + createDiscussionCommentLegacy: { + deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy", + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - classroom_v1.Resource$Registrations = Resource$Registrations; - class Resource$Userprofiles { - constructor(context) { - this.context = context; - this.guardianInvitations = new Resource$Userprofiles$Guardianinvitations(this.context); - this.guardians = new Resource$Userprofiles$Guardians(this.context); + }, + url: "/teams/:team_id/discussions/:discussion_number/comments" + }, + createDiscussionInOrg: { + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + org: { + required: true, + type: "string" + }, + private: { + type: "boolean" + }, + team_slug: { + required: true, + type: "string" + }, + title: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['userId'], - pathParams: ['userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions" + }, + createDiscussionLegacy: { + deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy", + method: "POST", + params: { + body: { + required: true, + type: "string" + }, + private: { + type: "boolean" + }, + team_id: { + required: true, + type: "integer" + }, + title: { + required: true, + type: "string" } - } - classroom_v1.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userprofiles$Guardianinvitations { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions" + }, + delete: { + deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)", + method: "DELETE", + params: { + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['studentId'], - pathParams: ['studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id" + }, + deleteDiscussion: { + deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)", + method: "DELETE", + params: { + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['studentId', 'invitationId'], - pathParams: ['invitationId', 'studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number" + }, + deleteDiscussionComment: { + deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)", + method: "DELETE", + params: { + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['studentId'], - pathParams: ['studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + deleteDiscussionCommentInOrg: { + method: "DELETE", + params: { + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['studentId', 'invitationId'], - pathParams: ['invitationId', 'studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" + }, + deleteDiscussionCommentLegacy: { + deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy", + method: "DELETE", + params: { + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - classroom_v1.Resource$Userprofiles$Guardianinvitations = Resource$Userprofiles$Guardianinvitations; - class Resource$Userprofiles$Guardians { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + deleteDiscussionInOrg: { + method: "DELETE", + params: { + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['studentId', 'guardianId'], - pathParams: ['guardianId', 'studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" + }, + deleteDiscussionLegacy: { + deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy", + method: "DELETE", + params: { + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['studentId', 'guardianId'], - pathParams: ['guardianId', 'studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number" + }, + deleteInOrg: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://classroom.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardians').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['studentId'], - pathParams: ['studentId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug" + }, + deleteLegacy: { + deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy", + method: "DELETE", + params: { + team_id: { + required: true, + type: "integer" } - } - classroom_v1.Resource$Userprofiles$Guardians = Resource$Userprofiles$Guardians; -})(classroom_v1 = exports.classroom_v1 || (exports.classroom_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 218 */, -/* 219 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.identitytoolkit = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_1 = __webpack_require__(394); -exports.VERSIONS = { - v3: v3_1.identitytoolkit_v3.Identitytoolkit, -}; -function identitytoolkit(versionOrOptions) { - return googleapis_common_1.getAPI('identitytoolkit', versionOrOptions, exports.VERSIONS, this); -} -exports.identitytoolkit = identitytoolkit; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 220 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Node.js module for Forge message digests. - * - * @author Dave Longley - * - * Copyright 2011-2017 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); - -module.exports = forge.md = forge.md || {}; -forge.md.algorithms = forge.md.algorithms || {}; - - -/***/ }), -/* 221 */, -/* 222 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.youtubereporting_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 = __webpack_require__(927); -var youtubereporting_v1; -(function (youtubereporting_v1) { - /** - * YouTube Reporting API - * - * Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files. - * - * @example - * const {google} = require('googleapis'); - * const youtubereporting = google.youtubereporting('v1'); - * - * @namespace youtubereporting - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Youtubereporting - */ - class Youtubereporting { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.jobs = new Resource$Jobs(this.context); - this.media = new Resource$Media(this.context); - this.reportTypes = new Resource$Reporttypes(this.context); + }, + url: "/teams/:team_id" + }, + get: { + deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)", + method: "GET", + params: { + team_id: { + required: true, + type: "integer" } - } - youtubereporting_v1.Youtubereporting = Youtubereporting; - class Resource$Jobs { - constructor(context) { - this.context = context; - this.reports = new Resource$Jobs$Reports(this.context); + }, + url: "/teams/:team_id" + }, + getByName: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/jobs').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); - } + }, + url: "/orgs/:org/teams/:team_slug" + }, + getDiscussion: { + deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)", + method: "GET", + params: { + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['jobId'], - pathParams: ['jobId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number" + }, + getDiscussionComment: { + deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)", + method: "GET", + params: { + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['jobId'], - pathParams: ['jobId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + getDiscussionCommentInOrg: { + method: "GET", + params: { + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/jobs').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); - } - } - } - youtubereporting_v1.Resource$Jobs = Resource$Jobs; - class Resource$Jobs$Reports { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" + }, + getDiscussionCommentLegacy: { + deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy", + method: "GET", + params: { + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['jobId', 'reportId'], - pathParams: ['jobId', 'reportId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + getDiscussionInOrg: { + method: "GET", + params: { + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['jobId'], - pathParams: ['jobId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" + }, + getDiscussionLegacy: { + deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy", + method: "GET", + params: { + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - youtubereporting_v1.Resource$Jobs$Reports = Resource$Jobs$Reports; - class Resource$Media { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions/:discussion_number" + }, + getLegacy: { + deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy", + method: "GET", + params: { + team_id: { + required: true, + type: "integer" } - download(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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }, + url: "/teams/:team_id" + }, + getMember: { + deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)", + method: "GET", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - } - youtubereporting_v1.Resource$Media = Resource$Media; - class Resource$Reporttypes { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/members/:username" + }, + getMemberLegacy: { + deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy", + method: "GET", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://youtubereporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/reportTypes').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); - } + }, + url: "/teams/:team_id/members/:username" + }, + getMembership: { + deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)", + method: "GET", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - } - youtubereporting_v1.Resource$Reporttypes = Resource$Reporttypes; -})(youtubereporting_v1 = exports.youtubereporting_v1 || (exports.youtubereporting_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 223 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.securitycenter_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 = __webpack_require__(927); -var securitycenter_v1; -(function (securitycenter_v1) { - /** - * Security Command Center API - * - * Security Command Center API provides access to temporal views of assets and findings within an organization. - * - * @example - * const {google} = require('googleapis'); - * const securitycenter = google.securitycenter('v1'); - * - * @namespace securitycenter - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Securitycenter - */ - class Securitycenter { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.organizations = new Resource$Organizations(this.context); + }, + url: "/teams/:team_id/memberships/:username" + }, + getMembershipInOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - } - securitycenter_v1.Securitycenter = Securitycenter; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.assets = new Resource$Organizations$Assets(this.context); - this.notificationConfigs = new Resource$Organizations$Notificationconfigs(this.context); - this.operations = new Resource$Organizations$Operations(this.context); - this.sources = new Resource$Organizations$Sources(this.context); + }, + url: "/orgs/:org/teams/:team_slug/memberships/:username" + }, + getMembershipLegacy: { + deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy", + method: "GET", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - getOrganizationSettings(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://securitycenter.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); - } + }, + url: "/teams/:team_id/memberships/:username" + }, + list: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" } - updateOrganizationSettings(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/orgs/:org/teams" + }, + listChild: { + deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - securitycenter_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Assets { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/teams" + }, + listChildInOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - group(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets:group').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); - } + }, + url: "/orgs/:org/teams/:team_slug/teams" + }, + listChildLegacy: { + deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').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); - } + }, + url: "/teams/:team_id/teams" + }, + listDiscussionComments: { + deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)", + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - runDiscovery(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets:runDiscovery').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); - } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments" + }, + listDiscussionCommentsInOrg: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - updateSecurityMarks(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" + }, + listDiscussionCommentsLegacy: { + deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy", + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - securitycenter_v1.Resource$Organizations$Assets = Resource$Organizations$Assets; - class Resource$Organizations$Notificationconfigs { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions/:discussion_number/comments" + }, + listDiscussions: { + deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)", + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').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); - } + }, + url: "/teams/:team_id/discussions" + }, + listDiscussionsInOrg: { + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://securitycenter.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); - } + }, + url: "/orgs/:org/teams/:team_slug/discussions" + }, + listDiscussionsLegacy: { + deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy", + method: "GET", + params: { + direction: { + enum: ["asc", "desc"], + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/discussions" + }, + listForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').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); - } + }, + url: "/user/teams" + }, + listMembers: { + deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + role: { + enum: ["member", "maintainer", "all"], + type: "string" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/teams/:team_id/members" + }, + listMembersInOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + role: { + enum: ["member", "maintainer", "all"], + type: "string" + }, + team_slug: { + required: true, + type: "string" } - } - securitycenter_v1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; - class Resource$Organizations$Operations { - constructor(context) { - this.context = context; + }, + url: "/orgs/:org/teams/:team_slug/members" + }, + listMembersLegacy: { + deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + role: { + enum: ["member", "maintainer", "all"], + type: "string" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/members" + }, + listPendingInvitations: { + deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/invitations" + }, + listPendingInvitationsInOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://securitycenter.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); - } + }, + url: "/orgs/:org/teams/:team_slug/invitations" + }, + listPendingInvitationsLegacy: { + deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/invitations" + }, + listProjects: { + deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - } - securitycenter_v1.Resource$Organizations$Operations = Resource$Organizations$Operations; - class Resource$Organizations$Sources { - constructor(context) { - this.context = context; - this.findings = new Resource$Organizations$Sources$Findings(this.context); + }, + url: "/teams/:team_id/projects" + }, + listProjectsInOrg: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').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); - } + }, + url: "/orgs/:org/teams/:team_slug/projects" + }, + listProjectsLegacy: { + deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy", + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/projects" + }, + listRepos: { + deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').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); - } + }, + url: "/teams/:team_id/repos" + }, + listReposInOrg: { + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').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); - } + }, + url: "/orgs/:org/teams/:team_slug/repos" + }, + listReposLegacy: { + deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy", + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/teams/:team_id/repos" + }, + removeMember: { + deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)", + method: "DELETE", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/members/:username" + }, + removeMemberLegacy: { + deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy", + method: "DELETE", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - 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://securitycenter.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); - } + }, + url: "/teams/:team_id/members/:username" + }, + removeMembership: { + deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)", + method: "DELETE", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - } - securitycenter_v1.Resource$Organizations$Sources = Resource$Organizations$Sources; - class Resource$Organizations$Sources$Findings { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/memberships/:username" + }, + removeMembershipInOrg: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').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); - } + }, + url: "/orgs/:org/teams/:team_slug/memberships/:username" + }, + removeMembershipLegacy: { + deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy", + method: "DELETE", + params: { + team_id: { + required: true, + type: "integer" + }, + username: { + required: true, + type: "string" } - group(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:group').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); - } + }, + url: "/teams/:team_id/memberships/:username" + }, + removeProject: { + deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)", + method: "DELETE", + params: { + project_id: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').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); - } + }, + url: "/teams/:team_id/projects/:project_id" + }, + removeProjectInOrg: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + project_id: { + required: true, + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/orgs/:org/teams/:team_slug/projects/:project_id" + }, + removeProjectLegacy: { + deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy", + method: "DELETE", + params: { + project_id: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - setState(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setState').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); - } + }, + url: "/teams/:team_id/projects/:project_id" + }, + removeRepo: { + deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)", + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_id: { + required: true, + type: "integer" } - updateSecurityMarks(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://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } + }, + url: "/teams/:team_id/repos/:owner/:repo" + }, + removeRepoInOrg: { + method: "DELETE", + params: { + org: { + required: true, + type: "string" + }, + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" } - } - securitycenter_v1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; -})(securitycenter_v1 = exports.securitycenter_v1 || (exports.securitycenter_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 224 */, -/* 225 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const agent_1 = __importDefault(__webpack_require__(877)); -function createHttpsProxyAgent(opts) { - return new agent_1.default(opts); -} -(function (createHttpsProxyAgent) { - createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; - createHttpsProxyAgent.prototype = agent_1.default.prototype; -})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); -module.exports = createHttpsProxyAgent; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 226 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.bigtableadmin_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 = __webpack_require__(927); -var bigtableadmin_v2; -(function (bigtableadmin_v2) { - /** - * Cloud Bigtable Admin API - * - * Administer your Cloud Bigtable tables and instances. - * - * @example - * const {google} = require('googleapis'); - * const bigtableadmin = google.bigtableadmin('v2'); - * - * @namespace bigtableadmin - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Bigtableadmin - */ - class Bigtableadmin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); + }, + url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" + }, + removeRepoLegacy: { + deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy", + method: "DELETE", + params: { + owner: { + required: true, + type: "string" + }, + repo: { + required: true, + type: "string" + }, + team_id: { + required: true, + type: "integer" } - } - bigtableadmin_v2.Bigtableadmin = Bigtableadmin; - class Resource$Operations { - constructor(context) { - this.context = context; - this.projects = new Resource$Operations$Projects(this.context); + }, + url: "/teams/:team_id/repos/:owner/:repo" + }, + reviewProject: { + deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)", + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + project_id: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://bigtableadmin.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); - } + }, + url: "/teams/:team_id/projects/:project_id" + }, + reviewProjectInOrg: { + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + org: { + required: true, + type: "string" + }, + project_id: { + required: true, + type: "integer" + }, + team_slug: { + required: true, + type: "string" } - 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://bigtableadmin.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); - } + }, + url: "/orgs/:org/teams/:team_slug/projects/:project_id" + }, + reviewProjectLegacy: { + deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy", + headers: { + accept: "application/vnd.github.inertia-preview+json" + }, + method: "GET", + params: { + project_id: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - 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://bigtableadmin.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); - } + }, + url: "/teams/:team_id/projects/:project_id" + }, + update: { + deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)", + method: "PATCH", + params: { + description: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + parent_team_id: { + type: "integer" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + privacy: { + enum: ["secret", "closed"], + type: "string" + }, + team_id: { + required: true, + type: "integer" } - } - bigtableadmin_v2.Resource$Operations = Resource$Operations; - class Resource$Operations$Projects { - constructor(context) { - this.context = context; - this.operations = new Resource$Operations$Projects$Operations(this.context); + }, + url: "/teams/:team_id" + }, + updateDiscussion: { + deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)", + method: "PATCH", + params: { + body: { + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" + }, + title: { + type: "string" } - } - bigtableadmin_v2.Resource$Operations$Projects = Resource$Operations$Projects; - class Resource$Operations$Projects$Operations { - constructor(context) { - this.context = context; + }, + url: "/teams/:team_id/discussions/:discussion_number" + }, + updateDiscussionComment: { + deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)", + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + updateDiscussionCommentInOrg: { + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" + } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" + }, + updateDiscussionCommentLegacy: { + deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy", + method: "PATCH", + params: { + body: { + required: true, + type: "string" + }, + comment_number: { + required: true, + type: "integer" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" + } + }, + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + updateDiscussionInOrg: { + method: "PATCH", + params: { + body: { + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + org: { + required: true, + type: "string" + }, + team_slug: { + required: true, + type: "string" + }, + title: { + type: "string" + } + }, + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" + }, + updateDiscussionLegacy: { + deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy", + method: "PATCH", + params: { + body: { + type: "string" + }, + discussion_number: { + required: true, + type: "integer" + }, + team_id: { + required: true, + type: "integer" + }, + title: { + type: "string" + } + }, + url: "/teams/:team_id/discussions/:discussion_number" + }, + updateInOrg: { + method: "PATCH", + params: { + description: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + org: { + required: true, + type: "string" + }, + parent_team_id: { + type: "integer" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + privacy: { + enum: ["secret", "closed"], + type: "string" + }, + team_slug: { + required: true, + type: "string" + } + }, + url: "/orgs/:org/teams/:team_slug" + }, + updateLegacy: { + deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy", + method: "PATCH", + params: { + description: { + type: "string" + }, + name: { + required: true, + type: "string" + }, + parent_team_id: { + type: "integer" + }, + permission: { + enum: ["pull", "push", "admin"], + type: "string" + }, + privacy: { + enum: ["secret", "closed"], + type: "string" + }, + team_id: { + required: true, + type: "integer" + } + }, + url: "/teams/:team_id" + } + }, + users: { + addEmails: { + method: "POST", + params: { + emails: { + required: true, + type: "string[]" + } + }, + url: "/user/emails" + }, + block: { + method: "PUT", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/user/blocks/:username" + }, + checkBlocked: { + method: "GET", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/user/blocks/:username" + }, + checkFollowing: { + method: "GET", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/user/following/:username" + }, + checkFollowingForUser: { + method: "GET", + params: { + target_user: { + required: true, + type: "string" + }, + username: { + required: true, + type: "string" + } + }, + url: "/users/:username/following/:target_user" + }, + createGpgKey: { + method: "POST", + params: { + armored_public_key: { + type: "string" + } + }, + url: "/user/gpg_keys" + }, + createPublicKey: { + method: "POST", + params: { + key: { + type: "string" + }, + title: { + type: "string" + } + }, + url: "/user/keys" + }, + deleteEmails: { + method: "DELETE", + params: { + emails: { + required: true, + type: "string[]" + } + }, + url: "/user/emails" + }, + deleteGpgKey: { + method: "DELETE", + params: { + gpg_key_id: { + required: true, + type: "integer" + } + }, + url: "/user/gpg_keys/:gpg_key_id" + }, + deletePublicKey: { + method: "DELETE", + params: { + key_id: { + required: true, + type: "integer" + } + }, + url: "/user/keys/:key_id" + }, + follow: { + method: "PUT", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/user/following/:username" + }, + getAuthenticated: { + method: "GET", + params: {}, + url: "/user" + }, + getByUsername: { + method: "GET", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/users/:username" + }, + getContextForUser: { + method: "GET", + params: { + subject_id: { + type: "string" + }, + subject_type: { + enum: ["organization", "repository", "issue", "pull_request"], + type: "string" + }, + username: { + required: true, + type: "string" + } + }, + url: "/users/:username/hovercard" + }, + getGpgKey: { + method: "GET", + params: { + gpg_key_id: { + required: true, + type: "integer" + } + }, + url: "/user/gpg_keys/:gpg_key_id" + }, + getPublicKey: { + method: "GET", + params: { + key_id: { + required: true, + type: "integer" + } + }, + url: "/user/keys/:key_id" + }, + list: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + since: { + type: "string" + } + }, + url: "/users" + }, + listBlocked: { + method: "GET", + params: {}, + url: "/user/blocks" + }, + listEmails: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/emails" + }, + listFollowersForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/followers" + }, + listFollowersForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" + } + }, + url: "/users/:username/followers" + }, + listFollowingForAuthenticatedUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/following" + }, + listFollowingForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" + } + }, + url: "/users/:username/following" + }, + listGpgKeys: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/gpg_keys" + }, + listGpgKeysForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" + } + }, + url: "/users/:username/gpg_keys" + }, + listPublicEmails: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/public_emails" + }, + listPublicKeys: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + } + }, + url: "/user/keys" + }, + listPublicKeysForUser: { + method: "GET", + params: { + page: { + type: "integer" + }, + per_page: { + type: "integer" + }, + username: { + required: true, + type: "string" + } + }, + url: "/users/:username/keys" + }, + togglePrimaryEmailVisibility: { + method: "PATCH", + params: { + email: { + required: true, + type: "string" + }, + visibility: { + required: true, + type: "string" + } + }, + url: "/user/email/visibility" + }, + unblock: { + method: "DELETE", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/user/blocks/:username" + }, + unfollow: { + method: "DELETE", + params: { + username: { + required: true, + type: "string" + } + }, + url: "/user/following/:username" + }, + updateAuthenticated: { + method: "PATCH", + params: { + bio: { + type: "string" + }, + blog: { + type: "string" + }, + company: { + type: "string" + }, + email: { + type: "string" + }, + hireable: { + type: "boolean" + }, + location: { + type: "string" + }, + name: { + type: "string" + } + }, + url: "/user" + } + } +}; + +const VERSION = "2.4.0"; + +function registerEndpoints(octokit, routes) { + Object.keys(routes).forEach(namespaceName => { + if (!octokit[namespaceName]) { + octokit[namespaceName] = {}; + } + + Object.keys(routes[namespaceName]).forEach(apiName => { + const apiOptions = routes[namespaceName][apiName]; + const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => { + if (typeof apiOptions[key] !== "undefined") { + map[key] = apiOptions[key]; + } + + return map; + }, {}); + endpointDefaults.request = { + validate: apiOptions.params + }; + let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters. + // Not the most elegant solution, but we don’t want to move deprecation + // logic into octokit/endpoint.js as it’s out of scope + + const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated); + + if (hasDeprecatedParam) { + const patch = patchForDeprecation.bind(null, octokit, apiOptions); + request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`); + request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`); + request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`); + } + + if (apiOptions.deprecated) { + octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() { + octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`)); + octokit[namespaceName][apiName] = request; + return request.apply(null, arguments); + }, request); + return; + } + + octokit[namespaceName][apiName] = request; + }); + }); +} + +function patchForDeprecation(octokit, apiOptions, method, methodName) { + const patchedMethod = options => { + options = Object.assign({}, options); + Object.keys(options).forEach(key => { + if (apiOptions.params[key] && apiOptions.params[key].deprecated) { + const aliasKey = apiOptions.params[key].alias; + octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`)); + + if (!(aliasKey in options)) { + options[aliasKey] = options[key]; + } + + delete options[key]; + } + }); + return method(options); + }; + + Object.keys(method).forEach(key => { + patchedMethod[key] = method[key]; + }); + return patchedMethod; +} + +/** + * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary + * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is + * done, we will remove the registerEndpoints methods and return the methods + * directly as with the other plugins. At that point we will also remove the + * legacy workarounds and deprecations. + * + * See the plan at + * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 + */ + +function restEndpointMethods(octokit) { + // @ts-ignore + octokit.registerEndpoints = registerEndpoints.bind(null, octokit); + registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility + // See https://github.com/octokit/rest.js/pull/1134 + + [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => { + Object.defineProperty(octokit, deprecatedScope, { + get() { + octokit.log.warn( // @ts-ignore + new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore + + return octokit[scope]; + } + + }); + }); + return {}; +} +restEndpointMethods.VERSION = VERSION; + +exports.restEndpointMethods = restEndpointMethods; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 843: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.baremetalsolution_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var baremetalsolution_v2; +(function (baremetalsolution_v2) { + /** + * Bare Metal Solution API + * + * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const baremetalsolution = google.baremetalsolution('v2'); + * ``` + */ + class Baremetalsolution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + baremetalsolution_v2.Baremetalsolution = Baremetalsolution; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + baremetalsolution_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instanceProvisioningSettings = + new Resource$Projects$Locations$Instanceprovisioningsettings(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.networks = new Resource$Projects$Locations$Networks(this.context); + this.nfsShares = new Resource$Projects$Locations$Nfsshares(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.provisioningConfigs = + new Resource$Projects$Locations$Provisioningconfigs(this.context); + this.provisioningQuotas = + new Resource$Projects$Locations$Provisioningquotas(this.context); + this.sshKeys = new Resource$Projects$Locations$Sshkeys(this.context); + this.volumes = new Resource$Projects$Locations$Volumes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -70230,10 +64384,41 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -70242,28 +64427,55 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigtableadmin_v2.Resource$Operations$Projects$Operations = Resource$Operations$Projects$Operations; - class Resource$Projects { + baremetalsolution_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instanceprovisioningsettings { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Instances(this.context); - this.locations = new Resource$Projects$Locations(this.context); + } + fetch(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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+location}/instanceProvisioningSettings:fetch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - bigtableadmin_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Instances { + baremetalsolution_v2.Resource$Projects$Locations$Instanceprovisioningsettings = Resource$Projects$Locations$Instanceprovisioningsettings; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; - this.appProfiles = new Resource$Projects$Instances$Appprofiles(this.context); - this.clusters = new Resource$Projects$Instances$Clusters(this.context); - this.tables = new Resource$Projects$Instances$Tables(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -70278,7 +64490,7 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), @@ -70290,13 +64502,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + detachLun(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70309,11 +64521,43 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+instance}:detachLun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instance'], + pathParams: ['instance'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disableInteractiveSerialConsole(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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:disableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -70321,30 +64565,31 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + enableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:enableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -70352,13 +64597,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70371,22 +64616,22 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -70402,7 +64647,7 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), @@ -70414,13 +64659,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partialUpdateInstance(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70433,7 +64678,7 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -70445,13 +64690,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + rename(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70464,25 +64709,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70495,25 +64740,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70526,11 +64771,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -70538,19 +64783,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigtableadmin_v2.Resource$Projects$Instances = Resource$Projects$Instances; - class Resource$Projects$Instances$Appprofiles { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70563,25 +64802,31 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Networks { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70594,11 +64839,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -70606,13 +64851,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70625,53 +64870,54 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/networks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listNetworkUsage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+location}/networks:listNetworkUsage').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -70687,7 +64933,7 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -70699,18 +64945,17 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigtableadmin_v2.Resource$Projects$Instances$Appprofiles = Resource$Projects$Instances$Appprofiles; - class Resource$Projects$Instances$Clusters { + baremetalsolution_v2.Resource$Projects$Locations$Networks = Resource$Projects$Locations$Networks; + class Resource$Projects$Locations$Nfsshares { constructor(context) { this.context = context; - this.backups = new Resource$Projects$Instances$Clusters$Backups(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -70725,10 +64970,10 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -70737,10 +64982,10 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -70756,7 +65001,7 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -70768,10 +65013,10 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -70787,7 +65032,7 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -70799,10 +65044,10 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -70818,10 +65063,10 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -70830,13 +65075,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70849,11 +65094,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -70861,19 +65106,19 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigtableadmin_v2.Resource$Projects$Instances$Clusters = Resource$Projects$Instances$Clusters; - class Resource$Projects$Instances$Clusters$Backups { + baremetalsolution_v2.Resource$Projects$Locations$Nfsshares = Resource$Projects$Locations$Nfsshares; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70886,110 +65131,113 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Provisioningconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/provisioningConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigtableadmin_v2.Resource$Projects$Instances$Clusters$Backups = Resource$Projects$Instances$Clusters$Backups; - class Resource$Projects$Instances$Tables { - constructor(context) { - this.context = context; - } - checkConsistency(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:checkConsistency').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -70997,29 +65245,30 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + submit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/provisioningConfigs:submit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -71028,44 +65277,57 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Provisioningconfigs = Resource$Projects$Locations$Provisioningconfigs; + class Resource$Projects$Locations$Provisioningquotas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dropRowRange(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Provisioningquotas = Resource$Projects$Locations$Provisioningquotas; + class Resource$Projects$Locations$Sshkeys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71078,25 +65340,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:dropRowRange').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConsistencyToken(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71109,11 +65371,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:generateConsistencyToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -71121,13 +65383,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71140,25 +65402,33 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Sshkeys = Resource$Projects$Locations$Sshkeys; + class Resource$Projects$Locations$Volumes { + constructor(context) { + this.context = context; + this.luns = new Resource$Projects$Locations$Volumes$Luns(this.context); + this.snapshots = new Resource$Projects$Locations$Volumes$Snapshots(this.context); + } + evict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71171,25 +65441,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71202,25 +65472,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyColumnFamilies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71233,25 +65503,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:modifyColumnFamilies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71264,25 +65534,25 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71295,31 +65565,31 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+volume}:resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['volume'], + pathParams: ['volume'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigtableadmin_v2.Resource$Projects$Instances$Tables = Resource$Projects$Instances$Tables; - class Resource$Projects$Locations { + baremetalsolution_v2.Resource$Projects$Locations$Volumes = Resource$Projects$Locations$Volumes; + class Resource$Projects$Locations$Volumes$Luns { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + evict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71332,11 +65602,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -71344,13 +65614,13 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71363,10 +65633,10 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -71375,77 +65645,48 @@ var bigtableadmin_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigtableadmin_v2.Resource$Projects$Locations = Resource$Projects$Locations; -})(bigtableadmin_v2 = exports.bigtableadmin_v2 || (exports.bigtableadmin_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 227 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.accesscontextmanager_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 = __webpack_require__(927); -var accesscontextmanager_v1; -(function (accesscontextmanager_v1) { - /** - * Access Context Manager API - * - * An API for setting attribute based access control to requests to GCP services. - * - * @example - * const {google} = require('googleapis'); - * const accesscontextmanager = google.accesscontextmanager('v1'); - * - * @namespace accesscontextmanager - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Accesscontextmanager - */ - class Accesscontextmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/luns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - this.accessPolicies = new Resource$Accesspolicies(this.context); - this.operations = new Resource$Operations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - accesscontextmanager_v1.Accesscontextmanager = Accesscontextmanager; - class Resource$Accesspolicies { + baremetalsolution_v2.Resource$Projects$Locations$Volumes$Luns = Resource$Projects$Locations$Volumes$Luns; + class Resource$Projects$Locations$Volumes$Snapshots { constructor(context) { this.context = context; - this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context); - this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -71453,29 +65694,30 @@ var accesscontextmanager_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -71484,17 +65726,18 @@ var accesscontextmanager_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -71503,10 +65746,10 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -71522,10 +65765,10 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -71534,10 +65777,10 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -71546,71 +65789,1569 @@ var accesscontextmanager_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + restoreVolumeSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+volumeSnapshot}:restoreVolumeSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeSnapshot'], + pathParams: ['volumeSnapshot'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accesscontextmanager_v1.Resource$Accesspolicies = Resource$Accesspolicies; - class Resource$Accesspolicies$Accesslevels { + baremetalsolution_v2.Resource$Projects$Locations$Volumes$Snapshots = Resource$Projects$Locations$Volumes$Snapshots; +})(baremetalsolution_v2 = exports.baremetalsolution_v2 || (exports.baremetalsolution_v2 = {})); + + +/***/ }), + +/***/ 849: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.websecurityscanner_v1beta = exports.websecurityscanner_v1alpha = exports.websecurityscanner_v1 = exports.auth = exports.websecurityscanner = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3781); +Object.defineProperty(exports, "websecurityscanner_v1", { enumerable: true, get: function () { return v1_1.websecurityscanner_v1; } }); +const v1alpha_1 = __webpack_require__(4810); +Object.defineProperty(exports, "websecurityscanner_v1alpha", { enumerable: true, get: function () { return v1alpha_1.websecurityscanner_v1alpha; } }); +const v1beta_1 = __webpack_require__(2280); +Object.defineProperty(exports, "websecurityscanner_v1beta", { enumerable: true, get: function () { return v1beta_1.websecurityscanner_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.websecurityscanner_v1.Websecurityscanner, + v1alpha: v1alpha_1.websecurityscanner_v1alpha.Websecurityscanner, + v1beta: v1beta_1.websecurityscanner_v1beta.Websecurityscanner, +}; +function websecurityscanner(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('websecurityscanner', versionOrOptions, exports.VERSIONS, this); +} +exports.websecurityscanner = websecurityscanner; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 850: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = paginationMethodsPlugin + +function paginationMethodsPlugin (octokit) { + octokit.getFirstPage = __webpack_require__(3777).bind(null, octokit) + octokit.getLastPage = __webpack_require__(3649).bind(null, octokit) + octokit.getNextPage = __webpack_require__(6550).bind(null, octokit) + octokit.getPreviousPage = __webpack_require__(4563).bind(null, octokit) + octokit.hasFirstPage = __webpack_require__(1536) + octokit.hasLastPage = __webpack_require__(3336) + octokit.hasNextPage = __webpack_require__(3929) + octokit.hasPreviousPage = __webpack_require__(3558) +} + + +/***/ }), + +/***/ 854: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.abusiveexperiencereport_v1 = exports.auth = exports.abusiveexperiencereport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(128); +Object.defineProperty(exports, "abusiveexperiencereport_v1", { enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } }); +exports.VERSIONS = { + v1: v1_1.abusiveexperiencereport_v1.Abusiveexperiencereport, +}; +function abusiveexperiencereport(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('abusiveexperiencereport', versionOrOptions, exports.VERSIONS, this); +} +exports.abusiveexperiencereport = abusiveexperiencereport; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 856: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const punycode = __webpack_require__(4213); +const tr46 = __webpack_require__(2530); + +const specialSchemes = { + ftp: 21, + file: null, + gopher: 70, + http: 80, + https: 443, + ws: 80, + wss: 443 +}; + +const failure = Symbol("failure"); + +function countSymbols(str) { + return punycode.ucs2.decode(str).length; +} + +function at(input, idx) { + const c = input[idx]; + return isNaN(c) ? undefined : String.fromCodePoint(c); +} + +function isASCIIDigit(c) { + return c >= 0x30 && c <= 0x39; +} + +function isASCIIAlpha(c) { + return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A); +} + +function isASCIIAlphanumeric(c) { + return isASCIIAlpha(c) || isASCIIDigit(c); +} + +function isASCIIHex(c) { + return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66); +} + +function isSingleDot(buffer) { + return buffer === "." || buffer.toLowerCase() === "%2e"; +} + +function isDoubleDot(buffer) { + buffer = buffer.toLowerCase(); + return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e"; +} + +function isWindowsDriveLetterCodePoints(cp1, cp2) { + return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124); +} + +function isWindowsDriveLetterString(string) { + return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|"); +} + +function isNormalizedWindowsDriveLetterString(string) { + return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":"; +} + +function containsForbiddenHostCodePoint(string) { + return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1; +} + +function containsForbiddenHostCodePointExcludingPercent(string) { + return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1; +} + +function isSpecialScheme(scheme) { + return specialSchemes[scheme] !== undefined; +} + +function isSpecial(url) { + return isSpecialScheme(url.scheme); +} + +function defaultPort(scheme) { + return specialSchemes[scheme]; +} + +function percentEncode(c) { + let hex = c.toString(16).toUpperCase(); + if (hex.length === 1) { + hex = "0" + hex; + } + + return "%" + hex; +} + +function utf8PercentEncode(c) { + const buf = new Buffer(c); + + let str = ""; + + for (let i = 0; i < buf.length; ++i) { + str += percentEncode(buf[i]); + } + + return str; +} + +function utf8PercentDecode(str) { + const input = new Buffer(str); + const output = []; + for (let i = 0; i < input.length; ++i) { + if (input[i] !== 37) { + output.push(input[i]); + } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) { + output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16)); + i += 2; + } else { + output.push(input[i]); + } + } + return new Buffer(output).toString(); +} + +function isC0ControlPercentEncode(c) { + return c <= 0x1F || c > 0x7E; +} + +const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]); +function isPathPercentEncode(c) { + return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c); +} + +const extraUserinfoPercentEncodeSet = + new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]); +function isUserinfoPercentEncode(c) { + return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); +} + +function percentEncodeChar(c, encodeSetPredicate) { + const cStr = String.fromCodePoint(c); + + if (encodeSetPredicate(c)) { + return utf8PercentEncode(cStr); + } + + return cStr; +} + +function parseIPv4Number(input) { + let R = 10; + + if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") { + input = input.substring(2); + R = 16; + } else if (input.length >= 2 && input.charAt(0) === "0") { + input = input.substring(1); + R = 8; + } + + if (input === "") { + return 0; + } + + const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/); + if (regex.test(input)) { + return failure; + } + + return parseInt(input, R); +} + +function parseIPv4(input) { + const parts = input.split("."); + if (parts[parts.length - 1] === "") { + if (parts.length > 1) { + parts.pop(); + } + } + + if (parts.length > 4) { + return input; + } + + const numbers = []; + for (const part of parts) { + if (part === "") { + return input; + } + const n = parseIPv4Number(part); + if (n === failure) { + return input; + } + + numbers.push(n); + } + + for (let i = 0; i < numbers.length - 1; ++i) { + if (numbers[i] > 255) { + return failure; + } + } + if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) { + return failure; + } + + let ipv4 = numbers.pop(); + let counter = 0; + + for (const n of numbers) { + ipv4 += n * Math.pow(256, 3 - counter); + ++counter; + } + + return ipv4; +} + +function serializeIPv4(address) { + let output = ""; + let n = address; + + for (let i = 1; i <= 4; ++i) { + output = String(n % 256) + output; + if (i !== 4) { + output = "." + output; + } + n = Math.floor(n / 256); + } + + return output; +} + +function parseIPv6(input) { + const address = [0, 0, 0, 0, 0, 0, 0, 0]; + let pieceIndex = 0; + let compress = null; + let pointer = 0; + + input = punycode.ucs2.decode(input); + + if (input[pointer] === 58) { + if (input[pointer + 1] !== 58) { + return failure; + } + + pointer += 2; + ++pieceIndex; + compress = pieceIndex; + } + + while (pointer < input.length) { + if (pieceIndex === 8) { + return failure; + } + + if (input[pointer] === 58) { + if (compress !== null) { + return failure; + } + ++pointer; + ++pieceIndex; + compress = pieceIndex; + continue; + } + + let value = 0; + let length = 0; + + while (length < 4 && isASCIIHex(input[pointer])) { + value = value * 0x10 + parseInt(at(input, pointer), 16); + ++pointer; + ++length; + } + + if (input[pointer] === 46) { + if (length === 0) { + return failure; + } + + pointer -= length; + + if (pieceIndex > 6) { + return failure; + } + + let numbersSeen = 0; + + while (input[pointer] !== undefined) { + let ipv4Piece = null; + + if (numbersSeen > 0) { + if (input[pointer] === 46 && numbersSeen < 4) { + ++pointer; + } else { + return failure; + } + } + + if (!isASCIIDigit(input[pointer])) { + return failure; + } + + while (isASCIIDigit(input[pointer])) { + const number = parseInt(at(input, pointer)); + if (ipv4Piece === null) { + ipv4Piece = number; + } else if (ipv4Piece === 0) { + return failure; + } else { + ipv4Piece = ipv4Piece * 10 + number; + } + if (ipv4Piece > 255) { + return failure; + } + ++pointer; + } + + address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece; + + ++numbersSeen; + + if (numbersSeen === 2 || numbersSeen === 4) { + ++pieceIndex; + } + } + + if (numbersSeen !== 4) { + return failure; + } + + break; + } else if (input[pointer] === 58) { + ++pointer; + if (input[pointer] === undefined) { + return failure; + } + } else if (input[pointer] !== undefined) { + return failure; + } + + address[pieceIndex] = value; + ++pieceIndex; + } + + if (compress !== null) { + let swaps = pieceIndex - compress; + pieceIndex = 7; + while (pieceIndex !== 0 && swaps > 0) { + const temp = address[compress + swaps - 1]; + address[compress + swaps - 1] = address[pieceIndex]; + address[pieceIndex] = temp; + --pieceIndex; + --swaps; + } + } else if (compress === null && pieceIndex !== 8) { + return failure; + } + + return address; +} + +function serializeIPv6(address) { + let output = ""; + const seqResult = findLongestZeroSequence(address); + const compress = seqResult.idx; + let ignore0 = false; + + for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) { + if (ignore0 && address[pieceIndex] === 0) { + continue; + } else if (ignore0) { + ignore0 = false; + } + + if (compress === pieceIndex) { + const separator = pieceIndex === 0 ? "::" : ":"; + output += separator; + ignore0 = true; + continue; + } + + output += address[pieceIndex].toString(16); + + if (pieceIndex !== 7) { + output += ":"; + } + } + + return output; +} + +function parseHost(input, isSpecialArg) { + if (input[0] === "[") { + if (input[input.length - 1] !== "]") { + return failure; + } + + return parseIPv6(input.substring(1, input.length - 1)); + } + + if (!isSpecialArg) { + return parseOpaqueHost(input); + } + + const domain = utf8PercentDecode(input); + const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false); + if (asciiDomain === null) { + return failure; + } + + if (containsForbiddenHostCodePoint(asciiDomain)) { + return failure; + } + + const ipv4Host = parseIPv4(asciiDomain); + if (typeof ipv4Host === "number" || ipv4Host === failure) { + return ipv4Host; + } + + return asciiDomain; +} + +function parseOpaqueHost(input) { + if (containsForbiddenHostCodePointExcludingPercent(input)) { + return failure; + } + + let output = ""; + const decoded = punycode.ucs2.decode(input); + for (let i = 0; i < decoded.length; ++i) { + output += percentEncodeChar(decoded[i], isC0ControlPercentEncode); + } + return output; +} + +function findLongestZeroSequence(arr) { + let maxIdx = null; + let maxLen = 1; // only find elements > 1 + let currStart = null; + let currLen = 0; + + for (let i = 0; i < arr.length; ++i) { + if (arr[i] !== 0) { + if (currLen > maxLen) { + maxIdx = currStart; + maxLen = currLen; + } + + currStart = null; + currLen = 0; + } else { + if (currStart === null) { + currStart = i; + } + ++currLen; + } + } + + // if trailing zeros + if (currLen > maxLen) { + maxIdx = currStart; + maxLen = currLen; + } + + return { + idx: maxIdx, + len: maxLen + }; +} + +function serializeHost(host) { + if (typeof host === "number") { + return serializeIPv4(host); + } + + // IPv6 serializer + if (host instanceof Array) { + return "[" + serializeIPv6(host) + "]"; + } + + return host; +} + +function trimControlChars(url) { + return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, ""); +} + +function trimTabAndNewline(url) { + return url.replace(/\u0009|\u000A|\u000D/g, ""); +} + +function shortenPath(url) { + const path = url.path; + if (path.length === 0) { + return; + } + if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) { + return; + } + + path.pop(); +} + +function includesCredentials(url) { + return url.username !== "" || url.password !== ""; +} + +function cannotHaveAUsernamePasswordPort(url) { + return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file"; +} + +function isNormalizedWindowsDriveLetter(string) { + return /^[A-Za-z]:$/.test(string); +} + +function URLStateMachine(input, base, encodingOverride, url, stateOverride) { + this.pointer = 0; + this.input = input; + this.base = base || null; + this.encodingOverride = encodingOverride || "utf-8"; + this.stateOverride = stateOverride; + this.url = url; + this.failure = false; + this.parseError = false; + + if (!this.url) { + this.url = { + scheme: "", + username: "", + password: "", + host: null, + port: null, + path: [], + query: null, + fragment: null, + + cannotBeABaseURL: false + }; + + const res = trimControlChars(this.input); + if (res !== this.input) { + this.parseError = true; + } + this.input = res; + } + + const res = trimTabAndNewline(this.input); + if (res !== this.input) { + this.parseError = true; + } + this.input = res; + + this.state = stateOverride || "scheme start"; + + this.buffer = ""; + this.atFlag = false; + this.arrFlag = false; + this.passwordTokenSeenFlag = false; + + this.input = punycode.ucs2.decode(this.input); + + for (; this.pointer <= this.input.length; ++this.pointer) { + const c = this.input[this.pointer]; + const cStr = isNaN(c) ? undefined : String.fromCodePoint(c); + + // exec state machine + const ret = this["parse " + this.state](c, cStr); + if (!ret) { + break; // terminate algorithm + } else if (ret === failure) { + this.failure = true; + break; + } + } +} + +URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) { + if (isASCIIAlpha(c)) { + this.buffer += cStr.toLowerCase(); + this.state = "scheme"; + } else if (!this.stateOverride) { + this.state = "no scheme"; + --this.pointer; + } else { + this.parseError = true; + return failure; + } + + return true; +}; + +URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) { + if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) { + this.buffer += cStr.toLowerCase(); + } else if (c === 58) { + if (this.stateOverride) { + if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) { + return false; + } + + if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) { + return false; + } + + if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") { + return false; + } + + if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) { + return false; + } + } + this.url.scheme = this.buffer; + this.buffer = ""; + if (this.stateOverride) { + return false; + } + if (this.url.scheme === "file") { + if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) { + this.parseError = true; + } + this.state = "file"; + } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) { + this.state = "special relative or authority"; + } else if (isSpecial(this.url)) { + this.state = "special authority slashes"; + } else if (this.input[this.pointer + 1] === 47) { + this.state = "path or authority"; + ++this.pointer; + } else { + this.url.cannotBeABaseURL = true; + this.url.path.push(""); + this.state = "cannot-be-a-base-URL path"; + } + } else if (!this.stateOverride) { + this.buffer = ""; + this.state = "no scheme"; + this.pointer = -1; + } else { + this.parseError = true; + return failure; + } + + return true; +}; + +URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) { + if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) { + return failure; + } else if (this.base.cannotBeABaseURL && c === 35) { + this.url.scheme = this.base.scheme; + this.url.path = this.base.path.slice(); + this.url.query = this.base.query; + this.url.fragment = ""; + this.url.cannotBeABaseURL = true; + this.state = "fragment"; + } else if (this.base.scheme === "file") { + this.state = "file"; + --this.pointer; + } else { + this.state = "relative"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) { + if (c === 47 && this.input[this.pointer + 1] === 47) { + this.state = "special authority ignore slashes"; + ++this.pointer; + } else { + this.parseError = true; + this.state = "relative"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) { + if (c === 47) { + this.state = "authority"; + } else { + this.state = "path"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse relative"] = function parseRelative(c) { + this.url.scheme = this.base.scheme; + if (isNaN(c)) { + this.url.username = this.base.username; + this.url.password = this.base.password; + this.url.host = this.base.host; + this.url.port = this.base.port; + this.url.path = this.base.path.slice(); + this.url.query = this.base.query; + } else if (c === 47) { + this.state = "relative slash"; + } else if (c === 63) { + this.url.username = this.base.username; + this.url.password = this.base.password; + this.url.host = this.base.host; + this.url.port = this.base.port; + this.url.path = this.base.path.slice(); + this.url.query = ""; + this.state = "query"; + } else if (c === 35) { + this.url.username = this.base.username; + this.url.password = this.base.password; + this.url.host = this.base.host; + this.url.port = this.base.port; + this.url.path = this.base.path.slice(); + this.url.query = this.base.query; + this.url.fragment = ""; + this.state = "fragment"; + } else if (isSpecial(this.url) && c === 92) { + this.parseError = true; + this.state = "relative slash"; + } else { + this.url.username = this.base.username; + this.url.password = this.base.password; + this.url.host = this.base.host; + this.url.port = this.base.port; + this.url.path = this.base.path.slice(0, this.base.path.length - 1); + + this.state = "path"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) { + if (isSpecial(this.url) && (c === 47 || c === 92)) { + if (c === 92) { + this.parseError = true; + } + this.state = "special authority ignore slashes"; + } else if (c === 47) { + this.state = "authority"; + } else { + this.url.username = this.base.username; + this.url.password = this.base.password; + this.url.host = this.base.host; + this.url.port = this.base.port; + this.state = "path"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) { + if (c === 47 && this.input[this.pointer + 1] === 47) { + this.state = "special authority ignore slashes"; + ++this.pointer; + } else { + this.parseError = true; + this.state = "special authority ignore slashes"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) { + if (c !== 47 && c !== 92) { + this.state = "authority"; + --this.pointer; + } else { + this.parseError = true; + } + + return true; +}; + +URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) { + if (c === 64) { + this.parseError = true; + if (this.atFlag) { + this.buffer = "%40" + this.buffer; + } + this.atFlag = true; + + // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars + const len = countSymbols(this.buffer); + for (let pointer = 0; pointer < len; ++pointer) { + const codePoint = this.buffer.codePointAt(pointer); + + if (codePoint === 58 && !this.passwordTokenSeenFlag) { + this.passwordTokenSeenFlag = true; + continue; + } + const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode); + if (this.passwordTokenSeenFlag) { + this.url.password += encodedCodePoints; + } else { + this.url.username += encodedCodePoints; + } + } + this.buffer = ""; + } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || + (isSpecial(this.url) && c === 92)) { + if (this.atFlag && this.buffer === "") { + this.parseError = true; + return failure; + } + this.pointer -= countSymbols(this.buffer) + 1; + this.buffer = ""; + this.state = "host"; + } else { + this.buffer += cStr; + } + + return true; +}; + +URLStateMachine.prototype["parse hostname"] = +URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) { + if (this.stateOverride && this.url.scheme === "file") { + --this.pointer; + this.state = "file host"; + } else if (c === 58 && !this.arrFlag) { + if (this.buffer === "") { + this.parseError = true; + return failure; + } + + const host = parseHost(this.buffer, isSpecial(this.url)); + if (host === failure) { + return failure; + } + + this.url.host = host; + this.buffer = ""; + this.state = "port"; + if (this.stateOverride === "hostname") { + return false; + } + } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || + (isSpecial(this.url) && c === 92)) { + --this.pointer; + if (isSpecial(this.url) && this.buffer === "") { + this.parseError = true; + return failure; + } else if (this.stateOverride && this.buffer === "" && + (includesCredentials(this.url) || this.url.port !== null)) { + this.parseError = true; + return false; + } + + const host = parseHost(this.buffer, isSpecial(this.url)); + if (host === failure) { + return failure; + } + + this.url.host = host; + this.buffer = ""; + this.state = "path start"; + if (this.stateOverride) { + return false; + } + } else { + if (c === 91) { + this.arrFlag = true; + } else if (c === 93) { + this.arrFlag = false; + } + this.buffer += cStr; + } + + return true; +}; + +URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) { + if (isASCIIDigit(c)) { + this.buffer += cStr; + } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || + (isSpecial(this.url) && c === 92) || + this.stateOverride) { + if (this.buffer !== "") { + const port = parseInt(this.buffer); + if (port > Math.pow(2, 16) - 1) { + this.parseError = true; + return failure; + } + this.url.port = port === defaultPort(this.url.scheme) ? null : port; + this.buffer = ""; + } + if (this.stateOverride) { + return false; + } + this.state = "path start"; + --this.pointer; + } else { + this.parseError = true; + return failure; + } + + return true; +}; + +const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]); + +URLStateMachine.prototype["parse file"] = function parseFile(c) { + this.url.scheme = "file"; + + if (c === 47 || c === 92) { + if (c === 92) { + this.parseError = true; + } + this.state = "file slash"; + } else if (this.base !== null && this.base.scheme === "file") { + if (isNaN(c)) { + this.url.host = this.base.host; + this.url.path = this.base.path.slice(); + this.url.query = this.base.query; + } else if (c === 63) { + this.url.host = this.base.host; + this.url.path = this.base.path.slice(); + this.url.query = ""; + this.state = "query"; + } else if (c === 35) { + this.url.host = this.base.host; + this.url.path = this.base.path.slice(); + this.url.query = this.base.query; + this.url.fragment = ""; + this.state = "fragment"; + } else { + if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points + !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) || + (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points + !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) { + this.url.host = this.base.host; + this.url.path = this.base.path.slice(); + shortenPath(this.url); + } else { + this.parseError = true; + } + + this.state = "path"; + --this.pointer; + } + } else { + this.state = "path"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) { + if (c === 47 || c === 92) { + if (c === 92) { + this.parseError = true; + } + this.state = "file host"; + } else { + if (this.base !== null && this.base.scheme === "file") { + if (isNormalizedWindowsDriveLetterString(this.base.path[0])) { + this.url.path.push(this.base.path[0]); + } else { + this.url.host = this.base.host; + } + } + this.state = "path"; + --this.pointer; + } + + return true; +}; + +URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) { + if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) { + --this.pointer; + if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) { + this.parseError = true; + this.state = "path"; + } else if (this.buffer === "") { + this.url.host = ""; + if (this.stateOverride) { + return false; + } + this.state = "path start"; + } else { + let host = parseHost(this.buffer, isSpecial(this.url)); + if (host === failure) { + return failure; + } + if (host === "localhost") { + host = ""; + } + this.url.host = host; + + if (this.stateOverride) { + return false; + } + + this.buffer = ""; + this.state = "path start"; + } + } else { + this.buffer += cStr; + } + + return true; +}; + +URLStateMachine.prototype["parse path start"] = function parsePathStart(c) { + if (isSpecial(this.url)) { + if (c === 92) { + this.parseError = true; + } + this.state = "path"; + + if (c !== 47 && c !== 92) { + --this.pointer; + } + } else if (!this.stateOverride && c === 63) { + this.url.query = ""; + this.state = "query"; + } else if (!this.stateOverride && c === 35) { + this.url.fragment = ""; + this.state = "fragment"; + } else if (c !== undefined) { + this.state = "path"; + if (c !== 47) { + --this.pointer; + } + } + + return true; +}; + +URLStateMachine.prototype["parse path"] = function parsePath(c) { + if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) || + (!this.stateOverride && (c === 63 || c === 35))) { + if (isSpecial(this.url) && c === 92) { + this.parseError = true; + } + + if (isDoubleDot(this.buffer)) { + shortenPath(this.url); + if (c !== 47 && !(isSpecial(this.url) && c === 92)) { + this.url.path.push(""); + } + } else if (isSingleDot(this.buffer) && c !== 47 && + !(isSpecial(this.url) && c === 92)) { + this.url.path.push(""); + } else if (!isSingleDot(this.buffer)) { + if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) { + if (this.url.host !== "" && this.url.host !== null) { + this.parseError = true; + this.url.host = ""; + } + this.buffer = this.buffer[0] + ":"; + } + this.url.path.push(this.buffer); + } + this.buffer = ""; + if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) { + while (this.url.path.length > 1 && this.url.path[0] === "") { + this.parseError = true; + this.url.path.shift(); + } + } + if (c === 63) { + this.url.query = ""; + this.state = "query"; + } + if (c === 35) { + this.url.fragment = ""; + this.state = "fragment"; + } + } else { + // TODO: If c is not a URL code point and not "%", parse error. + + if (c === 37 && + (!isASCIIHex(this.input[this.pointer + 1]) || + !isASCIIHex(this.input[this.pointer + 2]))) { + this.parseError = true; + } + + this.buffer += percentEncodeChar(c, isPathPercentEncode); + } + + return true; +}; + +URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) { + if (c === 63) { + this.url.query = ""; + this.state = "query"; + } else if (c === 35) { + this.url.fragment = ""; + this.state = "fragment"; + } else { + // TODO: Add: not a URL code point + if (!isNaN(c) && c !== 37) { + this.parseError = true; + } + + if (c === 37 && + (!isASCIIHex(this.input[this.pointer + 1]) || + !isASCIIHex(this.input[this.pointer + 2]))) { + this.parseError = true; + } + + if (!isNaN(c)) { + this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode); + } + } + + return true; +}; + +URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) { + if (isNaN(c) || (!this.stateOverride && c === 35)) { + if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") { + this.encodingOverride = "utf-8"; + } + + const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead + for (let i = 0; i < buffer.length; ++i) { + if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 || + buffer[i] === 0x3C || buffer[i] === 0x3E) { + this.url.query += percentEncode(buffer[i]); + } else { + this.url.query += String.fromCodePoint(buffer[i]); + } + } + + this.buffer = ""; + if (c === 35) { + this.url.fragment = ""; + this.state = "fragment"; + } + } else { + // TODO: If c is not a URL code point and not "%", parse error. + if (c === 37 && + (!isASCIIHex(this.input[this.pointer + 1]) || + !isASCIIHex(this.input[this.pointer + 2]))) { + this.parseError = true; + } + + this.buffer += cStr; + } + + return true; +}; + +URLStateMachine.prototype["parse fragment"] = function parseFragment(c) { + if (isNaN(c)) { // do nothing + } else if (c === 0x0) { + this.parseError = true; + } else { + // TODO: If c is not a URL code point and not "%", parse error. + if (c === 37 && + (!isASCIIHex(this.input[this.pointer + 1]) || + !isASCIIHex(this.input[this.pointer + 2]))) { + this.parseError = true; + } + + this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode); + } + + return true; +}; + +function serializeURL(url, excludeFragment) { + let output = url.scheme + ":"; + if (url.host !== null) { + output += "//"; + + if (url.username !== "" || url.password !== "") { + output += url.username; + if (url.password !== "") { + output += ":" + url.password; + } + output += "@"; + } + + output += serializeHost(url.host); + + if (url.port !== null) { + output += ":" + url.port; + } + } else if (url.host === null && url.scheme === "file") { + output += "//"; + } + + if (url.cannotBeABaseURL) { + output += url.path[0]; + } else { + for (const string of url.path) { + output += "/" + string; + } + } + + if (url.query !== null) { + output += "?" + url.query; + } + + if (!excludeFragment && url.fragment !== null) { + output += "#" + url.fragment; + } + + return output; +} + +function serializeOrigin(tuple) { + let result = tuple.scheme + "://"; + result += serializeHost(tuple.host); + + if (tuple.port !== null) { + result += ":" + tuple.port; + } + + return result; +} + +module.exports.serializeURL = serializeURL; + +module.exports.serializeURLOrigin = function (url) { + // https://url.spec.whatwg.org/#concept-url-origin + switch (url.scheme) { + case "blob": + try { + return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0])); + } catch (e) { + // serializing an opaque origin returns "null" + return "null"; + } + case "ftp": + case "gopher": + case "http": + case "https": + case "ws": + case "wss": + return serializeOrigin({ + scheme: url.scheme, + host: url.host, + port: url.port + }); + case "file": + // spec says "exercise to the reader", chrome says "file://" + return "file://"; + default: + // serializing an opaque origin returns "null" + return "null"; + } +}; + +module.exports.basicURLParse = function (input, options) { + if (options === undefined) { + options = {}; + } + + const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride); + if (usm.failure) { + return "failure"; + } + + return usm.url; +}; + +module.exports.setTheUsername = function (url, username) { + url.username = ""; + const decoded = punycode.ucs2.decode(username); + for (let i = 0; i < decoded.length; ++i) { + url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode); + } +}; + +module.exports.setThePassword = function (url, password) { + url.password = ""; + const decoded = punycode.ucs2.decode(password); + for (let i = 0; i < decoded.length; ++i) { + url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode); + } +}; + +module.exports.serializeHost = serializeHost; + +module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort; + +module.exports.serializeInteger = function (integer) { + return String(integer); +}; + +module.exports.parseURL = function (input, options) { + if (options === undefined) { + options = {}; + } + + // We don't handle blobs, so this just delegates: + return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride }); +}; + + +/***/ }), + +/***/ 879: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.mybusinessaccountmanagement_v1 = exports.auth = exports.mybusinessaccountmanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5304); +Object.defineProperty(exports, "mybusinessaccountmanagement_v1", { enumerable: true, get: function () { return v1_1.mybusinessaccountmanagement_v1; } }); +exports.VERSIONS = { + v1: v1_1.mybusinessaccountmanagement_v1.Mybusinessaccountmanagement, +}; +function mybusinessaccountmanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessaccountmanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessaccountmanagement = mybusinessaccountmanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 913: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.groupssettings_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var groupssettings_v1; +(function (groupssettings_v1) { + /** + * Groups Settings API + * + * Manages permission levels and related settings of a group. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const groupssettings = google.groupssettings('v1'); + * ``` + */ + class Groupssettings { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.groups = new Resource$Groups(this.context); + } + } + groupssettings_v1.Groupssettings = Groupssettings; + class Resource$Groups { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71621,27 +67362,26 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['groupUniqueId'], + pathParams: ['groupUniqueId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71652,27 +67392,117 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['groupUniqueId'], + pathParams: ['groupUniqueId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['groupUniqueId'], + pathParams: ['groupUniqueId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + groupssettings_v1.Resource$Groups = Resource$Groups; +})(groupssettings_v1 = exports.groupssettings_v1 || (exports.groupssettings_v1 = {})); + + +/***/ }), + +/***/ 914: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.adexchangebuyer_v1_2 = 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 = __webpack_require__(927); +var adexchangebuyer_v1_2; +(function (adexchangebuyer_v1_2) { + /** + * Ad Exchange Buyer API + * + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adexchangebuyer = google.adexchangebuyer('v1.2'); + * ``` + */ + class Adexchangebuyer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.creatives = new Resource$Creatives(this.context); + } + } + adexchangebuyer_v1_2.Adexchangebuyer = Adexchangebuyer; + class Resource$Accounts { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71683,27 +67513,26 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71714,27 +67543,26 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71745,27 +67573,26 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71776,33 +67603,32 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/accessLevels:replaceAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; - class Resource$Accesspolicies$Serviceperimeters { + adexchangebuyer_v1_2.Resource$Accounts = Resource$Accounts; + class Resource$Creatives { constructor(context) { this.context = context; } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71813,27 +67639,27 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters:commit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71844,72 +67670,191 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_2.Resource$Creatives = Resource$Creatives; +})(adexchangebuyer_v1_2 = exports.adexchangebuyer_v1_2 || (exports.adexchangebuyer_v1_2 = {})); + + +/***/ }), + +/***/ 924: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.retail_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var retail_v2; +(function (retail_v2) { + /** + * Retail API + * + * Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const retail = google.retail('v2'); + * ``` + */ + class Retail { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + retail_v2.Retail = Retail; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + retail_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + retail_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Catalogs { + constructor(context) { + this.context = context; + this.attributesConfig = + new Resource$Projects$Locations$Catalogs$Attributesconfig(this.context); + this.branches = new Resource$Projects$Locations$Catalogs$Branches(this.context); + this.completionData = + new Resource$Projects$Locations$Catalogs$Completiondata(this.context); + this.controls = new Resource$Projects$Locations$Catalogs$Controls(this.context); + this.models = new Resource$Projects$Locations$Catalogs$Models(this.context); + this.operations = new Resource$Projects$Locations$Catalogs$Operations(this.context); + this.placements = new Resource$Projects$Locations$Catalogs$Placements(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Catalogs$Servingconfigs(this.context); + this.userEvents = new Resource$Projects$Locations$Catalogs$Userevents(this.context); + } + completeQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -71918,75 +67863,77 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceAll(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71999,11 +67946,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters:replaceAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -72011,19 +67958,13 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accesscontextmanager_v1.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; - class Resource$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72036,11 +67977,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -72048,60 +67989,63 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -72109,29 +68053,31 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -72139,264 +68085,148 @@ var accesscontextmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accesscontextmanager_v1.Resource$Operations = Resource$Operations; -})(accesscontextmanager_v1 = exports.accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 228 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.videointelligence_v1p3beta1 = 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 = __webpack_require__(927); -var videointelligence_v1p3beta1; -(function (videointelligence_v1p3beta1) { - /** - * Cloud Video Intelligence API - * - * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. - * - * @example - * const {google} = require('googleapis'); - * const videointelligence = google.videointelligence('v1p3beta1'); - * - * @namespace videointelligence - * @type {Function} - * @version v1p3beta1 - * @variation v1p3beta1 - * @param {object=} options Options for Videointelligence - */ - class Videointelligence { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.videos = new Resource$Videos(this.context); - } - } - videointelligence_v1p3beta1.Videointelligence = Videointelligence; - class Resource$Videos { + retail_v2.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; + class Resource$Projects$Locations$Catalogs$Attributesconfig { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p3beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - videointelligence_v1p3beta1.Resource$Videos = Resource$Videos; -})(videointelligence_v1p3beta1 = exports.videointelligence_v1p3beta1 || (exports.videointelligence_v1p3beta1 = {})); -//# sourceMappingURL=v1p3beta1.js.map - -/***/ }), -/* 229 */, -/* 230 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.composer_v1beta1 = 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 = __webpack_require__(927); -var composer_v1beta1; -(function (composer_v1beta1) { - /** - * Cloud Composer API - * - * Manages Apache Airflow environments on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const composer = google.composer('v1beta1'); - * - * @namespace composer - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Composer - */ - class Composer { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - composer_v1beta1.Composer = Composer; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - composer_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.environments = new Resource$Projects$Locations$Environments(this.context); - this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - } - composer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Environments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + removeCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + replaceCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + retail_v2.Resource$Projects$Locations$Catalogs$Attributesconfig = Resource$Projects$Locations$Catalogs$Attributesconfig; + class Resource$Projects$Locations$Catalogs$Branches { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Catalogs$Branches$Operations(this.context); + this.products = + new Resource$Projects$Locations$Catalogs$Branches$Products(this.context); + } + } + retail_v2.Resource$Projects$Locations$Catalogs$Branches = Resource$Projects$Locations$Catalogs$Branches; + class Resource$Projects$Locations$Catalogs$Branches$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -72405,98 +68235,101 @@ var composer_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Locations$Catalogs$Branches$Operations = Resource$Projects$Locations$Catalogs$Branches$Operations; + class Resource$Projects$Locations$Catalogs$Branches$Products { + constructor(context) { + this.context = context; + } + addFulfillmentPlaces(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + addLocalInventories(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - composer_v1beta1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; - class Resource$Projects$Locations$Imageversions { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -72504,35 +68337,30 @@ var composer_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - composer_v1beta1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -72541,10 +68369,10 @@ var composer_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -72553,17 +68381,18 @@ var composer_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -72572,263 +68401,191 @@ var composer_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/products:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - composer_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(composer_v1beta1 = exports.composer_v1beta1 || (exports.composer_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 231 */, -/* 232 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.oslogin_v1beta = 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 = __webpack_require__(927); -var oslogin_v1beta; -(function (oslogin_v1beta) { - /** - * Cloud OS Login API - * - * You can use OS Login to manage access to your VM instances using IAM roles. - * - * @example - * const {google} = require('googleapis'); - * const oslogin = google.oslogin('v1beta'); - * - * @namespace oslogin - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Oslogin - */ - class Oslogin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.users = new Resource$Users(this.context); - } - } - oslogin_v1beta.Oslogin = Oslogin; - class Resource$Users { - constructor(context) { - this.context = context; - this.projects = new Resource$Users$Projects(this.context); - this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); - } - getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oslogin_v1beta.Resource$Users = Resource$Users; - class Resource$Users$Projects { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeFulfillmentPlaces(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oslogin_v1beta.Resource$Users$Projects = Resource$Users$Projects; - class Resource$Users$Sshpublickeys { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeLocalInventories(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setInventory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -72836,245 +68593,121 @@ var oslogin_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Locations$Catalogs$Branches$Products = Resource$Projects$Locations$Catalogs$Branches$Products; + class Resource$Projects$Locations$Catalogs$Completiondata { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - oslogin_v1beta.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; -})(oslogin_v1beta = exports.oslogin_v1beta || (exports.oslogin_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 233 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.compute_beta = 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 = __webpack_require__(927); -var compute_beta; -(function (compute_beta) { - /** - * Compute Engine API - * - * Creates and runs virtual machines on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const compute = google.compute('beta'); - * - * @namespace compute - * @type {Function} - * @version beta - * @variation beta - * @param {object=} options Options for Compute - */ - class Compute { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.acceleratorTypes = new Resource$Acceleratortypes(this.context); - this.addresses = new Resource$Addresses(this.context); - this.autoscalers = new Resource$Autoscalers(this.context); - this.backendBuckets = new Resource$Backendbuckets(this.context); - this.backendServices = new Resource$Backendservices(this.context); - this.disks = new Resource$Disks(this.context); - this.diskTypes = new Resource$Disktypes(this.context); - this.externalVpnGateways = new Resource$Externalvpngateways(this.context); - this.firewalls = new Resource$Firewalls(this.context); - this.forwardingRules = new Resource$Forwardingrules(this.context); - this.globalAddresses = new Resource$Globaladdresses(this.context); - this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); - this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); - this.globalOperations = new Resource$Globaloperations(this.context); - this.globalOrganizationOperations = new Resource$Globalorganizationoperations(this.context); - this.healthChecks = new Resource$Healthchecks(this.context); - this.httpHealthChecks = new Resource$Httphealthchecks(this.context); - this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); - this.images = new Resource$Images(this.context); - this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); - this.instanceGroups = new Resource$Instancegroups(this.context); - this.instances = new Resource$Instances(this.context); - this.instanceTemplates = new Resource$Instancetemplates(this.context); - this.interconnectAttachments = new Resource$Interconnectattachments(this.context); - this.interconnectLocations = new Resource$Interconnectlocations(this.context); - this.interconnects = new Resource$Interconnects(this.context); - this.licenseCodes = new Resource$Licensecodes(this.context); - this.licenses = new Resource$Licenses(this.context); - this.machineImages = new Resource$Machineimages(this.context); - this.machineTypes = new Resource$Machinetypes(this.context); - this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); - this.networks = new Resource$Networks(this.context); - this.nodeGroups = new Resource$Nodegroups(this.context); - this.nodeTemplates = new Resource$Nodetemplates(this.context); - this.nodeTypes = new Resource$Nodetypes(this.context); - this.organizationSecurityPolicies = new Resource$Organizationsecuritypolicies(this.context); - this.packetMirrorings = new Resource$Packetmirrorings(this.context); - this.projects = new Resource$Projects(this.context); - this.regionAutoscalers = new Resource$Regionautoscalers(this.context); - this.regionBackendServices = new Resource$Regionbackendservices(this.context); - this.regionCommitments = new Resource$Regioncommitments(this.context); - this.regionDisks = new Resource$Regiondisks(this.context); - this.regionDiskTypes = new Resource$Regiondisktypes(this.context); - this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); - this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); - this.regionInstanceGroupManagers = new Resource$Regioninstancegroupmanagers(this.context); - this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); - this.regionNotificationEndpoints = new Resource$Regionnotificationendpoints(this.context); - this.regionOperations = new Resource$Regionoperations(this.context); - this.regions = new Resource$Regions(this.context); - this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); - this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); - this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); - this.regionUrlMaps = new Resource$Regionurlmaps(this.context); - this.reservations = new Resource$Reservations(this.context); - this.resourcePolicies = new Resource$Resourcepolicies(this.context); - this.routers = new Resource$Routers(this.context); - this.routes = new Resource$Routes(this.context); - this.securityPolicies = new Resource$Securitypolicies(this.context); - this.snapshots = new Resource$Snapshots(this.context); - this.sslCertificates = new Resource$Sslcertificates(this.context); - this.sslPolicies = new Resource$Sslpolicies(this.context); - this.subnetworks = new Resource$Subnetworks(this.context); - this.targetHttpProxies = new Resource$Targethttpproxies(this.context); - this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); - this.targetInstances = new Resource$Targetinstances(this.context); - this.targetPools = new Resource$Targetpools(this.context); - this.targetSslProxies = new Resource$Targetsslproxies(this.context); - this.targetTcpProxies = new Resource$Targettcpproxies(this.context); - this.targetVpnGateways = new Resource$Targetvpngateways(this.context); - this.urlMaps = new Resource$Urlmaps(this.context); - this.vpnGateways = new Resource$Vpngateways(this.context); - this.vpnTunnels = new Resource$Vpntunnels(this.context); - this.zoneOperations = new Resource$Zoneoperations(this.context); - this.zones = new Resource$Zones(this.context); - } - } - compute_beta.Compute = Compute; - class Resource$Acceleratortypes { + retail_v2.Resource$Projects$Locations$Catalogs$Completiondata = Resource$Projects$Locations$Catalogs$Completiondata; + class Resource$Projects$Locations$Catalogs$Controls { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'acceleratorType'], - pathParams: ['acceleratorType', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73087,187 +68720,159 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Acceleratortypes = Resource$Acceleratortypes; - class Resource$Addresses { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + retail_v2.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; + class Resource$Projects$Locations$Catalogs$Models { + constructor(context) { + this.context = context; } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73280,26 +68885,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73312,32 +68916,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Addresses = Resource$Addresses; - class Resource$Autoscalers { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73350,26 +68947,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73382,57 +68978,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + tune(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73445,252 +69041,264 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + retail_v2.Resource$Projects$Locations$Catalogs$Models = Resource$Projects$Locations$Catalogs$Models; + class Resource$Projects$Locations$Catalogs$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; + class Resource$Projects$Locations$Catalogs$Placements { + constructor(context) { + this.context = context; + } + predict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Autoscalers = Resource$Autoscalers; - class Resource$Backendbuckets { + retail_v2.Resource$Projects$Locations$Catalogs$Placements = Resource$Projects$Locations$Catalogs$Placements; + class Resource$Projects$Locations$Catalogs$Servingconfigs { constructor(context) { this.context = context; } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + addControl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendBucket', 'keyName'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -73699,357 +69307,365 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + predict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + removeControl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Backendbuckets = Resource$Backendbuckets; - class Resource$Backendservices { - constructor(context) { - this.context = context; - } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Locations$Catalogs$Servingconfigs = Resource$Projects$Locations$Catalogs$Servingconfigs; + class Resource$Projects$Locations$Catalogs$Userevents { + constructor(context) { + this.context = context; + } + collect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService', 'keyName'], - pathParams: ['backendService', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rejoin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + write(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74062,23 +69678,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -74094,26 +69709,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74126,26 +69746,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74158,26 +69777,381 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.Resource$Projects$Operations = Resource$Projects$Operations; +})(retail_v2 = exports.retail_v2 || (exports.retail_v2 = {})); + + +/***/ }), + +/***/ 927: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.Endpoint = exports.Discovery = exports.AuthPlus = exports.createAPIRequest = exports.getAPI = exports.GaxiosError = exports.Gaxios = exports.AwsClient = exports.IdentityPoolClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.GoogleAuth = exports.DefaultTransporter = exports.UserRefreshClient = exports.Compute = exports.JWT = exports.OAuth2Client = void 0; +var google_auth_library_1 = __webpack_require__(3668); +Object.defineProperty(exports, "OAuth2Client", { enumerable: true, get: function () { return google_auth_library_1.OAuth2Client; } }); +Object.defineProperty(exports, "JWT", { enumerable: true, get: function () { return google_auth_library_1.JWT; } }); +Object.defineProperty(exports, "Compute", { enumerable: true, get: function () { return google_auth_library_1.Compute; } }); +Object.defineProperty(exports, "UserRefreshClient", { enumerable: true, get: function () { return google_auth_library_1.UserRefreshClient; } }); +Object.defineProperty(exports, "DefaultTransporter", { enumerable: true, get: function () { return google_auth_library_1.DefaultTransporter; } }); +Object.defineProperty(exports, "GoogleAuth", { enumerable: true, get: function () { return google_auth_library_1.GoogleAuth; } }); +Object.defineProperty(exports, "ExternalAccountClient", { enumerable: true, get: function () { return google_auth_library_1.ExternalAccountClient; } }); +Object.defineProperty(exports, "BaseExternalAccountClient", { enumerable: true, get: function () { return google_auth_library_1.BaseExternalAccountClient; } }); +Object.defineProperty(exports, "IdentityPoolClient", { enumerable: true, get: function () { return google_auth_library_1.IdentityPoolClient; } }); +Object.defineProperty(exports, "AwsClient", { enumerable: true, get: function () { return google_auth_library_1.AwsClient; } }); +var gaxios_1 = __webpack_require__(3597); +Object.defineProperty(exports, "Gaxios", { enumerable: true, get: function () { return gaxios_1.Gaxios; } }); +Object.defineProperty(exports, "GaxiosError", { enumerable: true, get: function () { return gaxios_1.GaxiosError; } }); +var apiIndex_1 = __webpack_require__(3996); +Object.defineProperty(exports, "getAPI", { enumerable: true, get: function () { return apiIndex_1.getAPI; } }); +var apirequest_1 = __webpack_require__(5421); +Object.defineProperty(exports, "createAPIRequest", { enumerable: true, get: function () { return apirequest_1.createAPIRequest; } }); +var authplus_1 = __webpack_require__(2254); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return authplus_1.AuthPlus; } }); +var discovery_1 = __webpack_require__(5883); +Object.defineProperty(exports, "Discovery", { enumerable: true, get: function () { return discovery_1.Discovery; } }); +var endpoint_1 = __webpack_require__(5165); +Object.defineProperty(exports, "Endpoint", { enumerable: true, get: function () { return endpoint_1.Endpoint; } }); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 948: +/***/ (function(module) { + +"use strict"; + + +/** + * Tries to execute a function and discards any error that occurs. + * @param {Function} fn - Function that might or might not throw an error. + * @returns {?*} Return-value of the function when no error occurred. + */ +module.exports = function(fn) { + + try { return fn() } catch (e) {} + +} + +/***/ }), + +/***/ 992: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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.ExternalAccountClient = void 0; +const baseexternalclient_1 = __webpack_require__(48); +const identitypoolclient_1 = __webpack_require__(6345); +const awsclient_1 = __webpack_require__(7549); +const pluggable_auth_client_1 = __webpack_require__(282); +/** + * Dummy class with no constructor. Developers are expected to use fromJSON. + */ +class ExternalAccountClient { + constructor() { + throw new Error('ExternalAccountClients should be initialized via: ' + + 'ExternalAccountClient.fromJSON(), ' + + 'directly via explicit constructors, eg. ' + + 'new AwsClient(options), new IdentityPoolClient(options), new' + + 'PluggableAuthClientOptions, or via ' + + 'new GoogleAuth(options).getClient()'); + } + /** + * This static method will instantiate the + * corresponding type of external account credential depending on the + * underlying credential source. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + * @return A BaseExternalAccountClient instance or null if the options + * provided do not correspond to an external account credential. + */ + static fromJSON(options, additionalOptions) { + var _a, _b; + if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) { + return new awsclient_1.AwsClient(options, additionalOptions); + } + else if ((_b = options.credential_source) === null || _b === void 0 ? void 0 : _b.executable) { + return new pluggable_auth_client_1.PluggableAuthClient(options, additionalOptions); + } + else { + return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); + } + } + else { + return null; + } + } +} +exports.ExternalAccountClient = ExternalAccountClient; +//# sourceMappingURL=externalclient.js.map + +/***/ }), + +/***/ 998: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +var shebangRegex = __webpack_require__(2171); + +module.exports = function (str) { + var match = str.match(shebangRegex); + + if (!match) { + return null; + } + + var arr = match[0].replace(/#! ?/, '').split(' '); + var bin = arr[0].split('/').pop(); + var arg = arr[1]; + + return (bin === 'env' ? + arg : + bin + (arg ? ' ' + arg : '') + ); +}; + + +/***/ }), + +/***/ 1003: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.clouddeploy_v1 = exports.auth = exports.clouddeploy = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5970); +Object.defineProperty(exports, "clouddeploy_v1", { enumerable: true, get: function () { return v1_1.clouddeploy_v1; } }); +exports.VERSIONS = { + v1: v1_1.clouddeploy_v1.Clouddeploy, +}; +function clouddeploy(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('clouddeploy', versionOrOptions, exports.VERSIONS, this); +} +exports.clouddeploy = clouddeploy; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1005: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.reseller_v1 = exports.auth = exports.reseller = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8940); +Object.defineProperty(exports, "reseller_v1", { enumerable: true, get: function () { return v1_1.reseller_v1; } }); +exports.VERSIONS = { + v1: v1_1.reseller_v1.Reseller, +}; +function reseller(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('reseller', versionOrOptions, exports.VERSIONS, this); +} +exports.reseller = reseller; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1017: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.workflows_v1beta = exports.workflows_v1 = exports.auth = exports.workflows = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3946); +Object.defineProperty(exports, "workflows_v1", { enumerable: true, get: function () { return v1_1.workflows_v1; } }); +const v1beta_1 = __webpack_require__(5949); +Object.defineProperty(exports, "workflows_v1beta", { enumerable: true, get: function () { return v1beta_1.workflows_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.workflows_v1.Workflows, + v1beta: v1beta_1.workflows_v1beta.Workflows, +}; +function workflows(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('workflows', versionOrOptions, exports.VERSIONS, this); +} +exports.workflows = workflows; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1018: +/***/ (function(module) { + +module.exports = eval("require")("encoding"); + + +/***/ }), + +/***/ 1021: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.servicedirectory_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var servicedirectory_v1; +(function (servicedirectory_v1) { + /** + * Service Directory API + * + * Service Directory is a platform for discovering, publishing, and connecting services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicedirectory = google.servicedirectory('v1'); + * ``` + */ + class Servicedirectory { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + servicedirectory_v1.Servicedirectory = Servicedirectory; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + servicedirectory_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74190,26 +70164,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74222,32 +70195,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Backendservices = Resource$Backendservices; - class Resource$Disks { + servicedirectory_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Namespaces { constructor(context) { this.context = context; + this.services = new Resource$Projects$Locations$Namespaces$Services(this.context); } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74260,26 +70233,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74292,25 +70264,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74323,58 +70295,59 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -74385,26 +70358,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74417,548 +70389,616 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + } + servicedirectory_v1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Services { + constructor(context) { + this.context = context; + this.endpoints = + new Resource$Projects$Locations$Namespaces$Services$Endpoints(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Disks = Resource$Disks; - class Resource$Disktypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resolve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'diskType'], - pathParams: ['diskType', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Disktypes = Resource$Disktypes; - class Resource$Externalvpngateways { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + servicedirectory_v1.Resource$Projects$Locations$Namespaces$Services = Resource$Projects$Locations$Namespaces$Services; + class Resource$Projects$Locations$Namespaces$Services$Endpoints { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Externalvpngateways = Resource$Externalvpngateways; - class Resource$Firewalls { + servicedirectory_v1.Resource$Projects$Locations$Namespaces$Services$Endpoints = Resource$Projects$Locations$Namespaces$Services$Endpoints; +})(servicedirectory_v1 = exports.servicedirectory_v1 || (exports.servicedirectory_v1 = {})); + + +/***/ }), + +/***/ 1030: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.jobs_v3p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var jobs_v3p1beta1; +(function (jobs_v3p1beta1) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const jobs = google.jobs('v3p1beta1'); + * ``` + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + jobs_v3p1beta1.Jobs = Jobs; + class Resource$Projects { constructor(context) { this.context = context; + this.clientEvents = new Resource$Projects$Clientevents(this.context); + this.companies = new Resource$Projects$Companies(this.context); + this.jobs = new Resource$Projects$Jobs(this.context); + this.operations = new Resource$Projects$Operations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -74969,27 +71009,33 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3p1beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + jobs_v3p1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Clientevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75000,27 +71046,33 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + jobs_v3p1beta1.Resource$Projects$Clientevents = Resource$Projects$Clientevents; + class Resource$Projects$Companies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75031,26 +71083,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75061,26 +71114,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75091,26 +71145,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75123,27 +71176,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75154,32 +71207,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Firewalls = Resource$Firewalls; - class Resource$Forwardingrules { + jobs_v3p1beta1.Resource$Projects$Companies = Resource$Projects$Companies; + class Resource$Projects$Jobs { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75192,26 +71244,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75224,26 +71275,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75256,26 +71306,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75288,23 +71337,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -75320,23 +71368,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -75352,26 +71399,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75384,26 +71430,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75416,26 +71461,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + jobs_v3p1beta1.Resource$Projects$Jobs = Resource$Projects$Jobs; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75448,34 +71498,91 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Forwardingrules = Resource$Forwardingrules; - class Resource$Globaladdresses { + jobs_v3p1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(jobs_v3p1beta1 = exports.jobs_v3p1beta1 || (exports.jobs_v3p1beta1 = {})); + + +/***/ }), + +/***/ 1034: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gmail_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gmail_v1; +(function (gmail_v1) { + /** + * Gmail API + * + * The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gmail = google.gmail('v1'); + * ``` + */ + class Gmail { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + gmail_v1.Gmail = Gmail; + class Resource$Users { constructor(context) { this.context = context; + this.drafts = new Resource$Users$Drafts(this.context); + this.history = new Resource$Users$History(this.context); + this.labels = new Resource$Users$Labels(this.context); + this.messages = new Resource$Users$Messages(this.context); + this.settings = new Resource$Users$Settings(this.context); + this.threads = new Resource$Users$Threads(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getProfile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75486,28 +71593,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/profile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75518,28 +71623,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75550,25 +71653,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users = Resource$Users; + class Resource$Users$Drafts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75581,25 +71690,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75612,28 +71722,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75644,32 +71752,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Globaladdresses = Resource$Globaladdresses; - class Resource$Globalforwardingrules { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75682,26 +71783,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75714,26 +71814,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75746,25 +71846,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + gmail_v1.Resource$Users$Drafts = Resource$Users$Drafts; + class Resource$Users$History { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -75778,26 +71884,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/history').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$History = Resource$Users$History; + class Resource$Users$Labels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75810,26 +71921,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75842,28 +71952,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -75874,26 +71982,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75906,32 +72013,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Globalforwardingrules = Resource$Globalforwardingrules; - class Resource$Globalnetworkendpointgroups { - constructor(context) { - this.context = context; - } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75944,26 +72044,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75976,26 +72075,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Labels = Resource$Users$Labels; + class Resource$Users$Messages { + constructor(context) { + this.context = context; + this.attachments = new Resource$Users$Messages$Attachments(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76008,26 +72113,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76040,26 +72144,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchModify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76072,26 +72175,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76104,26 +72206,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76136,32 +72237,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; - class Resource$Globaloperations { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76174,25 +72269,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76205,26 +72301,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + modify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76237,26 +72332,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76269,25 +72363,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + trash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76300,32 +72395,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Globaloperations = Resource$Globaloperations; - class Resource$Globalorganizationoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + untrash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76338,25 +72426,30 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + gmail_v1.Resource$Users$Messages = Resource$Users$Messages; + class Resource$Users$Messages$Attachments { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -76370,26 +72463,38 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['userId', 'messageId', 'id'], + pathParams: ['id', 'messageId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Messages$Attachments = Resource$Users$Messages$Attachments; + class Resource$Users$Settings { + constructor(context) { + this.context = context; + this.cse = new Resource$Users$Settings$Cse(this.context); + this.delegates = new Resource$Users$Settings$Delegates(this.context); + this.filters = new Resource$Users$Settings$Filters(this.context); + this.forwardingAddresses = + new Resource$Users$Settings$Forwardingaddresses(this.context); + this.sendAs = new Resource$Users$Settings$Sendas(this.context); + } + getAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76402,31 +72507,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; - class Resource$Healthchecks { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + getImap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76439,26 +72538,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getLanguage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76471,27 +72569,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getPop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -76502,26 +72600,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getVacation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76534,25 +72631,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76565,25 +72662,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateImap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76596,26 +72693,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateLanguage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76628,26 +72724,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updatePop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76660,32 +72755,70 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateVacation(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://gmail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Healthchecks = Resource$Healthchecks; - class Resource$Httphealthchecks { + gmail_v1.Resource$Users$Settings = Resource$Users$Settings; + class Resource$Users$Settings$Cse { constructor(context) { this.context = context; + this.identities = new Resource$Users$Settings$Cse$Identities(this.context); + this.keypairs = new Resource$Users$Settings$Cse$Keypairs(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Settings$Cse = Resource$Users$Settings$Cse; + class Resource$Users$Settings$Cse$Identities { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76698,26 +72831,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/identities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76730,26 +72862,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['userId', 'cseEmailAddress'], + pathParams: ['cseEmailAddress', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76762,23 +72894,23 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId', 'cseEmailAddress'], + pathParams: ['cseEmailAddress', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -76794,23 +72926,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/identities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -76826,26 +72957,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['userId', 'emailAddress'], + pathParams: ['emailAddress', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Settings$Cse$Identities = Resource$Users$Settings$Cse$Identities; + class Resource$Users$Settings$Cse$Keypairs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76858,26 +72995,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/keypairs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76890,32 +73026,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Httphealthchecks = Resource$Httphealthchecks; - class Resource$Httpshealthchecks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76928,23 +73058,23 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -76960,26 +73090,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76992,26 +73122,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/keypairs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + obliterate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77024,26 +73153,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Settings$Cse$Keypairs = Resource$Users$Settings$Cse$Keypairs; + class Resource$Users$Settings$Delegates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77056,26 +73191,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77088,26 +73222,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId', 'delegateEmail'], + pathParams: ['delegateEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77120,33 +73254,28 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['userId', 'delegateEmail'], + pathParams: ['delegateEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Httpshealthchecks = Resource$Httpshealthchecks; - class Resource$Images { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -77157,26 +73286,33 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deprecate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gmail_v1.Resource$Users$Settings$Delegates = Resource$Users$Settings$Delegates; + class Resource$Users$Settings$Filters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -77187,27 +73323,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -77218,25 +73354,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77249,26 +73385,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'family'], - pathParams: ['family', 'project'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77281,86 +73416,96 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gmail_v1.Resource$Users$Settings$Filters = Resource$Users$Settings$Filters; + class Resource$Users$Settings$Forwardingaddresses { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId', 'forwardingEmail'], + pathParams: ['forwardingEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77373,27 +73518,28 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId', 'forwardingEmail'], + pathParams: ['forwardingEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -77404,26 +73550,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Settings$Forwardingaddresses = Resource$Users$Settings$Forwardingaddresses; + class Resource$Users$Settings$Sendas { + constructor(context) { + this.context = context; + this.smimeInfo = new Resource$Users$Settings$Sendas$Smimeinfo(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77436,32 +73588,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Images = Resource$Images; - class Resource$Instancegroupmanagers { - constructor(context) { - this.context = context; - } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77474,26 +73619,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77506,26 +73650,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77538,26 +73681,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77570,26 +73712,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77602,26 +73743,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77634,26 +73774,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Settings$Sendas = Resource$Users$Settings$Sendas; + class Resource$Users$Settings$Sendas$Smimeinfo { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77666,23 +73812,23 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -77698,23 +73844,23 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -77730,23 +73876,23 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -77762,58 +73908,65 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { + setDefault(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Settings$Sendas$Smimeinfo = Resource$Users$Settings$Sendas$Smimeinfo; + class Resource$Users$Threads { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77826,26 +73979,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77858,26 +74010,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77890,26 +74041,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/threads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + modify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77922,26 +74072,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + trash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77954,26 +74103,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + untrash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77986,26 +74134,94 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + } + gmail_v1.Resource$Users$Threads = Resource$Users$Threads; +})(gmail_v1 = exports.gmail_v1 || (exports.gmail_v1 = {})); + + +/***/ }), + +/***/ 1046: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.orgpolicy_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var orgpolicy_v2; +(function (orgpolicy_v2) { + /** + * Organization Policy API + * + * The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const orgpolicy = google.orgpolicy('v2'); + * ``` + */ + class Orgpolicy { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + orgpolicy_v2.Orgpolicy = Orgpolicy; + class Resource$Folders { + constructor(context) { + this.context = context; + this.constraints = new Resource$Folders$Constraints(this.context); + this.policies = new Resource$Folders$Policies(this.context); + } + } + orgpolicy_v2.Resource$Folders = Resource$Folders; + class Resource$Folders$Constraints { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78018,26 +74234,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Folders$Constraints = Resource$Folders$Constraints; + class Resource$Folders$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78050,26 +74271,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78082,26 +74302,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78114,26 +74333,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78146,26 +74364,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78178,26 +74395,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78210,32 +74426,40 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; - class Resource$Instancegroups { + orgpolicy_v2.Resource$Folders$Policies = Resource$Folders$Policies; + class Resource$Organizations { constructor(context) { this.context = context; + this.constraints = new Resource$Organizations$Constraints(this.context); + this.customConstraints = new Resource$Organizations$Customconstraints(this.context); + this.policies = new Resource$Organizations$Policies(this.context); } - addInstances(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Constraints { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78248,26 +74472,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Organizations$Constraints = Resource$Organizations$Constraints; + class Resource$Organizations$Customconstraints { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78280,23 +74509,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/customConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -78312,23 +74540,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -78344,26 +74571,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78376,26 +74602,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/customConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78408,26 +74633,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Organizations$Customconstraints = Resource$Organizations$Customconstraints; + class Resource$Organizations$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78440,26 +74670,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78472,26 +74701,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78504,64 +74732,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Instancegroups = Resource$Instancegroups; - class Resource$Instances { - constructor(context) { - this.context = context; - } - addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78574,26 +74795,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78606,26 +74826,39 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Organizations$Policies = Resource$Organizations$Policies; + class Resource$Projects { + constructor(context) { + this.context = context; + this.constraints = new Resource$Projects$Constraints(this.context); + this.policies = new Resource$Projects$Policies(this.context); + } + } + orgpolicy_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Constraints { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78638,25 +74871,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachDisk(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Projects$Constraints = Resource$Projects$Constraints; + class Resource$Projects$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78669,27 +74908,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -78700,26 +74939,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78732,32 +74970,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'accessConfig', - 'networkInterface', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachDisk(paramsOrCallback, optionsOrCallback, callback) { + getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78770,27 +75001,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'deviceName'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -78801,26 +75032,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78833,26 +75063,93 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Projects$Policies = Resource$Projects$Policies; +})(orgpolicy_v2 = exports.orgpolicy_v2 || (exports.orgpolicy_v2 = {})); + + +/***/ }), + +/***/ 1048: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.lifesciences_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var lifesciences_v2beta; +(function (lifesciences_v2beta) { + /** + * Cloud Life Sciences API + * + * Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const lifesciences = google.lifesciences('v2beta'); + * ``` + */ + class Lifesciences { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + lifesciences_v2beta.Lifesciences = Lifesciences; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + lifesciences_v2beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.pipelines = new Resource$Projects$Locations$Pipelines(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78865,26 +75162,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78897,26 +75193,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + } + lifesciences_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78929,26 +75230,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78961,26 +75261,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78993,28 +75292,33 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + lifesciences_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Pipelines { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79025,27 +75329,128 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + lifesciences_v2beta.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; +})(lifesciences_v2beta = exports.lifesciences_v2beta || (exports.lifesciences_v2beta = {})); + + +/***/ }), + +/***/ 1051: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudidentity_v1beta1 = exports.cloudidentity_v1 = exports.auth = exports.cloudidentity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7298); +Object.defineProperty(exports, "cloudidentity_v1", { enumerable: true, get: function () { return v1_1.cloudidentity_v1; } }); +const v1beta1_1 = __webpack_require__(7411); +Object.defineProperty(exports, "cloudidentity_v1beta1", { enumerable: true, get: function () { return v1beta1_1.cloudidentity_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.cloudidentity_v1.Cloudidentity, + v1beta1: v1beta1_1.cloudidentity_v1beta1.Cloudidentity, +}; +function cloudidentity(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudidentity', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudidentity = cloudidentity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1076: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.translate_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var translate_v3; +(function (translate_v3) { + /** + * Cloud Translation API + * + * Integrates text translation into your website or application. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const translate = google.translate('v3'); + * ``` + */ + class Translate { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + translate_v3.Translate = Translate; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79056,27 +75461,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79087,26 +75492,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listReferrers(paramsOrCallback, optionsOrCallback, callback) { + translateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79119,59 +75523,69 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.glossaries = new Resource$Projects$Locations$Glossaries(this.context); + this.models = new Resource$Projects$Locations$Models(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + batchTranslateDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:batchTranslateDocument').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79182,27 +75596,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79213,26 +75627,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79245,26 +75658,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79277,32 +75689,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'autoDelete', - 'deviceName', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79315,26 +75720,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + translateDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79347,26 +75751,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:translateDocument').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + translateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79379,26 +75782,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = context; + this.examples = new Resource$Projects$Locations$Datasets$Examples(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79411,26 +75820,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMetadata(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79443,26 +75851,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + exportData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79475,26 +75882,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+dataset}:exportData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['dataset'], + pathParams: ['dataset'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setScheduling(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79507,26 +75913,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + importData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79539,26 +75944,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+dataset}:importData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['dataset'], + pathParams: ['dataset'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79571,58 +75975,71 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Examples { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+parent}/examples').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTags(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Datasets$Examples = Resource$Projects$Locations$Datasets$Examples; + class Resource$Projects$Locations$Glossaries { + constructor(context) { + this.context = context; + this.glossaryEntries = + new Resource$Projects$Locations$Glossaries$Glossaryentries(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79635,26 +76052,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79667,27 +76083,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79698,26 +76114,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79730,27 +76145,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79761,185 +76176,197 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; + class Resource$Projects$Locations$Glossaries$Glossaryentries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/glossaryEntries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/glossaryEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Glossaries$Glossaryentries = Resource$Projects$Locations$Glossaries$Glossaryentries; + class Resource$Projects$Locations$Models { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79952,26 +76379,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79984,26 +76410,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80016,32 +76441,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Instances = Resource$Instances; - class Resource$Instancetemplates { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80054,26 +76472,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Models = Resource$Projects$Locations$Models; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80086,26 +76509,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80118,26 +76540,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80150,23 +76571,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -80182,26 +76602,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80214,26 +76633,85 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(translate_v3 = exports.translate_v3 || (exports.translate_v3 = {})); + + +/***/ }), + +/***/ 1081: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.servicenetworking_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var servicenetworking_v1; +(function (servicenetworking_v1) { + /** + * Service Networking API + * + * Provides automatic management of network configurations necessary for certain services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicenetworking = google.servicenetworking('v1'); + * ``` + */ + class Servicenetworking { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + servicenetworking_v1.Servicenetworking = Servicenetworking; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80246,32 +76724,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Instancetemplates = Resource$Instancetemplates; - class Resource$Interconnectattachments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80284,28 +76755,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -80316,28 +76785,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -80348,26 +76815,36 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.connections = new Resource$Services$Connections(this.context); + this.dnsRecordSets = new Resource$Services$Dnsrecordsets(this.context); + this.dnsZones = new Resource$Services$Dnszones(this.context); + this.projects = new Resource$Services$Projects(this.context); + this.roles = new Resource$Services$Roles(this.context); + } + addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80380,26 +76857,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + disableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80412,26 +76888,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:disableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + enableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80444,26 +76919,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:enableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + searchRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80476,26 +76950,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80508,32 +76981,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Interconnectattachments = Resource$Interconnectattachments; - class Resource$Interconnectlocations { + servicenetworking_v1.Resource$Services = Resource$Services; + class Resource$Services$Connections { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80546,26 +77018,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + deleteConnection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80578,32 +77049,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Interconnectlocations = Resource$Interconnectlocations; - class Resource$Interconnects { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80616,26 +77080,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80648,26 +77111,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1.Resource$Services$Connections = Resource$Services$Connections; + class Resource$Services$Dnsrecordsets { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80680,26 +77148,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dnsRecordSets:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80712,25 +77179,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsRecordSets:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80743,25 +77210,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dnsRecordSets:update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1.Resource$Services$Dnsrecordsets = Resource$Services$Dnsrecordsets; + class Resource$Services$Dnszones { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80774,26 +77247,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/dnsZones:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80806,26 +77278,47 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsZones:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1.Resource$Services$Dnszones = Resource$Services$Dnszones; + class Resource$Services$Projects { + constructor(context) { + this.context = context; + this.global = new Resource$Services$Projects$Global(this.context); + } + } + servicenetworking_v1.Resource$Services$Projects = Resource$Services$Projects; + class Resource$Services$Projects$Global { + constructor(context) { + this.context = context; + this.networks = new Resource$Services$Projects$Global$Networks(this.context); + } + } + servicenetworking_v1.Resource$Services$Projects$Global = Resource$Services$Projects$Global; + class Resource$Services$Projects$Global$Networks { + constructor(context) { + this.context = context; + this.peeredDnsDomains = + new Resource$Services$Projects$Global$Networks$Peereddnsdomains(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80838,194 +77331,409 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Interconnects = Resource$Interconnects; - class Resource$Licensecodes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateConsumerConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:updateConsumerConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Licensecodes = Resource$Licensecodes; - class Resource$Licenses { + servicenetworking_v1.Resource$Services$Projects$Global$Networks = Resource$Services$Projects$Global$Networks; + class Resource$Services$Projects$Global$Networks$Peereddnsdomains { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/peeredDnsDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/peeredDnsDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { + } + servicenetworking_v1.Resource$Services$Projects$Global$Networks$Peereddnsdomains = Resource$Services$Projects$Global$Networks$Peereddnsdomains; + class Resource$Services$Roles { + constructor(context) { + this.context = context; + } + add(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/roles:add').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + servicenetworking_v1.Resource$Services$Roles = Resource$Services$Roles; +})(servicenetworking_v1 = exports.servicenetworking_v1 || (exports.servicenetworking_v1 = {})); + + +/***/ }), + +/***/ 1088: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = which +which.sync = whichSync + +var isWindows = process.platform === 'win32' || + process.env.OSTYPE === 'cygwin' || + process.env.OSTYPE === 'msys' + +var path = __webpack_require__(5622) +var COLON = isWindows ? ';' : ':' +var isexe = __webpack_require__(8742) + +function getNotFoundError (cmd) { + var er = new Error('not found: ' + cmd) + er.code = 'ENOENT' + + return er +} + +function getPathInfo (cmd, opt) { + var colon = opt.colon || COLON + var pathEnv = opt.path || process.env.PATH || '' + var pathExt = [''] + + pathEnv = pathEnv.split(colon) + + var pathExtExe = '' + if (isWindows) { + pathEnv.unshift(process.cwd()) + pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM') + pathExt = pathExtExe.split(colon) + + + // Always test the cmd itself first. isexe will check to make sure + // it's found in the pathExt set. + if (cmd.indexOf('.') !== -1 && pathExt[0] !== '') + pathExt.unshift('') + } + + // If it has a slash, then we don't bother searching the pathenv. + // just check the file itself, and that's it. + if (cmd.match(/\//) || isWindows && cmd.match(/\\/)) + pathEnv = [''] + + return { + env: pathEnv, + ext: pathExt, + extExe: pathExtExe + } +} + +function which (cmd, opt, cb) { + if (typeof opt === 'function') { + cb = opt + opt = {} + } + + var info = getPathInfo(cmd, opt) + var pathEnv = info.env + var pathExt = info.ext + var pathExtExe = info.extExe + var found = [] + + ;(function F (i, l) { + if (i === l) { + if (opt.all && found.length) + return cb(null, found) + else + return cb(getNotFoundError(cmd)) + } + + var pathPart = pathEnv[i] + if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') + pathPart = pathPart.slice(1, -1) + + var p = path.join(pathPart, cmd) + if (!pathPart && (/^\.[\\\/]/).test(cmd)) { + p = cmd.slice(0, 2) + p + } + ;(function E (ii, ll) { + if (ii === ll) return F(i + 1, l) + var ext = pathExt[ii] + isexe(p + ext, { pathExt: pathExtExe }, function (er, is) { + if (!er && is) { + if (opt.all) + found.push(p + ext) + else + return cb(null, p + ext) + } + return E(ii + 1, ll) + }) + })(0, pathExt.length) + })(0, pathEnv.length) +} + +function whichSync (cmd, opt) { + opt = opt || {} + + var info = getPathInfo(cmd, opt) + var pathEnv = info.env + var pathExt = info.ext + var pathExtExe = info.extExe + var found = [] + + for (var i = 0, l = pathEnv.length; i < l; i ++) { + var pathPart = pathEnv[i] + if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') + pathPart = pathPart.slice(1, -1) + + var p = path.join(pathPart, cmd) + if (!pathPart && /^\.[\\\/]/.test(cmd)) { + p = cmd.slice(0, 2) + p + } + for (var j = 0, ll = pathExt.length; j < ll; j ++) { + var cur = p + pathExt[j] + var is + try { + is = isexe.sync(cur, { pathExt: pathExtExe }) + if (is) { + if (opt.all) + found.push(cur) + else + return cur + } + } catch (ex) {} + } + } + + if (opt.all && found.length) + return found + + if (opt.nothrow) + return null + + throw getNotFoundError(cmd) +} + + +/***/ }), + +/***/ 1094: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudfunctions_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudfunctions_v2beta; +(function (cloudfunctions_v2beta) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v2beta'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v2beta.Cloudfunctions = Cloudfunctions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v2beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimes = new Resource$Projects$Locations$Runtimes(this.context); + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81036,25 +77744,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81067,31 +77781,24 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Licenses = Resource$Licenses; - class Resource$Machineimages { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -81105,90 +77812,89 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81201,56 +77907,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81263,26 +77970,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81295,95 +78001,95 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Machineimages = Resource$Machineimages; - class Resource$Machinetypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2beta.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81396,32 +78102,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Machinetypes = Resource$Machinetypes; - class Resource$Networkendpointgroups { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81434,26 +78133,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81466,26 +78170,84 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2beta.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2beta = exports.cloudfunctions_v2beta || (exports.cloudfunctions_v2beta = {})); + + +/***/ }), + +/***/ 1102: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.docs_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var docs_v1; +(function (docs_v1) { + /** + * Google Docs API + * + * Reads and writes Google Docs documents. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const docs = google.docs('v1'); + * ``` + */ + class Docs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + docs_v1.Docs = Docs; + class Resource$Documents { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81498,28 +78260,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/documents/{documentId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['documentId'], + pathParams: ['documentId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81530,28 +78290,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81562,26 +78320,353 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/documents/{documentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['documentId'], + pathParams: ['documentId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + docs_v1.Resource$Documents = Resource$Documents; +})(docs_v1 = exports.docs_v1 || (exports.docs_v1 = {})); + + +/***/ }), + +/***/ 1108: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var bufferEqual = __webpack_require__(8079); +var Buffer = __webpack_require__(4149).Buffer; +var crypto = __webpack_require__(6417); +var formatEcdsa = __webpack_require__(8815); +var util = __webpack_require__(1669); + +var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' +var MSG_INVALID_SECRET = 'secret must be a string or buffer'; +var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; +var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; + +var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; +if (supportsKeyObjects) { + MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; + MSG_INVALID_SECRET += 'or a KeyObject'; +} + +function checkIsPublicKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return; + } + + if (!supportsKeyObjects) { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key !== 'object') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.type !== 'string') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.asymmetricKeyType !== 'string') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.export !== 'function') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } +}; + +function checkIsPrivateKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return; + } + + if (typeof key === 'object') { + return; + } + + throw typeError(MSG_INVALID_SIGNER_KEY); +}; + +function checkIsSecretKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return key; + } + + if (!supportsKeyObjects) { + throw typeError(MSG_INVALID_SECRET); + } + + if (typeof key !== 'object') { + throw typeError(MSG_INVALID_SECRET); + } + + if (key.type !== 'secret') { + throw typeError(MSG_INVALID_SECRET); + } + + if (typeof key.export !== 'function') { + throw typeError(MSG_INVALID_SECRET); + } +} + +function fromBase64(base64) { + return base64 + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function toBase64(base64url) { + base64url = base64url.toString(); + + var padding = 4 - base64url.length % 4; + if (padding !== 4) { + for (var i = 0; i < padding; ++i) { + base64url += '='; + } + } + + return base64url + .replace(/\-/g, '+') + .replace(/_/g, '/'); +} + +function typeError(template) { + var args = [].slice.call(arguments, 1); + var errMsg = util.format.bind(util, template).apply(null, args); + return new TypeError(errMsg); +} + +function bufferOrString(obj) { + return Buffer.isBuffer(obj) || typeof obj === 'string'; +} + +function normalizeInput(thing) { + if (!bufferOrString(thing)) + thing = JSON.stringify(thing); + return thing; +} + +function createHmacSigner(bits) { + return function sign(thing, secret) { + checkIsSecretKey(secret); + thing = normalizeInput(thing); + var hmac = crypto.createHmac('sha' + bits, secret); + var sig = (hmac.update(thing), hmac.digest('base64')) + return fromBase64(sig); + } +} + +function createHmacVerifier(bits) { + return function verify(thing, signature, secret) { + var computedSig = createHmacSigner(bits)(thing, secret); + return bufferEqual(Buffer.from(signature), Buffer.from(computedSig)); + } +} + +function createKeySigner(bits) { + return function sign(thing, privateKey) { + checkIsPrivateKey(privateKey); + thing = normalizeInput(thing); + // Even though we are specifying "RSA" here, this works with ECDSA + // keys as well. + var signer = crypto.createSign('RSA-SHA' + bits); + var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); + return fromBase64(sig); + } +} + +function createKeyVerifier(bits) { + return function verify(thing, signature, publicKey) { + checkIsPublicKey(publicKey); + thing = normalizeInput(thing); + signature = toBase64(signature); + var verifier = crypto.createVerify('RSA-SHA' + bits); + verifier.update(thing); + return verifier.verify(publicKey, signature, 'base64'); + } +} + +function createPSSKeySigner(bits) { + return function sign(thing, privateKey) { + checkIsPrivateKey(privateKey); + thing = normalizeInput(thing); + var signer = crypto.createSign('RSA-SHA' + bits); + var sig = (signer.update(thing), signer.sign({ + key: privateKey, + padding: crypto.constants.RSA_PKCS1_PSS_PADDING, + saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST + }, 'base64')); + return fromBase64(sig); + } +} + +function createPSSKeyVerifier(bits) { + return function verify(thing, signature, publicKey) { + checkIsPublicKey(publicKey); + thing = normalizeInput(thing); + signature = toBase64(signature); + var verifier = crypto.createVerify('RSA-SHA' + bits); + verifier.update(thing); + return verifier.verify({ + key: publicKey, + padding: crypto.constants.RSA_PKCS1_PSS_PADDING, + saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST + }, signature, 'base64'); + } +} + +function createECDSASigner(bits) { + var inner = createKeySigner(bits); + return function sign() { + var signature = inner.apply(null, arguments); + signature = formatEcdsa.derToJose(signature, 'ES' + bits); + return signature; + }; +} + +function createECDSAVerifer(bits) { + var inner = createKeyVerifier(bits); + return function verify(thing, signature, publicKey) { + signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); + var result = inner(thing, signature, publicKey); + return result; + }; +} + +function createNoneSigner() { + return function sign() { + return ''; + } +} + +function createNoneVerifier() { + return function verify(thing, signature) { + return signature === ''; + } +} + +module.exports = function jwa(algorithm) { + var signerFactories = { + hs: createHmacSigner, + rs: createKeySigner, + ps: createPSSKeySigner, + es: createECDSASigner, + none: createNoneSigner, + } + var verifierFactories = { + hs: createHmacVerifier, + rs: createKeyVerifier, + ps: createPSSKeyVerifier, + es: createECDSAVerifer, + none: createNoneVerifier, + } + var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); + if (!match) + throw typeError(MSG_INVALID_ALGORITHM, algorithm); + var algo = (match[1] || match[3]).toLowerCase(); + var bits = match[2]; + + return { + sign: signerFactories[algo](bits), + verify: verifierFactories[algo](bits), + } +}; + + +/***/ }), + +/***/ 1111: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.storage_v1beta2 = 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 = __webpack_require__(927); +var storage_v1beta2; +(function (storage_v1beta2) { + /** + * Cloud Storage JSON API + * + * Lets you store and retrieve potentially-large, immutable data objects. + * + * @example + * const {google} = require('googleapis'); + * const storage = google.storage('v1beta2'); + * + * @namespace storage + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Storage + */ + class Storage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context); + this.buckets = new Resource$Buckets(this.context); + this.channels = new Resource$Channels(this.context); + this.defaultObjectAccessControls = new Resource$Defaultobjectaccesscontrols(this.context); + this.objectAccessControls = new Resource$Objectaccesscontrols(this.context); + this.objects = new Resource$Objects(this.context); + } + } + storage_v1beta2.Storage = Storage; + class Resource$Bucketaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81594,26 +78679,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81626,26 +78710,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81658,26 +78741,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81690,32 +78772,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Networkendpointgroups = Resource$Networkendpointgroups; - class Resource$Networks { - constructor(context) { - this.context = context; - } - addPeering(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81728,27 +78803,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81759,26 +78834,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1beta2.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; + class Resource$Buckets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -81790,28 +78870,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81822,23 +78900,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -81853,22 +78930,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['project'], - pathParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -81883,27 +78960,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, requiredParams: ['project'], - pathParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81914,26 +78990,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -81945,28 +79020,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePeering(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + storage_v1beta2.Resource$Buckets = Resource$Buckets; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -81977,26 +79056,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1beta2.Resource$Channels = Resource$Channels; + class Resource$Defaultobjectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82009,58 +79093,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePeering(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82073,32 +79124,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Networks = Resource$Networks; - class Resource$Nodegroups { - constructor(context) { - this.context = context; - } - addNodes(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82111,26 +79155,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82143,25 +79186,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82174,26 +79217,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82206,27 +79248,33 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + storage_v1beta2.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; + class Resource$Objectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82237,26 +79285,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82269,23 +79316,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -82301,27 +79347,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'initialNodeCount'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82332,26 +79378,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNodes(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82364,27 +79409,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82395,28 +79440,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + storage_v1beta2.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; + class Resource$Objects { + constructor(context) { + this.context = context; + } + compose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82427,28 +79476,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/storage/v1beta2/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['destinationBucket', 'destinationObject'], + pathParams: ['destinationBucket', 'destinationObject'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82459,28 +79507,37 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + '/storage/v1beta2/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82491,34 +79548,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Nodegroups = Resource$Nodegroups; - class Resource$Nodetemplates { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82529,28 +79578,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82561,28 +79608,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + mediaUrl: (rootUrl + '/upload/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82593,28 +79639,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82625,28 +79669,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82657,28 +79699,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82689,26 +79729,85 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1beta2.Resource$Objects = Resource$Objects; +})(storage_v1beta2 = exports.storage_v1beta2 || (exports.storage_v1beta2 = {})); + + +/***/ }), + +/***/ 1114: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.homegraph_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var homegraph_v1; +(function (homegraph_v1) { + /** + * HomeGraph API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const homegraph = google.homegraph('v1'); + * ``` + */ + class Homegraph { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.agentUsers = new Resource$Agentusers(this.context); + this.devices = new Resource$Devices(this.context); + } + } + homegraph_v1.Homegraph = Homegraph; + class Resource$Agentusers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82721,28 +79820,32 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+agentUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['agentUserId'], + pathParams: ['agentUserId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + homegraph_v1.Resource$Agentusers = Resource$Agentusers; + class Resource$Devices { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82753,32 +79856,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/devices:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Nodetemplates = Resource$Nodetemplates; - class Resource$Nodetypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + reportStateAndNotification(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82791,26 +79887,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/devices:reportStateAndNotification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + requestSync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -82821,26 +79918,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/devices:requestSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + sync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -82852,32 +79948,84 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/devices:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Nodetypes = Resource$Nodetypes; - class Resource$Organizationsecuritypolicies { + homegraph_v1.Resource$Devices = Resource$Devices; +})(homegraph_v1 = exports.homegraph_v1 || (exports.homegraph_v1 = {})); + + +/***/ }), + +/***/ 1142: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.language_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var language_v1beta2; +(function (language_v1beta2) { + /** + * Cloud Natural Language API + * + * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const language = google.language('v1beta2'); + * ``` + */ + class Language { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + language_v1beta2.Language = Language; + class Resource$Documents { constructor(context) { this.context = context; } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82890,26 +80038,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82922,26 +80069,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copyRules(paramsOrCallback, optionsOrCallback, callback) { + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82954,26 +80100,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82986,26 +80131,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + annotateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83018,26 +80162,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + classifyText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83050,26 +80193,218 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + } + language_v1beta2.Resource$Documents = Resource$Documents; +})(language_v1beta2 = exports.language_v1beta2 || (exports.language_v1beta2 = {})); + + +/***/ }), + +/***/ 1151: +/***/ (function(module) { + +"use strict"; + +const alias = ['stdin', 'stdout', 'stderr']; + +const hasAlias = opts => alias.some(x => Boolean(opts[x])); + +module.exports = opts => { + if (!opts) { + return null; + } + + if (opts.stdio && hasAlias(opts)) { + throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`); + } + + if (typeof opts.stdio === 'string') { + return opts.stdio; + } + + const stdio = opts.stdio || []; + + if (!Array.isArray(stdio)) { + throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); + } + + const result = []; + const len = Math.max(stdio.length, alias.length); + + for (let i = 0; i < len; i++) { + let value = null; + + if (stdio[i] !== undefined) { + value = stdio[i]; + } else if (opts[alias[i]] !== undefined) { + value = opts[alias[i]]; + } + + result[i] = value; + } + + return result; +}; + + +/***/ }), + +/***/ 1188: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.ml_v1 = exports.auth = exports.ml = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2609); +Object.defineProperty(exports, "ml_v1", { enumerable: true, get: function () { return v1_1.ml_v1; } }); +exports.VERSIONS = { + v1: v1_1.ml_v1.Ml, +}; +function ml(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('ml', versionOrOptions, exports.VERSIONS, this); +} +exports.ml = ml; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1191: +/***/ (function(module) { + +module.exports = require("querystring"); + +/***/ }), + +/***/ 1197: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.people_v1 = exports.auth = exports.people = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9258); +Object.defineProperty(exports, "people_v1", { enumerable: true, get: function () { return v1_1.people_v1; } }); +exports.VERSIONS = { + v1: v1_1.people_v1.People, +}; +function people(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('people', versionOrOptions, exports.VERSIONS, this); +} +exports.people = people; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1200: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.integrations_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var integrations_v1alpha; +(function (integrations_v1alpha) { + /** + * Application Integration API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const integrations = google.integrations('v1alpha'); + * ``` + */ + class Integrations { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.callback = new Resource$Callback(this.context); + this.connectorPlatformRegions = new Resource$Connectorplatformregions(this.context); + this.projects = new Resource$Projects(this.context); + } + } + integrations_v1alpha.Integrations = Integrations; + class Resource$Callback { + constructor(context) { + this.context = context; + } + generateToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83082,26 +80417,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/callback:generateToken').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Callback = Resource$Callback; + class Resource$Connectorplatformregions { + constructor(context) { + this.context = context; + } + enumerate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83114,12 +80454,11 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/connectorPlatformRegions:enumerate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -83127,77 +80466,110 @@ var compute_beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Connectorplatformregions = Resource$Connectorplatformregions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + integrations_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.appsScriptProjects = + new Resource$Projects$Locations$Appsscriptprojects(this.context); + this.authConfigs = new Resource$Projects$Locations$Authconfigs(this.context); + this.certificates = new Resource$Projects$Locations$Certificates(this.context); + this.connections = new Resource$Projects$Locations$Connections(this.context); + this.integrations = new Resource$Projects$Locations$Integrations(this.context); + this.products = new Resource$Projects$Locations$Products(this.context); + this.sfdcInstances = new Resource$Projects$Locations$Sfdcinstances(this.context); + } + } + integrations_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Appsscriptprojects { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/appsScriptProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(paramsOrCallback, optionsOrCallback, callback) { + link(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/appsScriptProjects:link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Appsscriptprojects = Resource$Projects$Locations$Appsscriptprojects; + class Resource$Projects$Locations$Authconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83210,26 +80582,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83242,26 +80613,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83274,26 +80644,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83306,26 +80675,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83338,32 +80706,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; - class Resource$Packetmirrorings { + integrations_v1alpha.Resource$Projects$Locations$Authconfigs = Resource$Projects$Locations$Authconfigs; + class Resource$Projects$Locations$Certificates { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83376,58 +80743,67 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Certificates = Resource$Projects$Locations$Certificates; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + this.runtimeActionSchemas = + new Resource$Projects$Locations$Connections$Runtimeactionschemas(this.context); + this.runtimeEntitySchemas = + new Resource$Projects$Locations$Connections$Runtimeentityschemas(this.context); + } + getConnectionSchemaMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83440,90 +80816,109 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connections$Runtimeactionschemas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/runtimeActionSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + integrations_v1alpha.Resource$Projects$Locations$Connections$Runtimeactionschemas = Resource$Projects$Locations$Connections$Runtimeactionschemas; + class Resource$Projects$Locations$Connections$Runtimeentityschemas { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/runtimeEntitySchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Connections$Runtimeentityschemas = Resource$Projects$Locations$Connections$Runtimeentityschemas; + class Resource$Projects$Locations$Integrations { + constructor(context) { + this.context = context; + this.executions = new Resource$Projects$Locations$Integrations$Executions(this.context); + this.versions = new Resource$Projects$Locations$Integrations$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83536,26 +80931,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + execute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83568,32 +80962,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Packetmirrorings = Resource$Packetmirrorings; - class Resource$Projects { - constructor(context) { - this.context = context; - } - disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83606,25 +80993,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/integrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + schedule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83637,727 +81024,771 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:schedule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Integrations = Resource$Projects$Locations$Integrations; + class Resource$Projects$Locations$Integrations$Executions { + constructor(context) { + this.context = context; + this.suspensions = + new Resource$Projects$Locations$Integrations$Executions$Suspensions(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Integrations$Executions = Resource$Projects$Locations$Integrations$Executions; + class Resource$Projects$Locations$Integrations$Executions$Suspensions { + constructor(context) { + this.context = context; + } + lift(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:lift').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/suspensions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Integrations$Executions$Suspensions = Resource$Projects$Locations$Integrations$Executions$Suspensions; + class Resource$Projects$Locations$Integrations$Versions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDisk(paramsOrCallback, optionsOrCallback, callback) { + download(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveInstance(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Projects = Resource$Projects; - class Resource$Regionautoscalers { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + takeoverEditLock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+integrationVersion}:takeoverEditLock').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['integrationVersion'], + pathParams: ['integrationVersion'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + unpublish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:unpublish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/versions:upload').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Integrations$Versions = Resource$Projects$Locations$Integrations$Versions; + class Resource$Projects$Locations$Products { + constructor(context) { + this.context = context; + this.authConfigs = new Resource$Projects$Locations$Products$Authconfigs(this.context); + this.certificates = new Resource$Projects$Locations$Products$Certificates(this.context); + this.integrations = new Resource$Projects$Locations$Products$Integrations(this.context); + this.integrationtemplates = + new Resource$Projects$Locations$Products$Integrationtemplates(this.context); + this.sfdcInstances = + new Resource$Projects$Locations$Products$Sfdcinstances(this.context); + } + } + integrations_v1alpha.Resource$Projects$Locations$Products = Resource$Projects$Locations$Products; + class Resource$Projects$Locations$Products$Authconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionautoscalers = Resource$Regionautoscalers; - class Resource$Regionbackendservices { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Products$Authconfigs = Resource$Projects$Locations$Products$Authconfigs; + class Resource$Projects$Locations$Products$Certificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -84366,30 +81797,30 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -84398,1018 +81829,1080 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Products$Certificates = Resource$Projects$Locations$Products$Certificates; + class Resource$Projects$Locations$Products$Integrations { + constructor(context) { + this.context = context; + this.executions = + new Resource$Projects$Locations$Products$Integrations$Executions(this.context); + this.versions = + new Resource$Projects$Locations$Products$Integrations$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + execute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionbackendservices = Resource$Regionbackendservices; - class Resource$Regioncommitments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/integrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + schedule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:schedule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Products$Integrations = Resource$Projects$Locations$Products$Integrations; + class Resource$Projects$Locations$Products$Integrations$Executions { + constructor(context) { + this.context = context; + this.suspensions = + new Resource$Projects$Locations$Products$Integrations$Executions$Suspensions(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateReservations(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Regioncommitments = Resource$Regioncommitments; - class Resource$Regiondisks { + integrations_v1alpha.Resource$Projects$Locations$Products$Integrations$Executions = Resource$Projects$Locations$Products$Integrations$Executions; + class Resource$Projects$Locations$Products$Integrations$Executions$Suspensions { constructor(context) { this.context = context; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + lift(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:lift').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/suspensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(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://integrations.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Products$Integrations$Executions$Suspensions = Resource$Projects$Locations$Products$Integrations$Executions$Suspensions; + class Resource$Projects$Locations$Products$Integrations$Versions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + download(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + takeoverEditLock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+integrationVersion}:takeoverEditLock').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['integrationVersion'], + pathParams: ['integrationVersion'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + unpublish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:unpublish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/versions:upload').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Regiondisks = Resource$Regiondisks; - class Resource$Regiondisktypes { + integrations_v1alpha.Resource$Projects$Locations$Products$Integrations$Versions = Resource$Projects$Locations$Products$Integrations$Versions; + class Resource$Projects$Locations$Products$Integrationtemplates { constructor(context) { this.context = context; + this.versions = + new Resource$Projects$Locations$Products$Integrationtemplates$Versions(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Products$Integrationtemplates = Resource$Projects$Locations$Products$Integrationtemplates; + class Resource$Projects$Locations$Products$Integrationtemplates$Versions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regiondisktypes = Resource$Regiondisktypes; - class Resource$Regionhealthchecks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Products$Integrationtemplates$Versions = Resource$Projects$Locations$Products$Integrationtemplates$Versions; + class Resource$Projects$Locations$Products$Sfdcinstances { + constructor(context) { + this.context = context; + this.sfdcChannels = + new Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Regionhealthchecks = Resource$Regionhealthchecks; - class Resource$Regionhealthcheckservices { + integrations_v1alpha.Resource$Projects$Locations$Products$Sfdcinstances = Resource$Projects$Locations$Products$Sfdcinstances; + class Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -85418,30 +82911,30 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -85450,39 +82943,41 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; - class Resource$Regioninstancegroupmanagers { + integrations_v1alpha.Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels = Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels; + class Resource$Projects$Locations$Sfdcinstances { constructor(context) { this.context = context; + this.sfdcChannels = + new Resource$Projects$Locations$Sfdcinstances$Sfdcchannels(this.context); } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85495,26 +82990,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85527,26 +83021,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85559,26 +83052,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85591,26 +83083,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85623,119 +83114,124 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + integrations_v1alpha.Resource$Projects$Locations$Sfdcinstances = Resource$Projects$Locations$Sfdcinstances; + class Resource$Projects$Locations$Sfdcinstances$Sfdcchannels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -85744,67 +83240,185 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + integrations_v1alpha.Resource$Projects$Locations$Sfdcinstances$Sfdcchannels = Resource$Projects$Locations$Sfdcinstances$Sfdcchannels; +})(integrations_v1alpha = exports.integrations_v1alpha || (exports.integrations_v1alpha = {})); + + +/***/ }), + +/***/ 1209: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.prod_tt_sasportal_v1alpha1 = exports.auth = exports.prod_tt_sasportal = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(9743); +Object.defineProperty(exports, "prod_tt_sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.prod_tt_sasportal_v1alpha1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.prod_tt_sasportal_v1alpha1.Prod_tt_sasportal, +}; +function prod_tt_sasportal(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('prod_tt_sasportal', versionOrOptions, exports.VERSIONS, this); +} +exports.prod_tt_sasportal = prod_tt_sasportal; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1220: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Node.js module for Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); + +module.exports = forge.md = forge.md || {}; +forge.md.algorithms = forge.md.algorithms || {}; + + +/***/ }), + +/***/ 1222: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.analyticsadmin_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var analyticsadmin_v1alpha; +(function (analyticsadmin_v1alpha) { + /** + * Google Analytics Admin API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticsadmin = google.analyticsadmin('v1alpha'); + * ``` + */ + class Analyticsadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.accountSummaries = new Resource$Accountsummaries(this.context); + this.properties = new Resource$Properties(this.context); + } + } + analyticsadmin_v1alpha.Analyticsadmin = Analyticsadmin; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.accessBindings = new Resource$Accounts$Accessbindings(this.context); + this.userLinks = new Resource$Accounts$Userlinks(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -85815,28 +83429,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -85847,26 +83459,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getDataSharingSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85879,28 +83490,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -85911,28 +83520,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -85943,26 +83550,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + provisionAccountTicket(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85975,26 +83581,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/accounts:provisionAccountTicket').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + runAccessReport(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86007,26 +83612,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['entity'], + pathParams: ['entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + searchChangeHistoryEvents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86039,26 +83643,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+account}:searchChangeHistoryEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Accessbindings { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86071,26 +83680,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86103,26 +83711,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86135,26 +83742,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86167,32 +83773,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; - class Resource$Regioninstancegroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86205,26 +83804,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86237,26 +83835,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86269,26 +83866,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86301,26 +83897,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86333,32 +83928,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Regioninstancegroups = Resource$Regioninstancegroups; - class Resource$Regionnotificationendpoints { + analyticsadmin_v1alpha.Resource$Accounts$Accessbindings = Resource$Accounts$Accessbindings; + class Resource$Accounts$Userlinks { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + audit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86371,26 +83965,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/userLinks:audit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86403,26 +83996,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86435,26 +84027,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86467,32 +84058,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; - class Resource$Regionoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86505,26 +84089,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86537,26 +84120,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86569,26 +84151,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86601,33 +84182,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionoperations = Resource$Regionoperations; - class Resource$Regions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -86638,26 +84213,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -86668,31 +84244,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Regions = Resource$Regions; - class Resource$Regionsslcertificates { + analyticsadmin_v1alpha.Resource$Accounts$Userlinks = Resource$Accounts$Userlinks; + class Resource$Accountsummaries { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86705,26 +84281,48 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Accountsummaries = Resource$Accountsummaries; + class Resource$Properties { + constructor(context) { + this.context = context; + this.accessBindings = new Resource$Properties$Accessbindings(this.context); + this.audiences = new Resource$Properties$Audiences(this.context); + this.bigQueryLinks = new Resource$Properties$Bigquerylinks(this.context); + this.channelGroups = new Resource$Properties$Channelgroups(this.context); + this.conversionEvents = new Resource$Properties$Conversionevents(this.context); + this.customDimensions = new Resource$Properties$Customdimensions(this.context); + this.customMetrics = new Resource$Properties$Custommetrics(this.context); + this.dataStreams = new Resource$Properties$Datastreams(this.context); + this.displayVideo360AdvertiserLinkProposals = + new Resource$Properties$Displayvideo360advertiserlinkproposals(this.context); + this.displayVideo360AdvertiserLinks = + new Resource$Properties$Displayvideo360advertiserlinks(this.context); + this.expandedDataSets = new Resource$Properties$Expandeddatasets(this.context); + this.firebaseLinks = new Resource$Properties$Firebaselinks(this.context); + this.googleAdsLinks = new Resource$Properties$Googleadslinks(this.context); + this.searchAds360Links = new Resource$Properties$Searchads360links(this.context); + this.userLinks = new Resource$Properties$Userlinks(this.context); + } + acknowledgeUserDataCollection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86737,26 +84335,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+property}:acknowledgeUserDataCollection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86769,26 +84366,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/properties').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createConnectedSiteTag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86801,31 +84397,24 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/properties:createConnectedSiteTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionsslcertificates = Resource$Regionsslcertificates; - class Resource$Regiontargethttpproxies { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -86839,26 +84428,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteConnectedSiteTag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86871,60 +84459,59 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/properties:deleteConnectedSiteTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + fetchAutomatedGa4ConfigurationOptOut(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + '/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -86935,26 +84522,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + getAttributionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86967,32 +84553,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; - class Resource$Regiontargethttpsproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getDataRetentionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87005,26 +84584,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getGoogleSignalsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87037,28 +84615,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -87069,26 +84645,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listConnectedSiteTags(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87101,28 +84676,26 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/properties:listConnectedSiteTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -87133,26 +84706,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + runAccessReport(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87165,64 +84737,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['entity'], + pathParams: ['entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; - class Resource$Regionurlmaps { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setAutomatedGa4ConfigurationOptOut(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/properties:setAutomatedGa4ConfigurationOptOut').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateAttributionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87235,26 +84800,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateDataRetentionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87267,26 +84831,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + updateGoogleSignalsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87299,26 +84862,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties = Resource$Properties; + class Resource$Properties$Accessbindings { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87331,26 +84899,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87363,26 +84930,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87395,26 +84961,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87427,32 +84992,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionurlmaps = Resource$Regionurlmaps; - class Resource$Reservations { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87465,23 +85023,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -87497,27 +85054,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -87528,26 +85085,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87560,26 +85116,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87592,26 +85147,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Accessbindings = Resource$Properties$Accessbindings; + class Resource$Properties$Audiences { + constructor(context) { + this.context = context; + } + archive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87624,26 +85184,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87656,26 +85215,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/audiences').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87688,26 +85246,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87720,32 +85277,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/audiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Reservations = Resource$Reservations; - class Resource$Resourcepolicies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87758,26 +85308,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Audiences = Resource$Properties$Audiences; + class Resource$Properties$Bigquerylinks { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87790,26 +85345,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87822,26 +85376,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/bigQueryLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Bigquerylinks = Resource$Properties$Bigquerylinks; + class Resource$Properties$Channelgroups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87854,26 +85413,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/channelGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87886,26 +85444,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87918,26 +85475,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87950,26 +85506,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/channelGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87982,32 +85537,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Resourcepolicies = Resource$Resourcepolicies; - class Resource$Routers { + analyticsadmin_v1alpha.Resource$Properties$Channelgroups = Resource$Properties$Channelgroups; + class Resource$Properties$Conversionevents { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88020,26 +85574,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88050,27 +85605,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88081,26 +85636,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88113,26 +85667,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Conversionevents = Resource$Properties$Conversionevents; + class Resource$Properties$Customdimensions { + constructor(context) { + this.context = context; + } + archive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88145,27 +85704,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88176,27 +85735,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88207,27 +85766,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88238,27 +85797,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - preview(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88269,26 +85828,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Customdimensions = Resource$Properties$Customdimensions; + class Resource$Properties$Custommetrics { + constructor(context) { + this.context = context; + } + archive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88301,27 +85865,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88332,33 +85896,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Routers = Resource$Routers; - class Resource$Routes { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88369,26 +85927,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88399,26 +85958,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88429,26 +85989,35 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + analyticsadmin_v1alpha.Resource$Properties$Custommetrics = Resource$Properties$Custommetrics; + class Resource$Properties$Datastreams { + constructor(context) { + this.context = context; + this.measurementProtocolSecrets = + new Resource$Properties$Datastreams$Measurementprotocolsecrets(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -88459,25 +86028,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88490,32 +86059,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Routes = Resource$Routes; - class Resource$Securitypolicies { - constructor(context) { - this.context = context; - } - addRule(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88528,58 +86090,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getEnhancedMeasurementSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getGlobalSiteTag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88592,26 +86153,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88624,26 +86184,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88656,511 +86215,458 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateEnhancedMeasurementSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Datastreams = Resource$Properties$Datastreams; + class Resource$Properties$Datastreams$Measurementprotocolsecrets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Securitypolicies = Resource$Securitypolicies; - class Resource$Snapshots { + analyticsadmin_v1alpha.Resource$Properties$Datastreams$Measurementprotocolsecrets = Resource$Properties$Datastreams$Measurementprotocolsecrets; + class Resource$Properties$Displayvideo360advertiserlinkproposals { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Snapshots = Resource$Snapshots; - class Resource$Sslcertificates { + analyticsadmin_v1alpha.Resource$Properties$Displayvideo360advertiserlinkproposals = Resource$Properties$Displayvideo360advertiserlinkproposals; + class Resource$Properties$Displayvideo360advertiserlinks { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/displayVideo360AdvertiserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -89169,30 +86675,30 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -89201,97 +86707,103 @@ var compute_beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/displayVideo360AdvertiserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Displayvideo360advertiserlinks = Resource$Properties$Displayvideo360advertiserlinks; + class Resource$Properties$Expandeddatasets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89304,31 +86816,24 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/expandedDataSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Sslcertificates = Resource$Sslcertificates; - class Resource$Sslpolicies { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -89342,27 +86847,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -89373,26 +86878,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89405,26 +86909,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/expandedDataSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -89435,25 +86940,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Expandeddatasets = Resource$Properties$Expandeddatasets; + class Resource$Properties$Firebaselinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89466,26 +86977,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/firebaseLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89498,26 +87008,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89530,32 +87039,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/firebaseLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Sslpolicies = Resource$Sslpolicies; - class Resource$Subnetworks { + analyticsadmin_v1alpha.Resource$Properties$Firebaselinks = Resource$Properties$Firebaselinks; + class Resource$Properties$Googleadslinks { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89568,23 +87076,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/googleAdsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -89600,26 +87107,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89632,27 +87138,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/googleAdsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -89663,26 +87169,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Googleadslinks = Resource$Properties$Googleadslinks; + class Resource$Properties$Searchads360links { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89695,26 +87206,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/searchAds360Links').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89727,27 +87237,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -89758,26 +87268,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89790,23 +87299,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/searchAds360Links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -89822,26 +87330,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + analyticsadmin_v1alpha.Resource$Properties$Searchads360links = Resource$Properties$Searchads360links; + class Resource$Properties$Userlinks { + constructor(context) { + this.context = context; + } + audit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89854,26 +87367,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks:audit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89886,26 +87398,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89918,32 +87429,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Subnetworks = Resource$Subnetworks; - class Resource$Targethttpproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89956,26 +87460,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89988,26 +87491,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90020,26 +87522,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90052,26 +87553,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90084,26 +87584,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90116,26 +87615,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90148,64 +87646,132 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Targethttpproxies = Resource$Targethttpproxies; - class Resource$Targethttpsproxies { + analyticsadmin_v1alpha.Resource$Properties$Userlinks = Resource$Properties$Userlinks; +})(analyticsadmin_v1alpha = exports.analyticsadmin_v1alpha || (exports.analyticsadmin_v1alpha = {})); + + +/***/ }), + +/***/ 1230: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.composer_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var composer_v1beta1; +(function (composer_v1beta1) { + /** + * Cloud Composer API + * + * Manages Apache Airflow environments on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const composer = google.composer('v1beta1'); + * ``` + */ + class Composer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + composer_v1beta1.Composer = Composer; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.environments = new Resource$Projects$Locations$Environments(this.context); + this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + composer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { + constructor(context) { + this.context = context; + } + checkUpgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+environment}:checkUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90218,26 +87784,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90250,26 +87815,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90282,23 +87846,22 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -90314,58 +87877,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + loadSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90378,90 +87940,95 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + restartWebServer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:restartWebServer').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + saveSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1beta1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Imageversions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90474,32 +88041,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Targethttpsproxies = Resource$Targethttpsproxies; - class Resource$Targetinstances { + composer_v1beta1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90512,26 +88078,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90544,26 +88109,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90576,26 +88140,86 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1beta1 = exports.composer_v1beta1 || (exports.composer_v1beta1 = {})); + + +/***/ }), + +/***/ 1232: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.oslogin_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var oslogin_v1beta; +(function (oslogin_v1beta) { + /** + * Cloud OS Login API + * + * You can use OS Login to manage access to your VM instances using IAM roles. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const oslogin = google.oslogin('v1beta'); + * ``` + */ + class Oslogin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + oslogin_v1beta.Oslogin = Oslogin; + class Resource$Users { + constructor(context) { + this.context = context; + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); + } + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90608,26 +88232,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90640,26 +88263,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + oslogin_v1beta.Resource$Users = Resource$Users; + class Resource$Users$Projects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90672,32 +88300,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Targetinstances = Resource$Targetinstances; - class Resource$Targetpools { + oslogin_v1beta.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { constructor(context) { this.context = context; } - addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90710,26 +88337,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addInstance(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90742,26 +88368,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90774,26 +88399,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90806,27 +88430,101 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + oslogin_v1beta.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1beta = exports.oslogin_v1beta || (exports.oslogin_v1beta = {})); + + +/***/ }), + +/***/ 1236: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.ondemandscanning_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var ondemandscanning_v1beta1; +(function (ondemandscanning_v1beta1) { + /** + * On-Demand Scanning API + * + * A service to scan container images for vulnerabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const ondemandscanning = google.ondemandscanning('v1beta1'); + * ``` + */ + class Ondemandscanning { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + ondemandscanning_v1beta1.Ondemandscanning = Ondemandscanning; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + ondemandscanning_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.scans = new Resource$Projects$Locations$Scans(this.context); + } + } + ondemandscanning_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + 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; @@ -90837,26 +88535,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90869,26 +88566,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90901,27 +88597,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -90932,26 +88628,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90964,26 +88659,33 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstance(paramsOrCallback, optionsOrCallback, callback) { + } + ondemandscanning_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scans { + constructor(context) { + this.context = context; + this.vulnerabilities = + new Resource$Projects$Locations$Scans$Vulnerabilities(this.context); + } + analyzePackages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90996,26 +88698,171 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/scans:analyzePackages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackup(paramsOrCallback, optionsOrCallback, callback) { + } + ondemandscanning_v1beta1.Resource$Projects$Locations$Scans = Resource$Projects$Locations$Scans; + class Resource$Projects$Locations$Scans$Vulnerabilities { + 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://ondemandscanning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/vulnerabilities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ondemandscanning_v1beta1.Resource$Projects$Locations$Scans$Vulnerabilities = Resource$Projects$Locations$Scans$Vulnerabilities; +})(ondemandscanning_v1beta1 = exports.ondemandscanning_v1beta1 || (exports.ondemandscanning_v1beta1 = {})); + + +/***/ }), + +/***/ 1257: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.adexchangebuyer2_v2beta1 = exports.auth = exports.adexchangebuyer2 = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2beta1_1 = __webpack_require__(7328); +Object.defineProperty(exports, "adexchangebuyer2_v2beta1", { enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } }); +exports.VERSIONS = { + v2beta1: v2beta1_1.adexchangebuyer2_v2beta1.Adexchangebuyer2, +}; +function adexchangebuyer2(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('adexchangebuyer2', versionOrOptions, exports.VERSIONS, this); +} +exports.adexchangebuyer2 = adexchangebuyer2; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1265: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkehub_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkehub_v1; +(function (gkehub_v1) { + /** + * GKE Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkehub = google.gkehub('v1'); + * ``` + */ + class Gkehub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gkehub_v1.Gkehub = Gkehub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gkehub_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.features = new Resource$Projects$Locations$Features(this.context); + this.memberships = new Resource$Projects$Locations$Memberships(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.scopes = new Resource$Projects$Locations$Scopes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91028,26 +88875,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91060,32 +88906,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Targetpools = Resource$Targetpools; - class Resource$Targetsslproxies { + gkehub_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Features { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91098,26 +88943,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91130,26 +88974,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91162,26 +89005,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91194,26 +89036,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91226,26 +89067,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91258,26 +89098,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91290,58 +89129,64 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1.Resource$Projects$Locations$Features = Resource$Projects$Locations$Features; + class Resource$Projects$Locations$Memberships { + constructor(context) { + this.context = context; + this.bindings = new Resource$Projects$Locations$Memberships$Bindings(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91354,31 +89199,24 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Targetsslproxies = Resource$Targetsslproxies; - class Resource$Targettcpproxies { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -91392,58 +89230,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateConnectManifest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91456,58 +89293,57 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91520,26 +89356,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91552,262 +89387,261 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Targettcpproxies = Resource$Targettcpproxies; - class Resource$Targetvpngateways { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; + class Resource$Projects$Locations$Memberships$Bindings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Targetvpngateways = Resource$Targetvpngateways; - class Resource$Urlmaps { + gkehub_v1.Resource$Projects$Locations$Memberships$Bindings = Resource$Projects$Locations$Memberships$Bindings; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91820,26 +89654,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91850,27 +89685,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91881,27 +89716,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91912,25 +89747,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scopes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91943,27 +89784,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91974,26 +89815,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92004,26 +89846,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92036,27 +89877,95 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gkehub_v1.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; +})(gkehub_v1 = exports.gkehub_v1 || (exports.gkehub_v1 = {})); + + +/***/ }), + +/***/ 1271: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.domains_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var domains_v1; +(function (domains_v1) { + /** + * Cloud Domains API + * + * Enables management and configuration of domain names. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const domains = google.domains('v1'); + * ``` + */ + class Domains { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + domains_v1.Domains = Domains; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + domains_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.registrations = new Resource$Projects$Locations$Registrations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92067,27 +89976,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92098,32 +90007,31 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_beta.Resource$Urlmaps = Resource$Urlmaps; - class Resource$Vpngateways { + domains_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92136,26 +90044,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92168,122 +90075,129 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + domains_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Registrations { + constructor(context) { + this.context = context; + } + configureContactSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(paramsOrCallback, optionsOrCallback, callback) { + configureDnsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + configureManagementSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92294,26 +90208,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92326,32 +90239,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Vpngateways = Resource$Vpngateways; - class Resource$Vpntunnels { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92364,58 +90270,59 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92426,26 +90333,25 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92458,27 +90364,27 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92489,420 +90395,355 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + register(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + resetAuthorizationCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Vpntunnels = Resource$Vpntunnels; - class Resource$Zoneoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + retrieveAuthorizationCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + retrieveImportableDomains(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + '/v1/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + retrieveRegisterParameters(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + '/v1/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + retrieveTransferParameters(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Zoneoperations = Resource$Zoneoperations; - class Resource$Zones { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchDomains(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Zones = Resource$Zones; -})(compute_beta = exports.compute_beta || (exports.compute_beta = {})); -//# sourceMappingURL=beta.js.map - -/***/ }), -/* 234 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.datastore_v1beta1 = 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 = __webpack_require__(927); -var datastore_v1beta1; -(function (datastore_v1beta1) { - /** - * Cloud Datastore API - * - * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. - * - * @example - * const {google} = require('googleapis'); - * const datastore = google.datastore('v1beta1'); - * - * @namespace datastore - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Datastore - */ - class Datastore { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - datastore_v1beta1.Datastore = Datastore; - class Resource$Projects { - constructor(context) { - this.context = context; - } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + transfer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datastore_v1beta1.Resource$Projects = Resource$Projects; -})(datastore_v1beta1 = exports.datastore_v1beta1 || (exports.datastore_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + domains_v1.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; +})(domains_v1 = exports.domains_v1 || (exports.domains_v1 = {})); + /***/ }), -/* 235 */, -/* 236 */ + +/***/ 1272: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -92920,121 +90761,208 @@ var datastore_v1beta1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.dataflow_v1b3 = 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 */ +exports.AuthPlus = exports.essentialcontacts_v1 = exports.auth = exports.essentialcontacts = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -var dataflow_v1b3; -(function (dataflow_v1b3) { - /** - * Dataflow API - * - * Manages Google Cloud Dataflow projects on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const dataflow = google.dataflow('v1b3'); - * - * @namespace dataflow - * @type {Function} - * @version v1b3 - * @variation v1b3 - * @param {object=} options Options for Dataflow - */ - class Dataflow { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - dataflow_v1b3.Dataflow = Dataflow; - class Resource$Projects { - constructor(context) { - this.context = context; - this.jobs = new Resource$Projects$Jobs(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.snapshots = new Resource$Projects$Snapshots(this.context); - this.templates = new Resource$Projects$Templates(this.context); - } - deleteSnapshots(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://dataflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - workerMessages(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://dataflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } +const v1_1 = __webpack_require__(3769); +Object.defineProperty(exports, "essentialcontacts_v1", { enumerable: true, get: function () { return v1_1.essentialcontacts_v1; } }); +exports.VERSIONS = { + v1: v1_1.essentialcontacts_v1.Essentialcontacts, +}; +function essentialcontacts(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('essentialcontacts', versionOrOptions, exports.VERSIONS, this); +} +exports.essentialcontacts = essentialcontacts; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1277: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.docs_v1 = exports.auth = exports.docs = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1102); +Object.defineProperty(exports, "docs_v1", { enumerable: true, get: function () { return v1_1.docs_v1; } }); +exports.VERSIONS = { + v1: v1_1.docs_v1.Docs, +}; +function docs(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('docs', versionOrOptions, exports.VERSIONS, this); +} +exports.docs = docs; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1280: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.osconfig_v1beta = exports.osconfig_v1alpha = exports.osconfig_v1 = exports.auth = exports.osconfig = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8375); +Object.defineProperty(exports, "osconfig_v1", { enumerable: true, get: function () { return v1_1.osconfig_v1; } }); +const v1alpha_1 = __webpack_require__(2583); +Object.defineProperty(exports, "osconfig_v1alpha", { enumerable: true, get: function () { return v1alpha_1.osconfig_v1alpha; } }); +const v1beta_1 = __webpack_require__(5660); +Object.defineProperty(exports, "osconfig_v1beta", { enumerable: true, get: function () { return v1beta_1.osconfig_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.osconfig_v1.Osconfig, + v1alpha: v1alpha_1.osconfig_v1alpha.Osconfig, + v1beta: v1beta_1.osconfig_v1beta.Osconfig, +}; +function osconfig(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('osconfig', versionOrOptions, exports.VERSIONS, this); +} +exports.osconfig = osconfig; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1281: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.area120tables_v1alpha1 = exports.auth = exports.area120tables = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(7999); +Object.defineProperty(exports, "area120tables_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.area120tables_v1alpha1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.area120tables_v1alpha1.Area120tables, +}; +function area120tables(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('area120tables', versionOrOptions, exports.VERSIONS, this); +} +exports.area120tables = area120tables; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1294: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.documentai_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var documentai_v1beta2; +(function (documentai_v1beta2) { + /** + * Cloud Document AI API + * + * Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const documentai = google.documentai('v1beta2'); + * ``` + */ + class Documentai { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); } } - dataflow_v1b3.Resource$Projects = Resource$Projects; - class Resource$Projects$Jobs { + documentai_v1beta2.Documentai = Documentai; + class Resource$Projects { constructor(context) { this.context = context; - this.debug = new Resource$Projects$Jobs$Debug(this.context); - this.messages = new Resource$Projects$Jobs$Messages(this.context); - this.workItems = new Resource$Projects$Jobs$Workitems(this.context); + this.documents = new Resource$Projects$Documents(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); } - aggregated(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Documents { + constructor(context) { + this.context = context; + } + batchProcess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93047,25 +90975,25 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs:aggregated').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/documents:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93078,56 +91006,71 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/documents:process').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta2.Resource$Projects$Documents = Resource$Projects$Documents; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Locations$Documents(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + documentai_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Documents { + constructor(context) { + this.context = context; + } + batchProcess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/documents:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93140,25 +91083,31 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/documents:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta2.Resource$Projects$Locations$Documents = Resource$Projects$Locations$Documents; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93171,25 +91120,31 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - snapshot(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93202,25 +91157,100 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations; +})(documentai_v1beta2 = exports.documentai_v1beta2 || (exports.documentai_v1beta2 = {})); + + +/***/ }), + +/***/ 1297: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.composer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var composer_v1; +(function (composer_v1) { + /** + * Cloud Composer API + * + * Manages Apache Airflow environments on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const composer = google.composer('v1'); + * ``` + */ + class Composer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + composer_v1.Composer = Composer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + composer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.environments = new Resource$Projects$Locations$Environments(this.context); + this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + composer_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 || {}); @@ -93233,31 +91263,25 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Jobs = Resource$Projects$Jobs; - class Resource$Projects$Jobs$Debug { - constructor(context) { - this.context = context; - } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93270,26 +91294,25 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendCapture(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93302,31 +91325,24 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Jobs$Debug = Resource$Projects$Jobs$Debug; - class Resource$Projects$Jobs$Messages { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -93340,63 +91356,57 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Jobs$Messages = Resource$Projects$Jobs$Messages; - class Resource$Projects$Jobs$Workitems { - constructor(context) { - this.context = context; - } - lease(paramsOrCallback, optionsOrCallback, callback) { + loadSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93409,75 +91419,63 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Jobs$Workitems = Resource$Projects$Jobs$Workitems; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.flexTemplates = new Resource$Projects$Locations$Flextemplates(this.context); - this.jobs = new Resource$Projects$Locations$Jobs(this.context); - this.snapshots = new Resource$Projects$Locations$Snapshots(this.context); - this.sql = new Resource$Projects$Locations$Sql(this.context); - this.templates = new Resource$Projects$Locations$Templates(this.context); - } - workerMessages(paramsOrCallback, optionsOrCallback, callback) { + saveSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Flextemplates { + composer_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Imageversions { constructor(context) { this.context = context; } - launch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93490,36 +91488,31 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Flextemplates = Resource$Projects$Locations$Flextemplates; - class Resource$Projects$Locations$Jobs { + composer_v1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.debug = new Resource$Projects$Locations$Jobs$Debug(this.context); - this.messages = new Resource$Projects$Locations$Jobs$Messages(this.context); - this.snapshots = new Resource$Projects$Locations$Jobs$Snapshots(this.context); - this.workItems = new Resource$Projects$Locations$Jobs$Workitems(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93532,22 +91525,22 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -93563,26 +91556,25 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93595,26 +91587,84 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1 = exports.composer_v1 || (exports.composer_v1 = {})); + + +/***/ }), + +/***/ 1320: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudasset_v1p4beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudasset_v1p4beta1; +(function (cloudasset_v1p4beta1) { + /** + * Cloud Asset API + * + * The cloud asset API manages the history and inventory of cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p4beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1p4beta1 = new Resource$V1p4beta1(this.context); + } + } + cloudasset_v1p4beta1.Cloudasset = Cloudasset; + class Resource$V1p4beta1 { + constructor(context) { + this.context = context; + } + analyzeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93627,25 +91677,25 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p4beta1/{+parent}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - snapshot(paramsOrCallback, optionsOrCallback, callback) { + exportIamPolicyAnalysis(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93658,26 +91708,148 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p4beta1/{+parent}:exportIamPolicyAnalysis').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + cloudasset_v1p4beta1.Resource$V1p4beta1 = Resource$V1p4beta1; +})(cloudasset_v1p4beta1 = exports.cloudasset_v1p4beta1 || (exports.cloudasset_v1p4beta1 = {})); + + +/***/ }), + +/***/ 1321: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dfareporting_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dfareporting_v4; +(function (dfareporting_v4) { + /** + * Campaign Manager 360 API + * + * Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dfareporting = google.dfareporting('v4'); + * ``` + */ + class Dfareporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); + this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); + this.accountPermissions = new Resource$Accountpermissions(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); + this.ads = new Resource$Ads(this.context); + this.advertiserGroups = new Resource$Advertisergroups(this.context); + this.advertiserInvoices = new Resource$Advertiserinvoices(this.context); + this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); + this.advertisers = new Resource$Advertisers(this.context); + this.billingAssignments = new Resource$Billingassignments(this.context); + this.billingProfiles = new Resource$Billingprofiles(this.context); + this.billingRates = new Resource$Billingrates(this.context); + this.browsers = new Resource$Browsers(this.context); + this.campaignCreativeAssociations = + new Resource$Campaigncreativeassociations(this.context); + this.campaigns = new Resource$Campaigns(this.context); + this.changeLogs = new Resource$Changelogs(this.context); + this.cities = new Resource$Cities(this.context); + this.connectionTypes = new Resource$Connectiontypes(this.context); + this.contentCategories = new Resource$Contentcategories(this.context); + this.conversions = new Resource$Conversions(this.context); + this.countries = new Resource$Countries(this.context); + this.creativeAssets = new Resource$Creativeassets(this.context); + this.creativeFields = new Resource$Creativefields(this.context); + this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); + this.creativeGroups = new Resource$Creativegroups(this.context); + this.creatives = new Resource$Creatives(this.context); + this.dimensionValues = new Resource$Dimensionvalues(this.context); + this.directorySites = new Resource$Directorysites(this.context); + this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); + this.eventTags = new Resource$Eventtags(this.context); + this.files = new Resource$Files(this.context); + this.floodlightActivities = new Resource$Floodlightactivities(this.context); + this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); + this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); + this.inventoryItems = new Resource$Inventoryitems(this.context); + this.languages = new Resource$Languages(this.context); + this.metros = new Resource$Metros(this.context); + this.mobileApps = new Resource$Mobileapps(this.context); + this.mobileCarriers = new Resource$Mobilecarriers(this.context); + this.operatingSystems = new Resource$Operatingsystems(this.context); + this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); + this.orderDocuments = new Resource$Orderdocuments(this.context); + this.orders = new Resource$Orders(this.context); + this.placementGroups = new Resource$Placementgroups(this.context); + this.placements = new Resource$Placements(this.context); + this.placementStrategies = new Resource$Placementstrategies(this.context); + this.platformTypes = new Resource$Platformtypes(this.context); + this.postalCodes = new Resource$Postalcodes(this.context); + this.projects = new Resource$Projects(this.context); + this.regions = new Resource$Regions(this.context); + this.remarketingLists = new Resource$Remarketinglists(this.context); + this.remarketingListShares = new Resource$Remarketinglistshares(this.context); + this.reports = new Resource$Reports(this.context); + this.sites = new Resource$Sites(this.context); + this.sizes = new Resource$Sizes(this.context); + this.subaccounts = new Resource$Subaccounts(this.context); + this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); + this.targetingTemplates = new Resource$Targetingtemplates(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); + this.userRolePermissions = new Resource$Userrolepermissions(this.context); + this.userRoles = new Resource$Userroles(this.context); + this.videoFormats = new Resource$Videoformats(this.context); + } + } + dfareporting_v4.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93690,32 +91862,32 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; - class Resource$Projects$Locations$Jobs$Debug { + dfareporting_v4.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { constructor(context) { this.context = context; } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93728,26 +91900,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendCapture(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93760,32 +91932,32 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Jobs$Debug = Resource$Projects$Locations$Jobs$Debug; - class Resource$Projects$Locations$Jobs$Messages { + dfareporting_v4.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93798,31 +91970,25 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Locations$Jobs$Messages = Resource$Projects$Locations$Jobs$Messages; - class Resource$Projects$Locations$Jobs$Snapshots { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -93836,34 +92002,33 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Jobs$Snapshots = Resource$Projects$Locations$Jobs$Snapshots; - class Resource$Projects$Locations$Jobs$Workitems { + dfareporting_v4.Resource$Accountpermissions = Resource$Accountpermissions; + class Resource$Accounts { constructor(context) { this.context = context; } - lease(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -93874,28 +92039,27 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -93906,32 +92070,91 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Jobs$Workitems = Resource$Projects$Locations$Jobs$Workitems; - class Resource$Projects$Locations$Snapshots { + dfareporting_v4.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93944,26 +92167,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'snapshotId'], - pathParams: ['location', 'projectId', 'snapshotId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93976,23 +92199,23 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'location', 'snapshotId'], - pathParams: ['location', 'projectId', 'snapshotId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -94008,32 +92231,58 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Locations$Snapshots = Resource$Projects$Locations$Snapshots; - class Resource$Projects$Locations$Sql { - constructor(context) { - this.context = context; + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - validate(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94046,34 +92295,33 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/sql:validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Sql = Resource$Projects$Locations$Sql; - class Resource$Projects$Locations$Templates { + dfareporting_v4.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94084,28 +92332,56 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/templates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94116,28 +92392,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - launch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94148,32 +92422,61 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Locations$Templates = Resource$Projects$Locations$Templates; - class Resource$Projects$Snapshots { + dfareporting_v4.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94186,25 +92489,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'snapshotId'], - pathParams: ['projectId', 'snapshotId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94217,31 +92521,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataflow_v1b3.Resource$Projects$Snapshots = Resource$Projects$Snapshots; - class Resource$Projects$Templates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94254,25 +92553,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/templates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94285,25 +92585,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - launch(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94316,397 +92617,60 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataflow_v1b3.Resource$Projects$Templates = Resource$Projects$Templates; -})(dataflow_v1b3 = exports.dataflow_v1b3 || (exports.dataflow_v1b3 = {})); -//# sourceMappingURL=v1b3.js.map - -/***/ }), -/* 237 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(220); -__webpack_require__(54); - -var md5 = module.exports = forge.md5 = forge.md5 || {}; -forge.md.md5 = forge.md.algorithms.md5 = md5; - -/** - * Creates an MD5 message digest object. - * - * @return a message digest object. - */ -md5.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } - - // MD5 state contains four 32-bit integers - var _state = null; - - // input buffer - var _input = forge.util.createBuffer(); - - // used for word storage - var _w = new Array(16); - - // message digest object - var md = { - algorithm: 'md5', - blockLength: 64, - digestLength: 16, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; - - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x67452301, - h1: 0xEFCDAB89, - h2: 0x98BADCFE, - h3: 0x10325476 - }; - return md; - }; - // start digest automatically for first time - md.start(); - - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = (len[1] / 0x100000000) >>> 0; - } - - // add bytes to input buffer - _input.putBytes(msg); - - // process bytes - _update(_state, _w, _input); - - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } - - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate MD5 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in little-endian order; since length - // is stored in bytes we multiply by 8 and add carry - var bits, carry = 0; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - bits = md.fullMessageLength[i] * 8 + carry; - carry = (bits / 0x100000000) >>> 0; - finalBlock.putInt32Le(bits >>> 0); - } - - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32Le(s2.h0); - rval.putInt32Le(s2.h1); - rval.putInt32Le(s2.h2); - rval.putInt32Le(s2.h3); - return rval; - }; - - return md; -}; - -// padding, constant tables for calculating md5 -var _padding = null; -var _g = null; -var _r = null; -var _k = null; -var _initialized = false; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); - - // g values - _g = [ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, - 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, - 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9]; - - // rounds table - _r = [ - 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, - 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, - 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, - 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]; - - // get the result of abs(sin(i + 1)) as a 32-bit integer - _k = new Array(64); - for(var i = 0; i < 64; ++i) { - _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000); - } - - // now initialized - _initialized = true; -} - -/** - * Updates an MD5 state with the given byte buffer. - * - * @param s the MD5 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t, a, b, c, d, f, r, i; - var len = bytes.length(); - while(len >= 64) { - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - - // round 1 - for(i = 0; i < 16; ++i) { - w[i] = bytes.getInt32Le(); - f = d ^ (b & (c ^ d)); - t = (a + f + _k[i] + w[i]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 2 - for(; i < 32; ++i) { - f = c ^ (d & (b ^ c)); - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 3 - for(; i < 48; ++i) { - f = b ^ c ^ d; - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 4 - for(; i < 64; ++i) { - f = c ^ (b | ~d); - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; - - len -= 64; - } -} - - -/***/ }), -/* 238 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.run_v1alpha1 = 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 = __webpack_require__(927); -var run_v1alpha1; -(function (run_v1alpha1) { - /** - * Cloud Run API - * - * Deploy and manage user provided container images that scale automatically based on HTTP traffic. - * - * @example - * const {google} = require('googleapis'); - * const run = google.run('v1alpha1'); - * - * @namespace run - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Run - */ - class Run { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.namespaces = new Resource$Namespaces(this.context); - this.projects = new Resource$Projects(this.context); - } - } - run_v1alpha1.Run = Run; - class Resource$Namespaces { - constructor(context) { - this.context = context; - this.authorizeddomains = new Resource$Namespaces$Authorizeddomains(this.context); - this.cloudauditlogssources = new Resource$Namespaces$Cloudauditlogssources(this.context); - this.cloudpubsubsources = new Resource$Namespaces$Cloudpubsubsources(this.context); - this.cloudschedulersources = new Resource$Namespaces$Cloudschedulersources(this.context); - this.cloudstoragesources = new Resource$Namespaces$Cloudstoragesources(this.context); - this.configurations = new Resource$Namespaces$Configurations(this.context); - this.domainmappings = new Resource$Namespaces$Domainmappings(this.context); - this.revisions = new Resource$Namespaces$Revisions(this.context); - this.routes = new Resource$Namespaces$Routes(this.context); - this.services = new Resource$Namespaces$Services(this.context); - this.triggers = new Resource$Namespaces$Triggers(this.context); - } - } - run_v1alpha1.Resource$Namespaces = Resource$Namespaces; - class Resource$Namespaces$Authorizeddomains { + dfareporting_v4.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserinvoices { constructor(context) { this.context = context; } @@ -94723,32 +92687,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Namespaces$Authorizeddomains = Resource$Namespaces$Authorizeddomains; - class Resource$Namespaces$Cloudauditlogssources { + dfareporting_v4.Resource$Advertiserinvoices = Resource$Advertiserinvoices; + class Resource$Advertiserlandingpages { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94761,26 +92725,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94793,25 +92757,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94824,25 +92789,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94855,32 +92821,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Namespaces$Cloudauditlogssources = Resource$Namespaces$Cloudauditlogssources; - class Resource$Namespaces$Cloudpubsubsources { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94893,28 +92853,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94925,25 +92890,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94956,27 +92922,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94987,32 +92952,25 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Namespaces$Cloudpubsubsources = Resource$Namespaces$Cloudpubsubsources; - class Resource$Namespaces$Cloudschedulersources { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95025,26 +92983,25 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95057,25 +93014,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Advertisers = Resource$Advertisers; + class Resource$Billingassignments { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95088,22 +93051,23 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'billingProfileId'], + pathParams: ['billingProfileId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -95119,63 +93083,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments').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); - } - } - replaceCloudSchedulerSource(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://run.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'billingProfileId'], + pathParams: ['billingProfileId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Namespaces$Cloudschedulersources = Resource$Namespaces$Cloudschedulersources; - class Resource$Namespaces$Cloudstoragesources { + dfareporting_v4.Resource$Billingassignments = Resource$Billingassignments; + class Resource$Billingprofiles { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95188,26 +93121,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95220,25 +93153,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95251,24 +93185,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Billingprofiles = Resource$Billingprofiles; + class Resource$Billingrates { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -95282,28 +93223,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'billingProfileId'], + pathParams: ['billingProfileId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceCloudStorageSource(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.Resource$Billingrates = Resource$Billingrates; + class Resource$Browsers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95314,31 +93260,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Namespaces$Cloudstoragesources = Resource$Namespaces$Cloudstoragesources; - class Resource$Namespaces$Configurations { + dfareporting_v4.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95351,22 +93297,23 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -95382,34 +93329,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/serving.knative.dev/v1alpha1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Namespaces$Configurations = Resource$Namespaces$Configurations; - class Resource$Namespaces$Domainmappings { + dfareporting_v4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95420,28 +93366,27 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95452,27 +93397,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95483,27 +93427,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95514,34 +93457,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Namespaces$Domainmappings = Resource$Namespaces$Domainmappings; - class Resource$Namespaces$Revisions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95552,27 +93487,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Campaigns = Resource$Campaigns; + class Resource$Changelogs { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95583,27 +93523,27 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95614,33 +93554,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Namespaces$Revisions = Resource$Namespaces$Revisions; - class Resource$Namespaces$Routes { + dfareporting_v4.Resource$Changelogs = Resource$Changelogs; + class Resource$Cities { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95651,25 +93590,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95682,31 +93627,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Namespaces$Routes = Resource$Namespaces$Routes; - class Resource$Namespaces$Services { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95719,24 +93659,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -95750,22 +93697,23 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -95781,25 +93729,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95812,25 +93761,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceService(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95843,31 +93793,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Namespaces$Services = Resource$Namespaces$Services; - class Resource$Namespaces$Triggers { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95880,25 +93825,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95911,25 +93857,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { + constructor(context) { + this.context = context; + } + batchinsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95942,25 +93895,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchupdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95973,51 +93927,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Namespaces$Triggers = Resource$Namespaces$Triggers; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - run_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + dfareporting_v4.Resource$Conversions = Resource$Conversions; + class Resource$Countries { constructor(context) { this.context = context; - this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains(this.context); - this.cloudauditlogssources = new Resource$Projects$Locations$Cloudauditlogssources(this.context); - this.cloudpubsubsources = new Resource$Projects$Locations$Cloudpubsubsources(this.context); - this.cloudschedulersources = new Resource$Projects$Locations$Cloudschedulersources(this.context); - this.cloudstoragesources = new Resource$Projects$Locations$Cloudstoragesources(this.context); - this.configurations = new Resource$Projects$Locations$Configurations(this.context); - this.domainmappings = new Resource$Projects$Locations$Domainmappings(this.context); - this.revisions = new Resource$Projects$Locations$Revisions(this.context); - this.routes = new Resource$Projects$Locations$Routes(this.context); - this.services = new Resource$Projects$Locations$Services(this.context); - this.triggers = new Resource$Projects$Locations$Triggers(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96028,33 +93964,27 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Authorizeddomains { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96065,31 +93995,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Projects$Locations$Authorizeddomains = Resource$Projects$Locations$Authorizeddomains; - class Resource$Projects$Locations$Cloudauditlogssources { + dfareporting_v4.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96102,24 +94032,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + mediaUrl: (rootUrl + + '/upload/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -96133,22 +94072,23 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -96164,25 +94104,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96195,31 +94136,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations$Cloudauditlogssources = Resource$Projects$Locations$Cloudauditlogssources; - class Resource$Projects$Locations$Cloudpubsubsources { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96232,25 +94168,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96263,25 +94200,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96294,25 +94232,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96325,31 +94270,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations$Cloudpubsubsources = Resource$Projects$Locations$Cloudpubsubsources; - class Resource$Projects$Locations$Cloudschedulersources { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96362,25 +94302,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96393,25 +94334,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96424,25 +94366,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96455,25 +94398,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceCloudSchedulerSource(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96486,31 +94430,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Projects$Locations$Cloudschedulersources = Resource$Projects$Locations$Cloudschedulersources; - class Resource$Projects$Locations$Cloudstoragesources { + dfareporting_v4.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96523,25 +94468,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96554,25 +94500,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96585,25 +94532,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96616,25 +94564,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceCloudStorageSource(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96647,33 +94596,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Projects$Locations$Cloudstoragesources = Resource$Projects$Locations$Cloudstoragesources; - class Resource$Projects$Locations$Configurations { + dfareporting_v4.Resource$Creativegroups = Resource$Creativegroups; + class Resource$Creatives { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96684,27 +94633,27 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96715,33 +94664,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations$Configurations = Resource$Projects$Locations$Configurations; - class Resource$Projects$Locations$Domainmappings { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96752,27 +94694,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96783,27 +94724,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96814,25 +94754,31 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Creatives = Resource$Creatives; + class Resource$Dimensionvalues { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96845,31 +94791,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; - class Resource$Projects$Locations$Revisions { + dfareporting_v4.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96882,25 +94829,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96913,22 +94861,23 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -96944,31 +94893,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1alpha1.Resource$Projects$Locations$Revisions = Resource$Projects$Locations$Revisions; - class Resource$Projects$Locations$Routes { + dfareporting_v4.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96981,25 +94931,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97012,31 +94963,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations$Routes = Resource$Projects$Locations$Routes; - class Resource$Projects$Locations$Services { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97049,27 +94995,33 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97080,27 +95032,27 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97111,27 +95063,27 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97142,27 +95094,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97173,27 +95124,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97204,27 +95154,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97235,27 +95184,32 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.Resource$Eventtags = Resource$Eventtags; + class Resource$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97266,33 +95220,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; - class Resource$Projects$Locations$Triggers { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97303,24 +95250,30 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -97334,25 +95287,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generatetag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97365,25 +95319,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97396,175 +95351,26 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1alpha1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; -})(run_v1alpha1 = exports.run_v1alpha1 || (exports.run_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 239 */ -/***/ (function(module) { - -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = { - // default options - options: { - usePureJavaScript: false - } -}; - - -/***/ }), -/* 240 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = authenticationRequestError; - -const { RequestError } = __webpack_require__(524); - -function authenticationRequestError(state, error, options) { - /* istanbul ignore next */ - if (!error.headers) throw error; - - const otpRequired = /required/.test(error.headers["x-github-otp"] || ""); - // handle "2FA required" error only - if (error.status !== 401 || !otpRequired) { - throw error; - } - - if ( - error.status === 401 && - otpRequired && - error.request && - error.request.headers["x-github-otp"] - ) { - throw new RequestError( - "Invalid one-time password for two-factor authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - - if (typeof state.auth.on2fa !== "function") { - throw new RequestError( - "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - - return Promise.resolve() - .then(() => { - return state.auth.on2fa(); - }) - .then(oneTimePassword => { - const newOptions = Object.assign(options, { - headers: Object.assign( - { "x-github-otp": oneTimePassword }, - options.headers - ) - }); - return state.octokit.request(newOptions); - }); -} - - -/***/ }), -/* 241 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.playcustomapp_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 = __webpack_require__(927); -var playcustomapp_v1; -(function (playcustomapp_v1) { - /** - * Google Play Custom App Publishing API - * - * An API to publish custom Android apps. - * - * @example - * const {google} = require('googleapis'); - * const playcustomapp = google.playcustomapp('v1'); - * - * @namespace playcustomapp - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Playcustomapp - */ - class Playcustomapp { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - } - } - playcustomapp_v1.Playcustomapp = Playcustomapp; - class Resource$Accounts { - constructor(context) { - this.context = context; - this.customApps = new Resource$Accounts$Customapps(this.context); - } - } - playcustomapp_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Customapps { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97577,434 +95383,28 @@ var playcustomapp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['account'], - pathParams: ['account'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - playcustomapp_v1.Resource$Accounts$Customapps = Resource$Accounts$Customapps; -})(playcustomapp_v1 = exports.playcustomapp_v1 || (exports.playcustomapp_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 242 */, -/* 243 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -// A linked list to keep track of recently-used-ness -const Yallist = __webpack_require__(946) - -const MAX = Symbol('max') -const LENGTH = Symbol('length') -const LENGTH_CALCULATOR = Symbol('lengthCalculator') -const ALLOW_STALE = Symbol('allowStale') -const MAX_AGE = Symbol('maxAge') -const DISPOSE = Symbol('dispose') -const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') -const LRU_LIST = Symbol('lruList') -const CACHE = Symbol('cache') -const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') - -const naiveLength = () => 1 - -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options } - - if (!options) - options = {} - - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity - - const lc = options.length || naiveLength - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc - this[ALLOW_STALE] = options.stale || false - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false - this.reset() - } - - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') - - this[MAX] = mL || Infinity - trim(this) - } - get max () { - return this[MAX] - } - - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale - } - get allowStale () { - return this[ALLOW_STALE] - } - - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') - - this[MAX_AGE] = mA - trim(this) - } - get maxAge () { - return this[MAX_AGE] - } - - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength - - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }) - } - trim(this) - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } - - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } - - rforEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } - } - - forEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } - } - - keys () { - return this[LRU_LIST].toArray().map(k => k.key) - } - - values () { - return this[LRU_LIST].toArray().map(k => k.value) - } - - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) - } - - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list - } - - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } - - dumpLru () { - return this[LRU_LIST] - } - - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] - - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') - - const now = maxAge ? Date.now() : 0 - const len = this[LENGTH_CALCULATOR](value, key) - - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } - - const node = this[CACHE].get(key) - const item = node.value - - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value) - } - - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true - } - - const hit = new Entry(key, value, len, now, maxAge) - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value) - - return false - } - - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true - } - - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value - return !isStale(this, hit) - } - - get (key) { - return get(this, key, true) - } - - peek (key) { - return get(this, key, false) - } - - pop () { - const node = this[LRU_LIST].tail - if (!node) - return null - - del(this, node) - return node.value - } - - del (key) { - del(this, this[CACHE].get(key)) - } - - load (arr) { - // reset the cache - this.reset() - - const now = Date.now() - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l] - const expiresAt = hit.e || 0 - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - else { - const maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } - } - - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)) - } -} - -const get = (self, key, doUse) => { - const node = self[CACHE].get(key) - if (node) { - const hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now() - self[LRU_LIST].unshiftNode(node) - } - } - return hit.value - } -} - -const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false - - const diff = Date.now() - hit.now - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) -} - -const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev - del(self, walker) - walker = prev - } - } -} - -const del = (self, node) => { - if (node) { - const hit = node.value - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value) - - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} - -class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 - } -} - -const forEachStep = (self, fn, node, thisp) => { - let hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - hit = undefined - } - if (hit) - fn.call(thisp, hit.value, hit.key, self) -} - -module.exports = LRUCache - - -/***/ }), -/* 244 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.speech_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 = __webpack_require__(927); -var speech_v1; -(function (speech_v1) { - /** - * Cloud Speech-to-Text API - * - * Converts audio to text by applying powerful neural network models. - * - * @example - * const {google} = require('googleapis'); - * const speech = google.speech('v1'); - * - * @namespace speech - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Speech - */ - class Speech { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - this.speech = new Resource$Speech(this.context); - } - } - speech_v1.Speech = Speech; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98015,26 +95415,28 @@ var speech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98045,45 +95447,26 @@ var speech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - speech_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - } - speech_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98096,25 +95479,32 @@ var speech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98127,31 +95517,26 @@ var speech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Speech { - constructor(context) { - this.context = context; - } - longrunningrecognize(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98164,26 +95549,28 @@ var speech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recognize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98194,92 +95581,26 @@ var speech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1.Resource$Speech = Resource$Speech; -})(speech_v1 = exports.speech_v1 || (exports.speech_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 245 */, -/* 246 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.securitycenter_v1beta1 = 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 = __webpack_require__(927); -var securitycenter_v1beta1; -(function (securitycenter_v1beta1) { - /** - * Security Command Center API - * - * Security Command Center API provides access to temporal views of assets and findings within an organization. - * - * @example - * const {google} = require('googleapis'); - * const securitycenter = google.securitycenter('v1beta1'); - * - * @namespace securitycenter - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Securitycenter - */ - class Securitycenter { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.organizations = new Resource$Organizations(this.context); - } - } - securitycenter_v1beta1.Securitycenter = Securitycenter; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.assets = new Resource$Organizations$Assets(this.context); - this.operations = new Resource$Organizations$Operations(this.context); - this.sources = new Resource$Organizations$Sources(this.context); - } - getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98292,25 +95613,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98323,31 +95645,32 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Assets { + dfareporting_v4.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { constructor(context) { this.context = context; } - group(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98360,22 +95683,23 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -98391,25 +95715,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98422,25 +95747,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98453,31 +95779,32 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; - class Resource$Organizations$Operations { + dfareporting_v4.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98490,25 +95817,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98521,24 +95849,170 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Languages = Resource$Languages; + class Resource$Metros { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -98552,22 +96026,23 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -98583,32 +96058,32 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; - class Resource$Organizations$Sources { + dfareporting_v4.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { constructor(context) { this.context = context; - this.findings = new Resource$Organizations$Sources$Findings(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98621,24 +96096,133 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -98652,25 +96236,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98683,22 +96268,161 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -98714,22 +96438,23 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -98745,25 +96470,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98776,25 +96502,95 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v4.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { + constructor(context) { + this.context = context; + } + generatetags(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98807,31 +96603,122 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1beta1.Resource$Organizations$Sources = Resource$Organizations$Sources; - class Resource$Organizations$Sources$Findings { + dfareporting_v4.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98844,25 +96731,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - group(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98875,22 +96763,55 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -98906,22 +96827,23 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -98937,25 +96859,26 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98968,25 +96891,32 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98999,154 +96929,199 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; -})(securitycenter_v1beta1 = exports.securitycenter_v1beta1 || (exports.securitycenter_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 247 */ -/***/ (function(module) { - -"use strict"; - -var argv = process.argv; - -var terminator = argv.indexOf('--'); -var hasFlag = function (flag) { - flag = '--' + flag; - var pos = argv.indexOf(flag); - return pos !== -1 && (terminator !== -1 ? pos < terminator : true); -}; - -module.exports = (function () { - if ('FORCE_COLOR' in process.env) { - return true; - } - - if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - return false; - } - - if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - return true; - } - - if (process.stdout && !process.stdout.isTTY) { - return false; - } - - if (process.platform === 'win32') { - return true; - } - - if ('COLORTERM' in process.env) { - return true; - } - - if (process.env.TERM === 'dumb') { - return false; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return true; - } - - return false; -})(); - - -/***/ }), -/* 248 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudbuild_v1alpha1 = 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 = __webpack_require__(927); -var cloudbuild_v1alpha1; -(function (cloudbuild_v1alpha1) { - /** - * Cloud Build API - * - * Creates and manages builds on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const cloudbuild = google.cloudbuild('v1alpha1'); - * - * @namespace cloudbuild - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Cloudbuild - */ - class Cloudbuild { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + dfareporting_v4.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudbuild_v1alpha1.Cloudbuild = Cloudbuild; + dfareporting_v4.Resource$Postalcodes = Resource$Postalcodes; class Resource$Projects { constructor(context) { this.context = context; - this.workerPools = new Resource$Projects$Workerpools(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudbuild_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Workerpools { + dfareporting_v4.Resource$Projects = Resource$Projects; + class Resource$Regions { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -99157,25 +97132,31 @@ var cloudbuild_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99188,25 +97169,26 @@ var cloudbuild_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99219,22 +97201,23 @@ var cloudbuild_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -99250,22 +97233,23 @@ var cloudbuild_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -99281,3567 +97265,3303 @@ var cloudbuild_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudbuild_v1alpha1.Resource$Projects$Workerpools = Resource$Projects$Workerpools; -})(cloudbuild_v1alpha1 = exports.cloudbuild_v1alpha1 || (exports.cloudbuild_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 249 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of X.509 and related components (such as - * Certification Signing Requests) of a Public Key Infrastructure. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - * - * The ASN.1 representation of an X.509v3 certificate is as follows - * (see RFC 2459): - * - * Certificate ::= SEQUENCE { - * tbsCertificate TBSCertificate, - * signatureAlgorithm AlgorithmIdentifier, - * signatureValue BIT STRING - * } - * - * TBSCertificate ::= SEQUENCE { - * version [0] EXPLICIT Version DEFAULT v1, - * serialNumber CertificateSerialNumber, - * signature AlgorithmIdentifier, - * issuer Name, - * validity Validity, - * subject Name, - * subjectPublicKeyInfo SubjectPublicKeyInfo, - * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, - * -- If present, version shall be v2 or v3 - * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, - * -- If present, version shall be v2 or v3 - * extensions [3] EXPLICIT Extensions OPTIONAL - * -- If present, version shall be v3 - * } - * - * Version ::= INTEGER { v1(0), v2(1), v3(2) } - * - * CertificateSerialNumber ::= INTEGER - * - * Name ::= CHOICE { - * // only one possible choice for now - * RDNSequence - * } - * - * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName - * - * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue - * - * AttributeTypeAndValue ::= SEQUENCE { - * type AttributeType, - * value AttributeValue - * } - * AttributeType ::= OBJECT IDENTIFIER - * AttributeValue ::= ANY DEFINED BY AttributeType - * - * Validity ::= SEQUENCE { - * notBefore Time, - * notAfter Time - * } - * - * Time ::= CHOICE { - * utcTime UTCTime, - * generalTime GeneralizedTime - * } - * - * UniqueIdentifier ::= BIT STRING - * - * SubjectPublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * subjectPublicKey BIT STRING - * } - * - * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension - * - * Extension ::= SEQUENCE { - * extnID OBJECT IDENTIFIER, - * critical BOOLEAN DEFAULT FALSE, - * extnValue OCTET STRING - * } - * - * The only key algorithm currently supported for PKI is RSA. - * - * RSASSA-PSS signatures are described in RFC 3447 and RFC 4055. - * - * PKCS#10 v1.7 describes certificate signing requests: - * - * CertificationRequestInfo: - * - * CertificationRequestInfo ::= SEQUENCE { - * version INTEGER { v1(0) } (v1,...), - * subject Name, - * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, - * attributes [0] Attributes{{ CRIAttributes }} - * } - * - * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} - * - * CRIAttributes ATTRIBUTE ::= { - * ... -- add any locally defined attributes here -- } - * - * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { - * type ATTRIBUTE.&id({IOSet}), - * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) - * } - * - * CertificationRequest ::= SEQUENCE { - * certificationRequestInfo CertificationRequestInfo, - * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, - * signature BIT STRING - * } - */ -var forge = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(784); -__webpack_require__(794); -__webpack_require__(220); -__webpack_require__(185); -__webpack_require__(988); -__webpack_require__(76); -__webpack_require__(705); -__webpack_require__(526); -__webpack_require__(54); - -// shortcut for asn.1 API -var asn1 = forge.asn1; - -/* Public Key Infrastructure (PKI) implementation. */ -var pki = module.exports = forge.pki = forge.pki || {}; -var oids = pki.oids; - -// short name OID mappings -var _shortNames = {}; -_shortNames['CN'] = oids['commonName']; -_shortNames['commonName'] = 'CN'; -_shortNames['C'] = oids['countryName']; -_shortNames['countryName'] = 'C'; -_shortNames['L'] = oids['localityName']; -_shortNames['localityName'] = 'L'; -_shortNames['ST'] = oids['stateOrProvinceName']; -_shortNames['stateOrProvinceName'] = 'ST'; -_shortNames['O'] = oids['organizationName']; -_shortNames['organizationName'] = 'O'; -_shortNames['OU'] = oids['organizationalUnitName']; -_shortNames['organizationalUnitName'] = 'OU'; -_shortNames['E'] = oids['emailAddress']; -_shortNames['emailAddress'] = 'E'; - -// validator for an SubjectPublicKeyInfo structure -// Note: Currently only works with an RSA public key -var publicKeyValidator = forge.pki.rsa.publicKeyValidator; - -// validator for an X.509v3 certificate -var x509CertificateValidator = { - name: 'Certificate', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'Certificate.TBSCertificate', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'tbsCertificate', - value: [{ - name: 'Certificate.TBSCertificate.version', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - value: [{ - name: 'Certificate.TBSCertificate.version.integer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'certVersion' - }] - }, { - name: 'Certificate.TBSCertificate.serialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'certSerialNumber' - }, { - name: 'Certificate.TBSCertificate.signature', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'Certificate.TBSCertificate.signature.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'certinfoSignatureOid' - }, { - name: 'Certificate.TBSCertificate.signature.parameters', - tagClass: asn1.Class.UNIVERSAL, - optional: true, - captureAsn1: 'certinfoSignatureParams' - }] - }, { - name: 'Certificate.TBSCertificate.issuer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certIssuer' - }, { - name: 'Certificate.TBSCertificate.validity', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - // Note: UTC and generalized times may both appear so the capture - // names are based on their detected order, the names used below - // are only for the common case, which validity time really means - // "notBefore" and which means "notAfter" will be determined by order - value: [{ - // notBefore (Time) (UTC time case) - name: 'Certificate.TBSCertificate.validity.notBefore (utc)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.UTCTIME, - constructed: false, - optional: true, - capture: 'certValidity1UTCTime' - }, { - // notBefore (Time) (generalized time case) - name: 'Certificate.TBSCertificate.validity.notBefore (generalized)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.GENERALIZEDTIME, - constructed: false, - optional: true, - capture: 'certValidity2GeneralizedTime' - }, { - // notAfter (Time) (only UTC time is supported) - name: 'Certificate.TBSCertificate.validity.notAfter (utc)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.UTCTIME, - constructed: false, - optional: true, - capture: 'certValidity3UTCTime' - }, { - // notAfter (Time) (only UTC time is supported) - name: 'Certificate.TBSCertificate.validity.notAfter (generalized)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.GENERALIZEDTIME, - constructed: false, - optional: true, - capture: 'certValidity4GeneralizedTime' - }] - }, { - // Name (subject) (RDNSequence) - name: 'Certificate.TBSCertificate.subject', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certSubject' - }, - // SubjectPublicKeyInfo - publicKeyValidator, - { - // issuerUniqueID (optional) - name: 'Certificate.TBSCertificate.issuerUniqueID', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - constructed: true, - optional: true, - value: [{ - name: 'Certificate.TBSCertificate.issuerUniqueID.id', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - // TODO: support arbitrary bit length ids - captureBitStringValue: 'certIssuerUniqueId' - }] - }, { - // subjectUniqueID (optional) - name: 'Certificate.TBSCertificate.subjectUniqueID', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 2, - constructed: true, - optional: true, - value: [{ - name: 'Certificate.TBSCertificate.subjectUniqueID.id', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - // TODO: support arbitrary bit length ids - captureBitStringValue: 'certSubjectUniqueId' - }] - }, { - // Extensions (optional) - name: 'Certificate.TBSCertificate.extensions', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 3, - constructed: true, - captureAsn1: 'certExtensions', - optional: true - }] - }, { - // AlgorithmIdentifier (signature algorithm) - name: 'Certificate.signatureAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // algorithm - name: 'Certificate.signatureAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'certSignatureOid' - }, { - name: 'Certificate.TBSCertificate.signature.parameters', - tagClass: asn1.Class.UNIVERSAL, - optional: true, - captureAsn1: 'certSignatureParams' - }] - }, { - // SignatureValue - name: 'Certificate.signatureValue', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - captureBitStringValue: 'certSignature' - }] -}; - -var rsassaPssParameterValidator = { - name: 'rsapss', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'rsapss.hashAlgorithm', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - value: [{ - name: 'rsapss.hashAlgorithm.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'hashOid' - /* parameter block omitted, for SHA1 NULL anyhow. */ - }] - }] - }, { - name: 'rsapss.maskGenAlgorithm', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - constructed: true, - value: [{ - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'maskGenOid' - }, { - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'maskGenHashOid' - /* parameter block omitted, for SHA1 NULL anyhow. */ - }] - }] - }] - }, { - name: 'rsapss.saltLength', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 2, - optional: true, - value: [{ - name: 'rsapss.saltLength.saltLength', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.INTEGER, - constructed: false, - capture: 'saltLength' - }] - }, { - name: 'rsapss.trailerField', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 3, - optional: true, - value: [{ - name: 'rsapss.trailer.trailer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.INTEGER, - constructed: false, - capture: 'trailer' - }] - }] -}; - -// validator for a CertificationRequestInfo structure -var certificationRequestInfoValidator = { - name: 'CertificationRequestInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certificationRequestInfo', - value: [{ - name: 'CertificationRequestInfo.integer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'certificationRequestInfoVersion' - }, { - // Name (subject) (RDNSequence) - name: 'CertificationRequestInfo.subject', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certificationRequestInfoSubject' - }, - // SubjectPublicKeyInfo - publicKeyValidator, - { - name: 'CertificationRequestInfo.attributes', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - capture: 'certificationRequestInfoAttributes', - value: [{ - name: 'CertificationRequestInfo.attributes', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'CertificationRequestInfo.attributes.type', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false - }, { - name: 'CertificationRequestInfo.attributes.value', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true - }] - }] - }] -}; - -// validator for a CertificationRequest structure -var certificationRequestValidator = { - name: 'CertificationRequest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'csr', - value: [ - certificationRequestInfoValidator, { - // AlgorithmIdentifier (signature algorithm) - name: 'CertificationRequest.signatureAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // algorithm - name: 'CertificationRequest.signatureAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'csrSignatureOid' - }, { - name: 'CertificationRequest.signatureAlgorithm.parameters', - tagClass: asn1.Class.UNIVERSAL, - optional: true, - captureAsn1: 'csrSignatureParams' - }] - }, { - // signature - name: 'CertificationRequest.signature', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - captureBitStringValue: 'csrSignature' - } - ] -}; - -/** - * Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName - * sets into an array with objects that have type and value properties. - * - * @param rdn the RDNSequence to convert. - * @param md a message digest to append type and value to if provided. - */ -pki.RDNAttributesAsArray = function(rdn, md) { - var rval = []; - - // each value in 'rdn' in is a SET of RelativeDistinguishedName - var set, attr, obj; - for(var si = 0; si < rdn.value.length; ++si) { - // get the RelativeDistinguishedName set - set = rdn.value[si]; - - // each value in the SET is an AttributeTypeAndValue sequence - // containing first a type (an OID) and second a value (defined by - // the OID) - for(var i = 0; i < set.value.length; ++i) { - obj = {}; - attr = set.value[i]; - obj.type = asn1.derToOid(attr.value[0].value); - obj.value = attr.value[1].value; - obj.valueTagClass = attr.value[1].type; - // if the OID is known, get its name and short name - if(obj.type in oids) { - obj.name = oids[obj.type]; - if(obj.name in _shortNames) { - obj.shortName = _shortNames[obj.name]; + dfareporting_v4.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - if(md) { - md.update(obj.type); - md.update(obj.value); - } - rval.push(obj); } - } - - return rval; -}; - -/** - * Converts ASN.1 CRIAttributes into an array with objects that have type and - * value properties. - * - * @param attributes the CRIAttributes to convert. - */ -pki.CRIAttributesAsArray = function(attributes) { - var rval = []; - - // each value in 'attributes' in is a SEQUENCE with an OID and a SET - for(var si = 0; si < attributes.length; ++si) { - // get the attribute sequence - var seq = attributes[si]; - - // each value in the SEQUENCE containing first a type (an OID) and - // second a set of values (defined by the OID) - var type = asn1.derToOid(seq.value[0].value); - var values = seq.value[1].value; - for(var vi = 0; vi < values.length; ++vi) { - var obj = {}; - obj.type = type; - obj.value = values[vi].value; - obj.valueTagClass = values[vi].type; - // if the OID is known, get its name and short name - if(obj.type in oids) { - obj.name = oids[obj.type]; - if(obj.name in _shortNames) { - obj.shortName = _shortNames[obj.name]; + dfareporting_v4.Resource$Remarketinglistshares = Resource$Remarketinglistshares; + class Resource$Reports { + constructor(context) { + this.context = context; + this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); + this.files = new Resource$Reports$Files(this.context); } - } - // parse extensions - if(obj.type === oids.extensionRequest) { - obj.extensions = []; - for(var ei = 0; ei < obj.value.length; ++ei) { - obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei])); + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - rval.push(obj); } - } - - return rval; -}; - -/** - * Gets an issuer or subject attribute from its name, type, or short name. - * - * @param obj the issuer or subject object. - * @param options a short name string or an object with: - * shortName the short name for the attribute. - * name the name for the attribute. - * type the type for the attribute. - * - * @return the attribute. - */ -function _getAttribute(obj, options) { - if(typeof options === 'string') { - options = {shortName: options}; - } - - var rval = null; - var attr; - for(var i = 0; rval === null && i < obj.attributes.length; ++i) { - attr = obj.attributes[i]; - if(options.type && options.type === attr.type) { - rval = attr; - } else if(options.name && options.name === attr.name) { - rval = attr; - } else if(options.shortName && options.shortName === attr.shortName) { - rval = attr; + dfareporting_v4.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { + constructor(context) { + this.context = context; + } + query(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - return rval; -} - -/** - * Converts signature parameters from ASN.1 structure. - * - * Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had - * no parameters. - * - * RSASSA-PSS-params ::= SEQUENCE { - * hashAlgorithm [0] HashAlgorithm DEFAULT - * sha1Identifier, - * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT - * mgf1SHA1Identifier, - * saltLength [2] INTEGER DEFAULT 20, - * trailerField [3] INTEGER DEFAULT 1 - * } - * - * HashAlgorithm ::= AlgorithmIdentifier - * - * MaskGenAlgorithm ::= AlgorithmIdentifier - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * @param oid The OID specifying the signature algorithm - * @param obj The ASN.1 structure holding the parameters - * @param fillDefaults Whether to use return default values where omitted - * @return signature parameter object - */ -var _readSignatureParameters = function(oid, obj, fillDefaults) { - var params = {}; - - if(oid !== oids['RSASSA-PSS']) { - return params; - } - - if(fillDefaults) { - params = { - hash: { - algorithmOid: oids['sha1'] - }, - mgf: { - algorithmOid: oids['mgf1'], - hash: { - algorithmOid: oids['sha1'] + dfareporting_v4.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - saltLength: 20 - }; - } - - var capture = {}; - var errors = []; - if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) { - var error = new Error('Cannot read RSASSA-PSS parameter block.'); - error.errors = errors; - throw error; - } - - if(capture.hashOid !== undefined) { - params.hash = params.hash || {}; - params.hash.algorithmOid = asn1.derToOid(capture.hashOid); - } - - if(capture.maskGenOid !== undefined) { - params.mgf = params.mgf || {}; - params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid); - params.mgf.hash = params.mgf.hash || {}; - params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid); - } - - if(capture.saltLength !== undefined) { - params.saltLength = capture.saltLength.charCodeAt(0); - } - - return params; -}; - -/** - * Converts an X.509 certificate from PEM format. - * - * Note: If the certificate is to be verified then compute hash should - * be set to true. This will scan the TBSCertificate part of the ASN.1 - * object while it is converted so it doesn't need to be converted back - * to ASN.1-DER-encoding later. - * - * @param pem the PEM-formatted certificate. - * @param computeHash true to compute the hash for verification. - * @param strict true to be strict when checking ASN.1 value lengths, false to - * allow truncated values (default: true). - * - * @return the certificate. - */ -pki.certificateFromPem = function(pem, computeHash, strict) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'CERTIFICATE' && - msg.type !== 'X509 CERTIFICATE' && - msg.type !== 'TRUSTED CERTIFICATE') { - var error = new Error( - 'Could not convert certificate from PEM; PEM header type ' + - 'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error( - 'Could not convert certificate from PEM; PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body, strict); - - return pki.certificateFromAsn1(obj, computeHash); -}; - -/** - * Converts an X.509 certificate to PEM format. - * - * @param cert the certificate. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted certificate. - */ -pki.certificateToPem = function(cert, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'CERTIFICATE', - body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/** - * Converts an RSA public key from PEM format. - * - * @param pem the PEM-formatted public key. - * - * @return the public key. - */ -pki.publicKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') { - var error = new Error('Could not convert public key from PEM; PEM header ' + - 'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert public key from PEM; PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body); - - return pki.publicKeyFromAsn1(obj); -}; - -/** - * Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo). - * - * @param key the public key. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted public key. - */ -pki.publicKeyToPem = function(key, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'PUBLIC KEY', - body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/** - * Converts an RSA public key to PEM format (using an RSAPublicKey). - * - * @param key the public key. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted public key. - */ -pki.publicKeyToRSAPublicKeyPem = function(key, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'RSA PUBLIC KEY', - body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/** - * Gets a fingerprint for the given public key. - * - * @param options the options to use. - * [md] the message digest object to use (defaults to forge.md.sha1). - * [type] the type of fingerprint, such as 'RSAPublicKey', - * 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey'). - * [encoding] an alternative output encoding, such as 'hex' - * (defaults to none, outputs a byte buffer). - * [delimiter] the delimiter to use between bytes for 'hex' encoded - * output, eg: ':' (defaults to none). - * - * @return the fingerprint as a byte buffer or other encoding based on options. - */ -pki.getPublicKeyFingerprint = function(key, options) { - options = options || {}; - var md = options.md || forge.md.sha1.create(); - var type = options.type || 'RSAPublicKey'; - - var bytes; - switch(type) { - case 'RSAPublicKey': - bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes(); - break; - case 'SubjectPublicKeyInfo': - bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes(); - break; - default: - throw new Error('Unknown fingerprint type "' + options.type + '".'); - } - - // hash public key bytes - md.start(); - md.update(bytes); - var digest = md.digest(); - if(options.encoding === 'hex') { - var hex = digest.toHex(); - if(options.delimiter) { - return hex.match(/.{2}/g).join(options.delimiter); - } - return hex; - } else if(options.encoding === 'binary') { - return digest.getBytes(); - } else if(options.encoding) { - throw new Error('Unknown encoding "' + options.encoding + '".'); - } - return digest; -}; - -/** - * Converts a PKCS#10 certification request (CSR) from PEM format. - * - * Note: If the certification request is to be verified then compute hash - * should be set to true. This will scan the CertificationRequestInfo part of - * the ASN.1 object while it is converted so it doesn't need to be converted - * back to ASN.1-DER-encoding later. - * - * @param pem the PEM-formatted certificate. - * @param computeHash true to compute the hash for verification. - * @param strict true to be strict when checking ASN.1 value lengths, false to - * allow truncated values (default: true). - * - * @return the certification request (CSR). - */ -pki.certificationRequestFromPem = function(pem, computeHash, strict) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'CERTIFICATE REQUEST') { - var error = new Error('Could not convert certification request from PEM; ' + - 'PEM header type is not "CERTIFICATE REQUEST".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert certification request from PEM; ' + - 'PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body, strict); - - return pki.certificationRequestFromAsn1(obj, computeHash); -}; - -/** - * Converts a PKCS#10 certification request (CSR) to PEM format. - * - * @param csr the certification request. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted certification request. - */ -pki.certificationRequestToPem = function(csr, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'CERTIFICATE REQUEST', - body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/** - * Creates an empty X.509v3 RSA certificate. - * - * @return the certificate. - */ -pki.createCertificate = function() { - var cert = {}; - cert.version = 0x02; - cert.serialNumber = '00'; - cert.signatureOid = null; - cert.signature = null; - cert.siginfo = {}; - cert.siginfo.algorithmOid = null; - cert.validity = {}; - cert.validity.notBefore = new Date(); - cert.validity.notAfter = new Date(); - - cert.issuer = {}; - cert.issuer.getField = function(sn) { - return _getAttribute(cert.issuer, sn); - }; - cert.issuer.addField = function(attr) { - _fillMissingFields([attr]); - cert.issuer.attributes.push(attr); - }; - cert.issuer.attributes = []; - cert.issuer.hash = null; - - cert.subject = {}; - cert.subject.getField = function(sn) { - return _getAttribute(cert.subject, sn); - }; - cert.subject.addField = function(attr) { - _fillMissingFields([attr]); - cert.subject.attributes.push(attr); - }; - cert.subject.attributes = []; - cert.subject.hash = null; - - cert.extensions = []; - cert.publicKey = null; - cert.md = null; - - /** - * Sets the subject of this certificate. - * - * @param attrs the array of subject attributes to use. - * @param uniqueId an optional a unique ID to use. - */ - cert.setSubject = function(attrs, uniqueId) { - // set new attributes, clear hash - _fillMissingFields(attrs); - cert.subject.attributes = attrs; - delete cert.subject.uniqueId; - if(uniqueId) { - // TODO: support arbitrary bit length ids - cert.subject.uniqueId = uniqueId; - } - cert.subject.hash = null; - }; - - /** - * Sets the issuer of this certificate. - * - * @param attrs the array of issuer attributes to use. - * @param uniqueId an optional a unique ID to use. - */ - cert.setIssuer = function(attrs, uniqueId) { - // set new attributes, clear hash - _fillMissingFields(attrs); - cert.issuer.attributes = attrs; - delete cert.issuer.uniqueId; - if(uniqueId) { - // TODO: support arbitrary bit length ids - cert.issuer.uniqueId = uniqueId; - } - cert.issuer.hash = null; - }; - - /** - * Sets the extensions of this certificate. - * - * @param exts the array of extensions to use. - */ - cert.setExtensions = function(exts) { - for(var i = 0; i < exts.length; ++i) { - _fillMissingExtensionFields(exts[i], {cert: cert}); - } - // set new extensions - cert.extensions = exts; - }; - - /** - * Gets an extension by its name or id. - * - * @param options the name to use or an object with: - * name the name to use. - * id the id to use. - * - * @return the extension or null if not found. - */ - cert.getExtension = function(options) { - if(typeof options === 'string') { - options = {name: options}; - } - - var rval = null; - var ext; - for(var i = 0; rval === null && i < cert.extensions.length; ++i) { - ext = cert.extensions[i]; - if(options.id && ext.id === options.id) { - rval = ext; - } else if(options.name && ext.name === options.name) { - rval = ext; - } - } - return rval; - }; - - /** - * Signs this certificate using the given private key. - * - * @param key the private key to sign with. - * @param md the message digest object to use (defaults to forge.md.sha1). - */ - cert.sign = function(key, md) { - // TODO: get signature OID from private key - cert.md = md || forge.md.sha1.create(); - var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption']; - if(!algorithmOid) { - var error = new Error('Could not compute certificate digest. ' + - 'Unknown message digest algorithm OID.'); - error.algorithm = cert.md.algorithm; - throw error; - } - cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid; - - // get TBSCertificate, convert to DER - cert.tbsCertificate = pki.getTBSCertificate(cert); - var bytes = asn1.toDer(cert.tbsCertificate); - - // digest and sign - cert.md.update(bytes.getBytes()); - cert.signature = key.sign(cert.md); - }; - - /** - * Attempts verify the signature on the passed certificate using this - * certificate's public key. - * - * @param child the certificate to verify. - * - * @return true if verified, false if not. - */ - cert.verify = function(child) { - var rval = false; - - if(!cert.issued(child)) { - var issuer = child.issuer; - var subject = cert.subject; - var error = new Error( - 'The parent certificate did not issue the given child ' + - 'certificate; the child certificate\'s issuer does not match the ' + - 'parent\'s subject.'); - error.expectedIssuer = issuer.attributes; - error.actualIssuer = subject.attributes; - throw error; } - - var md = child.md; - if(md === null) { - // check signature OID for supported signature types - if(child.signatureOid in oids) { - var oid = oids[child.signatureOid]; - switch(oid) { - case 'sha1WithRSAEncryption': - md = forge.md.sha1.create(); - break; - case 'md5WithRSAEncryption': - md = forge.md.md5.create(); - break; - case 'sha256WithRSAEncryption': - md = forge.md.sha256.create(); - break; - case 'sha384WithRSAEncryption': - md = forge.md.sha384.create(); - break; - case 'sha512WithRSAEncryption': - md = forge.md.sha512.create(); - break; - case 'RSASSA-PSS': - md = forge.md.sha256.create(); - break; + dfareporting_v4.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - if(md === null) { - var error = new Error('Could not compute certificate digest. ' + - 'Unknown signature OID.'); - error.signatureOid = child.signatureOid; - throw error; - } - - // produce DER formatted TBSCertificate and digest it - var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child); - var bytes = asn1.toDer(tbsCertificate); - md.update(bytes.getBytes()); } - - if(md !== null) { - var scheme; - - switch(child.signatureOid) { - case oids.sha1WithRSAEncryption: - scheme = undefined; /* use PKCS#1 v1.5 padding scheme */ - break; - case oids['RSASSA-PSS']: - var hash, mgf; - - /* initialize mgf */ - hash = oids[child.signatureParameters.mgf.hash.algorithmOid]; - if(hash === undefined || forge.md[hash] === undefined) { - var error = new Error('Unsupported MGF hash function.'); - error.oid = child.signatureParameters.mgf.hash.algorithmOid; - error.name = hash; - throw error; - } - - mgf = oids[child.signatureParameters.mgf.algorithmOid]; - if(mgf === undefined || forge.mgf[mgf] === undefined) { - var error = new Error('Unsupported MGF function.'); - error.oid = child.signatureParameters.mgf.algorithmOid; - error.name = mgf; - throw error; - } - - mgf = forge.mgf[mgf].create(forge.md[hash].create()); - - /* initialize hash function */ - hash = oids[child.signatureParameters.hash.algorithmOid]; - if(hash === undefined || forge.md[hash] === undefined) { - throw { - message: 'Unsupported RSASSA-PSS hash function.', - oid: child.signatureParameters.hash.algorithmOid, - name: hash + dfareporting_v4.Resource$Sites = Resource$Sites; + class Resource$Sizes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, }; - } - - scheme = forge.pss.create(forge.md[hash].create(), mgf, - child.signatureParameters.saltLength); - break; - } - - // verify signature on cert using public key - rval = cert.publicKey.verify( - md.digest().getBytes(), child.signature, scheme); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - return rval; - }; - - /** - * Returns true if this certificate's issuer matches the passed - * certificate's subject. Note that no signature check is performed. - * - * @param parent the certificate to check. - * - * @return true if this certificate's issuer matches the passed certificate's - * subject. - */ - cert.isIssuer = function(parent) { - var rval = false; - - var i = cert.issuer; - var s = parent.subject; - - // compare hashes if present - if(i.hash && s.hash) { - rval = (i.hash === s.hash); - } else if(i.attributes.length === s.attributes.length) { - // all attributes are the same so issuer matches subject - rval = true; - var iattr, sattr; - for(var n = 0; rval && n < i.attributes.length; ++n) { - iattr = i.attributes[n]; - sattr = s.attributes[n]; - if(iattr.type !== sattr.type || iattr.value !== sattr.value) { - // attribute mismatch - rval = false; + dfareporting_v4.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } } - - return rval; - }; - - /** - * Returns true if this certificate's subject matches the issuer of the - * given certificate). Note that not signature check is performed. - * - * @param child the certificate to check. - * - * @return true if this certificate's subject matches the passed - * certificate's issuer. - */ - cert.issued = function(child) { - return child.isIssuer(cert); - }; - - /** - * Generates the subjectKeyIdentifier for this certificate as byte buffer. - * - * @return the subjectKeyIdentifier for this certificate as byte buffer. - */ - cert.generateSubjectKeyIdentifier = function() { - /* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either: - - (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the - value of the BIT STRING subjectPublicKey (excluding the tag, - length, and number of unused bits). - - (2) The keyIdentifier is composed of a four bit type field with - the value 0100 followed by the least significant 60 bits of the - SHA-1 hash of the value of the BIT STRING subjectPublicKey - (excluding the tag, length, and number of unused bit string bits). - */ - - // skipping the tag, length, and number of unused bits is the same - // as just using the RSAPublicKey (for RSA keys, which are the - // only ones supported) - return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'}); - }; - - /** - * Verifies the subjectKeyIdentifier extension value for this certificate - * against its public key. If no extension is found, false will be - * returned. - * - * @return true if verified, false if not. - */ - cert.verifySubjectKeyIdentifier = function() { - var oid = oids['subjectKeyIdentifier']; - for(var i = 0; i < cert.extensions.length; ++i) { - var ext = cert.extensions[i]; - if(ext.id === oid) { - var ski = cert.generateSubjectKeyIdentifier().getBytes(); - return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski); - } + dfareporting_v4.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - return false; - }; - - return cert; -}; - -/** - * Converts an X.509v3 RSA certificate from an ASN.1 object. - * - * Note: If the certificate is to be verified then compute hash should - * be set to true. There is currently no implementation for converting - * a certificate back to ASN.1 so the TBSCertificate part of the ASN.1 - * object needs to be scanned before the cert object is created. - * - * @param obj the asn1 representation of an X.509v3 RSA certificate. - * @param computeHash true to compute the hash for verification. - * - * @return the certificate. - */ -pki.certificateFromAsn1 = function(obj, computeHash) { - // validate certificate and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) { - var error = new Error('Cannot read X.509 certificate. ' + - 'ASN.1 object is not an X509v3 Certificate.'); - error.errors = errors; - throw error; - } - - // get oid - var oid = asn1.derToOid(capture.publicKeyOid); - if(oid !== pki.oids.rsaEncryption) { - throw new Error('Cannot read public key. OID is not RSA.'); - } - - // create certificate - var cert = pki.createCertificate(); - cert.version = capture.certVersion ? - capture.certVersion.charCodeAt(0) : 0; - var serial = forge.util.createBuffer(capture.certSerialNumber); - cert.serialNumber = serial.toHex(); - cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid); - cert.signatureParameters = _readSignatureParameters( - cert.signatureOid, capture.certSignatureParams, true); - cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid); - cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid, - capture.certinfoSignatureParams, false); - cert.signature = capture.certSignature; - - var validity = []; - if(capture.certValidity1UTCTime !== undefined) { - validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime)); - } - if(capture.certValidity2GeneralizedTime !== undefined) { - validity.push(asn1.generalizedTimeToDate( - capture.certValidity2GeneralizedTime)); - } - if(capture.certValidity3UTCTime !== undefined) { - validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime)); - } - if(capture.certValidity4GeneralizedTime !== undefined) { - validity.push(asn1.generalizedTimeToDate( - capture.certValidity4GeneralizedTime)); - } - if(validity.length > 2) { - throw new Error('Cannot read notBefore/notAfter validity times; more ' + - 'than two times were provided in the certificate.'); - } - if(validity.length < 2) { - throw new Error('Cannot read notBefore/notAfter validity times; they ' + - 'were not provided as either UTCTime or GeneralizedTime.'); - } - cert.validity.notBefore = validity[0]; - cert.validity.notAfter = validity[1]; - - // keep TBSCertificate to preserve signature when exporting - cert.tbsCertificate = capture.tbsCertificate; - - if(computeHash) { - // check signature OID for supported signature types - cert.md = null; - if(cert.signatureOid in oids) { - var oid = oids[cert.signatureOid]; - switch(oid) { - case 'sha1WithRSAEncryption': - cert.md = forge.md.sha1.create(); - break; - case 'md5WithRSAEncryption': - cert.md = forge.md.md5.create(); - break; - case 'sha256WithRSAEncryption': - cert.md = forge.md.sha256.create(); - break; - case 'sha384WithRSAEncryption': - cert.md = forge.md.sha384.create(); - break; - case 'sha512WithRSAEncryption': - cert.md = forge.md.sha512.create(); - break; - case 'RSASSA-PSS': - cert.md = forge.md.sha256.create(); - break; - } + dfareporting_v4.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - if(cert.md === null) { - var error = new Error('Could not compute certificate digest. ' + - 'Unknown signature OID.'); - error.signatureOid = cert.signatureOid; - throw error; + dfareporting_v4.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // produce DER formatted TBSCertificate and digest it - var bytes = asn1.toDer(cert.tbsCertificate); - cert.md.update(bytes.getBytes()); - } - - // handle issuer, build issuer message digest - var imd = forge.md.sha1.create(); - cert.issuer.getField = function(sn) { - return _getAttribute(cert.issuer, sn); - }; - cert.issuer.addField = function(attr) { - _fillMissingFields([attr]); - cert.issuer.attributes.push(attr); - }; - cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer, imd); - if(capture.certIssuerUniqueId) { - cert.issuer.uniqueId = capture.certIssuerUniqueId; - } - cert.issuer.hash = imd.digest().toHex(); - - // handle subject, build subject message digest - var smd = forge.md.sha1.create(); - cert.subject.getField = function(sn) { - return _getAttribute(cert.subject, sn); - }; - cert.subject.addField = function(attr) { - _fillMissingFields([attr]); - cert.subject.attributes.push(attr); - }; - cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject, smd); - if(capture.certSubjectUniqueId) { - cert.subject.uniqueId = capture.certSubjectUniqueId; - } - cert.subject.hash = smd.digest().toHex(); - - // handle extensions - if(capture.certExtensions) { - cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions); - } else { - cert.extensions = []; - } - - // convert RSA public key from ASN.1 - cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); - - return cert; -}; - -/** - * Converts an ASN.1 extensions object (with extension sequences as its - * values) into an array of extension objects with types and values. - * - * Supported extensions: - * - * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } - * KeyUsage ::= BIT STRING { - * digitalSignature (0), - * nonRepudiation (1), - * keyEncipherment (2), - * dataEncipherment (3), - * keyAgreement (4), - * keyCertSign (5), - * cRLSign (6), - * encipherOnly (7), - * decipherOnly (8) - * } - * - * id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } - * BasicConstraints ::= SEQUENCE { - * cA BOOLEAN DEFAULT FALSE, - * pathLenConstraint INTEGER (0..MAX) OPTIONAL - * } - * - * subjectAltName EXTENSION ::= { - * SYNTAX GeneralNames - * IDENTIFIED BY id-ce-subjectAltName - * } - * - * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName - * - * GeneralName ::= CHOICE { - * otherName [0] INSTANCE OF OTHER-NAME, - * rfc822Name [1] IA5String, - * dNSName [2] IA5String, - * x400Address [3] ORAddress, - * directoryName [4] Name, - * ediPartyName [5] EDIPartyName, - * uniformResourceIdentifier [6] IA5String, - * IPAddress [7] OCTET STRING, - * registeredID [8] OBJECT IDENTIFIER - * } - * - * OTHER-NAME ::= TYPE-IDENTIFIER - * - * EDIPartyName ::= SEQUENCE { - * nameAssigner [0] DirectoryString {ub-name} OPTIONAL, - * partyName [1] DirectoryString {ub-name} - * } - * - * @param exts the extensions ASN.1 with extension sequences to parse. - * - * @return the array. - */ -pki.certificateExtensionsFromAsn1 = function(exts) { - var rval = []; - for(var i = 0; i < exts.value.length; ++i) { - // get extension sequence - var extseq = exts.value[i]; - for(var ei = 0; ei < extseq.value.length; ++ei) { - rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei])); + dfareporting_v4.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userrolepermissiongroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - - return rval; -}; - -/** - * Parses a single certificate extension from ASN.1. - * - * @param ext the extension in ASN.1 format. - * - * @return the parsed extension as an object. - */ -pki.certificateExtensionFromAsn1 = function(ext) { - // an extension has: - // [0] extnID OBJECT IDENTIFIER - // [1] critical BOOLEAN DEFAULT FALSE - // [2] extnValue OCTET STRING - var e = {}; - e.id = asn1.derToOid(ext.value[0].value); - e.critical = false; - if(ext.value[1].type === asn1.Type.BOOLEAN) { - e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00); - e.value = ext.value[2].value; - } else { - e.value = ext.value[1].value; - } - // if the oid is known, get its name - if(e.id in oids) { - e.name = oids[e.id]; - - // handle key usage - if(e.name === 'keyUsage') { - // get value as BIT STRING - var ev = asn1.fromDer(e.value); - var b2 = 0x00; - var b3 = 0x00; - if(ev.value.length > 1) { - // skip first byte, just indicates unused bits which - // will be padded with 0s anyway - // get bytes with flag bits - b2 = ev.value.charCodeAt(1); - b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0; - } - // set flags - e.digitalSignature = (b2 & 0x80) === 0x80; - e.nonRepudiation = (b2 & 0x40) === 0x40; - e.keyEncipherment = (b2 & 0x20) === 0x20; - e.dataEncipherment = (b2 & 0x10) === 0x10; - e.keyAgreement = (b2 & 0x08) === 0x08; - e.keyCertSign = (b2 & 0x04) === 0x04; - e.cRLSign = (b2 & 0x02) === 0x02; - e.encipherOnly = (b2 & 0x01) === 0x01; - e.decipherOnly = (b3 & 0x80) === 0x80; - } else if(e.name === 'basicConstraints') { - // handle basic constraints - // get value as SEQUENCE - var ev = asn1.fromDer(e.value); - // get cA BOOLEAN flag (defaults to false) - if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) { - e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00); - } else { - e.cA = false; - } - // get path length constraint - var value = null; - if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) { - value = ev.value[0].value; - } else if(ev.value.length > 1) { - value = ev.value[1].value; - } - if(value !== null) { - e.pathLenConstraint = asn1.derToInteger(value); - } - } else if(e.name === 'extKeyUsage') { - // handle extKeyUsage - // value is a SEQUENCE of OIDs - var ev = asn1.fromDer(e.value); - for(var vi = 0; vi < ev.value.length; ++vi) { - var oid = asn1.derToOid(ev.value[vi].value); - if(oid in oids) { - e[oids[oid]] = true; - } else { - e[oid] = true; + dfareporting_v4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + constructor(context) { + this.context = context; } - } - } else if(e.name === 'nsCertType') { - // handle nsCertType - // get value as BIT STRING - var ev = asn1.fromDer(e.value); - var b2 = 0x00; - if(ev.value.length > 1) { - // skip first byte, just indicates unused bits which - // will be padded with 0s anyway - // get bytes with flag bits - b2 = ev.value.charCodeAt(1); - } - // set flags - e.client = (b2 & 0x80) === 0x80; - e.server = (b2 & 0x40) === 0x40; - e.email = (b2 & 0x20) === 0x20; - e.objsign = (b2 & 0x10) === 0x10; - e.reserved = (b2 & 0x08) === 0x08; - e.sslCA = (b2 & 0x04) === 0x04; - e.emailCA = (b2 & 0x02) === 0x02; - e.objCA = (b2 & 0x01) === 0x01; - } else if( - e.name === 'subjectAltName' || - e.name === 'issuerAltName') { - // handle subjectAltName/issuerAltName - e.altNames = []; - - // ev is a SYNTAX SEQUENCE - var gn; - var ev = asn1.fromDer(e.value); - for(var n = 0; n < ev.value.length; ++n) { - // get GeneralName - gn = ev.value[n]; - - var altName = { - type: gn.type, - value: gn.value - }; - e.altNames.push(altName); - - // Note: Support for types 1,2,6,7,8 - switch(gn.type) { - // rfc822Name - case 1: - // dNSName - case 2: - // uniformResourceIdentifier (URI) - case 6: - break; - // IPAddress - case 7: - // convert to IPv4/IPv6 string representation - altName.ip = forge.util.bytesToIP(gn.value); - break; - // registeredID - case 8: - altName.oid = asn1.derToOid(gn.value); - break; - default: - // unsupported + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - } else if(e.name === 'subjectKeyIdentifier') { - // value is an OCTETSTRING w/the hash of the key-type specific - // public key structure (eg: RSAPublicKey) - var ev = asn1.fromDer(e.value); - e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value); } - } - return e; -}; - -/** - * Converts a PKCS#10 certification request (CSR) from an ASN.1 object. - * - * Note: If the certification request is to be verified then compute hash - * should be set to true. There is currently no implementation for converting - * a certificate back to ASN.1 so the CertificationRequestInfo part of the - * ASN.1 object needs to be scanned before the csr object is created. - * - * @param obj the asn1 representation of a PKCS#10 certification request (CSR). - * @param computeHash true to compute the hash for verification. - * - * @return the certification request (CSR). - */ -pki.certificationRequestFromAsn1 = function(obj, computeHash) { - // validate certification request and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#10 certificate request. ' + - 'ASN.1 object is not a PKCS#10 CertificationRequest.'); - error.errors = errors; - throw error; - } - - // get oid - var oid = asn1.derToOid(capture.publicKeyOid); - if(oid !== pki.oids.rsaEncryption) { - throw new Error('Cannot read public key. OID is not RSA.'); - } - - // create certification request - var csr = pki.createCertificationRequest(); - csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0; - csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid); - csr.signatureParameters = _readSignatureParameters( - csr.signatureOid, capture.csrSignatureParams, true); - csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid); - csr.siginfo.parameters = _readSignatureParameters( - csr.siginfo.algorithmOid, capture.csrSignatureParams, false); - csr.signature = capture.csrSignature; - - // keep CertificationRequestInfo to preserve signature when exporting - csr.certificationRequestInfo = capture.certificationRequestInfo; - - if(computeHash) { - // check signature OID for supported signature types - csr.md = null; - if(csr.signatureOid in oids) { - var oid = oids[csr.signatureOid]; - switch(oid) { - case 'sha1WithRSAEncryption': - csr.md = forge.md.sha1.create(); - break; - case 'md5WithRSAEncryption': - csr.md = forge.md.md5.create(); - break; - case 'sha256WithRSAEncryption': - csr.md = forge.md.sha256.create(); - break; - case 'sha384WithRSAEncryption': - csr.md = forge.md.sha384.create(); - break; - case 'sha512WithRSAEncryption': - csr.md = forge.md.sha512.create(); - break; - case 'RSASSA-PSS': - csr.md = forge.md.sha256.create(); - break; - } + dfareporting_v4.Resource$Userrolepermissions = Resource$Userrolepermissions; + class Resource$Userroles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - if(csr.md === null) { - var error = new Error('Could not compute certification request digest. ' + - 'Unknown signature OID.'); - error.signatureOid = csr.signatureOid; - throw error; + dfareporting_v4.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } + dfareporting_v4.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v4 = exports.dfareporting_v4 || (exports.dfareporting_v4 = {})); - // produce DER formatted CertificationRequestInfo and digest it - var bytes = asn1.toDer(csr.certificationRequestInfo); - csr.md.update(bytes.getBytes()); - } - // handle subject, build subject message digest - var smd = forge.md.sha1.create(); - csr.subject.getField = function(sn) { - return _getAttribute(csr.subject, sn); - }; - csr.subject.addField = function(attr) { - _fillMissingFields([attr]); - csr.subject.attributes.push(attr); - }; - csr.subject.attributes = pki.RDNAttributesAsArray( - capture.certificationRequestInfoSubject, smd); - csr.subject.hash = smd.digest().toHex(); +/***/ }), - // convert RSA public key from ASN.1 - csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); +/***/ 1328: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // convert attributes from ASN.1 - csr.getAttribute = function(sn) { - return _getAttribute(csr, sn); - }; - csr.addAttribute = function(attr) { - _fillMissingFields([attr]); - csr.attributes.push(attr); - }; - csr.attributes = pki.CRIAttributesAsArray( - capture.certificationRequestInfoAttributes || []); +"use strict"; - return csr; +// 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.AuthPlus = exports.certificatemanager_v1 = exports.auth = exports.certificatemanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4952); +Object.defineProperty(exports, "certificatemanager_v1", { enumerable: true, get: function () { return v1_1.certificatemanager_v1; } }); +exports.VERSIONS = { + v1: v1_1.certificatemanager_v1.Certificatemanager, }; +function certificatemanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('certificatemanager', versionOrOptions, exports.VERSIONS, this); +} +exports.certificatemanager = certificatemanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -/** - * Creates an empty certification request (a CSR or certificate signing - * request). Once created, its public key and attributes can be set and then - * it can be signed. - * - * @return the empty certification request. - */ -pki.createCertificationRequest = function() { - var csr = {}; - csr.version = 0x00; - csr.signatureOid = null; - csr.signature = null; - csr.siginfo = {}; - csr.siginfo.algorithmOid = null; - - csr.subject = {}; - csr.subject.getField = function(sn) { - return _getAttribute(csr.subject, sn); - }; - csr.subject.addField = function(attr) { - _fillMissingFields([attr]); - csr.subject.attributes.push(attr); - }; - csr.subject.attributes = []; - csr.subject.hash = null; - - csr.publicKey = null; - csr.attributes = []; - csr.getAttribute = function(sn) { - return _getAttribute(csr, sn); - }; - csr.addAttribute = function(attr) { - _fillMissingFields([attr]); - csr.attributes.push(attr); - }; - csr.md = null; - - /** - * Sets the subject of this certification request. - * - * @param attrs the array of subject attributes to use. - */ - csr.setSubject = function(attrs) { - // set new attributes - _fillMissingFields(attrs); - csr.subject.attributes = attrs; - csr.subject.hash = null; - }; - - /** - * Sets the attributes of this certification request. - * - * @param attrs the array of attributes to use. - */ - csr.setAttributes = function(attrs) { - // set new attributes - _fillMissingFields(attrs); - csr.attributes = attrs; - }; - - /** - * Signs this certification request using the given private key. - * - * @param key the private key to sign with. - * @param md the message digest object to use (defaults to forge.md.sha1). - */ - csr.sign = function(key, md) { - // TODO: get signature OID from private key - csr.md = md || forge.md.sha1.create(); - var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption']; - if(!algorithmOid) { - var error = new Error('Could not compute certification request digest. ' + - 'Unknown message digest algorithm OID.'); - error.algorithm = csr.md.algorithm; - throw error; - } - csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid; - // get CertificationRequestInfo, convert to DER - csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr); - var bytes = asn1.toDer(csr.certificationRequestInfo); +/***/ }), - // digest and sign - csr.md.update(bytes.getBytes()); - csr.signature = key.sign(csr.md); - }; +/***/ 1339: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - /** - * Attempts verify the signature on the passed certification request using - * its public key. - * - * A CSR that has been exported to a file in PEM format can be verified using - * OpenSSL using this command: - * - * openssl req -in -verify -noout -text - * - * @return true if verified, false if not. - */ - csr.verify = function() { - var rval = false; +"use strict"; - var md = csr.md; - if(md === null) { - // check signature OID for supported signature types - if(csr.signatureOid in oids) { - // TODO: create DRY `OID to md` function - var oid = oids[csr.signatureOid]; - switch(oid) { - case 'sha1WithRSAEncryption': - md = forge.md.sha1.create(); - break; - case 'md5WithRSAEncryption': - md = forge.md.md5.create(); - break; - case 'sha256WithRSAEncryption': - md = forge.md.sha256.create(); - break; - case 'sha384WithRSAEncryption': - md = forge.md.sha384.create(); - break; - case 'sha512WithRSAEncryption': - md = forge.md.sha512.create(); - break; - case 'RSASSA-PSS': - md = forge.md.sha256.create(); - break; - } - } - if(md === null) { - var error = new Error( - 'Could not compute certification request digest. ' + - 'Unknown signature OID.'); - error.signatureOid = csr.signatureOid; - throw error; - } - - // produce DER formatted CertificationRequestInfo and digest it - var cri = csr.certificationRequestInfo || - pki.getCertificationRequestInfo(csr); - var bytes = asn1.toDer(cri); - md.update(bytes.getBytes()); +// 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.tpu_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var tpu_v1; +(function (tpu_v1) { + /** + * Cloud TPU API + * + * TPU API provides customers with access to Google TPU technology. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tpu = google.tpu('v1'); + * ``` + */ + class Tpu { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + tpu_v1.Tpu = Tpu; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + tpu_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); + this.nodes = new Resource$Projects$Locations$Nodes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.tensorflowVersions = + new Resource$Projects$Locations$Tensorflowversions(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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Acceleratortypes { + 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; + class Resource$Projects$Locations$Nodes { + 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reimage(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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; + 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Tensorflowversions { + 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } + tpu_v1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; +})(tpu_v1 = exports.tpu_v1 || (exports.tpu_v1 = {})); - if(md !== null) { - var scheme; - switch(csr.signatureOid) { - case oids.sha1WithRSAEncryption: - /* use PKCS#1 v1.5 padding scheme */ - break; - case oids['RSASSA-PSS']: - var hash, mgf; - - /* initialize mgf */ - hash = oids[csr.signatureParameters.mgf.hash.algorithmOid]; - if(hash === undefined || forge.md[hash] === undefined) { - var error = new Error('Unsupported MGF hash function.'); - error.oid = csr.signatureParameters.mgf.hash.algorithmOid; - error.name = hash; - throw error; - } +/***/ }), - mgf = oids[csr.signatureParameters.mgf.algorithmOid]; - if(mgf === undefined || forge.mgf[mgf] === undefined) { - var error = new Error('Unsupported MGF function.'); - error.oid = csr.signatureParameters.mgf.algorithmOid; - error.name = mgf; - throw error; - } +/***/ 1344: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - mgf = forge.mgf[mgf].create(forge.md[hash].create()); +"use strict"; - /* initialize hash function */ - hash = oids[csr.signatureParameters.hash.algorithmOid]; - if(hash === undefined || forge.md[hash] === undefined) { - var error = new Error('Unsupported RSASSA-PSS hash function.'); - error.oid = csr.signatureParameters.hash.algorithmOid; - error.name = hash; - throw error; - } +// 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.AuthPlus = exports.gkebackup_v1 = exports.auth = exports.gkebackup = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1973); +Object.defineProperty(exports, "gkebackup_v1", { enumerable: true, get: function () { return v1_1.gkebackup_v1; } }); +exports.VERSIONS = { + v1: v1_1.gkebackup_v1.Gkebackup, +}; +function gkebackup(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gkebackup', versionOrOptions, exports.VERSIONS, this); +} +exports.gkebackup = gkebackup; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - scheme = forge.pss.create(forge.md[hash].create(), mgf, - csr.signatureParameters.saltLength); - break; - } - // verify signature on csr using its public key - rval = csr.publicKey.verify( - md.digest().getBytes(), csr.signature, scheme); - } +/***/ }), - return rval; - }; +/***/ 1346: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - return csr; +"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.AuthPlus = exports.workloadmanager_v1 = exports.auth = exports.workloadmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8353); +Object.defineProperty(exports, "workloadmanager_v1", { enumerable: true, get: function () { return v1_1.workloadmanager_v1; } }); +exports.VERSIONS = { + v1: v1_1.workloadmanager_v1.Workloadmanager, }; +function workloadmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('workloadmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.workloadmanager = workloadmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -/** - * Converts an X.509 subject or issuer to an ASN.1 RDNSequence. - * - * @param obj the subject or issuer (distinguished name). - * - * @return the ASN.1 RDNSequence. - */ -function _dnToAsn1(obj) { - // create an empty RDNSequence - var rval = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - // iterate over attributes - var attr, set; - var attrs = obj.attributes; - for(var i = 0; i < attrs.length; ++i) { - attr = attrs[i]; - var value = attr.value; +/***/ }), - // reuse tag class for attribute value if available - var valueTagClass = asn1.Type.PRINTABLESTRING; - if('valueTagClass' in attr) { - valueTagClass = attr.valueTagClass; +/***/ 1348: +/***/ (function(module, __unusedexports, __webpack_require__) { - if(valueTagClass === asn1.Type.UTF8) { - value = forge.util.encodeUtf8(value); +"use strict"; + + +module.exports = validate; + +const { RequestError } = __webpack_require__(3497); +const get = __webpack_require__(9854); +const set = __webpack_require__(7883); + +function validate(octokit, options) { + if (!options.request.validate) { + return; + } + const { validate: params } = options.request; + + Object.keys(params).forEach(parameterName => { + const parameter = get(params, parameterName); + + const expectedType = parameter.type; + let parentParameterName; + let parentValue; + let parentParamIsPresent = true; + let parentParameterIsArray = false; + + if (/\./.test(parameterName)) { + parentParameterName = parameterName.replace(/\.[^.]+$/, ""); + parentParameterIsArray = parentParameterName.slice(-2) === "[]"; + if (parentParameterIsArray) { + parentParameterName = parentParameterName.slice(0, -2); } - // FIXME: handle more encodings + parentValue = get(options, parentParameterName); + parentParamIsPresent = + parentParameterName === "headers" || + (typeof parentValue === "object" && parentValue !== null); } - // create a RelativeDistinguishedName set - // each value in the set is an AttributeTypeAndValue first - // containing the type (an OID) and second the value - set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AttributeType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.type).getBytes()), - // AttributeValue - asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value) - ]) - ]); - rval.value.push(set); - } + const values = parentParameterIsArray + ? (get(options, parentParameterName) || []).map( + value => value[parameterName.split(/\./).pop()] + ) + : [get(options, parameterName)]; - return rval; -} + values.forEach((value, i) => { + const valueIsPresent = typeof value !== "undefined"; + const valueIsNull = value === null; + const currentParameterName = parentParameterIsArray + ? parameterName.replace(/\[\]/, `[${i}]`) + : parameterName; -/** - * Gets all printable attributes (typically of an issuer or subject) in a - * simplified JSON format for display. - * - * @param attrs the attributes. - * - * @return the JSON for display. - */ -function _getAttributesAsJson(attrs) { - var rval = {}; - for(var i = 0; i < attrs.length; ++i) { - var attr = attrs[i]; - if(attr.shortName && ( - attr.valueTagClass === asn1.Type.UTF8 || - attr.valueTagClass === asn1.Type.PRINTABLESTRING || - attr.valueTagClass === asn1.Type.IA5STRING)) { - var value = attr.value; - if(attr.valueTagClass === asn1.Type.UTF8) { - value = forge.util.encodeUtf8(attr.value); + if (!parameter.required && !valueIsPresent) { + return; } - if(!(attr.shortName in rval)) { - rval[attr.shortName] = value; - } else if(forge.util.isArray(rval[attr.shortName])) { - rval[attr.shortName].push(value); - } else { - rval[attr.shortName] = [rval[attr.shortName], value]; + + // if the parent parameter is of type object but allows null + // then the child parameters can be ignored + if (!parentParamIsPresent) { + return; } - } - } - return rval; -} -/** - * Fills in missing fields in attributes. - * - * @param attrs the attributes to fill missing fields in. - */ -function _fillMissingFields(attrs) { - var attr; - for(var i = 0; i < attrs.length; ++i) { - attr = attrs[i]; + if (parameter.allowNull && valueIsNull) { + return; + } - // populate missing name - if(typeof attr.name === 'undefined') { - if(attr.type && attr.type in pki.oids) { - attr.name = pki.oids[attr.type]; - } else if(attr.shortName && attr.shortName in _shortNames) { - attr.name = pki.oids[_shortNames[attr.shortName]]; + if (!parameter.allowNull && valueIsNull) { + throw new RequestError( + `'${currentParameterName}' cannot be null`, + 400, + { + request: options + } + ); } - } - // populate missing type (OID) - if(typeof attr.type === 'undefined') { - if(attr.name && attr.name in pki.oids) { - attr.type = pki.oids[attr.name]; - } else { - var error = new Error('Attribute type not specified.'); - error.attribute = attr; - throw error; + if (parameter.required && !valueIsPresent) { + throw new RequestError( + `Empty value for parameter '${currentParameterName}': ${JSON.stringify( + value + )}`, + 400, + { + request: options + } + ); } - } - // populate missing shortname - if(typeof attr.shortName === 'undefined') { - if(attr.name && attr.name in _shortNames) { - attr.shortName = _shortNames[attr.name]; + // parse to integer before checking for enum + // so that string "1" will match enum with number 1 + if (expectedType === "integer") { + const unparsedValue = value; + value = parseInt(value, 10); + if (isNaN(value)) { + throw new RequestError( + `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( + unparsedValue + )} is NaN`, + 400, + { + request: options + } + ); + } } - } - // convert extensions to value - if(attr.type === oids.extensionRequest) { - attr.valueConstructed = true; - attr.valueTagClass = asn1.Type.SEQUENCE; - if(!attr.value && attr.extensions) { - attr.value = []; - for(var ei = 0; ei < attr.extensions.length; ++ei) { - attr.value.push(pki.certificateExtensionToAsn1( - _fillMissingExtensionFields(attr.extensions[ei]))); + if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) { + throw new RequestError( + `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( + value + )}`, + 400, + { + request: options + } + ); + } + + if (parameter.validation) { + const regex = new RegExp(parameter.validation); + if (!regex.test(value)) { + throw new RequestError( + `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( + value + )}`, + 400, + { + request: options + } + ); } } - } - if(typeof attr.value === 'undefined') { - var error = new Error('Attribute value not specified.'); - error.attribute = attr; - throw error; - } - } + if (expectedType === "object" && typeof value === "string") { + try { + value = JSON.parse(value); + } catch (exception) { + throw new RequestError( + `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify( + value + )}`, + 400, + { + request: options + } + ); + } + } + + set(options, parameter.mapTo || currentParameterName, value); + }); + }); + + return options; } -/** - * Fills in missing fields in certificate extensions. - * - * @param e the extension. - * @param [options] the options to use. - * [cert] the certificate the extensions are for. - * - * @return the extension. - */ -function _fillMissingExtensionFields(e, options) { - options = options || {}; - // populate missing name - if(typeof e.name === 'undefined') { - if(e.id && e.id in pki.oids) { - e.name = pki.oids[e.id]; - } - } +/***/ }), - // populate missing id - if(typeof e.id === 'undefined') { - if(e.name && e.name in pki.oids) { - e.id = pki.oids[e.name]; - } else { - var error = new Error('Extension ID not specified.'); - error.extension = e; - throw error; - } - } +/***/ 1350: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - if(typeof e.value !== 'undefined') { - return e; - } +"use strict"; - // handle missing value: +// 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.AuthPlus = exports.verifiedaccess_v2 = exports.verifiedaccess_v1 = exports.auth = exports.verifiedaccess = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7393); +Object.defineProperty(exports, "verifiedaccess_v1", { enumerable: true, get: function () { return v1_1.verifiedaccess_v1; } }); +const v2_1 = __webpack_require__(3345); +Object.defineProperty(exports, "verifiedaccess_v2", { enumerable: true, get: function () { return v2_1.verifiedaccess_v2; } }); +exports.VERSIONS = { + v1: v1_1.verifiedaccess_v1.Verifiedaccess, + v2: v2_1.verifiedaccess_v2.Verifiedaccess, +}; +function verifiedaccess(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('verifiedaccess', versionOrOptions, exports.VERSIONS, this); +} +exports.verifiedaccess = verifiedaccess; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // value is a BIT STRING - if(e.name === 'keyUsage') { - // build flags - var unused = 0; - var b2 = 0x00; - var b3 = 0x00; - if(e.digitalSignature) { - b2 |= 0x80; - unused = 7; - } - if(e.nonRepudiation) { - b2 |= 0x40; - unused = 6; - } - if(e.keyEncipherment) { - b2 |= 0x20; - unused = 5; - } - if(e.dataEncipherment) { - b2 |= 0x10; - unused = 4; - } - if(e.keyAgreement) { - b2 |= 0x08; - unused = 3; - } - if(e.keyCertSign) { - b2 |= 0x04; - unused = 2; - } - if(e.cRLSign) { - b2 |= 0x02; - unused = 1; - } - if(e.encipherOnly) { - b2 |= 0x01; - unused = 0; - } - if(e.decipherOnly) { - b3 |= 0x80; - unused = 7; - } - // create bit string - var value = String.fromCharCode(unused); - if(b3 !== 0) { - value += String.fromCharCode(b2) + String.fromCharCode(b3); - } else if(b2 !== 0) { - value += String.fromCharCode(b2); - } - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); - } else if(e.name === 'basicConstraints') { - // basicConstraints is a SEQUENCE - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - // cA BOOLEAN flag defaults to false - if(e.cA) { - e.value.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, - String.fromCharCode(0xFF))); - } - if('pathLenConstraint' in e) { - e.value.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(e.pathLenConstraint).getBytes())); - } - } else if(e.name === 'extKeyUsage') { - // extKeyUsage is a SEQUENCE of OIDs - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var seq = e.value.value; - for(var key in e) { - if(e[key] !== true) { - continue; - } - // key is name in OID map - if(key in oids) { - seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, - false, asn1.oidToDer(oids[key]).getBytes())); - } else if(key.indexOf('.') !== -1) { - // assume key is an OID - seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, - false, asn1.oidToDer(key).getBytes())); - } - } - } else if(e.name === 'nsCertType') { - // nsCertType is a BIT STRING - // build flags - var unused = 0; - var b2 = 0x00; +/***/ }), - if(e.client) { - b2 |= 0x80; - unused = 7; - } - if(e.server) { - b2 |= 0x40; - unused = 6; - } - if(e.email) { - b2 |= 0x20; - unused = 5; - } - if(e.objsign) { - b2 |= 0x10; - unused = 4; - } - if(e.reserved) { - b2 |= 0x08; - unused = 3; - } - if(e.sslCA) { - b2 |= 0x04; - unused = 2; - } - if(e.emailCA) { - b2 |= 0x02; - unused = 1; - } - if(e.objCA) { - b2 |= 0x01; - unused = 0; - } +/***/ 1354: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // create bit string - var value = String.fromCharCode(unused); - if(b2 !== 0) { - value += String.fromCharCode(b2); - } - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); - } else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') { - // SYNTAX SEQUENCE - e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); +"use strict"; - var altName; - for(var n = 0; n < e.altNames.length; ++n) { - altName = e.altNames[n]; - var value = altName.value; - // handle IP - if(altName.type === 7 && altName.ip) { - value = forge.util.bytesFromIP(altName.ip); - if(value === null) { - var error = new Error( - 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); - error.extension = e; - throw error; - } - } else if(altName.type === 8) { - // handle OID - if(altName.oid) { - value = asn1.oidToDer(asn1.oidToDer(altName.oid)); - } else { - // deprecated ... convert value to OID - value = asn1.oidToDer(value); +// 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.calendar_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var calendar_v3; +(function (calendar_v3) { + /** + * Calendar API + * + * Manipulates events and other calendar data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const calendar = google.calendar('v3'); + * ``` + */ + class Calendar { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acl = new Resource$Acl(this.context); + this.calendarList = new Resource$Calendarlist(this.context); + this.calendars = new Resource$Calendars(this.context); + this.channels = new Resource$Channels(this.context); + this.colors = new Resource$Colors(this.context); + this.events = new Resource$Events(this.context); + this.freebusy = new Resource$Freebusy(this.context); + this.settings = new Resource$Settings(this.context); } - } - e.value.value.push(asn1.create( - asn1.Class.CONTEXT_SPECIFIC, altName.type, false, - value)); - } - } else if(e.name === 'nsComment' && options.cert) { - // sanity check value is ASCII (req'd) and not too big - if(!(/^[\x00-\x7F]*$/.test(e.comment)) || - (e.comment.length < 1) || (e.comment.length > 128)) { - throw new Error('Invalid "nsComment" content.'); - } - // IA5STRING opaque comment - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment); - } else if(e.name === 'subjectKeyIdentifier' && options.cert) { - var ski = options.cert.generateSubjectKeyIdentifier(); - e.subjectKeyIdentifier = ski.toHex(); - // OCTETSTRING w/digest - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes()); - } else if(e.name === 'authorityKeyIdentifier' && options.cert) { - // SYNTAX SEQUENCE - e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var seq = e.value.value; - - if(e.keyIdentifier) { - var keyIdentifier = (e.keyIdentifier === true ? - options.cert.generateSubjectKeyIdentifier().getBytes() : - e.keyIdentifier); - seq.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier)); - } - - if(e.authorityCertIssuer) { - var authorityCertIssuer = [ - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [ - _dnToAsn1(e.authorityCertIssuer === true ? - options.cert.issuer : e.authorityCertIssuer) - ]) - ]; - seq.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer)); } - - if(e.serialNumber) { - var serialNumber = forge.util.hexToBytes(e.serialNumber === true ? - options.cert.serialNumber : e.serialNumber); - seq.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber)); + calendar_v3.Calendar = Calendar; + class Resource$Acl { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } else if(e.name === 'cRLDistributionPoints') { - e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var seq = e.value.value; - - // Create sub SEQUENCE of DistributionPointName - var subSeq = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - - // Create fullName CHOICE - var fullNameGeneralNames = asn1.create( - asn1.Class.CONTEXT_SPECIFIC, 0, true, []); - var altName; - for(var n = 0; n < e.altNames.length; ++n) { - altName = e.altNames[n]; - var value = altName.value; - // handle IP - if(altName.type === 7 && altName.ip) { - value = forge.util.bytesFromIP(altName.ip); - if(value === null) { - var error = new Error( - 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); - error.extension = e; - throw error; + calendar_v3.Resource$Acl = Resource$Acl; + class Resource$Calendarlist { + constructor(context) { + this.context = context; } - } else if(altName.type === 8) { - // handle OID - if(altName.oid) { - value = asn1.oidToDer(asn1.oidToDer(altName.oid)); - } else { - // deprecated ... convert value to OID - value = asn1.oidToDer(value); + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - fullNameGeneralNames.value.push(asn1.create( - asn1.Class.CONTEXT_SPECIFIC, altName.type, false, - value)); } - - // Add to the parent SEQUENCE - subSeq.value.push(asn1.create( - asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames])); - seq.push(subSeq); - } - - // ensure value has been defined by now - if(typeof e.value === 'undefined') { - var error = new Error('Extension value not specified.'); - error.extension = e; - throw error; - } - - return e; -} - -/** - * Convert signature parameters object to ASN.1 - * - * @param {String} oid Signature algorithm OID - * @param params The signature parametrs object - * @return ASN.1 object representing signature parameters - */ -function _signatureParametersToAsn1(oid, params) { - switch(oid) { - case oids['RSASSA-PSS']: - var parts = []; - - if(params.hash.algorithmOid !== undefined) { - parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(params.hash.algorithmOid).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]) - ])); - } - - if(params.mgf.algorithmOid !== undefined) { - parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(params.mgf.algorithmOid).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]) - ]) - ])); - } - - if(params.saltLength !== undefined) { - parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(params.saltLength).getBytes()) - ])); - } - - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts); - - default: - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''); - } -} - -/** - * Converts a certification request's attributes to an ASN.1 set of - * CRIAttributes. - * - * @param csr certification request. - * - * @return the ASN.1 set of CRIAttributes. - */ -function _CRIAttributesToAsn1(csr) { - // create an empty context-specific container - var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []); - - // no attributes, return empty container - if(csr.attributes.length === 0) { - return rval; - } - - // each attribute has a sequence with a type and a set of values - var attrs = csr.attributes; - for(var i = 0; i < attrs.length; ++i) { - var attr = attrs[i]; - var value = attr.value; - - // reuse tag class for attribute value if available - var valueTagClass = asn1.Type.UTF8; - if('valueTagClass' in attr) { - valueTagClass = attr.valueTagClass; + calendar_v3.Resource$Calendarlist = Resource$Calendarlist; + class Resource$Calendars { + constructor(context) { + this.context = context; + } + clear(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - if(valueTagClass === asn1.Type.UTF8) { - value = forge.util.encodeUtf8(value); + calendar_v3.Resource$Calendars = Resource$Calendars; + class Resource$Channels { + constructor(context) { + this.context = context; + } + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - var valueConstructed = false; - if('valueConstructed' in attr) { - valueConstructed = attr.valueConstructed; + calendar_v3.Resource$Channels = Resource$Channels; + class Resource$Colors { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/colors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - // FIXME: handle more encodings - - // create a RelativeDistinguishedName set - // each value in the set is an AttributeTypeAndValue first - // containing the type (an OID) and second the value - var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AttributeType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.type).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - // AttributeValue - asn1.create( - asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value) - ]) - ]); - rval.value.push(seq); - } - - return rval; -} - -var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); -var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); - -/** - * Converts a Date object to ASN.1 - * Handles the different format before and after 1st January 2050 - * - * @param date date object. - * - * @return the ASN.1 object representing the date. - */ -function _dateToAsn1(date) { - if(date >= jan_1_1950 && date < jan_1_2050) { - return asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, - asn1.dateToUtcTime(date)); - } else { - return asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, - asn1.dateToGeneralizedTime(date)); - } -} - -/** - * Gets the ASN.1 TBSCertificate part of an X.509v3 certificate. - * - * @param cert the certificate. - * - * @return the asn1 TBSCertificate. - */ -pki.getTBSCertificate = function(cert) { - // TBSCertificate - var notBefore = _dateToAsn1(cert.validity.notBefore); - var notAfter = _dateToAsn1(cert.validity.notAfter); - var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // integer - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(cert.version).getBytes()) - ]), - // serialNumber - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(cert.serialNumber)), - // signature - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()), - // parameters - _signatureParametersToAsn1( - cert.siginfo.algorithmOid, cert.siginfo.parameters) - ]), - // issuer - _dnToAsn1(cert.issuer), - // validity - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - notBefore, - notAfter - ]), - // subject - _dnToAsn1(cert.subject), - // SubjectPublicKeyInfo - pki.publicKeyToAsn1(cert.publicKey) - ]); - - if(cert.issuer.uniqueId) { - // issuerUniqueID (optional) - tbs.value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - // TODO: support arbitrary bit length ids - String.fromCharCode(0x00) + - cert.issuer.uniqueId - ) - ]) - ); - } - if(cert.subject.uniqueId) { - // subjectUniqueID (optional) - tbs.value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - // TODO: support arbitrary bit length ids - String.fromCharCode(0x00) + - cert.subject.uniqueId - ) - ]) - ); - } - - if(cert.extensions.length > 0) { - // extensions (optional) - tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions)); - } - - return tbs; -}; - -/** - * Gets the ASN.1 CertificationRequestInfo part of a - * PKCS#10 CertificationRequest. - * - * @param csr the certification request. - * - * @return the asn1 CertificationRequestInfo. - */ -pki.getCertificationRequestInfo = function(csr) { - // CertificationRequestInfo - var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(csr.version).getBytes()), - // subject - _dnToAsn1(csr.subject), - // SubjectPublicKeyInfo - pki.publicKeyToAsn1(csr.publicKey), - // attributes - _CRIAttributesToAsn1(csr) - ]); - - return cri; -}; - -/** - * Converts a DistinguishedName (subject or issuer) to an ASN.1 object. - * - * @param dn the DistinguishedName. - * - * @return the asn1 representation of a DistinguishedName. - */ -pki.distinguishedNameToAsn1 = function(dn) { - return _dnToAsn1(dn); -}; - -/** - * Converts an X.509v3 RSA certificate to an ASN.1 object. - * - * @param cert the certificate. - * - * @return the asn1 representation of an X.509v3 RSA certificate. - */ -pki.certificateToAsn1 = function(cert) { - // prefer cached TBSCertificate over generating one - var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert); - - // Certificate - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // TBSCertificate - tbsCertificate, - // AlgorithmIdentifier (signature algorithm) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(cert.signatureOid).getBytes()), - // parameters - _signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters) - ]), - // SignatureValue - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - String.fromCharCode(0x00) + cert.signature) - ]); -}; - -/** - * Converts X.509v3 certificate extensions to ASN.1. - * - * @param exts the extensions to convert. - * - * @return the extensions in ASN.1 format. - */ -pki.certificateExtensionsToAsn1 = function(exts) { - // create top-level extension container - var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []); - - // create extension sequence (stores a sequence for each extension) - var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - rval.value.push(seq); - - for(var i = 0; i < exts.length; ++i) { - seq.value.push(pki.certificateExtensionToAsn1(exts[i])); - } - - return rval; -}; - -/** - * Converts a single certificate extension to ASN.1. - * - * @param ext the extension to convert. - * - * @return the extension in ASN.1 format. - */ -pki.certificateExtensionToAsn1 = function(ext) { - // create a sequence for each extension - var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - - // extnID (OID) - extseq.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(ext.id).getBytes())); - - // critical defaults to false - if(ext.critical) { - // critical BOOLEAN DEFAULT FALSE - extseq.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, - String.fromCharCode(0xFF))); - } - - var value = ext.value; - if(typeof ext.value !== 'string') { - // value is asn.1 - value = asn1.toDer(value).getBytes(); - } - - // extnValue (OCTET STRING) - extseq.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value)); - - return extseq; -}; - -/** - * Converts a PKCS#10 certification request to an ASN.1 object. - * - * @param csr the certification request. - * - * @return the asn1 representation of a certification request. - */ -pki.certificationRequestToAsn1 = function(csr) { - // prefer cached CertificationRequestInfo over generating one - var cri = csr.certificationRequestInfo || - pki.getCertificationRequestInfo(csr); - - // Certificate - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // CertificationRequestInfo - cri, - // AlgorithmIdentifier (signature algorithm) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(csr.signatureOid).getBytes()), - // parameters - _signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters) - ]), - // signature - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - String.fromCharCode(0x00) + csr.signature) - ]); -}; - -/** - * Creates a CA store. - * - * @param certs an optional array of certificate objects or PEM-formatted - * certificate strings to add to the CA store. - * - * @return the CA store. - */ -pki.createCaStore = function(certs) { - // create CA store - var caStore = { - // stored certificates - certs: {} - }; - - /** - * Gets the certificate that issued the passed certificate or its - * 'parent'. - * - * @param cert the certificate to get the parent for. - * - * @return the parent certificate or null if none was found. - */ - caStore.getIssuer = function(cert) { - var rval = getBySubject(cert.issuer); - - // see if there are multiple matches - /*if(forge.util.isArray(rval)) { - // TODO: resolve multiple matches by checking - // authorityKey/subjectKey/issuerUniqueID/other identifiers, etc. - // FIXME: or alternatively do authority key mapping - // if possible (X.509v1 certs can't work?) - throw new Error('Resolving multiple issuer matches not implemented yet.'); - }*/ - - return rval; - }; - - /** - * Adds a trusted certificate to the store. - * - * @param cert the certificate to add as a trusted certificate (either a - * pki.certificate object or a PEM-formatted certificate). - */ - caStore.addCertificate = function(cert) { - // convert from pem if necessary - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - - ensureSubjectHasHash(cert.subject); - - if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store - if(cert.subject.hash in caStore.certs) { - // subject hash already exists, append to array - var tmp = caStore.certs[cert.subject.hash]; - if(!forge.util.isArray(tmp)) { - tmp = [tmp]; - } - tmp.push(cert); - caStore.certs[cert.subject.hash] = tmp; - } else { - caStore.certs[cert.subject.hash] = cert; - } - } - }; - - /** - * Checks to see if the given certificate is in the store. - * - * @param cert the certificate to check (either a pki.certificate or a - * PEM-formatted certificate). - * - * @return true if the certificate is in the store, false if not. - */ - caStore.hasCertificate = function(cert) { - // convert from pem if necessary - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - - var match = getBySubject(cert.subject); - if(!match) { - return false; - } - if(!forge.util.isArray(match)) { - match = [match]; - } - // compare DER-encoding of certificates - var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); - for(var i = 0; i < match.length; ++i) { - var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); - if(der1 === der2) { - return true; - } - } - return false; - }; - - /** - * Lists all of the certificates kept in the store. - * - * @return an array of all of the pki.certificate objects in the store. - */ - caStore.listAllCertificates = function() { - var certList = []; - - for(var hash in caStore.certs) { - if(caStore.certs.hasOwnProperty(hash)) { - var value = caStore.certs[hash]; - if(!forge.util.isArray(value)) { - certList.push(value); - } else { - for(var i = 0; i < value.length; ++i) { - certList.push(value[i]); - } - } - } - } - - return certList; - }; - - /** - * Removes a certificate from the store. - * - * @param cert the certificate to remove (either a pki.certificate or a - * PEM-formatted certificate). - * - * @return the certificate that was removed or null if the certificate - * wasn't in store. - */ - caStore.removeCertificate = function(cert) { - var result; - - // convert from pem if necessary - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - ensureSubjectHasHash(cert.subject); - if(!caStore.hasCertificate(cert)) { - return null; - } - - var match = getBySubject(cert.subject); - - if(!forge.util.isArray(match)) { - result = caStore.certs[cert.subject.hash]; - delete caStore.certs[cert.subject.hash]; - return result; - } - - // compare DER-encoding of certificates - var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); - for(var i = 0; i < match.length; ++i) { - var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); - if(der1 === der2) { - result = match[i]; - match.splice(i, 1); - } - } - if(match.length === 0) { - delete caStore.certs[cert.subject.hash]; - } - - return result; - }; - - function getBySubject(subject) { - ensureSubjectHasHash(subject); - return caStore.certs[subject.hash] || null; - } - - function ensureSubjectHasHash(subject) { - // produce subject hash if it doesn't exist - if(!subject.hash) { - var md = forge.md.sha1.create(); - subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md); - subject.hash = md.digest().toHex(); - } - } - - // auto-add passed in certs - if(certs) { - // parse PEM-formatted certificates as necessary - for(var i = 0; i < certs.length; ++i) { - var cert = certs[i]; - caStore.addCertificate(cert); - } - } - - return caStore; -}; - -/** - * Certificate verification errors, based on TLS. - */ -pki.certificateError = { - bad_certificate: 'forge.pki.BadCertificate', - unsupported_certificate: 'forge.pki.UnsupportedCertificate', - certificate_revoked: 'forge.pki.CertificateRevoked', - certificate_expired: 'forge.pki.CertificateExpired', - certificate_unknown: 'forge.pki.CertificateUnknown', - unknown_ca: 'forge.pki.UnknownCertificateAuthority' -}; - -/** - * Verifies a certificate chain against the given Certificate Authority store - * with an optional custom verify callback. - * - * @param caStore a certificate store to verify against. - * @param chain the certificate chain to verify, with the root or highest - * authority at the end (an array of certificates). - * @param options a callback to be called for every certificate in the chain or - * an object with: - * verify a callback to be called for every certificate in the - * chain - * validityCheckDate the date against which the certificate - * validity period should be checked. Pass null to not check - * the validity period. By default, the current date is used. - * - * The verify callback has the following signature: - * - * verified - Set to true if certificate was verified, otherwise the - * pki.certificateError for why the certificate failed. - * depth - The current index in the chain, where 0 is the end point's cert. - * certs - The certificate chain, *NOTE* an empty chain indicates an anonymous - * end point. - * - * The function returns true on success and on failure either the appropriate - * pki.certificateError or an object with 'error' set to the appropriate - * pki.certificateError and 'message' set to a custom error message. - * - * @return true if successful, error thrown if not. - */ -pki.verifyCertificateChain = function(caStore, chain, options) { - /* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate - Section 6: Certification Path Validation - See inline parentheticals related to this particular implementation. - - The primary goal of path validation is to verify the binding between - a subject distinguished name or a subject alternative name and subject - public key, as represented in the end entity certificate, based on the - public key of the trust anchor. This requires obtaining a sequence of - certificates that support that binding. That sequence should be provided - in the passed 'chain'. The trust anchor should be in the given CA - store. The 'end entity' certificate is the certificate provided by the - end point (typically a server) and is the first in the chain. - - To meet this goal, the path validation process verifies, among other - things, that a prospective certification path (a sequence of n - certificates or a 'chain') satisfies the following conditions: - - (a) for all x in {1, ..., n-1}, the subject of certificate x is - the issuer of certificate x+1; - - (b) certificate 1 is issued by the trust anchor; - - (c) certificate n is the certificate to be validated; and - - (d) for all x in {1, ..., n}, the certificate was valid at the - time in question. - - Note that here 'n' is index 0 in the chain and 1 is the last certificate - in the chain and it must be signed by a certificate in the connection's - CA store. - - The path validation process also determines the set of certificate - policies that are valid for this path, based on the certificate policies - extension, policy mapping extension, policy constraints extension, and - inhibit any-policy extension. - - Note: Policy mapping extension not supported (Not Required). - - Note: If the certificate has an unsupported critical extension, then it - must be rejected. - - Note: A certificate is self-issued if the DNs that appear in the subject - and issuer fields are identical and are not empty. - - The path validation algorithm assumes the following seven inputs are - provided to the path processing logic. What this specific implementation - will use is provided parenthetically: - - (a) a prospective certification path of length n (the 'chain') - (b) the current date/time: ('now'). - (c) user-initial-policy-set: A set of certificate policy identifiers - naming the policies that are acceptable to the certificate user. - The user-initial-policy-set contains the special value any-policy - if the user is not concerned about certificate policy - (Not implemented. Any policy is accepted). - (d) trust anchor information, describing a CA that serves as a trust - anchor for the certification path. The trust anchor information - includes: - - (1) the trusted issuer name, - (2) the trusted public key algorithm, - (3) the trusted public key, and - (4) optionally, the trusted public key parameters associated - with the public key. - - (Trust anchors are provided via certificates in the CA store). - - The trust anchor information may be provided to the path processing - procedure in the form of a self-signed certificate. The trusted anchor - information is trusted because it was delivered to the path processing - procedure by some trustworthy out-of-band procedure. If the trusted - public key algorithm requires parameters, then the parameters are - provided along with the trusted public key (No parameters used in this - implementation). - - (e) initial-policy-mapping-inhibit, which indicates if policy mapping is - allowed in the certification path. - (Not implemented, no policy checking) - - (f) initial-explicit-policy, which indicates if the path must be valid - for at least one of the certificate policies in the user-initial- - policy-set. - (Not implemented, no policy checking) - - (g) initial-any-policy-inhibit, which indicates whether the - anyPolicy OID should be processed if it is included in a - certificate. - (Not implemented, so any policy is valid provided that it is - not marked as critical) */ - - /* Basic Path Processing: - - For each certificate in the 'chain', the following is checked: - - 1. The certificate validity period includes the current time. - 2. The certificate was signed by its parent (where the parent is either - the next in the chain or from the CA store). Allow processing to - continue to the next step if no parent is found but the certificate is - in the CA store. - 3. TODO: The certificate has not been revoked. - 4. The certificate issuer name matches the parent's subject name. - 5. TODO: If the certificate is self-issued and not the final certificate - in the chain, skip this step, otherwise verify that the subject name - is within one of the permitted subtrees of X.500 distinguished names - and that each of the alternative names in the subjectAltName extension - (critical or non-critical) is within one of the permitted subtrees for - that name type. - 6. TODO: If the certificate is self-issued and not the final certificate - in the chain, skip this step, otherwise verify that the subject name - is not within one of the excluded subtrees for X.500 distinguished - names and none of the subjectAltName extension names are excluded for - that name type. - 7. The other steps in the algorithm for basic path processing involve - handling the policy extension which is not presently supported in this - implementation. Instead, if a critical policy extension is found, the - certificate is rejected as not supported. - 8. If the certificate is not the first or if its the only certificate in - the chain (having no parent from the CA store or is self-signed) and it - has a critical key usage extension, verify that the keyCertSign bit is - set. If the key usage extension exists, verify that the basic - constraints extension exists. If the basic constraints extension exists, - verify that the cA flag is set. If pathLenConstraint is set, ensure that - the number of certificates that precede in the chain (come earlier - in the chain as implemented below), excluding the very first in the - chain (typically the end-entity one), isn't greater than the - pathLenConstraint. This constraint limits the number of intermediate - CAs that may appear below a CA before only end-entity certificates - may be issued. */ - - // if a verify callback is passed as the third parameter, package it within - // the options object. This is to support a legacy function signature that - // expected the verify callback as the third parameter. - if(typeof options === 'function') { - options = {verify: options}; - } - options = options || {}; - - // copy cert chain references to another array to protect against changes - // in verify callback - chain = chain.slice(0); - var certs = chain.slice(0); - - var validityCheckDate = options.validityCheckDate; - // if no validityCheckDate is specified, default to the current date. Make - // sure to maintain the value null because it indicates that the validity - // period should not be checked. - if(typeof validityCheckDate === 'undefined') { - validityCheckDate = new Date(); - } - - // verify each cert in the chain using its parent, where the parent - // is either the next in the chain or from the CA store - var first = true; - var error = null; - var depth = 0; - do { - var cert = chain.shift(); - var parent = null; - var selfSigned = false; - - if(validityCheckDate) { - // 1. check valid time - if(validityCheckDate < cert.validity.notBefore || - validityCheckDate > cert.validity.notAfter) { - error = { - message: 'Certificate is not valid yet or has expired.', - error: pki.certificateError.certificate_expired, - notBefore: cert.validity.notBefore, - notAfter: cert.validity.notAfter, - // TODO: we might want to reconsider renaming 'now' to - // 'validityCheckDate' should this API be changed in the future. - now: validityCheckDate - }; - } - } - - // 2. verify with parent from chain or CA store - if(error === null) { - parent = chain[0] || caStore.getIssuer(cert); - if(parent === null) { - // check for self-signed cert - if(cert.isIssuer(cert)) { - selfSigned = true; - parent = cert; - } - } - - if(parent) { - // FIXME: current CA store implementation might have multiple - // certificates where the issuer can't be determined from the - // certificate (happens rarely with, eg: old certificates) so normalize - // by always putting parents into an array - // TODO: there's may be an extreme degenerate case currently uncovered - // where an old intermediate certificate seems to have a matching parent - // but none of the parents actually verify ... but the intermediate - // is in the CA and it should pass this check; needs investigation - var parents = parent; - if(!forge.util.isArray(parents)) { - parents = [parents]; - } - - // try to verify with each possible parent (typically only one) - var verified = false; - while(!verified && parents.length > 0) { - parent = parents.shift(); - try { - verified = parent.verify(cert); - } catch(ex) { - // failure to verify, don't care why, try next one - } - } - - if(!verified) { - error = { - message: 'Certificate signature is invalid.', - error: pki.certificateError.bad_certificate - }; - } - } - - if(error === null && (!parent || selfSigned) && - !caStore.hasCertificate(cert)) { - // no parent issuer and certificate itself is not trusted - error = { - message: 'Certificate is not trusted.', - error: pki.certificateError.unknown_ca - }; - } - } - - // TODO: 3. check revoked - - // 4. check for matching issuer/subject - if(error === null && parent && !cert.isIssuer(parent)) { - // parent is not issuer - error = { - message: 'Certificate issuer is invalid.', - error: pki.certificateError.bad_certificate - }; - } - - // 5. TODO: check names with permitted names tree - - // 6. TODO: check names against excluded names tree - - // 7. check for unsupported critical extensions - if(error === null) { - // supported extensions - var se = { - keyUsage: true, - basicConstraints: true - }; - for(var i = 0; error === null && i < cert.extensions.length; ++i) { - var ext = cert.extensions[i]; - if(ext.critical && !(ext.name in se)) { - error = { - message: - 'Certificate has an unsupported critical extension.', - error: pki.certificateError.unsupported_certificate - }; - } - } - } - - // 8. check for CA if cert is not first or is the only certificate - // remaining in chain with no parent or is self-signed - if(error === null && - (!first || (chain.length === 0 && (!parent || selfSigned)))) { - // first check keyUsage extension and then basic constraints - var bcExt = cert.getExtension('basicConstraints'); - var keyUsageExt = cert.getExtension('keyUsage'); - if(keyUsageExt !== null) { - // keyCertSign must be true and there must be a basic - // constraints extension - if(!keyUsageExt.keyCertSign || bcExt === null) { - // bad certificate - error = { - message: - 'Certificate keyUsage or basicConstraints conflict ' + - 'or indicate that the certificate is not a CA. ' + - 'If the certificate is the only one in the chain or ' + - 'isn\'t the first then the certificate must be a ' + - 'valid CA.', - error: pki.certificateError.bad_certificate - }; - } - } - // basic constraints cA flag must be set - if(error === null && bcExt !== null && !bcExt.cA) { - // bad certificate - error = { - message: - 'Certificate basicConstraints indicates the certificate ' + - 'is not a CA.', - error: pki.certificateError.bad_certificate - }; - } - // if error is not null and keyUsage is available, then we know it - // has keyCertSign and there is a basic constraints extension too, - // which means we can check pathLenConstraint (if it exists) - if(error === null && keyUsageExt !== null && - 'pathLenConstraint' in bcExt) { - // pathLen is the maximum # of intermediate CA certs that can be - // found between the current certificate and the end-entity (depth 0) - // certificate; this number does not include the end-entity (depth 0, - // last in the chain) even if it happens to be a CA certificate itself - var pathLen = depth - 1; - if(pathLen > bcExt.pathLenConstraint) { - // pathLenConstraint violated, bad certificate - error = { - message: - 'Certificate basicConstraints pathLenConstraint violated.', - error: pki.certificateError.bad_certificate - }; - } - } - } - - // call application callback - var vfd = (error === null) ? true : error.error; - var ret = options.verify ? options.verify(vfd, depth, certs) : vfd; - if(ret === true) { - // clear any set error - error = null; - } else { - // if passed basic tests, set default message and alert - if(vfd === true) { - error = { - message: 'The application rejected the certificate.', - error: pki.certificateError.bad_certificate - }; - } - - // check for custom error info - if(ret || ret === 0) { - // set custom message and error - if(typeof ret === 'object' && !forge.util.isArray(ret)) { - if(ret.message) { - error.message = ret.message; - } - if(ret.error) { - error.error = ret.error; - } - } else if(typeof ret === 'string') { - // set custom error - error.error = ret; - } - } - - // throw error - throw error; - } - - // no longer first cert in chain - first = false; - ++depth; - } while(chain.length > 0); - - return true; -}; - - -/***/ }), -/* 250 */, -/* 251 */ -/***/ (function(module) { - -"use strict"; - - -/** - * @param typeMap [Object] Map of MIME type -> Array[extensions] - * @param ... - */ -function Mime() { - this._types = Object.create(null); - this._extensions = Object.create(null); - - for (var i = 0; i < arguments.length; i++) { - this.define(arguments[i]); - } - - this.define = this.define.bind(this); - this.getType = this.getType.bind(this); - this.getExtension = this.getExtension.bind(this); -} - -/** - * Define mimetype -> extension mappings. Each key is a mime-type that maps - * to an array of extensions associated with the type. The first extension is - * used as the default extension for the type. - * - * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); - * - * If a type declares an extension that has already been defined, an error will - * be thrown. To suppress this error and force the extension to be associated - * with the new type, pass `force`=true. Alternatively, you may prefix the - * extension with "*" to map the type to extension, without mapping the - * extension to the type. - * - * e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']}); - * - * - * @param map (Object) type definitions - * @param force (Boolean) if true, force overriding of existing definitions - */ -Mime.prototype.define = function(typeMap, force) { - for (var type in typeMap) { - var extensions = typeMap[type].map(function(t) {return t.toLowerCase()}); - type = type.toLowerCase(); - - for (var i = 0; i < extensions.length; i++) { - var ext = extensions[i]; - - // '*' prefix = not the preferred type for this extension. So fixup the - // extension, and skip it. - if (ext[0] == '*') { - continue; - } - - if (!force && (ext in this._types)) { - throw new Error( - 'Attempt to change mapping for "' + ext + - '" extension from "' + this._types[ext] + '" to "' + type + - '". Pass `force=true` to allow this, otherwise remove "' + ext + - '" from the list of extensions for "' + type + '".' - ); - } - - this._types[ext] = type; - } - - // Use first extension as default - if (force || !this._extensions[type]) { - var ext = extensions[0]; - this._extensions[type] = (ext[0] != '*') ? ext : ext.substr(1) - } - } -}; - -/** - * Lookup a mime type based on extension - */ -Mime.prototype.getType = function(path) { - path = String(path); - var last = path.replace(/^.*[/\\]/, '').toLowerCase(); - var ext = last.replace(/^.*\./, '').toLowerCase(); - - var hasPath = last.length < path.length; - var hasDot = ext.length < last.length - 1; - - return (hasDot || !hasPath) && this._types[ext] || null; -}; - -/** - * Return file extension associated with a mime type - */ -Mime.prototype.getExtension = function(type) { - type = /^\s*([^;\s]*)/.test(type) && RegExp.$1; - return type && this._extensions[type.toLowerCase()] || null; -}; - -module.exports = Mime; - - -/***/ }), -/* 252 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.billingbudgets = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(136); -exports.VERSIONS = { - v1beta1: v1beta1_1.billingbudgets_v1beta1.Billingbudgets, -}; -function billingbudgets(versionOrOptions) { - return googleapis_common_1.getAPI('billingbudgets', versionOrOptions, exports.VERSIONS, this); -} -exports.billingbudgets = billingbudgets; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 253 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudasset_v1p1beta1 = 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 = __webpack_require__(927); -var cloudasset_v1p1beta1; -(function (cloudasset_v1p1beta1) { - /** - * Cloud Asset API - * - * The cloud asset API manages the history and inventory of cloud resources. - * - * @example - * const {google} = require('googleapis'); - * const cloudasset = google.cloudasset('v1p1beta1'); - * - * @namespace cloudasset - * @type {Function} - * @version v1p1beta1 - * @variation v1p1beta1 - * @param {object=} options Options for Cloudasset - */ - class Cloudasset { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.iamPolicies = new Resource$Iampolicies(this.context); - this.resources = new Resource$Resources(this.context); - } - } - cloudasset_v1p1beta1.Cloudasset = Cloudasset; - class Resource$Iampolicies { + calendar_v3.Resource$Colors = Resource$Colors; + class Resource$Events { constructor(context) { this.context = context; } - searchAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -102852,33 +100572,86 @@ var cloudasset_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+scope}/iamPolicies:searchAll').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1p1beta1.Resource$Iampolicies = Resource$Iampolicies; - class Resource$Resources { - constructor(context) { - this.context = context; + import(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - searchAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -102889,194 +100662,26 @@ var cloudasset_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+scope}/resources:searchAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['calendarId'], + pathParams: ['calendarId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1p1beta1.Resource$Resources = Resource$Resources; -})(cloudasset_v1p1beta1 = exports.cloudasset_v1p1beta1 || (exports.cloudasset_v1p1beta1 = {})); -//# sourceMappingURL=v1p1beta1.js.map - -/***/ }), -/* 254 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -function promisify(fn) { - return function (req, opts) { - return new Promise((resolve, reject) => { - fn.call(this, req, opts, (err, rtn) => { - if (err) { - reject(err); - } - else { - resolve(rtn); - } - }); - }); - }; -} -exports.default = promisify; -//# sourceMappingURL=promisify.js.map - -/***/ }), -/* 255 */, -/* 256 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -const { context } = __webpack_require__(469); - -/** - * This function creates a comment and assigns users. - * @param {import('@octokit/rest').Octokit} octokit - * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest - * @param {string[]} assignees - * @param {string} comment - */ -const commentAndAssignUsers = async ( - octokit, pullRequest, assignees, comment -) => { - await octokit.issues.createComment({ - issue_number: pullRequest.number, - body: comment, - ...context.repo, - }); - - await octokit.issues.addAssignees({ - issue_number: pullRequest.number, - assignees: assignees, - ...context.repo, - }); -}; - -module.exports = { - commentAndAssignUsers, -}; - - -/***/ }), -/* 257 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _rng = _interopRequireDefault(__webpack_require__(7)); - -var _stringify = _interopRequireDefault(__webpack_require__(106)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function v4(options, buf, offset) { - options = options || {}; - - const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return (0, _stringify.default)(rnds); -} - -var _default = v4; -exports.default = _default; - -/***/ }), -/* 258 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.people_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 = __webpack_require__(927); -var people_v1; -(function (people_v1) { - /** - * People API - * - * Provides access to information about profiles and contacts. - * - * @example - * const {google} = require('googleapis'); - * const people = google.people('v1'); - * - * @namespace people - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for People - */ - class People { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.contactGroups = new Resource$Contactgroups(this.context); - this.people = new Resource$People(this.context); - } - } - people_v1.People = People; - class Resource$Contactgroups { - constructor(context) { - this.context = context; - this.members = new Resource$Contactgroups$Members(this.context); - } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + instances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103087,27 +100692,27 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/contactGroups:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/calendar/v3/calendars/{calendarId}/events/{eventId}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103118,27 +100723,26 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['calendarId'], + pathParams: ['calendarId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103149,27 +100753,27 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/calendar/v3/calendars/{calendarId}/events/{eventId}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['calendarId', 'eventId', 'destination'], + pathParams: ['calendarId', 'eventId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103180,27 +100784,26 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + quickAdd(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103211,27 +100814,26 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/quickAdd').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['calendarId', 'text'], + pathParams: ['calendarId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103242,33 +100844,26 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - people_v1.Resource$Contactgroups = Resource$Contactgroups; - class Resource$Contactgroups$Members { - constructor(context) { - this.context = context; - } - modify(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103279,34 +100874,32 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}/members:modify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['calendarId'], + pathParams: ['calendarId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - people_v1.Resource$Contactgroups$Members = Resource$Contactgroups$Members; - class Resource$People { + calendar_v3.Resource$Events = Resource$Events; + class Resource$Freebusy { constructor(context) { this.context = context; - this.connections = new Resource$People$Connections(this.context); } - createContact(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103317,10 +100910,10 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/people:createContact').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/freeBusy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -103329,15 +100922,20 @@ var people_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteContact(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + calendar_v3.Resource$Freebusy = Resource$Freebusy; + class Resource$Settings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103348,27 +100946,26 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:deleteContact').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/calendar/v3/users/me/settings/{setting}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['setting'], + pathParams: ['setting'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteContactPhoto(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103379,25 +100976,25 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:deleteContactPhoto').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/calendar/v3/users/me/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + watch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -103409,27 +101006,113 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/calendar/v3/users/me/settings/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getBatchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + calendar_v3.Resource$Settings = Resource$Settings; +})(calendar_v3 = exports.calendar_v3 || (exports.calendar_v3 = {})); + + +/***/ }), + +/***/ 1364: +/***/ (function(module) { + +"use strict"; + + +module.exports = (flag, argv = process.argv) => { + const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); + const position = argv.indexOf(prefix + flag); + const terminatorPosition = argv.indexOf('--'); + return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); +}; + + +/***/ }), + +/***/ 1368: +/***/ (function(module) { + +module.exports = function atob(str) { + return Buffer.from(str, 'base64').toString('binary') +} + + +/***/ }), + +/***/ 1369: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.civicinfo_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var civicinfo_v2; +(function (civicinfo_v2) { + /** + * Google Civic Information API + * + * Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const civicinfo = google.civicinfo('v2'); + * ``` + */ + class Civicinfo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.divisions = new Resource$Divisions(this.context); + this.elections = new Resource$Elections(this.context); + this.representatives = new Resource$Representatives(this.context); + } + } + civicinfo_v2.Civicinfo = Civicinfo; + class Resource$Divisions { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103440,10 +101123,10 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/people:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/civicinfo/v2/divisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -103452,13 +101135,19 @@ var people_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateContact(paramsOrCallback, optionsOrCallback, callback) { + } + civicinfo_v2.Resource$Divisions = Resource$Divisions; + class Resource$Elections { + constructor(context) { + this.context = context; + } + electionQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103471,25 +101160,25 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:updateContact').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/civicinfo/v2/elections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateContactPhoto(paramsOrCallback, optionsOrCallback, callback) { + voterInfoQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103502,262 +101191,102 @@ var people_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:updateContactPhoto').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/civicinfo/v2/voterinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['address'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - people_v1.Resource$People = Resource$People; - class Resource$People$Connections { + civicinfo_v2.Resource$Elections = Resource$Elections; + class Resource$Representatives { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + representativeInfoByAddress(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/civicinfo/v2/representatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + representativeInfoByDivision(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://civicinfo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/representatives/{ocdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ocdId'], + pathParams: ['ocdId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - people_v1.Resource$People$Connections = Resource$People$Connections; -})(people_v1 = exports.people_v1 || (exports.people_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 259 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; + civicinfo_v2.Resource$Representatives = Resource$Representatives; +})(civicinfo_v2 = exports.civicinfo_v2 || (exports.civicinfo_v2 = {})); -// Copyright 2018 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 }); -/* eslint-disable @typescript-eslint/no-explicit-any */ -class GaxiosError extends Error { - constructor(message, options, response) { - super(message); - this.response = response; - this.config = options; - this.code = response.status.toString(); - } -} -exports.GaxiosError = GaxiosError; -//# sourceMappingURL=common.js.map /***/ }), -/* 260 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Note: since nyc uses this module to output coverage, any lines -// that are in the direct sync flow of nyc's outputCoverage are -// ignored, since we can never get coverage for them. -var assert = __webpack_require__(357) -var signals = __webpack_require__(654) - -var EE = __webpack_require__(614) -/* istanbul ignore if */ -if (typeof EE !== 'function') { - EE = EE.EventEmitter -} - -var emitter -if (process.__signal_exit_emitter__) { - emitter = process.__signal_exit_emitter__ -} else { - emitter = process.__signal_exit_emitter__ = new EE() - emitter.count = 0 - emitter.emitted = {} -} - -// Because this emitter is a global, we have to check to see if a -// previous version of this library failed to enable infinite listeners. -// I know what you're about to say. But literally everything about -// signal-exit is a compromise with evil. Get used to it. -if (!emitter.infinite) { - emitter.setMaxListeners(Infinity) - emitter.infinite = true -} - -module.exports = function (cb, opts) { - assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') - - if (loaded === false) { - load() - } - - var ev = 'exit' - if (opts && opts.alwaysLast) { - ev = 'afterexit' - } - - var remove = function () { - emitter.removeListener(ev, cb) - if (emitter.listeners('exit').length === 0 && - emitter.listeners('afterexit').length === 0) { - unload() - } - } - emitter.on(ev, cb) - - return remove -} - -module.exports.unload = unload -function unload () { - if (!loaded) { - return - } - loaded = false - - signals.forEach(function (sig) { - try { - process.removeListener(sig, sigListeners[sig]) - } catch (er) {} - }) - process.emit = originalProcessEmit - process.reallyExit = originalProcessReallyExit - emitter.count -= 1 -} - -function emit (event, code, signal) { - if (emitter.emitted[event]) { - return - } - emitter.emitted[event] = true - emitter.emit(event, code, signal) -} - -// { : , ... } -var sigListeners = {} -signals.forEach(function (sig) { - sigListeners[sig] = function listener () { - // If there are no other listeners, an exit is coming! - // Simplest way: remove us and then re-send the signal. - // We know that this will kill the process, so we can - // safely emit now. - var listeners = process.listeners(sig) - if (listeners.length === emitter.count) { - unload() - emit('exit', null, sig) - /* istanbul ignore next */ - emit('afterexit', null, sig) - /* istanbul ignore next */ - process.kill(process.pid, sig) - } - } -}) - -module.exports.signals = function () { - return signals -} - -module.exports.load = load - -var loaded = false - -function load () { - if (loaded) { - return - } - loaded = true - - // This is the number of onSignalExit's that are in play. - // It's important so that we can count the correct number of - // listeners on signals, and don't wait for the other one to - // handle it instead of us. - emitter.count += 1 - - signals = signals.filter(function (sig) { - try { - process.on(sig, sigListeners[sig]) - return true - } catch (er) { - return false - } - }) - - process.emit = processEmit - process.reallyExit = processReallyExit -} - -var originalProcessReallyExit = process.reallyExit -function processReallyExit (code) { - process.exitCode = code || 0 - emit('exit', process.exitCode, null) - /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - /* istanbul ignore next */ - originalProcessReallyExit.call(process, process.exitCode) -} - -var originalProcessEmit = process.emit -function processEmit (ev, arg) { - if (ev === 'exit') { - if (arg !== undefined) { - process.exitCode = arg - } - var ret = originalProcessEmit.apply(this, arguments) - emit('exit', process.exitCode, null) - /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - return ret - } else { - return originalProcessEmit.apply(this, arguments) - } -} - -/***/ }), -/* 261 */ +/***/ 1372: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -103775,73 +101304,41 @@ function processEmit (ev, arg) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.youtube_v3 = void 0; +exports.analyticsdata_v1beta = 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 = __webpack_require__(927); -var youtube_v3; -(function (youtube_v3) { +var analyticsdata_v1beta; +(function (analyticsdata_v1beta) { /** - * YouTube Data API + * Google Analytics Data API * - * Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. + * Accesses report data in Google Analytics. * * @example + * ```js * const {google} = require('googleapis'); - * const youtube = google.youtube('v3'); - * - * @namespace youtube - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Youtube + * const analyticsdata = google.analyticsdata('v1beta'); + * ``` */ - class Youtube { + class Analyticsdata { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.activities = new Resource$Activities(this.context); - this.captions = new Resource$Captions(this.context); - this.channelBanners = new Resource$Channelbanners(this.context); - this.channels = new Resource$Channels(this.context); - this.channelSections = new Resource$Channelsections(this.context); - this.comments = new Resource$Comments(this.context); - this.commentThreads = new Resource$Commentthreads(this.context); - this.guideCategories = new Resource$Guidecategories(this.context); - this.i18nLanguages = new Resource$I18nlanguages(this.context); - this.i18nRegions = new Resource$I18nregions(this.context); - this.liveBroadcasts = new Resource$Livebroadcasts(this.context); - this.liveChatBans = new Resource$Livechatbans(this.context); - this.liveChatMessages = new Resource$Livechatmessages(this.context); - this.liveChatModerators = new Resource$Livechatmoderators(this.context); - this.liveStreams = new Resource$Livestreams(this.context); - this.members = new Resource$Members(this.context); - this.membershipsLevels = new Resource$Membershipslevels(this.context); - this.playlistItems = new Resource$Playlistitems(this.context); - this.playlists = new Resource$Playlists(this.context); - this.search = new Resource$Search(this.context); - this.sponsors = new Resource$Sponsors(this.context); - this.subscriptions = new Resource$Subscriptions(this.context); - this.superChatEvents = new Resource$Superchatevents(this.context); - this.thumbnails = new Resource$Thumbnails(this.context); - this.videoAbuseReportReasons = new Resource$Videoabusereportreasons(this.context); - this.videoCategories = new Resource$Videocategories(this.context); - this.videos = new Resource$Videos(this.context); - this.watermarks = new Resource$Watermarks(this.context); + this.properties = new Resource$Properties(this.context); } } - youtube_v3.Youtube = Youtube; - class Resource$Activities { + analyticsdata_v1beta.Analyticsdata = Analyticsdata; + class Resource$Properties { constructor(context) { this.context = context; } - insert(paramsOrCallback, optionsOrCallback, callback) { + batchRunPivotReports(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103854,26 +101351,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+property}:batchRunPivotReports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchRunReports(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103884,32 +101382,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+property}:batchRunReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Activities = Resource$Activities; - class Resource$Captions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + checkCompatibility(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103920,25 +101413,25 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+property}:checkCompatibility').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(paramsOrCallback, optionsOrCallback, callback) { + getMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103951,26 +101444,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + runPivotReport(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103981,27 +101475,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+property}:runPivotReport').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['part'], - pathParams: [], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + runRealtimeReport(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -104012,26 +101506,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+property}:runRealtimeReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part', 'videoId'], - pathParams: [], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + runReport(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -104042,356 +101537,429 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+property}:runReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['part'], - pathParams: [], + requiredParams: ['property'], + pathParams: ['property'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtube_v3.Resource$Captions = Resource$Captions; - class Resource$Channelbanners { + analyticsdata_v1beta.Resource$Properties = Resource$Properties; +})(analyticsdata_v1beta = exports.analyticsdata_v1beta || (exports.analyticsdata_v1beta = {})); + + +/***/ }), + +/***/ 1377: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dataproc_v1beta2 = 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 = __webpack_require__(927); +var dataproc_v1beta2; +(function (dataproc_v1beta2) { + /** + * Cloud Dataproc API + * + * Manages Hadoop-based clusters and jobs on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dataproc = google.dataproc('v1beta2'); + * ``` + */ + class Dataproc { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dataproc_v1beta2.Dataproc = Dataproc; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.regions = new Resource$Projects$Regions(this.context); } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dataproc_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.autoscalingPolicies = + new Resource$Projects$Locations$Autoscalingpolicies(this.context); + this.workflowTemplates = + new Resource$Projects$Locations$Workflowtemplates(this.context); + } + } + dataproc_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Channelbanners = Resource$Channelbanners; - class Resource$Channels { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Channels = Resource$Channels; - class Resource$Channelsections { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Channelsections = Resource$Channelsections; - class Resource$Comments { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dataproc_v1beta2.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; + class Resource$Projects$Locations$Workflowtemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104404,120 +101972,118 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments/markAsSpam').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setModerationStatus(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments/setModerationStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id', 'moderationStatus'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + instantiate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Comments = Resource$Comments; - class Resource$Commentthreads { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -104526,241 +102092,211 @@ var youtube_v3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Commentthreads = Resource$Commentthreads; - class Resource$Guidecategories { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/guideCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Guidecategories = Resource$Guidecategories; - class Resource$I18nlanguages { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/i18nLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtube_v3.Resource$I18nlanguages = Resource$I18nlanguages; - class Resource$I18nregions { + dataproc_v1beta2.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; + class Resource$Projects$Regions { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/youtube/v3/i18nRegions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['part'], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.autoscalingPolicies = + new Resource$Projects$Regions$Autoscalingpolicies(this.context); + this.clusters = new Resource$Projects$Regions$Clusters(this.context); + this.jobs = new Resource$Projects$Regions$Jobs(this.context); + this.operations = new Resource$Projects$Regions$Operations(this.context); + this.workflowTemplates = new Resource$Projects$Regions$Workflowtemplates(this.context); } } - youtube_v3.Resource$I18nregions = Resource$I18nregions; - class Resource$Livebroadcasts { + dataproc_v1beta2.Resource$Projects$Regions = Resource$Projects$Regions; + class Resource$Projects$Regions$Autoscalingpolicies { constructor(context) { this.context = context; } - bind(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts/bind').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id', 'part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - control(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts/control').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['id', 'part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104773,53 +102309,54 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -104828,131 +102365,135 @@ var youtube_v3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transition(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts/transition').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['broadcastStatus', 'id', 'part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Livebroadcasts = Resource$Livebroadcasts; - class Resource$Livechatbans { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dataproc_v1beta2.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; + class Resource$Projects$Regions$Clusters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104965,30 +102506,25 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Livechatbans = Resource$Livechatbans; - class Resource$Livechatmessages { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -105002,25 +102538,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + diagnose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105033,25 +102570,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105064,31 +102602,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['liveChatId', 'part'], - pathParams: [], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Livechatmessages = Resource$Livechatmessages; - class Resource$Livechatmoderators { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105101,53 +102634,55 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + injectCredentials(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/{+project}/{+region}/{+cluster}:injectCredentials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region', 'cluster'], + pathParams: ['cluster', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -105163,31 +102698,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['liveChatId', 'part'], - pathParams: [], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Livechatmoderators = Resource$Livechatmoderators; - class Resource$Livestreams { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105200,25 +102730,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105231,26 +102762,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105261,25 +102793,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105292,67 +102825,64 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Livestreams = Resource$Livestreams; - class Resource$Members { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/members').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtube_v3.Resource$Members = Resource$Members; - class Resource$Membershipslevels { + dataproc_v1beta2.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; + class Resource$Projects$Regions$Jobs { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105365,30 +102895,25 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/membershipsLevels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Membershipslevels = Resource$Membershipslevels; - class Resource$Playlistitems { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -105402,25 +102927,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105433,25 +102959,26 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105464,25 +102991,25 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105495,32 +103022,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Playlistitems = Resource$Playlistitems; - class Resource$Playlists { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105531,26 +103053,28 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105561,26 +103085,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105591,26 +103116,28 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105621,32 +103148,28 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Playlists = Resource$Playlists; - class Resource$Search { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105657,32 +103180,33 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtube_v3.Resource$Search = Resource$Search; - class Resource$Sponsors { + dataproc_v1beta2.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; + class Resource$Projects$Regions$Operations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105693,30 +103217,24 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/sponsors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Sponsors = Resource$Sponsors; - class Resource$Subscriptions { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -105730,25 +103248,25 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105761,25 +103279,25 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105792,30 +103310,24 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Subscriptions = Resource$Subscriptions; - class Resource$Superchatevents { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -105829,32 +103341,27 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/superChatEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Superchatevents = Resource$Superchatevents; - class Resource$Thumbnails { - constructor(context) { - this.context = context; - } - set(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -105865,137 +103372,129 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['videoId'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Thumbnails = Resource$Thumbnails; - class Resource$Videoabusereportreasons { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videoAbuseReportReasons').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtube_v3.Resource$Videoabusereportreasons = Resource$Videoabusereportreasons; - class Resource$Videocategories { + dataproc_v1beta2.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; + class Resource$Projects$Regions$Workflowtemplates { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videoCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Videocategories = Resource$Videocategories; - class Resource$Videos { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRating(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -106006,116 +103505,121 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos/getRating').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + instantiate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos/rate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id', 'rating'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportAbuse(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106128,301 +103632,139 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos/reportAbuse').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Videos = Resource$Videos; - class Resource$Watermarks { - constructor(context) { - this.context = context; - } - set(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['channelId'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/watermarks/unset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['channelId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtube_v3.Resource$Watermarks = Resource$Watermarks; -})(youtube_v3 = exports.youtube_v3 || (exports.youtube_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 262 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; + dataproc_v1beta2.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; +})(dataproc_v1beta2 = exports.dataproc_v1beta2 || (exports.dataproc_v1beta2 = {})); -Object.defineProperty(exports, "__esModule", { value: true }); -const fs_1 = __webpack_require__(747); -const os_1 = __webpack_require__(87); -class Context { - /** - * Hydrate the context from the environment - */ - constructor() { - this.payload = {}; - if (process.env.GITHUB_EVENT_PATH) { - if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) { - this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); - } - else { - const path = process.env.GITHUB_EVENT_PATH; - process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`); - } - } - this.eventName = process.env.GITHUB_EVENT_NAME; - this.sha = process.env.GITHUB_SHA; - this.ref = process.env.GITHUB_REF; - this.workflow = process.env.GITHUB_WORKFLOW; - this.action = process.env.GITHUB_ACTION; - this.actor = process.env.GITHUB_ACTOR; - } - get issue() { - const payload = this.payload; - return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number }); - } - get repo() { - if (process.env.GITHUB_REPOSITORY) { - const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); - return { owner, repo }; - } - if (this.payload.repository) { - return { - owner: this.payload.repository.owner.login, - repo: this.payload.repository.name - }; - } - throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); - } -} -exports.Context = Context; -//# sourceMappingURL=context.js.map /***/ }), -/* 263 */, -/* 264 */, -/* 265 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = getPage - -const deprecate = __webpack_require__(370) -const getPageLinks = __webpack_require__(577) -const HttpError = __webpack_require__(297) - -function getPage (octokit, link, which, headers) { - deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - const url = getPageLinks(link)[which] - - if (!url) { - const urlError = new HttpError(`No ${which} page found`, 404) - return Promise.reject(urlError) - } - - const requestOptions = { - url, - headers: applyAcceptHeader(link, headers) - } - const promise = octokit.request(requestOptions) - - return promise -} - -function applyAcceptHeader (res, headers) { - const previous = res.headers && res.headers['x-github-media-type'] - - if (!previous || (headers && headers.accept)) { - return headers - } - headers = headers || {} - headers.accept = 'application/vnd.' + previous - .replace('; param=', '.') - .replace('; format=', '+') - - return headers -} - - -/***/ }), -/* 266 */ +/***/ 1386: /***/ (function(__unusedmodule, exports, __webpack_require__) { "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 +// Copyright 2019 Google LLC // -// 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.auth = exports.youtubeAnalytics = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(683); -const v2_1 = __webpack_require__(633); -exports.VERSIONS = { - v1: v1_1.youtubeAnalytics_v1.Youtubeanalytics, - v2: v2_1.youtubeAnalytics_v2.Youtubeanalytics, -}; -function youtubeAnalytics(versionOrOptions) { - return googleapis_common_1.getAPI('youtubeAnalytics', versionOrOptions, exports.VERSIONS, this); -} -exports.youtubeAnalytics = youtubeAnalytics; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 267 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _crypto = _interopRequireDefault(__webpack_require__(417)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('sha1').update(bytes).digest(); -} - -var _default = sha1; -exports.default = _default; - -/***/ }), -/* 268 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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 +// 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, @@ -106430,93 +103772,78 @@ exports.default = _default; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.recommender = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(600); -exports.VERSIONS = { - v1beta1: v1beta1_1.recommender_v1beta1.Recommender, -}; -function recommender(versionOrOptions) { - return googleapis_common_1.getAPI('recommender', versionOrOptions, exports.VERSIONS, this); +exports.NodeCrypto = void 0; +const crypto = __webpack_require__(6417); +class NodeCrypto { + async sha256DigestBase64(str) { + return crypto.createHash('sha256').update(str).digest('base64'); + } + randomBytesBase64(count) { + return crypto.randomBytes(count).toString('base64'); + } + async verify(pubkey, data, signature) { + const verifier = crypto.createVerify('sha256'); + verifier.update(data); + verifier.end(); + return verifier.verify(pubkey, signature, 'base64'); + } + async sign(privateKey, data) { + const signer = crypto.createSign('RSA-SHA256'); + signer.update(data); + signer.end(); + return signer.sign(privateKey, 'base64'); + } + decodeBase64StringUtf8(base64) { + return Buffer.from(base64, 'base64').toString('utf-8'); + } + encodeBase64StringUtf8(text) { + return Buffer.from(text, 'utf-8').toString('base64'); + } + /** + * Computes the SHA-256 hash of the provided string. + * @param str The plain text string to hash. + * @return A promise that resolves with the SHA-256 hash of the provided + * string in hexadecimal encoding. + */ + async sha256DigestHex(str) { + return crypto.createHash('sha256').update(str).digest('hex'); + } + /** + * Computes the HMAC hash of a message using the provided crypto key and the + * SHA-256 algorithm. + * @param key The secret crypto key in utf-8 or ArrayBuffer format. + * @param msg The plain text message. + * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer + * format. + */ + async signWithHmacSha256(key, msg) { + const cryptoKey = typeof key === 'string' ? key : toBuffer(key); + return toArrayBuffer(crypto.createHmac('sha256', cryptoKey).update(msg).digest()); + } } -exports.recommender = recommender; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 269 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.androiddeviceprovisioning = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(721); -exports.VERSIONS = { - v1: v1_1.androiddeviceprovisioning_v1.Androiddeviceprovisioning, -}; -function androiddeviceprovisioning(versionOrOptions) { - return googleapis_common_1.getAPI('androiddeviceprovisioning', versionOrOptions, exports.VERSIONS, this); +exports.NodeCrypto = NodeCrypto; +/** + * Converts a Node.js Buffer to an ArrayBuffer. + * https://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer + * @param buffer The Buffer input to covert. + * @return The ArrayBuffer representation of the input. + */ +function toArrayBuffer(buffer) { + return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength); } -exports.androiddeviceprovisioning = androiddeviceprovisioning; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 270 */, -/* 271 */, -/* 272 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.reseller = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(516); -exports.VERSIONS = { - v1: v1_1.reseller_v1.Reseller, -}; -function reseller(versionOrOptions) { - return googleapis_common_1.getAPI('reseller', versionOrOptions, exports.VERSIONS, this); +/** + * Converts an ArrayBuffer to a Node.js Buffer. + * @param arrayBuffer The ArrayBuffer input to covert. + * @return The Buffer representation of the input. + */ +function toBuffer(arrayBuffer) { + return Buffer.from(arrayBuffer); } -exports.reseller = reseller; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +//# sourceMappingURL=crypto.js.map /***/ }), -/* 273 */ + +/***/ 1389: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -106534,30 +103861,25 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudfunctions_v1beta2 = void 0; +exports.cloudfunctions_v2alpha = 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 = __webpack_require__(927); -var cloudfunctions_v1beta2; -(function (cloudfunctions_v1beta2) { +var cloudfunctions_v2alpha; +(function (cloudfunctions_v2alpha) { /** * Cloud Functions API * * Manages lightweight user-provided functions executed in response to events. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudfunctions = google.cloudfunctions('v1beta2'); - * - * @namespace cloudfunctions - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Cloudfunctions + * const cloudfunctions = google.cloudfunctions('v2alpha'); + * ``` */ class Cloudfunctions { constructor(options, google) { @@ -106565,17 +103887,27 @@ var cloudfunctions_v1beta2; _options: options || {}, google, }; - this.operations = new Resource$Operations(this.context); this.projects = new Resource$Projects(this.context); } } - cloudfunctions_v1beta2.Cloudfunctions = Cloudfunctions; - class Resource$Operations { + cloudfunctions_v2alpha.Cloudfunctions = Cloudfunctions; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudfunctions_v2alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimes = new Resource$Projects$Locations$Runtimes(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -106589,7 +103921,7 @@ var cloudfunctions_v1beta2; const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -106598,19 +103930,26 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + } + cloudfunctions_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + 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; @@ -106619,34 +103958,178 @@ var cloudfunctions_v1beta2; const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudfunctions_v1beta2.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - cloudfunctions_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.functions = new Resource$Projects$Locations$Functions(this.context); + generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -106664,28 +104147,123 @@ var cloudfunctions_v1beta2; const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudfunctions_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Functions { + cloudfunctions_v2alpha.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - call(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106701,8 +104279,8 @@ var cloudfunctions_v1beta2; const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -106710,13 +104288,13 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106732,22 +104310,28 @@ var cloudfunctions_v1beta2; const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106763,8 +104347,106 @@ var cloudfunctions_v1beta2; const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2alpha.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2alpha = exports.cloudfunctions_v2alpha || (exports.cloudfunctions_v2alpha = {})); + + +/***/ }), + +/***/ 1397: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.smartdevicemanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var smartdevicemanagement_v1; +(function (smartdevicemanagement_v1) { + /** + * Smart Device Management API + * + * Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const smartdevicemanagement = google.smartdevicemanagement('v1'); + * ``` + */ + class Smartdevicemanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.enterprises = new Resource$Enterprises(this.context); + } + } + smartdevicemanagement_v1.Smartdevicemanagement = Smartdevicemanagement; + class Resource$Enterprises { + constructor(context) { + this.context = context; + this.devices = new Resource$Enterprises$Devices(this.context); + this.structures = new Resource$Enterprises$Structures(this.context); + } + } + smartdevicemanagement_v1.Resource$Enterprises = Resource$Enterprises; + class Resource$Enterprises$Devices { + constructor(context) { + this.context = context; + } + executeCommand(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://smartdevicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:executeCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -106772,13 +104454,13 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106791,11 +104473,11 @@ var cloudfunctions_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -106803,13 +104485,13 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106822,11 +104504,11 @@ var cloudfunctions_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -106834,12 +104516,19 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + smartdevicemanagement_v1.Resource$Enterprises$Devices = Resource$Enterprises$Devices; + class Resource$Enterprises$Structures { + constructor(context) { + this.context = context; + this.rooms = new Resource$Enterprises$Structures$Rooms(this.context); + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -106853,10 +104542,10 @@ var cloudfunctions_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -106865,10 +104554,10 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -106884,25 +104573,31 @@ var cloudfunctions_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/structures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + smartdevicemanagement_v1.Resource$Enterprises$Structures = Resource$Enterprises$Structures; + class Resource$Enterprises$Structures$Rooms { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106915,11 +104610,11 @@ var cloudfunctions_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -106927,19 +104622,51 @@ var cloudfunctions_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://smartdevicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/rooms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudfunctions_v1beta2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; -})(cloudfunctions_v1beta2 = exports.cloudfunctions_v1beta2 || (exports.cloudfunctions_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map + smartdevicemanagement_v1.Resource$Enterprises$Structures$Rooms = Resource$Enterprises$Structures$Rooms; +})(smartdevicemanagement_v1 = exports.smartdevicemanagement_v1 || (exports.smartdevicemanagement_v1 = {})); + /***/ }), -/* 274 */ + +/***/ 1407: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -106957,32 +104684,27 @@ var cloudfunctions_v1beta2; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.managedidentities_v1beta1 = void 0; +exports.dataplex_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 = __webpack_require__(927); -var managedidentities_v1beta1; -(function (managedidentities_v1beta1) { +var dataplex_v1; +(function (dataplex_v1) { /** - * Managed Service for Microsoft Active Directory API + * Cloud Dataplex API * - * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). + * Dataplex API is used to manage the lifecycle of data lakes. * * @example + * ```js * const {google} = require('googleapis'); - * const managedidentities = google.managedidentities('v1beta1'); - * - * @namespace managedidentities - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Managedidentities + * const dataplex = google.dataplex('v1'); + * ``` */ - class Managedidentities { + class Dataplex { constructor(options, google) { this.context = { _options: options || {}, @@ -106991,18 +104713,23 @@ var managedidentities_v1beta1; this.projects = new Resource$Projects(this.context); } } - managedidentities_v1beta1.Managedidentities = Managedidentities; + dataplex_v1.Dataplex = Dataplex; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - managedidentities_v1beta1.Resource$Projects = Resource$Projects; + dataplex_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.global = new Resource$Projects$Locations$Global(this.context); + this.dataAttributeBindings = + new Resource$Projects$Locations$Dataattributebindings(this.context); + this.dataScans = new Resource$Projects$Locations$Datascans(this.context); + this.dataTaxonomies = new Resource$Projects$Locations$Datataxonomies(this.context); + this.lakes = new Resource$Projects$Locations$Lakes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -107017,10 +104744,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -107029,10 +104756,10 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -107048,10 +104775,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -107060,75 +104787,165 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - managedidentities_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Global { - constructor(context) { - this.context = context; - this.domains = new Resource$Projects$Locations$Global$Domains(this.context); - this.operations = new Resource$Projects$Locations$Global$Operations(this.context); - } - } - managedidentities_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Domains { + dataplex_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Dataattributebindings { constructor(context) { this.context = context; } - attachTrust(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dataAttributeBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataAttributeBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -107136,30 +104953,31 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -107167,13 +104985,84 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachTrust(paramsOrCallback, optionsOrCallback, callback) { + 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataplex_v1.Resource$Projects$Locations$Dataattributebindings = Resource$Projects$Locations$Dataattributebindings; + class Resource$Projects$Locations$Datascans { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Datascans$Jobs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107186,22 +105075,53 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dataScans').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -107217,10 +105137,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -107229,10 +105149,10 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -107241,17 +105161,18 @@ var managedidentities_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -107260,10 +105181,10 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -107279,10 +105200,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dataScans').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -107291,10 +105212,10 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -107310,10 +105231,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -107322,13 +105243,13 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107341,10 +105262,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -107353,60 +105274,62 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -107415,13 +105338,19 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + dataplex_v1.Resource$Projects$Locations$Datascans = Resource$Projects$Locations$Datascans; + class Resource$Projects$Locations$Datascans$Jobs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107434,25 +105363,25 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateTrust(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107465,31 +105394,33 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - managedidentities_v1beta1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; - class Resource$Projects$Locations$Global$Operations { + dataplex_v1.Resource$Projects$Locations$Datascans$Jobs = Resource$Projects$Locations$Datascans$Jobs; + class Resource$Projects$Locations$Datataxonomies { constructor(context) { this.context = context; + this.attributes = + new Resource$Projects$Locations$Datataxonomies$Attributes(this.context); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107502,22 +105433,22 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dataTaxonomies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -107533,10 +105464,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -107545,10 +105476,10 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -107564,10 +105495,10 @@ var managedidentities_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -107576,2427 +105507,1287 @@ var managedidentities_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - managedidentities_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; -})(managedidentities_v1beta1 = exports.managedidentities_v1beta1 || (exports.managedidentities_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 275 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.bigquery = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(895); -exports.VERSIONS = { - v2: v2_1.bigquery_v2.Bigquery, -}; -function bigquery(versionOrOptions) { - return googleapis_common_1.getAPI('bigquery', versionOrOptions, exports.VERSIONS, this); -} -exports.bigquery = bigquery; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 276 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.createAPIRequest = void 0; -const google_auth_library_1 = __webpack_require__(668); -const qs = __webpack_require__(418); -const stream = __webpack_require__(413); -const urlTemplate = __webpack_require__(714); -const uuid = __webpack_require__(177); -const extend = __webpack_require__(374); -const isbrowser_1 = __webpack_require__(322); -const h2 = __webpack_require__(650); -const resolve = __webpack_require__(835); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkg = __webpack_require__(360); -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function isReadableStream(obj) { - return (obj !== null && - typeof obj === 'object' && - typeof obj.pipe === 'function' && - obj.readable !== false && - typeof obj._read === 'function' && - typeof obj._readableState === 'object'); -} -function getMissingParams(params, required) { - const missing = new Array(); - required.forEach(param => { - // Is the required param in the params object? - if (params[param] === undefined) { - missing.push(param); - } - }); - // If there are any required params missing, return their names in array, - // otherwise return null - return missing.length > 0 ? missing : null; -} -function createAPIRequest(parameters, callback) { - if (callback) { - createAPIRequestAsync(parameters).then(r => callback(null, r), callback); - } - else { - return createAPIRequestAsync(parameters); - } -} -exports.createAPIRequest = createAPIRequest; -async function createAPIRequestAsync(parameters) { - var _a; - // Combine the GaxiosOptions options passed with this specific - // API call with the global options configured at the API Context - // level, or at the global level. - const options = extend(true, {}, // Ensure we don't leak settings upstream - ((_a = parameters.context.google) === null || _a === void 0 ? void 0 : _a._options) || {}, // Google level options - parameters.context._options || {}, // Per-API options - parameters.options // API call params - ); - const params = extend(true, {}, // New base object - options.params, // Combined global/per-api params - parameters.params // API call params - ); - options.userAgentDirectives = options.userAgentDirectives || []; - const media = params.media || {}; - /** - * In a previous version of this API, the request body was stuffed in a field - * named `resource`. This caused lots of problems, because it's not uncommon - * to have an actual named parameter required which is also named `resource`. - * This meant that users would have to use `resource_` in those cases, which - * pretty much nobody figures out on their own. The request body is now - * documented as being in the `requestBody` property, but we also need to keep - * using `resource` for reasons of back-compat. Cases that need to be covered - * here: - * - user provides just a `resource` with a request body - * - user provides both a `resource` and a `resource_` - * - user provides just a `requestBody` - * - user provides both a `requestBody` and a `resource` - */ - let resource = params.requestBody; - if (!params.requestBody && - params.resource && - (!parameters.requiredParams.includes('resource') || - typeof params.resource !== 'string')) { - resource = params.resource; - delete params.resource; - } - delete params.requestBody; - let authClient = params.auth || options.auth; - const defaultMime = typeof media.body === 'string' ? 'text/plain' : 'application/octet-stream'; - delete params.media; - delete params.auth; - // Grab headers from user provided options - const headers = params.headers || {}; - populateAPIHeader(headers); - delete params.headers; - // Un-alias parameters that were modified due to conflicts with reserved names - Object.keys(params).forEach(key => { - if (key.slice(-1) === '_') { - const newKey = key.slice(0, -1); - params[newKey] = params[key]; - delete params[key]; - } - }); - // Check for missing required parameters in the API request - const missingParams = getMissingParams(params, parameters.requiredParams); - if (missingParams) { - // Some params are missing - stop further operations and inform the - // developer which required params are not included in the request - throw new Error('Missing required parameters: ' + missingParams.join(', ')); - } - // Parse urls - if (options.url) { - options.url = urlTemplate.parse(options.url).expand(params); - } - if (parameters.mediaUrl) { - parameters.mediaUrl = urlTemplate.parse(parameters.mediaUrl).expand(params); - } - // Rewrite url if rootUrl is globally set - if (parameters.context._options.rootUrl !== undefined && - options.url !== undefined) { - const path = options.url.slice(parameters.context._options.rootUrl.length); - options.url = resolve.resolve(parameters.context._options.rootUrl, path); - } - // When forming the querystring, override the serializer so that array - // values are serialized like this: - // myParams: ['one', 'two'] ---> 'myParams=one&myParams=two' - // This serializer also encodes spaces in the querystring as `%20`, - // whereas the default serializer in gaxios encodes to a `+`. - options.paramsSerializer = params => { - return qs.stringify(params, { arrayFormat: 'repeat' }); - }; - // delete path params from the params object so they do not end up in query - parameters.pathParams.forEach(param => delete params[param]); - // if authClient is actually a string, use it as an API KEY - if (typeof authClient === 'string') { - params.key = params.key || authClient; - authClient = undefined; - } - function multipartUpload(multipart) { - const boundary = uuid.v4(); - const finale = `--${boundary}--`; - const rStream = new stream.PassThrough({ - flush(callback) { - this.push('\r\n'); - this.push(finale); - callback(); - }, - }); - const pStream = new ProgressStream(); - const isStream = isReadableStream(multipart[1].body); - headers['content-type'] = `multipart/related; boundary=${boundary}`; - for (const part of multipart) { - const preamble = `--${boundary}\r\ncontent-type: ${part['content-type']}\r\n\r\n`; - rStream.push(preamble); - if (typeof part.body === 'string') { - rStream.push(part.body); - rStream.push('\r\n'); + 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataTaxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - // Gaxios does not natively support onUploadProgress in node.js. - // Pipe through the pStream first to read the number of bytes read - // for the purpose of tracking progress. - pStream.on('progress', bytesRead => { - if (options.onUploadProgress) { - options.onUploadProgress({ bytesRead }); - } - }); - part.body.pipe(pStream).pipe(rStream); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - if (!isStream) { - rStream.push(finale); - rStream.push(null); - } - options.data = rStream; - } - function browserMultipartUpload(multipart) { - const boundary = uuid.v4(); - const finale = `--${boundary}--`; - headers['content-type'] = `multipart/related; boundary=${boundary}`; - let content = ''; - for (const part of multipart) { - const preamble = `--${boundary}\r\ncontent-type: ${part['content-type']}\r\n\r\n`; - content += preamble; - if (typeof part.body === 'string') { - content += part.body; - content += '\r\n'; + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - content += finale; - options.data = content; - } - if (parameters.mediaUrl && media.body) { - options.url = parameters.mediaUrl; - if (resource) { - params.uploadType = 'multipart'; - const multipart = [ - { 'content-type': 'application/json', body: JSON.stringify(resource) }, - { - 'content-type': media.mimeType || (resource && resource.mimeType) || defaultMime, - body: media.body, - }, - ]; - if (!isbrowser_1.isBrowser()) { - // gaxios doesn't support multipart/related uploads, so it has to - // be implemented here. - multipartUpload(multipart); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - browserMultipartUpload(multipart); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - else { - params.uploadType = 'media'; - Object.assign(headers, { 'content-type': media.mimeType || defaultMime }); - options.data = media.body; - } - } - else { - options.data = resource || undefined; - } - options.headers = extend(true, options.headers || {}, headers); - options.params = params; - if (!isbrowser_1.isBrowser()) { - options.headers['Accept-Encoding'] = 'gzip'; - options.userAgentDirectives.push({ - product: 'google-api-nodejs-client', - version: pkg.version, - comment: 'gzip', - }); - const userAgent = options.userAgentDirectives - .map(d => { - let line = `${d.product}/${d.version}`; - if (d.comment) { - line += ` (${d.comment})`; + 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - return line; - }) - .join(' '); - options.headers['User-Agent'] = userAgent; - } - // By default gaxios treats any 2xx as valid, and all non 2xx status - // codes as errors. This is a problem for HTTP 304s when used along - // with an eTag. - if (!options.validateStatus) { - options.validateStatus = status => { - return (status >= 200 && status < 300) || status === 304; - }; - } - // Retry by default - options.retry = options.retry === undefined ? true : options.retry; - delete options.auth; // is overridden by our auth code - // Perform the HTTP request. NOTE: this function used to return a - // mikeal/request object. Since the transition to Axios, the method is - // now void. This may be a source of confusion for users upgrading from - // version 24.0 -> 25.0 or up. - if (authClient && typeof authClient === 'object') { - if (options.http2) { - const authHeaders = await authClient.getRequestHeaders(options.url); - const mooOpts = Object.assign({}, options); - mooOpts.headers = Object.assign(mooOpts.headers, authHeaders); - return h2.request(mooOpts); } - else { - return authClient.request(options); + 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - else { - return new google_auth_library_1.DefaultTransporter().request(options); - } -} -/** - * Basic Passthrough Stream that records the number of bytes read - * every time the cursor is moved. - */ -class ProgressStream extends stream.Transform { - constructor() { - super(...arguments); - this.bytesRead = 0; - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - _transform(chunk, encoding, callback) { - this.bytesRead += chunk.length; - this.emit('progress', this.bytesRead); - this.push(chunk); - callback(); - } -} -function populateAPIHeader(headers) { - // TODO: we should eventually think about adding browser support for this - // populating the gl-web header (web support should also be added to - // google-auth-library-nodejs). - if (!isbrowser_1.isBrowser()) { - headers['x-goog-api-client'] = `gdcl/${pkg.version} gl-node/${process.versions.node}`; - } -} -//# sourceMappingURL=apirequest.js.map - -/***/ }), -/* 277 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.docs = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(655); -exports.VERSIONS = { - v1: v1_1.docs_v1.Docs, -}; -function docs(versionOrOptions) { - return googleapis_common_1.getAPI('docs', versionOrOptions, exports.VERSIONS, this); -} -exports.docs = docs; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 278 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var BigNumber = __webpack_require__(421); - -/* - json2.js - 2013-05-26 - - Public Domain. - - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. - - See http://www.JSON.org/js.html - - - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html - - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. - - - This file creates a global JSON object containing two methods: stringify - and parse. - - JSON.stringify(value, replacer, space) - value any JavaScript value, usually an object or array. - - replacer an optional parameter that determines how object - values are stringified for objects. It can be a - function or an array of strings. - - space an optional parameter that specifies the indentation - of nested structures. If it is omitted, the text will - be packed without extra whitespace. If it is a number, - it will specify the number of spaces to indent at each - level. If it is a string (such as '\t' or ' '), - it contains the characters used to indent at each level. - - This method produces a JSON text from a JavaScript value. - - When an object value is found, if the object contains a toJSON - method, its toJSON method will be called and the result will be - stringified. A toJSON method does not serialize: it returns the - value represented by the name/value pair that should be serialized, - or undefined if nothing should be serialized. The toJSON method - will be passed the key associated with the value, and this will be - bound to the value - - For example, this would serialize Dates as ISO strings. - - Date.prototype.toJSON = function (key) { - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } - - return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; - }; - - You can provide an optional replacer method. It will be passed the - key and value of each member, with this bound to the containing - object. The value that is returned from your method will be - serialized. If your method returns undefined, then the member will - be excluded from the serialization. - - If the replacer parameter is an array of strings, then it will be - used to select the members to be serialized. It filters the results - such that only members with keys listed in the replacer array are - stringified. - - Values that do not have JSON representations, such as undefined or - functions, will not be serialized. Such values in objects will be - dropped; in arrays they will be replaced with null. You can use - a replacer function to replace those with JSON values. - JSON.stringify(undefined) returns undefined. - - The optional space parameter produces a stringification of the - value that is filled with line breaks and indentation to make it - easier to read. - - If the space parameter is a non-empty string, then that string will - be used for indentation. If the space parameter is a number, then - the indentation will be that many spaces. - - Example: - - text = JSON.stringify(['e', {pluribus: 'unum'}]); - // text is '["e",{"pluribus":"unum"}]' - - - text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); - // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' - - text = JSON.stringify([new Date()], function (key, value) { - return this[key] instanceof Date ? - 'Date(' + this[key] + ')' : value; - }); - // text is '["Date(---current time---)"]' - - - JSON.parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. - - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. - - Example: - - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. - - myData = JSON.parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); - - myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { - var d; - if (typeof value === 'string' && - value.slice(0, 5) === 'Date(' && - value.slice(-1) === ')') { - d = new Date(value.slice(5, -1)); - if (d) { - return d; - } - } - return value; - }); - - - This is a reference implementation. You are free to copy, modify, or - redistribute. -*/ - -/*jslint evil: true, regexp: true */ - -/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, - call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, - getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, - lastIndex, length, parse, prototype, push, replace, slice, stringify, - test, toJSON, toString, valueOf -*/ - - -// Create a JSON object only if one does not already exist. We create the -// methods in a closure to avoid creating global variables. - -var JSON = module.exports; - -(function () { - 'use strict'; - - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } - - var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - gap, - indent, - meta = { // table of character substitutions - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - }, - rep; - - - function quote(string) { - -// If the string contains no control characters, no quote characters, and no -// backslash characters, then we can safely slap some quotes around it. -// Otherwise we must also replace the offending characters with safe escape -// sequences. - - escapable.lastIndex = 0; - return escapable.test(string) ? '"' + string.replace(escapable, function (a) { - var c = meta[a]; - return typeof c === 'string' - ? c - : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : '"' + string + '"'; + dataplex_v1.Resource$Projects$Locations$Datataxonomies = Resource$Projects$Locations$Datataxonomies; + class Resource$Projects$Locations$Datataxonomies$Attributes { + 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - - function str(key, holder) { - -// Produce a string from holder[key]. - - var i, // The loop counter. - k, // The member key. - v, // The member value. - length, - mind = gap, - partial, - value = holder[key], - isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); - -// If the value has a toJSON method, call it to obtain a replacement value. - - if (value && typeof value === 'object' && - typeof value.toJSON === 'function') { - value = value.toJSON(key); + dataplex_v1.Resource$Projects$Locations$Datataxonomies$Attributes = Resource$Projects$Locations$Datataxonomies$Attributes; + class Resource$Projects$Locations$Lakes { + constructor(context) { + this.context = context; + this.actions = new Resource$Projects$Locations$Lakes$Actions(this.context); + this.content = new Resource$Projects$Locations$Lakes$Content(this.context); + this.contentitems = new Resource$Projects$Locations$Lakes$Contentitems(this.context); + this.environments = new Resource$Projects$Locations$Lakes$Environments(this.context); + this.tasks = new Resource$Projects$Locations$Lakes$Tasks(this.context); + this.zones = new Resource$Projects$Locations$Lakes$Zones(this.context); } - -// If we were called with a replacer function, then call the replacer to -// obtain a replacement value. - - if (typeof rep === 'function') { - value = rep.call(holder, key, value); + 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/lakes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - -// What happens next depends on the value's type. - - switch (typeof value) { - case 'string': - if (isBigNumber) { - return value; - } else { - return quote(value); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - - case 'number': - -// JSON numbers must be finite. Encode non-finite numbers as null. - - return isFinite(value) ? String(value) : 'null'; - - case 'boolean': - case 'null': - -// If the value is a boolean or null, convert it to a string. Note: -// typeof null does not produce 'null'. The case is included here in -// the remote chance that this gets fixed someday. - - return String(value); - -// If the type is 'object', we might be dealing with an object or an array or -// null. - - case 'object': - -// Due to a specification blunder in ECMAScript, typeof null is 'object', -// so watch out for that case. - - if (!value) { - return 'null'; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - -// Make an array to hold the partial results of stringifying this object value. - - gap += indent; - partial = []; - -// Is the value an array? - - if (Object.prototype.toString.apply(value) === '[object Array]') { - -// The value is an array. Stringify every element. Use null as a placeholder -// for non-JSON values. - - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } - -// Join all of the elements together, separated with commas, and wrap them in -// brackets. - - v = partial.length === 0 - ? '[]' - : gap - ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' - : '[' + partial.join(',') + ']'; - gap = mind; - return v; + const rootUrl = options.rootUrl || 'https://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - -// If the replacer is an array, use it to select the members to be stringified. - - if (rep && typeof rep === 'object') { - length = rep.length; - for (i = 0; i < length; i += 1) { - if (typeof rep[i] === 'string') { - k = rep[i]; - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } else { - -// Otherwise, iterate through all of the keys in the object. - - Object.keys(value).forEach(function(k) { - var v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - }); + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/lakes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - -// Join all of the member texts together, separated with commas, -// and wrap them in braces. - - v = partial.length === 0 - ? '{}' - : gap - ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' - : '{' + partial.join(',') + '}'; - gap = mind; - return v; } } - -// If the JSON object does not yet have a stringify method, give it one. - - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function (value, replacer, space) { - -// The stringify method takes a value and an optional replacer, and an optional -// space parameter, and returns a JSON text. The replacer can be a function -// that can replace values, or an array of strings that will select the keys. -// A default replacer method can be provided. Use of the space parameter can -// produce text that is more easily readable. - - var i; - gap = ''; - indent = ''; - -// If the space parameter is a number, make an indent string containing that -// many spaces. - - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } - -// If the space parameter is a string, it will be used as the indent string. - - } else if (typeof space === 'string') { - indent = space; + dataplex_v1.Resource$Projects$Locations$Lakes = Resource$Projects$Locations$Lakes; + class Resource$Projects$Locations$Lakes$Actions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - -// If there is a replacer, it must be a function or an array. -// Otherwise, throw an error. - - rep = replacer; - if (replacer && typeof replacer !== 'function' && - (typeof replacer !== 'object' || - typeof replacer.length !== 'number')) { - throw new Error('JSON.stringify'); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - -// Make a fake root object containing our value under the key of ''. -// Return the result of stringifying the value. - - return str('', {'': value}); - }; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } -}()); - - -/***/ }), -/* 279 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.firebaseml = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta2_1 = __webpack_require__(957); -exports.VERSIONS = { - v1beta2: v1beta2_1.firebaseml_v1beta2.Firebaseml, -}; -function firebaseml(versionOrOptions) { - return googleapis_common_1.getAPI('firebaseml', versionOrOptions, exports.VERSIONS, this); -} -exports.firebaseml = firebaseml; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 280 */ -/***/ (function(module, exports) { - -exports = module.exports = SemVer - -var debug -/* istanbul ignore next */ -if (typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG)) { - debug = function () { - var args = Array.prototype.slice.call(arguments, 0) - args.unshift('SEMVER') - console.log.apply(console, args) - } -} else { - debug = function () {} -} - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION = '2.0.0' - -var MAX_LENGTH = 256 -var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || - /* istanbul ignore next */ 9007199254740991 - -// Max safe segment length for coercion. -var MAX_SAFE_COMPONENT_LENGTH = 16 - -// The actual regexps go on exports.re -var re = exports.re = [] -var src = exports.src = [] -var R = 0 - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -var NUMERICIDENTIFIER = R++ -src[NUMERICIDENTIFIER] = '0|[1-9]\\d*' -var NUMERICIDENTIFIERLOOSE = R++ -src[NUMERICIDENTIFIERLOOSE] = '[0-9]+' - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -var NONNUMERICIDENTIFIER = R++ -src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*' - -// ## Main Version -// Three dot-separated numeric identifiers. - -var MAINVERSION = R++ -src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')' - -var MAINVERSIONLOOSE = R++ -src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')' - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -var PRERELEASEIDENTIFIER = R++ -src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + - '|' + src[NONNUMERICIDENTIFIER] + ')' - -var PRERELEASEIDENTIFIERLOOSE = R++ -src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + - '|' + src[NONNUMERICIDENTIFIER] + ')' - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -var PRERELEASE = R++ -src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + - '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))' - -var PRERELEASELOOSE = R++ -src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))' - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -var BUILDIDENTIFIER = R++ -src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+' - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -var BUILD = R++ -src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + - '(?:\\.' + src[BUILDIDENTIFIER] + ')*))' - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -var FULL = R++ -var FULLPLAIN = 'v?' + src[MAINVERSION] + - src[PRERELEASE] + '?' + - src[BUILD] + '?' - -src[FULL] = '^' + FULLPLAIN + '$' - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + - src[PRERELEASELOOSE] + '?' + - src[BUILD] + '?' - -var LOOSE = R++ -src[LOOSE] = '^' + LOOSEPLAIN + '$' - -var GTLT = R++ -src[GTLT] = '((?:<|>)?=?)' - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -var XRANGEIDENTIFIERLOOSE = R++ -src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' -var XRANGEIDENTIFIER = R++ -src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*' - -var XRANGEPLAIN = R++ -src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:' + src[PRERELEASE] + ')?' + - src[BUILD] + '?' + - ')?)?' - -var XRANGEPLAINLOOSE = R++ -src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[PRERELEASELOOSE] + ')?' + - src[BUILD] + '?' + - ')?)?' - -var XRANGE = R++ -src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$' -var XRANGELOOSE = R++ -src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$' - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -var COERCE = R++ -src[COERCE] = '(?:^|[^\\d])' + - '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])' - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -var LONETILDE = R++ -src[LONETILDE] = '(?:~>?)' - -var TILDETRIM = R++ -src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+' -re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g') -var tildeTrimReplace = '$1~' - -var TILDE = R++ -src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$' -var TILDELOOSE = R++ -src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$' - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -var LONECARET = R++ -src[LONECARET] = '(?:\\^)' - -var CARETTRIM = R++ -src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+' -re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g') -var caretTrimReplace = '$1^' - -var CARET = R++ -src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$' -var CARETLOOSE = R++ -src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$' - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -var COMPARATORLOOSE = R++ -src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$' -var COMPARATOR = R++ -src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$' - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -var COMPARATORTRIM = R++ -src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + - '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')' - -// this one has to use the /g flag -re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g') -var comparatorTrimReplace = '$1$2$3' - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -var HYPHENRANGE = R++ -src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + - '\\s+-\\s+' + - '(' + src[XRANGEPLAIN] + ')' + - '\\s*$' - -var HYPHENRANGELOOSE = R++ -src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s+-\\s+' + - '(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s*$' - -// Star ranges basically just allow anything at all. -var STAR = R++ -src[STAR] = '(<|>)?=?\\s*\\*' - -// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for (var i = 0; i < R; i++) { - debug(i, src[i]) - if (!re[i]) { - re[i] = new RegExp(src[i]) - } -} - -exports.parse = parse -function parse (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (version instanceof SemVer) { - return version - } - - if (typeof version !== 'string') { - return null - } - - if (version.length > MAX_LENGTH) { - return null - } - - var r = options.loose ? re[LOOSE] : re[FULL] - if (!r.test(version)) { - return null - } - - try { - return new SemVer(version, options) - } catch (er) { - return null - } -} - -exports.valid = valid -function valid (version, options) { - var v = parse(version, options) - return v ? v.version : null -} - -exports.clean = clean -function clean (version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null -} - -exports.SemVer = SemVer - -function SemVer (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - if (version instanceof SemVer) { - if (version.loose === options.loose) { - return version - } else { - version = version.version - } - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version) - } - - if (version.length > MAX_LENGTH) { - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') - } - - if (!(this instanceof SemVer)) { - return new SemVer(version, options) - } - - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - - var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]) - - if (!m) { - throw new TypeError('Invalid Version: ' + version) - } - - this.raw = version - - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } - - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num + dataplex_v1.Resource$Projects$Locations$Lakes$Actions = Resource$Projects$Locations$Lakes$Actions; + class Resource$Projects$Locations$Lakes$Content { + constructor(context) { + this.context = context; } - } - return id - }) - } - - this.build = m[5] ? m[5].split('.') : [] - this.format() -} - -SemVer.prototype.format = function () { - this.version = this.major + '.' + this.minor + '.' + this.patch - if (this.prerelease.length) { - this.version += '-' + this.prerelease.join('.') - } - return this.version -} - -SemVer.prototype.toString = function () { - return this.version -} - -SemVer.prototype.compare = function (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return this.compareMain(other) || this.comparePre(other) -} - -SemVer.prototype.compareMain = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) -} - -SemVer.prototype.comparePre = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } - - var i = 0 - do { - var a = this.prerelease[i] - var b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc = function (release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier) - this.inc('pre', identifier) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier) - } - this.inc('pre', identifier) - break - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0) { - this.major++ - } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ - } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ - } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0] - } else { - var i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } + 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (i === -1) { - // didn't increment anything - this.prerelease.push(0) + 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0] - } - } else { - this.prerelease = [identifier, 0] + 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - break - - default: - throw new Error('invalid increment argument: ' + release) - } - this.format() - this.raw = this.version - return this -} - -exports.inc = inc -function inc (version, release, loose, identifier) { - if (typeof (loose) === 'string') { - identifier = loose - loose = undefined - } - - try { - return new SemVer(version, loose).inc(release, identifier).version - } catch (er) { - return null - } -} - -exports.diff = diff -function diff (version1, version2) { - if (eq(version1, version2)) { - return null - } else { - var v1 = parse(version1) - var v2 = parse(version2) - var prefix = '' - if (v1.prerelease.length || v2.prerelease.length) { - prefix = 'pre' - var defaultResult = 'prerelease' } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return prefix + key + dataplex_v1.Resource$Projects$Locations$Lakes$Content = Resource$Projects$Locations$Lakes$Content; + class Resource$Projects$Locations$Lakes$Contentitems { + 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contentitems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contentitems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataplex.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } } - return defaultResult // may be undefined - } -} - -exports.compareIdentifiers = compareIdentifiers - -var numeric = /^[0-9]+$/ -function compareIdentifiers (a, b) { - var anum = numeric.test(a) - var bnum = numeric.test(b) - - if (anum && bnum) { - a = +a - b = +b - } - - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 -} - -exports.rcompareIdentifiers = rcompareIdentifiers -function rcompareIdentifiers (a, b) { - return compareIdentifiers(b, a) -} - -exports.major = major -function major (a, loose) { - return new SemVer(a, loose).major -} - -exports.minor = minor -function minor (a, loose) { - return new SemVer(a, loose).minor -} - -exports.patch = patch -function patch (a, loose) { - return new SemVer(a, loose).patch -} - -exports.compare = compare -function compare (a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)) -} - -exports.compareLoose = compareLoose -function compareLoose (a, b) { - return compare(a, b, true) -} - -exports.rcompare = rcompare -function rcompare (a, b, loose) { - return compare(b, a, loose) -} - -exports.sort = sort -function sort (list, loose) { - return list.sort(function (a, b) { - return exports.compare(a, b, loose) - }) -} - -exports.rsort = rsort -function rsort (list, loose) { - return list.sort(function (a, b) { - return exports.rcompare(a, b, loose) - }) -} - -exports.gt = gt -function gt (a, b, loose) { - return compare(a, b, loose) > 0 -} - -exports.lt = lt -function lt (a, b, loose) { - return compare(a, b, loose) < 0 -} - -exports.eq = eq -function eq (a, b, loose) { - return compare(a, b, loose) === 0 -} - -exports.neq = neq -function neq (a, b, loose) { - return compare(a, b, loose) !== 0 -} - -exports.gte = gte -function gte (a, b, loose) { - return compare(a, b, loose) >= 0 -} - -exports.lte = lte -function lte (a, b, loose) { - return compare(a, b, loose) <= 0 -} - -exports.cmp = cmp -function cmp (a, op, b, loose) { - switch (op) { - case '===': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a === b - - case '!==': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a !== b - - case '': - case '=': - case '==': - return eq(a, b, loose) - - case '!=': - return neq(a, b, loose) - - case '>': - return gt(a, b, loose) - - case '>=': - return gte(a, b, loose) - - case '<': - return lt(a, b, loose) - - case '<=': - return lte(a, b, loose) - - default: - throw new TypeError('Invalid operator: ' + op) - } -} - -exports.Comparator = Comparator -function Comparator (comp, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp - } else { - comp = comp.value - } - } - - if (!(this instanceof Comparator)) { - return new Comparator(comp, options) - } - - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) - - if (this.semver === ANY) { - this.value = '' - } else { - this.value = this.operator + this.semver.version - } - - debug('comp', this) -} - -var ANY = {} -Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR] - var m = comp.match(r) - - if (!m) { - throw new TypeError('Invalid comparator: ' + comp) - } - - this.operator = m[1] - if (this.operator === '=') { - this.operator = '' - } - - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) - } -} - -Comparator.prototype.toString = function () { - return this.value -} - -Comparator.prototype.test = function (version) { - debug('Comparator.test', version, this.options.loose) - - if (this.semver === ANY) { - return true - } - - if (typeof version === 'string') { - version = new SemVer(version, this.options) - } - - return cmp(version, this.operator, this.semver, this.options) -} - -Comparator.prototype.intersects = function (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } - - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - var rangeTmp - - if (this.operator === '') { - rangeTmp = new Range(comp.value, options) - return satisfies(this.value, rangeTmp, options) - } else if (comp.operator === '') { - rangeTmp = new Range(this.value, options) - return satisfies(comp.semver, rangeTmp, options) - } - - var sameDirectionIncreasing = - (this.operator === '>=' || this.operator === '>') && - (comp.operator === '>=' || comp.operator === '>') - var sameDirectionDecreasing = - (this.operator === '<=' || this.operator === '<') && - (comp.operator === '<=' || comp.operator === '<') - var sameSemVer = this.semver.version === comp.semver.version - var differentDirectionsInclusive = - (this.operator === '>=' || this.operator === '<=') && - (comp.operator === '>=' || comp.operator === '<=') - var oppositeDirectionsLessThan = - cmp(this.semver, '<', comp.semver, options) && - ((this.operator === '>=' || this.operator === '>') && - (comp.operator === '<=' || comp.operator === '<')) - var oppositeDirectionsGreaterThan = - cmp(this.semver, '>', comp.semver, options) && - ((this.operator === '<=' || this.operator === '<') && - (comp.operator === '>=' || comp.operator === '>')) - - return sameDirectionIncreasing || sameDirectionDecreasing || - (sameSemVer && differentDirectionsInclusive) || - oppositeDirectionsLessThan || oppositeDirectionsGreaterThan -} - -exports.Range = Range -function Range (range, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (range instanceof Range) { - if (range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease) { - return range - } else { - return new Range(range.raw, options) - } - } - - if (range instanceof Comparator) { - return new Range(range.value, options) - } - - if (!(this instanceof Range)) { - return new Range(range, options) - } - - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease - - // First, split based on boolean or || - this.raw = range - this.set = range.split(/\s*\|\|\s*/).map(function (range) { - return this.parseRange(range.trim()) - }, this).filter(function (c) { - // throw out any that are not relevant for whatever reason - return c.length - }) - - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range) - } - - this.format() -} - -Range.prototype.format = function () { - this.range = this.set.map(function (comps) { - return comps.join(' ').trim() - }).join('||').trim() - return this.range -} - -Range.prototype.toString = function () { - return this.range -} - -Range.prototype.parseRange = function (range) { - var loose = this.options.loose - range = range.trim() - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE] - range = range.replace(hr, hyphenReplace) - debug('hyphen replace', range) - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range, re[COMPARATORTRIM]) - - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[TILDETRIM], tildeTrimReplace) - - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[CARETTRIM], caretTrimReplace) - - // normalize spaces - range = range.split(/\s+/).join(' ') - - // At this point, the range is completely trimmed and - // ready to be split into comparators. - - var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR] - var set = range.split(' ').map(function (comp) { - return parseComparator(comp, this.options) - }, this).join(' ').split(/\s+/) - if (this.options.loose) { - // in loose mode, throw out any that are not valid comparators - set = set.filter(function (comp) { - return !!comp.match(compRe) - }) - } - set = set.map(function (comp) { - return new Comparator(comp, this.options) - }, this) - - return set -} - -Range.prototype.intersects = function (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') - } - - return this.set.some(function (thisComparators) { - return thisComparators.every(function (thisComparator) { - return range.set.some(function (rangeComparators) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options) - }) - }) - }) - }) -} - -// Mostly just for testing and legacy API reasons -exports.toComparators = toComparators -function toComparators (range, options) { - return new Range(range, options).set.map(function (comp) { - return comp.map(function (c) { - return c.value - }).join(' ').trim().split(' ') - }) -} - -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator (comp, options) { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} - -function isX (id) { - return !id || id.toLowerCase() === 'x' || id === '*' -} - -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceTilde(comp, options) - }).join(' ') -} - -function replaceTilde (comp, options) { - var r = options.loose ? re[TILDELOOSE] : re[TILDE] - return comp.replace(r, function (_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0 - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else if (pr) { - debug('replaceTilde pr', pr) - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } else { - // ~1.2.3 == >=1.2.3 <1.3.0 - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - - debug('tilde return', ret) - return ret - }) -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceCaret(comp, options) - }).join(' ') -} - -function replaceCaret (comp, options) { - debug('caret', comp, options) - var r = options.loose ? re[CARETLOOSE] : re[CARET] - return comp.replace(r, function (_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - if (M === '0') { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else { - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + (+M + 1) + '.0.0' - } - } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + (+M + 1) + '.0.0' - } - } - - debug('caret return', ret) - return ret - }) -} - -function replaceXRanges (comp, options) { - debug('replaceXRanges', comp, options) - return comp.split(/\s+/).map(function (comp) { - return replaceXRange(comp, options) - }).join(' ') -} - -function replaceXRange (comp, options) { - comp = comp.trim() - var r = options.loose ? re[XRANGELOOSE] : re[XRANGE] - return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - var xM = isX(M) - var xm = xM || isX(m) - var xp = xm || isX(p) - var anyX = xp - - if (gtlt === '=' && anyX) { - gtlt = '' - } - - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - // >1.2.3 => >= 1.2.4 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 - } - } - - ret = gtlt + M + '.' + m + '.' + p - } else if (xm) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (xp) { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } - - debug('xRange return', ret) - - return ret - }) -} - -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars (comp, options) { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[STAR], '') -} - -// This function is passed to string.replace(re[HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = '>=' + fM + '.0.0' - } else if (isX(fp)) { - from = '>=' + fM + '.' + fm + '.0' - } else { - from = '>=' + from - } - - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = '<' + (+tM + 1) + '.0.0' - } else if (isX(tp)) { - to = '<' + tM + '.' + (+tm + 1) + '.0' - } else if (tpr) { - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr - } else { - to = '<=' + to - } - - return (from + ' ' + to).trim() -} - -// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test = function (version) { - if (!version) { - return false - } - - if (typeof version === 'string') { - version = new SemVer(version, this.options) - } - - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } - } - return false -} - -function testSet (set, version, options) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false - } - } - - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === ANY) { - continue - } - - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true - } - } - } - - // Version has a -pre, but it's not one of the ones we like. - return false - } - - return true -} - -exports.satisfies = satisfies -function satisfies (version, range, options) { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) -} - -exports.maxSatisfying = maxSatisfying -function maxSatisfying (versions, range, options) { - var max = null - var maxSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max -} - -exports.minSatisfying = minSatisfying -function minSatisfying (versions, range, options) { - var min = null - var minSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } - } - }) - return min -} - -exports.minVersion = minVersion -function minVersion (range, loose) { - range = new Range(range, loose) - - var minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } - - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } - - minver = null - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] - - comparators.forEach(function (comparator) { - // Clone to avoid manipulating the comparator's semver object. - var compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!minver || gt(minver, compver)) { - minver = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error('Unexpected operation: ' + comparator.operator) - } - }) - } - - if (minver && range.test(minver)) { - return minver - } - - return null -} - -exports.validRange = validRange -function validRange (range, options) { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null - } -} - -// Determine if version is less than all the versions possible in the range -exports.ltr = ltr -function ltr (version, range, options) { - return outside(version, range, '<', options) -} - -// Determine if version is greater than all the versions possible in the range. -exports.gtr = gtr -function gtr (version, range, options) { - return outside(version, range, '>', options) -} - -exports.outside = outside -function outside (version, range, hilo, options) { - version = new SemVer(version, options) - range = new Range(range, options) - - var gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } - - // If it satisifes the range it is not outside - if (satisfies(version, range, options)) { - return false - } - - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] - - var high = null - var low = null - - comparators.forEach(function (comparator) { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) - - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } - - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } - } - return true -} - -exports.prerelease = prerelease -function prerelease (version, options) { - var parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null -} - -exports.intersects = intersects -function intersects (r1, r2, options) { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2) -} - -exports.coerce = coerce -function coerce (version) { - if (version instanceof SemVer) { - return version - } - - if (typeof version !== 'string') { - return null - } - - var match = version.match(re[COERCE]) - - if (match == null) { - return null - } - - return parse(match[1] + - '.' + (match[2] || '0') + - '.' + (match[3] || '0')) -} - - -/***/ }), -/* 281 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.serviceusage_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 = __webpack_require__(927); -var serviceusage_v1; -(function (serviceusage_v1) { - /** - * Service Usage API - * - * Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. - * - * @example - * const {google} = require('googleapis'); - * const serviceusage = google.serviceusage('v1'); - * - * @namespace serviceusage - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Serviceusage - */ - class Serviceusage { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); - } - } - serviceusage_v1.Serviceusage = Serviceusage; - class Resource$Operations { + dataplex_v1.Resource$Projects$Locations$Lakes$Contentitems = Resource$Projects$Locations$Lakes$Contentitems; + class Resource$Projects$Locations$Lakes$Environments { constructor(context) { this.context = context; + this.sessions = + new Resource$Projects$Locations$Lakes$Environments$Sessions(this.context); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -110005,14 +106796,15 @@ var serviceusage_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -110024,25 +106816,27 @@ var serviceusage_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -110054,66 +106848,63 @@ var serviceusage_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceusage_v1.Resource$Operations = Resource$Operations; - class Resource$Services { - constructor(context) { - this.context = context; - } - batchEnable(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -110121,149 +106912,132 @@ var serviceusage_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://serviceusage.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); - } + } + dataplex_v1.Resource$Projects$Locations$Lakes$Environments = Resource$Projects$Locations$Lakes$Environments; + class Resource$Projects$Locations$Lakes$Environments$Sessions { + constructor(context) { + this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sessions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -110272,78 +107046,22 @@ var serviceusage_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - serviceusage_v1.Resource$Services = Resource$Services; -})(serviceusage_v1 = exports.serviceusage_v1 || (exports.serviceusage_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 282 */, -/* 283 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.videointelligence_v1p2beta1 = 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 = __webpack_require__(927); -var videointelligence_v1p2beta1; -(function (videointelligence_v1p2beta1) { - /** - * Cloud Video Intelligence API - * - * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. - * - * @example - * const {google} = require('googleapis'); - * const videointelligence = google.videointelligence('v1p2beta1'); - * - * @namespace videointelligence - * @type {Function} - * @version v1p2beta1 - * @variation v1p2beta1 - * @param {object=} options Options for Videointelligence - */ - class Videointelligence { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.videos = new Resource$Videos(this.context); - } - } - videointelligence_v1p2beta1.Videointelligence = Videointelligence; - class Resource$Videos { + dataplex_v1.Resource$Projects$Locations$Lakes$Environments$Sessions = Resource$Projects$Locations$Lakes$Environments$Sessions; + class Resource$Projects$Locations$Lakes$Tasks { constructor(context) { this.context = context; + this.jobs = new Resource$Projects$Locations$Lakes$Tasks$Jobs(this.context); } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110354,338 +107072,27 @@ var videointelligence_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tasks').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); - } - } - } - videointelligence_v1p2beta1.Resource$Videos = Resource$Videos; -})(videointelligence_v1p2beta1 = exports.videointelligence_v1p2beta1 || (exports.videointelligence_v1p2beta1 = {})); -//# sourceMappingURL=v1p2beta1.js.map - -/***/ }), -/* 284 */, -/* 285 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(994); -__webpack_require__(784); -__webpack_require__(426); -__webpack_require__(117); -__webpack_require__(794); -__webpack_require__(125); -__webpack_require__(0); -__webpack_require__(143); -__webpack_require__(798); -__webpack_require__(904); -__webpack_require__(592); -__webpack_require__(575); -__webpack_require__(76); -__webpack_require__(65); -__webpack_require__(997); -__webpack_require__(963); -__webpack_require__(954); -__webpack_require__(137); -__webpack_require__(114); -__webpack_require__(705); -__webpack_require__(707); -__webpack_require__(999); -__webpack_require__(928); -__webpack_require__(857); -__webpack_require__(171); -__webpack_require__(54); - - -/***/ }), -/* 286 */ -/***/ (function(__unusedmodule, exports) { - -"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.androidpublisher_v1 = void 0; -var androidpublisher_v1; -(function (androidpublisher_v1) { - /** - * Google Play Developer API - * - * Accesses Android application developers' Google Play accounts. - * - * @example - * const {google} = require('googleapis'); - * const androidpublisher = google.androidpublisher('v1'); - * - * @namespace androidpublisher - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Androidpublisher - */ - class Androidpublisher { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - } - } - androidpublisher_v1.Androidpublisher = Androidpublisher; -})(androidpublisher_v1 = exports.androidpublisher_v1 || (exports.androidpublisher_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 287 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module*/ -var Buffer = __webpack_require__(149).Buffer; -var DataStream = __webpack_require__(50); -var jwa = __webpack_require__(196); -var Stream = __webpack_require__(413); -var toString = __webpack_require__(594); -var util = __webpack_require__(669); -var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; - -function isObject(thing) { - return Object.prototype.toString.call(thing) === '[object Object]'; -} - -function safeJsonParse(thing) { - if (isObject(thing)) - return thing; - try { return JSON.parse(thing); } - catch (e) { return undefined; } -} - -function headerFromJWS(jwsSig) { - var encodedHeader = jwsSig.split('.', 1)[0]; - return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); -} - -function securedInputFromJWS(jwsSig) { - return jwsSig.split('.', 2).join('.'); -} - -function signatureFromJWS(jwsSig) { - return jwsSig.split('.')[2]; -} - -function payloadFromJWS(jwsSig, encoding) { - encoding = encoding || 'utf8'; - var payload = jwsSig.split('.')[1]; - return Buffer.from(payload, 'base64').toString(encoding); -} - -function isValidJws(string) { - return JWS_REGEX.test(string) && !!headerFromJWS(string); -} - -function jwsVerify(jwsSig, algorithm, secretOrKey) { - if (!algorithm) { - var err = new Error("Missing algorithm parameter for jws.verify"); - err.code = "MISSING_ALGORITHM"; - throw err; - } - jwsSig = toString(jwsSig); - var signature = signatureFromJWS(jwsSig); - var securedInput = securedInputFromJWS(jwsSig); - var algo = jwa(algorithm); - return algo.verify(securedInput, signature, secretOrKey); -} - -function jwsDecode(jwsSig, opts) { - opts = opts || {}; - jwsSig = toString(jwsSig); - - if (!isValidJws(jwsSig)) - return null; - - var header = headerFromJWS(jwsSig); - - if (!header) - return null; - - var payload = payloadFromJWS(jwsSig); - if (header.typ === 'JWT' || opts.json) - payload = JSON.parse(payload, opts.encoding); - - return { - header: header, - payload: payload, - signature: signatureFromJWS(jwsSig) - }; -} - -function VerifyStream(opts) { - opts = opts || {}; - var secretOrKey = opts.secret||opts.publicKey||opts.key; - var secretStream = new DataStream(secretOrKey); - this.readable = true; - this.algorithm = opts.algorithm; - this.encoding = opts.encoding; - this.secret = this.publicKey = this.key = secretStream; - this.signature = new DataStream(opts.signature); - this.secret.once('close', function () { - if (!this.signature.writable && this.readable) - this.verify(); - }.bind(this)); - - this.signature.once('close', function () { - if (!this.secret.writable && this.readable) - this.verify(); - }.bind(this)); -} -util.inherits(VerifyStream, Stream); -VerifyStream.prototype.verify = function verify() { - try { - var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); - var obj = jwsDecode(this.signature.buffer, this.encoding); - this.emit('done', valid, obj); - this.emit('data', valid); - this.emit('end'); - this.readable = false; - return valid; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; - -VerifyStream.decode = jwsDecode; -VerifyStream.isValid = isValidJws; -VerifyStream.verify = jwsVerify; - -module.exports = VerifyStream; - - -/***/ }), -/* 288 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.plus_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 = __webpack_require__(927); -var plus_v1; -(function (plus_v1) { - /** - * Google+ API - * - * Builds on top of the Google+ platform. - * - * @example - * const {google} = require('googleapis'); - * const plus = google.plus('v1'); - * - * @namespace plus - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Plus - */ - class Plus { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.activities = new Resource$Activities(this.context); - this.comments = new Resource$Comments(this.context); - this.people = new Resource$People(this.context); - } - } - plus_v1.Plus = Plus; - class Resource$Activities { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/plus/v1/activities/{activityId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['activityId'], - pathParams: ['activityId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110696,25 +107103,25 @@ var plus_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/people/{userId}/activities/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userId', 'collection'], - pathParams: ['collection', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110727,62 +107134,59 @@ var plus_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/activities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['query'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - plus_v1.Resource$Activities = Resource$Activities; - class Resource$Comments { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['commentId'], - pathParams: ['commentId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110793,32 +107197,27 @@ var plus_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/activities/{activityId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['activityId'], - pathParams: ['activityId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - plus_v1.Resource$Comments = Resource$Comments; - class Resource$People { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110829,26 +107228,27 @@ var plus_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/people/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110859,186 +107259,124 @@ var plus_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/people/{userId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'collection'], - pathParams: ['collection', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listByActivity(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/activities/{activityId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['activityId', 'collection'], - pathParams: ['activityId', 'collection'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/people').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['query'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - plus_v1.Resource$People = Resource$People; -})(plus_v1 = exports.plus_v1 || (exports.plus_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 289 */, -/* 290 */, -/* 291 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.deploymentmanager_alpha = 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 = __webpack_require__(927); -var deploymentmanager_alpha; -(function (deploymentmanager_alpha) { - /** - * Google Cloud Deployment Manager Alpha API - * - * The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const deploymentmanager = google.deploymentmanager('alpha'); - * - * @namespace deploymentmanager - * @type {Function} - * @version alpha - * @variation alpha - * @param {object=} options Options for Deploymentmanager - */ - class Deploymentmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.compositeTypes = new Resource$Compositetypes(this.context); - this.deployments = new Resource$Deployments(this.context); - this.manifests = new Resource$Manifests(this.context); - this.operations = new Resource$Operations(this.context); - this.resources = new Resource$Resources(this.context); - this.typeProviders = new Resource$Typeproviders(this.context); - this.types = new Resource$Types(this.context); - } - } - deploymentmanager_alpha.Deploymentmanager = Deploymentmanager; - class Resource$Compositetypes { + dataplex_v1.Resource$Projects$Locations$Lakes$Tasks = Resource$Projects$Locations$Lakes$Tasks; + class Resource$Projects$Locations$Lakes$Tasks$Jobs { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -111054,26 +107392,25 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111086,26 +107423,34 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dataplex_v1.Resource$Projects$Locations$Lakes$Tasks$Jobs = Resource$Projects$Locations$Lakes$Tasks$Jobs; + class Resource$Projects$Locations$Lakes$Zones { + constructor(context) { + this.context = context; + this.actions = new Resource$Projects$Locations$Lakes$Zones$Actions(this.context); + this.assets = new Resource$Projects$Locations$Lakes$Zones$Assets(this.context); + this.entities = new Resource$Projects$Locations$Lakes$Zones$Entities(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111118,26 +107463,25 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111150,26 +107494,25 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111182,64 +107525,57 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_alpha.Resource$Compositetypes = Resource$Compositetypes; - class Resource$Deployments { - constructor(context) { - this.context = context; - } - cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111252,27 +107588,27 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -111283,714 +107619,736 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dataplex_v1.Resource$Projects$Locations$Lakes$Zones = Resource$Projects$Locations$Lakes$Zones; + class Resource$Projects$Locations$Lakes$Zones$Actions { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Actions = Resource$Projects$Locations$Lakes$Zones$Actions; + class Resource$Projects$Locations$Lakes$Zones$Assets { + constructor(context) { + this.context = context; + this.actions = new Resource$Projects$Locations$Lakes$Zones$Assets$Actions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_alpha.Resource$Deployments = Resource$Deployments; - class Resource$Manifests { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'deployment', 'manifest'], - pathParams: ['deployment', 'manifest', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_alpha.Resource$Manifests = Resource$Manifests; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Assets = Resource$Projects$Locations$Lakes$Zones$Assets; + class Resource$Projects$Locations$Lakes$Zones$Assets$Actions { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_alpha.Resource$Operations = Resource$Operations; - class Resource$Resources { + dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Assets$Actions = Resource$Projects$Locations$Lakes$Zones$Assets$Actions; + class Resource$Projects$Locations$Lakes$Zones$Entities { constructor(context) { this.context = context; + this.partitions = + new Resource$Projects$Locations$Lakes$Zones$Entities$Partitions(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'deployment', 'resource'], - pathParams: ['deployment', 'project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_alpha.Resource$Resources = Resource$Resources; - class Resource$Typeproviders { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getType(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'typeProvider', 'type'], - pathParams: ['project', 'type', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Entities = Resource$Projects$Locations$Lakes$Zones$Entities; + class Resource$Projects$Locations$Lakes$Zones$Entities$Partitions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/partitions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listTypes(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/partitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Entities$Partitions = Resource$Projects$Locations$Lakes$Zones$Entities$Partitions; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112003,33 +108361,27 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_alpha.Resource$Typeproviders = Resource$Typeproviders; - class Resource$Types { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112040,27 +108392,27 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'type'], - pathParams: ['project', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112071,27 +108423,27 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'type'], - pathParams: ['project', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112102,125 +108454,32 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'type'], - pathParams: ['project', 'type'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'type'], - pathParams: ['project', 'type'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_alpha.Resource$Types = Resource$Types; -})(deploymentmanager_alpha = exports.deploymentmanager_alpha || (exports.deploymentmanager_alpha = {})); -//# sourceMappingURL=alpha.js.map + dataplex_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(dataplex_v1 = exports.dataplex_v1 || (exports.dataplex_v1 = {})); + /***/ }), -/* 292 */ + +/***/ 1423: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -112238,108 +108497,61 @@ var deploymentmanager_alpha; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.dfareporting_v3_4 = void 0; +exports.admin_directory_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 = __webpack_require__(927); -var dfareporting_v3_4; -(function (dfareporting_v3_4) { +var admin_directory_v1; +(function (admin_directory_v1) { /** - * DCM/DFA Reporting And Trafficking API + * Admin SDK API * - * Manages your DoubleClick Campaign Manager ad campaigns and reports. + * Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain. * * @example + * ```js * const {google} = require('googleapis'); - * const dfareporting = google.dfareporting('v3.4'); - * - * @namespace dfareporting - * @type {Function} - * @version v3.4 - * @variation v3.4 - * @param {object=} options Options for Dfareporting + * const admin = google.admin('directory_v1'); + * ``` */ - class Dfareporting { + class Admin { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); - this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); - this.accountPermissions = new Resource$Accountpermissions(this.context); - this.accounts = new Resource$Accounts(this.context); - this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); - this.ads = new Resource$Ads(this.context); - this.advertiserGroups = new Resource$Advertisergroups(this.context); - this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); - this.advertisers = new Resource$Advertisers(this.context); - this.browsers = new Resource$Browsers(this.context); - this.campaignCreativeAssociations = new Resource$Campaigncreativeassociations(this.context); - this.campaigns = new Resource$Campaigns(this.context); - this.changeLogs = new Resource$Changelogs(this.context); - this.cities = new Resource$Cities(this.context); - this.connectionTypes = new Resource$Connectiontypes(this.context); - this.contentCategories = new Resource$Contentcategories(this.context); - this.conversions = new Resource$Conversions(this.context); - this.countries = new Resource$Countries(this.context); - this.creativeAssets = new Resource$Creativeassets(this.context); - this.creativeFields = new Resource$Creativefields(this.context); - this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); - this.creativeGroups = new Resource$Creativegroups(this.context); - this.creatives = new Resource$Creatives(this.context); - this.customEvents = new Resource$Customevents(this.context); - this.dimensionValues = new Resource$Dimensionvalues(this.context); - this.directorySites = new Resource$Directorysites(this.context); - this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); - this.eventTags = new Resource$Eventtags(this.context); - this.files = new Resource$Files(this.context); - this.floodlightActivities = new Resource$Floodlightactivities(this.context); - this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); - this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); - this.inventoryItems = new Resource$Inventoryitems(this.context); - this.languages = new Resource$Languages(this.context); - this.metros = new Resource$Metros(this.context); - this.mobileApps = new Resource$Mobileapps(this.context); - this.mobileCarriers = new Resource$Mobilecarriers(this.context); - this.operatingSystems = new Resource$Operatingsystems(this.context); - this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); - this.orderDocuments = new Resource$Orderdocuments(this.context); - this.orders = new Resource$Orders(this.context); - this.placementGroups = new Resource$Placementgroups(this.context); - this.placements = new Resource$Placements(this.context); - this.placementStrategies = new Resource$Placementstrategies(this.context); - this.platformTypes = new Resource$Platformtypes(this.context); - this.postalCodes = new Resource$Postalcodes(this.context); - this.projects = new Resource$Projects(this.context); - this.regions = new Resource$Regions(this.context); - this.remarketingLists = new Resource$Remarketinglists(this.context); - this.remarketingListShares = new Resource$Remarketinglistshares(this.context); - this.reports = new Resource$Reports(this.context); - this.sites = new Resource$Sites(this.context); - this.sizes = new Resource$Sizes(this.context); - this.subaccounts = new Resource$Subaccounts(this.context); - this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); - this.targetingTemplates = new Resource$Targetingtemplates(this.context); - this.userProfiles = new Resource$Userprofiles(this.context); - this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); - this.userRolePermissions = new Resource$Userrolepermissions(this.context); - this.userRoles = new Resource$Userroles(this.context); - this.videoFormats = new Resource$Videoformats(this.context); + this.asps = new Resource$Asps(this.context); + this.channels = new Resource$Channels(this.context); + this.chromeosdevices = new Resource$Chromeosdevices(this.context); + this.customer = new Resource$Customer(this.context); + this.customers = new Resource$Customers(this.context); + this.domainAliases = new Resource$Domainaliases(this.context); + this.domains = new Resource$Domains(this.context); + this.groups = new Resource$Groups(this.context); + this.members = new Resource$Members(this.context); + this.mobiledevices = new Resource$Mobiledevices(this.context); + this.orgunits = new Resource$Orgunits(this.context); + this.privileges = new Resource$Privileges(this.context); + this.resources = new Resource$Resources(this.context); + this.roleAssignments = new Resource$Roleassignments(this.context); + this.roles = new Resource$Roles(this.context); + this.schemas = new Resource$Schemas(this.context); + this.tokens = new Resource$Tokens(this.context); + this.twoStepVerification = new Resource$Twostepverification(this.context); + this.users = new Resource$Users(this.context); + this.verificationCodes = new Resource$Verificationcodes(this.context); } } - dfareporting_v3_4.Dfareporting = Dfareporting; - class Resource$Accountactiveadsummaries { + admin_directory_v1.Admin = Admin; + class Resource$Asps { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112350,34 +108562,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'summaryAccountId'], - pathParams: ['profileId', 'summaryAccountId'], + requiredParams: ['userKey', 'codeId'], + pathParams: ['codeId', 'userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; - class Resource$Accountpermissiongroups { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112388,28 +108592,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['userKey', 'codeId'], + pathParams: ['codeId', 'userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112420,32 +108622,67 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; - class Resource$Accountpermissions { + admin_directory_v1.Resource$Asps = Resource$Asps; + class Resource$Channels { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_directory_v1.Resource$Channels = Resource$Channels; + class Resource$Chromeosdevices { + constructor(context) { + this.context = context; + } + action(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112458,26 +108695,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112490,33 +108727,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Accountpermissions = Resource$Accountpermissions; - class Resource$Accounts { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112527,27 +108759,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customerId}/devices/chromeos').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + moveDevicesToOu(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112558,26 +108791,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112588,26 +108823,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112618,31 +108855,47 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Accounts = Resource$Accounts; - class Resource$Accountuserprofiles { + admin_directory_v1.Resource$Chromeosdevices = Resource$Chromeosdevices; + class Resource$Customer { constructor(context) { this.context = context; + this.devices = new Resource$Customer$Devices(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + admin_directory_v1.Resource$Customer = Resource$Customer; + class Resource$Customer$Devices { + constructor(context) { + this.context = context; + this.chromeos = new Resource$Customer$Devices$Chromeos(this.context); + } + } + admin_directory_v1.Resource$Customer$Devices = Resource$Customer$Devices; + class Resource$Customer$Devices$Chromeos { + constructor(context) { + this.context = context; + this.commands = new Resource$Customer$Devices$Chromeos$Commands(this.context); + } + issueCommand(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112655,26 +108908,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + admin_directory_v1.Resource$Customer$Devices$Chromeos = Resource$Customer$Devices$Chromeos; + class Resource$Customer$Devices$Chromeos$Commands { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112687,28 +108946,34 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'deviceId', 'commandId'], + pathParams: ['commandId', 'customerId', 'deviceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Customer$Devices$Chromeos$Commands = Resource$Customer$Devices$Chromeos$Commands; + class Resource$Customers { + constructor(context) { + this.context = context; + this.chrome = new Resource$Customers$Chrome(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112719,28 +108984,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerKey'], + pathParams: ['customerKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112751,28 +109014,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customerKey'], + pathParams: ['customerKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112783,93 +109044,107 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerKey'], + pathParams: ['customerKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Accountuserprofiles = Resource$Accountuserprofiles; - class Resource$Ads { + admin_directory_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Chrome { constructor(context) { this.context = context; + this.printers = new Resource$Customers$Chrome$Printers(this.context); + this.printServers = new Resource$Customers$Chrome$Printservers(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + admin_directory_v1.Resource$Customers$Chrome = Resource$Customers$Chrome; + class Resource$Customers$Chrome$Printers { + constructor(context) { + this.context = context; + } + batchCreatePrinters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchDeletePrinters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112880,26 +109155,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112910,26 +109186,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112940,31 +109217,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Ads = Resource$Ads; - class Resource$Advertisergroups { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112977,58 +109248,58 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listPrinterModels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/{+parent}/chrome/printers:listPrinterModels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113041,90 +109312,97 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + admin_directory_v1.Resource$Customers$Chrome$Printers = Resource$Customers$Chrome$Printers; + class Resource$Customers$Chrome$Printservers { + constructor(context) { + this.context = context; + } + batchCreatePrintServers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + batchDeletePrintServers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113137,32 +109415,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Advertisergroups = Resource$Advertisergroups; - class Resource$Advertiserlandingpages { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113175,26 +109446,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113207,23 +109477,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -113239,23 +109508,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printServers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -113271,26 +109539,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + admin_directory_v1.Resource$Customers$Chrome$Printservers = Resource$Customers$Chrome$Printservers; + class Resource$Domainaliases { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113303,33 +109576,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'domainAliasName'], + pathParams: ['customer', 'domainAliasName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; - class Resource$Advertisers { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113340,23 +109608,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customer', 'domainAliasName'], + pathParams: ['customer', 'domainAliasName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -113372,27 +109640,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113403,28 +109671,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Domainaliases = Resource$Domainaliases; + class Resource$Domains { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113435,28 +109707,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/admin/directory/v1/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customer', 'domainName'], + pathParams: ['customer', 'domainName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113467,32 +109738,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/admin/directory/v1/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'domainName'], + pathParams: ['customer', 'domainName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Advertisers = Resource$Advertisers; - class Resource$Browsers { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -113504,33 +109769,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Browsers = Resource$Browsers; - class Resource$Campaigncreativeassociations { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113541,28 +109799,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Domains = Resource$Domains; + class Resource$Groups { + constructor(context) { + this.context = context; + this.aliases = new Resource$Groups$Aliases(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113573,31 +109836,24 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; - class Resource$Campaigns { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113610,23 +109866,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -113641,22 +109896,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -113671,22 +109926,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -113701,22 +109956,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -113731,32 +109986,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Campaigns = Resource$Campaigns; - class Resource$Changelogs { + admin_directory_v1.Resource$Groups = Resource$Groups; + class Resource$Groups$Aliases { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113767,27 +110023,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['groupKey', 'alias'], + pathParams: ['alias', 'groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113798,32 +110054,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Changelogs = Resource$Changelogs; - class Resource$Cities { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113834,33 +110085,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Cities = Resource$Cities; - class Resource$Connectiontypes { + admin_directory_v1.Resource$Groups$Aliases = Resource$Groups$Aliases; + class Resource$Members { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113871,28 +110121,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -113903,64 +110152,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dfareporting_v3_4.Resource$Connectiontypes = Resource$Connectiontypes; - class Resource$Contentcategories { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + hasMember(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -113973,28 +110184,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114005,28 +110215,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114037,28 +110245,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['groupKey'], + pathParams: ['groupKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114069,28 +110275,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114101,32 +110306,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Contentcategories = Resource$Contentcategories; - class Resource$Conversions { + admin_directory_v1.Resource$Members = Resource$Members; + class Resource$Mobiledevices { constructor(context) { this.context = context; } - batchinsert(paramsOrCallback, optionsOrCallback, callback) { + action(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114139,26 +110344,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchupdate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114171,33 +110376,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Conversions = Resource$Conversions; - class Resource$Countries { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114208,27 +110408,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114239,33 +110440,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/mobile').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Countries = Resource$Countries; - class Resource$Creativeassets { + admin_directory_v1.Resource$Mobiledevices = Resource$Mobiledevices; + class Resource$Orgunits { constructor(context) { this.context = context; } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114276,36 +110477,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + - '/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Creativeassets = Resource$Creativeassets; - class Resource$Creativefields { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114316,28 +110508,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114348,28 +110539,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114380,28 +110569,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114412,28 +110599,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114444,28 +110630,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Orgunits = Resource$Orgunits; + class Resource$Privileges { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114476,28 +110667,37 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/admin/directory/v1/customer/{customer}/roles/ALL/privileges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Creativefields = Resource$Creativefields; - class Resource$Creativefieldvalues { + admin_directory_v1.Resource$Privileges = Resource$Privileges; + class Resource$Resources { + constructor(context) { + this.context = context; + this.buildings = new Resource$Resources$Buildings(this.context); + this.calendars = new Resource$Resources$Calendars(this.context); + this.features = new Resource$Resources$Features(this.context); + } + } + admin_directory_v1.Resource$Resources = Resource$Resources; + class Resource$Resources$Buildings { constructor(context) { this.context = context; } @@ -114514,23 +110714,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -114546,23 +110746,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -114578,23 +110778,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -114610,23 +110810,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -114642,23 +110842,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -114674,32 +110874,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Creativefieldvalues = Resource$Creativefieldvalues; - class Resource$Creativegroups { + admin_directory_v1.Resource$Resources$Buildings = Resource$Resources$Buildings; + class Resource$Resources$Calendars { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114712,26 +110912,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114744,26 +110944,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114776,26 +110976,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114808,26 +111008,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -114840,33 +111040,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Creativegroups = Resource$Creativegroups; - class Resource$Creatives { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114877,57 +111072,34 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + admin_directory_v1.Resource$Resources$Calendars = Resource$Resources$Calendars; + class Resource$Resources$Features { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114938,26 +111110,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114968,26 +111142,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -114998,31 +111174,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Creatives = Resource$Creatives; - class Resource$Customevents { - constructor(context) { - this.context = context; - } - batchinsert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115035,32 +111206,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/customEvents/batchinsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Customevents = Resource$Customevents; - class Resource$Dimensionvalues { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115073,32 +111238,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Dimensionvalues = Resource$Dimensionvalues; - class Resource$Directorysites { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + rename(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115111,26 +111270,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customer', 'oldName'], + pathParams: ['customer', 'oldName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115143,26 +111302,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + admin_directory_v1.Resource$Resources$Features = Resource$Resources$Features; + class Resource$Roleassignments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115175,32 +111340,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'roleAssignmentId'], + pathParams: ['customer', 'roleAssignmentId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Directorysites = Resource$Directorysites; - class Resource$Dynamictargetingkeys { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115213,23 +111372,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'objectId', 'name', 'objectType'], - pathParams: ['objectId', 'profileId'], + requiredParams: ['customer', 'roleAssignmentId'], + pathParams: ['customer', 'roleAssignmentId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -115245,23 +111404,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -115277,28 +111436,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; - class Resource$Eventtags { + admin_directory_v1.Resource$Roleassignments = Resource$Roleassignments; + class Resource$Roles { constructor(context) { this.context = context; } @@ -115314,23 +111473,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -115345,23 +111503,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -115376,22 +111533,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -115406,22 +111563,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -115436,22 +111593,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -115466,31 +111623,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Eventtags = Resource$Eventtags; - class Resource$Files { + admin_directory_v1.Resource$Roles = Resource$Roles; + class Resource$Schemas { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -115502,25 +111659,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['reportId', 'fileId'], - pathParams: ['fileId', 'reportId'], + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -115532,33 +111690,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Files = Resource$Files; - class Resource$Floodlightactivities { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115569,28 +111721,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatetag(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115601,28 +111751,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115633,28 +111781,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115665,28 +111812,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Schemas = Resource$Schemas; + class Resource$Tokens { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115697,28 +111849,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey', 'clientId'], + pathParams: ['clientId', 'userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115729,28 +111879,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['userKey', 'clientId'], + pathParams: ['clientId', 'userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115761,32 +111909,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Floodlightactivities = Resource$Floodlightactivities; - class Resource$Floodlightactivitygroups { + admin_directory_v1.Resource$Tokens = Resource$Tokens; + class Resource$Twostepverification { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + turnOff(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115799,28 +111946,35 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/users/{userKey}/twoStepVerification/turnOff').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Twostepverification = Resource$Twostepverification; + class Resource$Users { + constructor(context) { + this.context = context; + this.aliases = new Resource$Users$Aliases(this.context); + this.photos = new Resource$Users$Photos(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115831,28 +111985,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115863,28 +112015,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115895,28 +112045,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/admin/directory/v1/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115927,34 +112075,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/directory/v1/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; - class Resource$Floodlightconfigurations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + makeAdmin(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115965,28 +112105,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/makeAdmin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115997,28 +112135,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + signOut(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116029,28 +112165,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/signOut').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116061,34 +112195,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; - class Resource$Inventoryitems { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116099,28 +112225,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116131,33 +112255,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Inventoryitems = Resource$Inventoryitems; - class Resource$Languages { + admin_directory_v1.Resource$Users = Resource$Users; + class Resource$Users$Aliases { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116168,32 +112292,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey', 'alias'], + pathParams: ['alias', 'userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Languages = Resource$Languages; - class Resource$Metros { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116204,32 +112323,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Metros = Resource$Metros; - class Resource$Mobileapps { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116240,27 +112354,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116271,31 +112385,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Mobileapps = Resource$Mobileapps; - class Resource$Mobilecarriers { + admin_directory_v1.Resource$Users$Aliases = Resource$Users$Aliases; + class Resource$Users$Photos { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116308,28 +112422,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116340,32 +112452,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Mobilecarriers = Resource$Mobilecarriers; - class Resource$Operatingsystems { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116378,26 +112483,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116410,32 +112514,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Operatingsystems = Resource$Operatingsystems; - class Resource$Operatingsystemversions { + admin_directory_v1.Resource$Users$Photos = Resource$Users$Photos; + class Resource$Verificationcodes { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116448,26 +112551,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/users/{userKey}/verificationCodes/generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + invalidate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116480,32 +112583,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/admin/directory/v1/users/{userKey}/verificationCodes/invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; - class Resource$Orderdocuments { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116518,28 +112615,88 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/directory/v1/users/{userKey}/verificationCodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['userKey'], + pathParams: ['userKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_directory_v1.Resource$Verificationcodes = Resource$Verificationcodes; +})(admin_directory_v1 = exports.admin_directory_v1 || (exports.admin_directory_v1 = {})); + + +/***/ }), + +/***/ 1426: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.remotebuildexecution_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 = __webpack_require__(927); +var remotebuildexecution_v1; +(function (remotebuildexecution_v1) { + /** + * Remote Build Execution API + * + * Supplies a Remote Execution API service for tools such as bazel. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const remotebuildexecution = google.remotebuildexecution('v1'); + * ``` + */ + class Remotebuildexecution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + remotebuildexecution_v1.Remotebuildexecution = Remotebuildexecution; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116550,63 +112707,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Orderdocuments = Resource$Orderdocuments; - class Resource$Orders { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -116618,261 +112737,32 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dfareporting_v3_4.Resource$Orders = Resource$Orders; - class Resource$Placementgroups { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Placementgroups = Resource$Placementgroups; - class Resource$Placements { + remotebuildexecution_v1.Resource$Media = Resource$Media; + class Resource$Operations { constructor(context) { this.context = context; } - generatetags(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116885,121 +112775,24 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Placements = Resource$Placements; - class Resource$Placementstrategies { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -117013,290 +112806,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dfareporting_v3_4.Resource$Placementstrategies = Resource$Placementstrategies; - class Resource$Platformtypes { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dfareporting_v3_4.Resource$Platformtypes = Resource$Platformtypes; - class Resource$Postalcodes { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'code'], - pathParams: ['code', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -117311,297 +112836,34 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Postalcodes = Resource$Postalcodes; + remotebuildexecution_v1.Resource$Operations = Resource$Operations; class Resource$Projects { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dfareporting_v3_4.Resource$Projects = Resource$Projects; - class Resource$Regions { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dfareporting_v3_4.Resource$Regions = Resource$Regions; - class Resource$Remarketinglists { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.operations = new Resource$Projects$Operations(this.context); } } - dfareporting_v3_4.Resource$Remarketinglists = Resource$Remarketinglists; - class Resource$Remarketinglistshares { + remotebuildexecution_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { constructor(context) { this.context = context; } @@ -117618,649 +112880,2402 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId', 'remarketingListId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Remarketinglistshares = Resource$Remarketinglistshares; - class Resource$Reports { - constructor(context) { - this.context = context; - this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); - this.files = new Resource$Reports$Files(this.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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - run(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + remotebuildexecution_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(remotebuildexecution_v1 = exports.remotebuildexecution_v1 || (exports.remotebuildexecution_v1 = {})); + + +/***/ }), + +/***/ 1431: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of Abstract Syntax Notation Number One. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + * + * An API for storing data using the Abstract Syntax Notation Number One + * format using DER (Distinguished Encoding Rules) encoding. This encoding is + * commonly used to store data for PKI, i.e. X.509 Certificates, and this + * implementation exists for that purpose. + * + * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract + * syntax of information without restricting the way the information is encoded + * for transmission. It provides a standard that allows for open systems + * communication. ASN.1 defines the syntax of information data and a number of + * simple data types as well as a notation for describing them and specifying + * values for them. + * + * The RSA algorithm creates public and private keys that are often stored in + * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This + * class provides the most basic functionality required to store and load DSA + * keys that are encoded according to ASN.1. + * + * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules) + * and DER (Distinguished Encoding Rules). DER is just a subset of BER that + * has stricter requirements for how data must be encoded. + * + * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type) + * and a byte array for the value of this ASN1 structure which may be data or a + * list of ASN.1 structures. + * + * Each ASN.1 structure using BER is (Tag-Length-Value): + * + * | byte 0 | bytes X | bytes Y | + * |--------|---------|---------- + * | tag | length | value | + * + * ASN.1 allows for tags to be of "High-tag-number form" which allows a tag to + * be two or more octets, but that is not supported by this class. A tag is + * only 1 byte. Bits 1-5 give the tag number (ie the data type within a + * particular 'class'), 6 indicates whether or not the ASN.1 value is + * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If + * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set, + * then the class is APPLICATION. If only bit 8 is set, then the class is + * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE. + * The tag numbers for the data types for the class UNIVERSAL are listed below: + * + * UNIVERSAL 0 Reserved for use by the encoding rules + * UNIVERSAL 1 Boolean type + * UNIVERSAL 2 Integer type + * UNIVERSAL 3 Bitstring type + * UNIVERSAL 4 Octetstring type + * UNIVERSAL 5 Null type + * UNIVERSAL 6 Object identifier type + * UNIVERSAL 7 Object descriptor type + * UNIVERSAL 8 External type and Instance-of type + * UNIVERSAL 9 Real type + * UNIVERSAL 10 Enumerated type + * UNIVERSAL 11 Embedded-pdv type + * UNIVERSAL 12 UTF8String type + * UNIVERSAL 13 Relative object identifier type + * UNIVERSAL 14-15 Reserved for future editions + * UNIVERSAL 16 Sequence and Sequence-of types + * UNIVERSAL 17 Set and Set-of types + * UNIVERSAL 18-22, 25-30 Character string types + * UNIVERSAL 23-24 Time types + * + * The length of an ASN.1 structure is specified after the tag identifier. + * There is a definite form and an indefinite form. The indefinite form may + * be used if the encoding is constructed and not all immediately available. + * The indefinite form is encoded using a length byte with only the 8th bit + * set. The end of the constructed object is marked using end-of-contents + * octets (two zero bytes). + * + * The definite form looks like this: + * + * The length may take up 1 or more bytes, it depends on the length of the + * value of the ASN.1 structure. DER encoding requires that if the ASN.1 + * structure has a value that has a length greater than 127, more than 1 byte + * will be used to store its length, otherwise just one byte will be used. + * This is strict. + * + * In the case that the length of the ASN.1 value is less than 127, 1 octet + * (byte) is used to store the "short form" length. The 8th bit has a value of + * 0 indicating the length is "short form" and not "long form" and bits 7-1 + * give the length of the data. (The 8th bit is the left-most, most significant + * bit: also known as big endian or network format). + * + * In the case that the length of the ASN.1 value is greater than 127, 2 to + * 127 octets (bytes) are used to store the "long form" length. The first + * byte's 8th bit is set to 1 to indicate the length is "long form." Bits 7-1 + * give the number of additional octets. All following octets are in base 256 + * with the most significant digit first (typical big-endian binary unsigned + * integer storage). So, for instance, if the length of a value was 257, the + * first byte would be set to: + * + * 10000010 = 130 = 0x82. + * + * This indicates there are 2 octets (base 256) for the length. The second and + * third bytes (the octets just mentioned) would store the length in base 256: + * + * octet 2: 00000001 = 1 * 256^1 = 256 + * octet 3: 00000001 = 1 * 256^0 = 1 + * total = 257 + * + * The algorithm for converting a js integer value of 257 to base-256 is: + * + * var value = 257; + * var bytes = []; + * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first + * bytes[1] = value & 0xFF; // least significant byte last + * + * On the ASN.1 UNIVERSAL Object Identifier (OID) type: + * + * An OID can be written like: "value1.value2.value3...valueN" + * + * The DER encoding rules: + * + * The first byte has the value 40 * value1 + value2. + * The following bytes, if any, encode the remaining values. Each value is + * encoded in base 128, most significant digit first (big endian), with as + * few digits as possible, and the most significant bit of each byte set + * to 1 except the last in each value's encoding. For example: Given the + * OID "1.2.840.113549", its DER encoding is (remember each byte except the + * last one in each encoding is OR'd with 0x80): + * + * byte 1: 40 * 1 + 2 = 42 = 0x2A. + * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648 + * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D + * + * The final value is: 0x2A864886F70D. + * The full OID (including ASN.1 tag and length of 6 bytes) is: + * 0x06062A864886F70D + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); +__webpack_require__(1988); + +/* ASN.1 API */ +var asn1 = module.exports = forge.asn1 = forge.asn1 || {}; + +/** + * ASN.1 classes. + */ +asn1.Class = { + UNIVERSAL: 0x00, + APPLICATION: 0x40, + CONTEXT_SPECIFIC: 0x80, + PRIVATE: 0xC0 +}; + +/** + * ASN.1 types. Not all types are supported by this implementation, only + * those necessary to implement a simple PKI are implemented. + */ +asn1.Type = { + NONE: 0, + BOOLEAN: 1, + INTEGER: 2, + BITSTRING: 3, + OCTETSTRING: 4, + NULL: 5, + OID: 6, + ODESC: 7, + EXTERNAL: 8, + REAL: 9, + ENUMERATED: 10, + EMBEDDED: 11, + UTF8: 12, + ROID: 13, + SEQUENCE: 16, + SET: 17, + PRINTABLESTRING: 19, + IA5STRING: 22, + UTCTIME: 23, + GENERALIZEDTIME: 24, + BMPSTRING: 30 +}; + +/** + * Creates a new asn1 object. + * + * @param tagClass the tag class for the object. + * @param type the data type (tag number) for the object. + * @param constructed true if the asn1 object is in constructed form. + * @param value the value for the object, if it is not constructed. + * @param [options] the options to use: + * [bitStringContents] the plain BIT STRING content including padding + * byte. + * + * @return the asn1 object. + */ +asn1.create = function(tagClass, type, constructed, value, options) { + /* An asn1 object has a tagClass, a type, a constructed flag, and a + value. The value's type depends on the constructed flag. If + constructed, it will contain a list of other asn1 objects. If not, + it will contain the ASN.1 value as an array of bytes formatted + according to the ASN.1 data type. */ + + // remove undefined values + if(forge.util.isArray(value)) { + var tmp = []; + for(var i = 0; i < value.length; ++i) { + if(value[i] !== undefined) { + tmp.push(value[i]); + } } - dfareporting_v3_4.Resource$Reports = Resource$Reports; - class Resource$Reports$Compatiblefields { - constructor(context) { - this.context = context; - } - query(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + value = tmp; + } + + var obj = { + tagClass: tagClass, + type: type, + constructed: constructed, + composed: constructed || forge.util.isArray(value), + value: value + }; + if(options && 'bitStringContents' in options) { + // TODO: copy byte buffer if it's a buffer not a string + obj.bitStringContents = options.bitStringContents; + // TODO: add readonly flag to avoid this overhead + // save copy to detect changes + obj.original = asn1.copy(obj); + } + return obj; +}; + +/** + * Copies an asn1 object. + * + * @param obj the asn1 object. + * @param [options] copy options: + * [excludeBitStringContents] true to not copy bitStringContents + * + * @return the a copy of the asn1 object. + */ +asn1.copy = function(obj, options) { + var copy; + + if(forge.util.isArray(obj)) { + copy = []; + for(var i = 0; i < obj.length; ++i) { + copy.push(asn1.copy(obj[i], options)); } - dfareporting_v3_4.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; - class Resource$Reports$Files { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'reportId', 'fileId'], - pathParams: ['fileId', 'profileId', 'reportId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + return copy; + } + + if(typeof obj === 'string') { + // TODO: copy byte buffer if it's a buffer not a string + return obj; + } + + copy = { + tagClass: obj.tagClass, + type: obj.type, + constructed: obj.constructed, + composed: obj.composed, + value: asn1.copy(obj.value, options) + }; + if(options && !options.excludeBitStringContents) { + // TODO: copy byte buffer if it's a buffer not a string + copy.bitStringContents = obj.bitStringContents; + } + return copy; +}; + +/** + * Compares asn1 objects for equality. + * + * Note this function does not run in constant time. + * + * @param obj1 the first asn1 object. + * @param obj2 the second asn1 object. + * @param [options] compare options: + * [includeBitStringContents] true to compare bitStringContents + * + * @return true if the asn1 objects are equal. + */ +asn1.equals = function(obj1, obj2, options) { + if(forge.util.isArray(obj1)) { + if(!forge.util.isArray(obj2)) { + return false; } - dfareporting_v3_4.Resource$Reports$Files = Resource$Reports$Files; - class Resource$Sites { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + if(obj1.length !== obj2.length) { + return false; } - dfareporting_v3_4.Resource$Sites = Resource$Sites; - class Resource$Sizes { - constructor(context) { - this.context = context; + for(var i = 0; i < obj1.length; ++i) { + if(!asn1.equals(obj1[i], obj2[i])) { + return false; + } + } + return true; + } + + if(typeof obj1 !== typeof obj2) { + return false; + } + + if(typeof obj1 === 'string') { + return obj1 === obj2; + } + + var equal = obj1.tagClass === obj2.tagClass && + obj1.type === obj2.type && + obj1.constructed === obj2.constructed && + obj1.composed === obj2.composed && + asn1.equals(obj1.value, obj2.value); + if(options && options.includeBitStringContents) { + equal = equal && (obj1.bitStringContents === obj2.bitStringContents); + } + + return equal; +}; + +/** + * Gets the length of a BER-encoded ASN.1 value. + * + * In case the length is not specified, undefined is returned. + * + * @param b the BER-encoded ASN.1 byte buffer, starting with the first + * length byte. + * + * @return the length of the BER-encoded ASN.1 value or undefined. + */ +asn1.getBerValueLength = function(b) { + // TODO: move this function and related DER/BER functions to a der.js + // file; better abstract ASN.1 away from der/ber. + var b2 = b.getByte(); + if(b2 === 0x80) { + return undefined; + } + + // see if the length is "short form" or "long form" (bit 8 set) + var length; + var longForm = b2 & 0x80; + if(!longForm) { + // length is just the first byte + length = b2; + } else { + // the number of bytes the length is specified in bits 7 through 1 + // and each length byte is in big-endian base-256 + length = b.getInt((b2 & 0x7F) << 3); + } + return length; +}; + +/** + * Check if the byte buffer has enough bytes. Throws an Error if not. + * + * @param bytes the byte buffer to parse from. + * @param remaining the bytes remaining in the current parsing state. + * @param n the number of bytes the buffer must have. + */ +function _checkBufferLength(bytes, remaining, n) { + if(n > remaining) { + var error = new Error('Too few bytes to parse DER.'); + error.available = bytes.length(); + error.remaining = remaining; + error.requested = n; + throw error; + } +} + +/** + * Gets the length of a BER-encoded ASN.1 value. + * + * In case the length is not specified, undefined is returned. + * + * @param bytes the byte buffer to parse from. + * @param remaining the bytes remaining in the current parsing state. + * + * @return the length of the BER-encoded ASN.1 value or undefined. + */ +var _getValueLength = function(bytes, remaining) { + // TODO: move this function and related DER/BER functions to a der.js + // file; better abstract ASN.1 away from der/ber. + // fromDer already checked that this byte exists + var b2 = bytes.getByte(); + remaining--; + if(b2 === 0x80) { + return undefined; + } + + // see if the length is "short form" or "long form" (bit 8 set) + var length; + var longForm = b2 & 0x80; + if(!longForm) { + // length is just the first byte + length = b2; + } else { + // the number of bytes the length is specified in bits 7 through 1 + // and each length byte is in big-endian base-256 + var longFormBytes = b2 & 0x7F; + _checkBufferLength(bytes, remaining, longFormBytes); + length = bytes.getInt(longFormBytes << 3); + } + // FIXME: this will only happen for 32 bit getInt with high bit set + if(length < 0) { + throw new Error('Negative length: ' + length); + } + return length; +}; + +/** + * Parses an asn1 object from a byte buffer in DER format. + * + * @param bytes the byte buffer to parse from. + * @param [strict] true to be strict when checking value lengths, false to + * allow truncated values (default: true). + * @param [options] object with options or boolean strict flag + * [strict] true to be strict when checking value lengths, false to + * allow truncated values (default: true). + * [parseAllBytes] true to ensure all bytes are parsed + * (default: true) + * [decodeBitStrings] true to attempt to decode the content of + * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that + * without schema support to understand the data context this can + * erroneously decode values that happen to be valid ASN.1. This + * flag will be deprecated or removed as soon as schema support is + * available. (default: true) + * + * @throws Will throw an error for various malformed input conditions. + * + * @return the parsed asn1 object. + */ +asn1.fromDer = function(bytes, options) { + if(options === undefined) { + options = { + strict: true, + parseAllBytes: true, + decodeBitStrings: true + }; + } + if(typeof options === 'boolean') { + options = { + strict: options, + parseAllBytes: true, + decodeBitStrings: true + }; + } + if(!('strict' in options)) { + options.strict = true; + } + if(!('parseAllBytes' in options)) { + options.parseAllBytes = true; + } + if(!('decodeBitStrings' in options)) { + options.decodeBitStrings = true; + } + + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + var byteCount = bytes.length(); + var value = _fromDer(bytes, bytes.length(), 0, options); + if(options.parseAllBytes && bytes.length() !== 0) { + var error = new Error('Unparsed DER bytes remain after ASN.1 parsing.'); + error.byteCount = byteCount; + error.remaining = bytes.length(); + throw error; + } + return value; +}; + +/** + * Internal function to parse an asn1 object from a byte buffer in DER format. + * + * @param bytes the byte buffer to parse from. + * @param remaining the number of bytes remaining for this chunk. + * @param depth the current parsing depth. + * @param options object with same options as fromDer(). + * + * @return the parsed asn1 object. + */ +function _fromDer(bytes, remaining, depth, options) { + // temporary storage for consumption calculations + var start; + + // minimum length for ASN.1 DER structure is 2 + _checkBufferLength(bytes, remaining, 2); + + // get the first byte + var b1 = bytes.getByte(); + // consumed one byte + remaining--; + + // get the tag class + var tagClass = (b1 & 0xC0); + + // get the type (bits 1-5) + var type = b1 & 0x1F; + + // get the variable value length and adjust remaining bytes + start = bytes.length(); + var length = _getValueLength(bytes, remaining); + remaining -= start - bytes.length(); + + // ensure there are enough bytes to get the value + if(length !== undefined && length > remaining) { + if(options.strict) { + var error = new Error('Too few bytes to read ASN.1 value.'); + error.available = bytes.length(); + error.remaining = remaining; + error.requested = length; + throw error; + } + // Note: be lenient with truncated values and use remaining state bytes + length = remaining; + } + + // value storage + var value; + // possible BIT STRING contents storage + var bitStringContents; + + // constructed flag is bit 6 (32 = 0x20) of the first byte + var constructed = ((b1 & 0x20) === 0x20); + if(constructed) { + // parse child asn1 objects from the value + value = []; + if(length === undefined) { + // asn1 object of indefinite length, read until end tag + for(;;) { + _checkBufferLength(bytes, remaining, 2); + if(bytes.bytes(2) === String.fromCharCode(0, 0)) { + bytes.getBytes(2); + remaining -= 2; + break; } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + start = bytes.length(); + value.push(_fromDer(bytes, remaining, depth + 1, options)); + remaining -= start - bytes.length(); + } + } else { + // parsing asn1 object of definite length + while(length > 0) { + start = bytes.length(); + value.push(_fromDer(bytes, length, depth + 1, options)); + remaining -= start - bytes.length(); + length -= start - bytes.length(); + } + } + } + + // if a BIT STRING, save the contents including padding + if(value === undefined && tagClass === asn1.Class.UNIVERSAL && + type === asn1.Type.BITSTRING) { + bitStringContents = bytes.bytes(length); + } + + // determine if a non-constructed value should be decoded as a composed + // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs) + // can be used this way. + if(value === undefined && options.decodeBitStrings && + tagClass === asn1.Class.UNIVERSAL && + // FIXME: OCTET STRINGs not yet supported here + // .. other parts of forge expect to decode OCTET STRINGs manually + (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) && + length > 1) { + // save read position + var savedRead = bytes.read; + var savedRemaining = remaining; + var unused = 0; + if(type === asn1.Type.BITSTRING) { + /* The first octet gives the number of bits by which the length of the + bit string is less than the next multiple of eight (this is called + the "number of unused bits"). + + The second and following octets give the value of the bit string + converted to an octet string. */ + _checkBufferLength(bytes, remaining, 1); + unused = bytes.getByte(); + remaining--; + } + // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs + if(unused === 0) { + try { + // attempt to parse child asn1 object from the value + // (stored in array to signal composed value) + start = bytes.length(); + var subOptions = { + // enforce strict mode to avoid parsing ASN.1 from plain data + strict: true, + decodeBitStrings: true + }; + var composed = _fromDer(bytes, remaining, depth + 1, subOptions); + var used = start - bytes.length(); + remaining -= used; + if(type == asn1.Type.BITSTRING) { + used++; } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + // if the data all decoded and the class indicates UNIVERSAL or + // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object + var tc = composed.tagClass; + if(used === length && + (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) { + value = [composed]; } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + } catch(ex) { + } + } + if(value === undefined) { + // restore read position + bytes.read = savedRead; + remaining = savedRemaining; + } + } + + if(value === undefined) { + // asn1 not constructed or composed, get raw value + // TODO: do DER to OID conversion and vice-versa in .toDer? + + if(length === undefined) { + if(options.strict) { + throw new Error('Non-constructed ASN.1 object of indefinite length.'); + } + // be lenient and use remaining state bytes + length = remaining; + } + + if(type === asn1.Type.BMPSTRING) { + value = ''; + for(; length > 0; length -= 2) { + _checkBufferLength(bytes, remaining, 2); + value += String.fromCharCode(bytes.getInt16()); + remaining -= 2; + } + } else { + value = bytes.getBytes(length); + remaining -= length; + } + } + + // add BIT STRING contents if available + var asn1Options = bitStringContents === undefined ? null : { + bitStringContents: bitStringContents + }; + + // create and return asn1 object + return asn1.create(tagClass, type, constructed, value, asn1Options); +} + +/** + * Converts the given asn1 object to a buffer of bytes in DER format. + * + * @param asn1 the asn1 object to convert to bytes. + * + * @return the buffer of bytes. + */ +asn1.toDer = function(obj) { + var bytes = forge.util.createBuffer(); + + // build the first byte + var b1 = obj.tagClass | obj.type; + + // for storing the ASN.1 value + var value = forge.util.createBuffer(); + + // use BIT STRING contents if available and data not changed + var useBitStringContents = false; + if('bitStringContents' in obj) { + useBitStringContents = true; + if(obj.original) { + useBitStringContents = asn1.equals(obj, obj.original); + } + } + + if(useBitStringContents) { + value.putBytes(obj.bitStringContents); + } else if(obj.composed) { + // if composed, use each child asn1 object's DER bytes as value + // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed + // from other asn1 objects + if(obj.constructed) { + b1 |= 0x20; + } else { + // type is a bit string, add unused bits of 0x00 + value.putByte(0x00); + } + + // add all of the child DER bytes together + for(var i = 0; i < obj.value.length; ++i) { + if(obj.value[i] !== undefined) { + value.putBuffer(asn1.toDer(obj.value[i])); + } + } + } else { + // use asn1.value directly + if(obj.type === asn1.Type.BMPSTRING) { + for(var i = 0; i < obj.value.length; ++i) { + value.putInt16(obj.value.charCodeAt(i)); + } + } else { + // ensure integer is minimally-encoded + // TODO: should all leading bytes be stripped vs just one? + // .. ex '00 00 01' => '01'? + if(obj.type === asn1.Type.INTEGER && + obj.value.length > 1 && + // leading 0x00 for positive integer + ((obj.value.charCodeAt(0) === 0 && + (obj.value.charCodeAt(1) & 0x80) === 0) || + // leading 0xFF for negative integer + (obj.value.charCodeAt(0) === 0xFF && + (obj.value.charCodeAt(1) & 0x80) === 0x80))) { + value.putBytes(obj.value.substr(1)); + } else { + value.putBytes(obj.value); + } + } + } + + // add tag byte + bytes.putByte(b1); + + // use "short form" encoding + if(value.length() <= 127) { + // one byte describes the length + // bit 8 = 0 and bits 7-1 = length + bytes.putByte(value.length() & 0x7F); + } else { + // use "long form" encoding + // 2 to 127 bytes describe the length + // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes + // other bytes: length in base 256, big-endian + var len = value.length(); + var lenBytes = ''; + do { + lenBytes += String.fromCharCode(len & 0xFF); + len = len >>> 8; + } while(len > 0); + + // set first byte to # bytes used to store the length and turn on + // bit 8 to indicate long-form length is used + bytes.putByte(lenBytes.length | 0x80); + + // concatenate length bytes in reverse since they were generated + // little endian and we need big endian + for(var i = lenBytes.length - 1; i >= 0; --i) { + bytes.putByte(lenBytes.charCodeAt(i)); + } + } + + // concatenate value bytes + bytes.putBuffer(value); + return bytes; +}; + +/** + * Converts an OID dot-separated string to a byte buffer. The byte buffer + * contains only the DER-encoded value, not any tag or length bytes. + * + * @param oid the OID dot-separated string. + * + * @return the byte buffer. + */ +asn1.oidToDer = function(oid) { + // split OID into individual values + var values = oid.split('.'); + var bytes = forge.util.createBuffer(); + + // first byte is 40 * value1 + value2 + bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10)); + // other bytes are each value in base 128 with 8th bit set except for + // the last byte for each value + var last, valueBytes, value, b; + for(var i = 2; i < values.length; ++i) { + // produce value bytes in reverse because we don't know how many + // bytes it will take to store the value + last = true; + valueBytes = []; + value = parseInt(values[i], 10); + do { + b = value & 0x7F; + value = value >>> 7; + // if value is not last, then turn on 8th bit + if(!last) { + b |= 0x80; + } + valueBytes.push(b); + last = false; + } while(value > 0); + + // add value bytes in reverse (needs to be in big endian) + for(var n = valueBytes.length - 1; n >= 0; --n) { + bytes.putByte(valueBytes[n]); + } + } + + return bytes; +}; + +/** + * Converts a DER-encoded byte buffer to an OID dot-separated string. The + * byte buffer should contain only the DER-encoded value, not any tag or + * length bytes. + * + * @param bytes the byte buffer. + * + * @return the OID dot-separated string. + */ +asn1.derToOid = function(bytes) { + var oid; + + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + // first byte is 40 * value1 + value2 + var b = bytes.getByte(); + oid = Math.floor(b / 40) + '.' + (b % 40); + + // other bytes are each value in base 128 with 8th bit set except for + // the last byte for each value + var value = 0; + while(bytes.length() > 0) { + b = bytes.getByte(); + value = value << 7; + // not the last byte for the value + if(b & 0x80) { + value += b & 0x7F; + } else { + // last byte + oid += '.' + (value + b); + value = 0; + } + } + + return oid; +}; + +/** + * Converts a UTCTime value to a date. + * + * Note: GeneralizedTime has 4 digits for the year and is used for X.509 + * dates past 2049. Parsing that structure hasn't been implemented yet. + * + * @param utc the UTCTime value to convert. + * + * @return the date. + */ +asn1.utcTimeToDate = function(utc) { + /* The following formats can be used: + + YYMMDDhhmmZ + YYMMDDhhmm+hh'mm' + YYMMDDhhmm-hh'mm' + YYMMDDhhmmssZ + YYMMDDhhmmss+hh'mm' + YYMMDDhhmmss-hh'mm' + + Where: + + YY is the least significant two digits of the year + MM is the month (01 to 12) + DD is the day (01 to 31) + hh is the hour (00 to 23) + mm are the minutes (00 to 59) + ss are the seconds (00 to 59) + Z indicates that local time is GMT, + indicates that local time is + later than GMT, and - indicates that local time is earlier than GMT + hh' is the absolute value of the offset from GMT in hours + mm' is the absolute value of the offset from GMT in minutes */ + var date = new Date(); + + // if YY >= 50 use 19xx, if YY < 50 use 20xx + var year = parseInt(utc.substr(0, 2), 10); + year = (year >= 50) ? 1900 + year : 2000 + year; + var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month + var DD = parseInt(utc.substr(4, 2), 10); + var hh = parseInt(utc.substr(6, 2), 10); + var mm = parseInt(utc.substr(8, 2), 10); + var ss = 0; + + // not just YYMMDDhhmmZ + if(utc.length > 11) { + // get character after minutes + var c = utc.charAt(10); + var end = 10; + + // see if seconds are present + if(c !== '+' && c !== '-') { + // get seconds + ss = parseInt(utc.substr(10, 2), 10); + end += 2; + } + } + + // update date + date.setUTCFullYear(year, MM, DD); + date.setUTCHours(hh, mm, ss, 0); + + if(end) { + // get +/- after end of time + c = utc.charAt(end); + if(c === '+' || c === '-') { + // get hours+minutes offset + var hhoffset = parseInt(utc.substr(end + 1, 2), 10); + var mmoffset = parseInt(utc.substr(end + 4, 2), 10); + + // calculate offset in milliseconds + var offset = hhoffset * 60 + mmoffset; + offset *= 60000; + + // apply offset + if(c === '+') { + date.setTime(+date - offset); + } else { + date.setTime(+date + offset); + } + } + } + + return date; +}; + +/** + * Converts a GeneralizedTime value to a date. + * + * @param gentime the GeneralizedTime value to convert. + * + * @return the date. + */ +asn1.generalizedTimeToDate = function(gentime) { + /* The following formats can be used: + + YYYYMMDDHHMMSS + YYYYMMDDHHMMSS.fff + YYYYMMDDHHMMSSZ + YYYYMMDDHHMMSS.fffZ + YYYYMMDDHHMMSS+hh'mm' + YYYYMMDDHHMMSS.fff+hh'mm' + YYYYMMDDHHMMSS-hh'mm' + YYYYMMDDHHMMSS.fff-hh'mm' + + Where: + + YYYY is the year + MM is the month (01 to 12) + DD is the day (01 to 31) + hh is the hour (00 to 23) + mm are the minutes (00 to 59) + ss are the seconds (00 to 59) + .fff is the second fraction, accurate to three decimal places + Z indicates that local time is GMT, + indicates that local time is + later than GMT, and - indicates that local time is earlier than GMT + hh' is the absolute value of the offset from GMT in hours + mm' is the absolute value of the offset from GMT in minutes */ + var date = new Date(); + + var YYYY = parseInt(gentime.substr(0, 4), 10); + var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month + var DD = parseInt(gentime.substr(6, 2), 10); + var hh = parseInt(gentime.substr(8, 2), 10); + var mm = parseInt(gentime.substr(10, 2), 10); + var ss = parseInt(gentime.substr(12, 2), 10); + var fff = 0; + var offset = 0; + var isUTC = false; + + if(gentime.charAt(gentime.length - 1) === 'Z') { + isUTC = true; + } + + var end = gentime.length - 5, c = gentime.charAt(end); + if(c === '+' || c === '-') { + // get hours+minutes offset + var hhoffset = parseInt(gentime.substr(end + 1, 2), 10); + var mmoffset = parseInt(gentime.substr(end + 4, 2), 10); + + // calculate offset in milliseconds + offset = hhoffset * 60 + mmoffset; + offset *= 60000; + + // apply offset + if(c === '+') { + offset *= -1; + } + + isUTC = true; + } + + // check for second fraction + if(gentime.charAt(14) === '.') { + fff = parseFloat(gentime.substr(14), 10) * 1000; + } + + if(isUTC) { + date.setUTCFullYear(YYYY, MM, DD); + date.setUTCHours(hh, mm, ss, fff); + + // apply offset + date.setTime(+date + offset); + } else { + date.setFullYear(YYYY, MM, DD); + date.setHours(hh, mm, ss, fff); + } + + return date; +}; + +/** + * Converts a date to a UTCTime value. + * + * Note: GeneralizedTime has 4 digits for the year and is used for X.509 + * dates past 2049. Converting to a GeneralizedTime hasn't been + * implemented yet. + * + * @param date the date to convert. + * + * @return the UTCTime value. + */ +asn1.dateToUtcTime = function(date) { + // TODO: validate; currently assumes proper format + if(typeof date === 'string') { + return date; + } + + var rval = ''; + + // create format YYMMDDhhmmssZ + var format = []; + format.push(('' + date.getUTCFullYear()).substr(2)); + format.push('' + (date.getUTCMonth() + 1)); + format.push('' + date.getUTCDate()); + format.push('' + date.getUTCHours()); + format.push('' + date.getUTCMinutes()); + format.push('' + date.getUTCSeconds()); + + // ensure 2 digits are used for each format entry + for(var i = 0; i < format.length; ++i) { + if(format[i].length < 2) { + rval += '0'; + } + rval += format[i]; + } + rval += 'Z'; + + return rval; +}; + +/** + * Converts a date to a GeneralizedTime value. + * + * @param date the date to convert. + * + * @return the GeneralizedTime value as a string. + */ +asn1.dateToGeneralizedTime = function(date) { + // TODO: validate; currently assumes proper format + if(typeof date === 'string') { + return date; + } + + var rval = ''; + + // create format YYYYMMDDHHMMSSZ + var format = []; + format.push('' + date.getUTCFullYear()); + format.push('' + (date.getUTCMonth() + 1)); + format.push('' + date.getUTCDate()); + format.push('' + date.getUTCHours()); + format.push('' + date.getUTCMinutes()); + format.push('' + date.getUTCSeconds()); + + // ensure 2 digits are used for each format entry + for(var i = 0; i < format.length; ++i) { + if(format[i].length < 2) { + rval += '0'; + } + rval += format[i]; + } + rval += 'Z'; + + return rval; +}; + +/** + * Converts a javascript integer to a DER-encoded byte buffer to be used + * as the value for an INTEGER type. + * + * @param x the integer. + * + * @return the byte buffer. + */ +asn1.integerToDer = function(x) { + var rval = forge.util.createBuffer(); + if(x >= -0x80 && x < 0x80) { + return rval.putSignedInt(x, 8); + } + if(x >= -0x8000 && x < 0x8000) { + return rval.putSignedInt(x, 16); + } + if(x >= -0x800000 && x < 0x800000) { + return rval.putSignedInt(x, 24); + } + if(x >= -0x80000000 && x < 0x80000000) { + return rval.putSignedInt(x, 32); + } + var error = new Error('Integer too large; max is 32-bits.'); + error.integer = x; + throw error; +}; + +/** + * Converts a DER-encoded byte buffer to a javascript integer. This is + * typically used to decode the value of an INTEGER type. + * + * @param bytes the byte buffer. + * + * @return the integer. + */ +asn1.derToInteger = function(bytes) { + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + var n = bytes.length() * 8; + if(n > 32) { + throw new Error('Integer too large; max is 32-bits.'); + } + return bytes.getSignedInt(n); +}; + +/** + * Validates that the given ASN.1 object is at least a super set of the + * given ASN.1 structure. Only tag classes and types are checked. An + * optional map may also be provided to capture ASN.1 values while the + * structure is checked. + * + * To capture an ASN.1 value, set an object in the validator's 'capture' + * parameter to the key to use in the capture map. To capture the full + * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including + * the leading unused bits counter byte, specify 'captureBitStringContents'. + * To capture BIT STRING bytes, without the leading unused bits counter byte, + * specify 'captureBitStringValue'. + * + * Objects in the validator may set a field 'optional' to true to indicate + * that it isn't necessary to pass validation. + * + * @param obj the ASN.1 object to validate. + * @param v the ASN.1 structure validator. + * @param capture an optional map to capture values in. + * @param errors an optional array for storing validation errors. + * + * @return true on success, false on failure. + */ +asn1.validate = function(obj, v, capture, errors) { + var rval = false; + + // ensure tag class and type are the same if specified + if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') && + (obj.type === v.type || typeof(v.type) === 'undefined')) { + // ensure constructed flag is the same if specified + if(obj.constructed === v.constructed || + typeof(v.constructed) === 'undefined') { + rval = true; + + // handle sub values + if(v.value && forge.util.isArray(v.value)) { + var j = 0; + for(var i = 0; rval && i < v.value.length; ++i) { + rval = v.value[i].optional || false; + if(obj.value[j]) { + rval = asn1.validate(obj.value[j], v.value[i], capture, errors); + if(rval) { + ++j; + } else if(v.value[i].optional) { + rval = true; } - else { - return googleapis_common_1.createAPIRequest(parameters); + } + if(!rval && errors) { + errors.push( + '[' + v.name + '] ' + + 'Tag class "' + v.tagClass + '", type "' + + v.type + '" expected value length "' + + v.value.length + '", got "' + + obj.value.length + '"'); + } + } + } + + if(rval && capture) { + if(v.capture) { + capture[v.capture] = obj.value; + } + if(v.captureAsn1) { + capture[v.captureAsn1] = obj; + } + if(v.captureBitStringContents && 'bitStringContents' in obj) { + capture[v.captureBitStringContents] = obj.bitStringContents; + } + if(v.captureBitStringValue && 'bitStringContents' in obj) { + var value; + if(obj.bitStringContents.length < 2) { + capture[v.captureBitStringValue] = ''; + } else { + // FIXME: support unused bits with data shifting + var unused = obj.bitStringContents.charCodeAt(0); + if(unused !== 0) { + throw new Error( + 'captureBitStringValue only supported for zero unused bits'); } + capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); + } } + } + } else if(errors) { + errors.push( + '[' + v.name + '] ' + + 'Expected constructed "' + v.constructed + '", got "' + + obj.constructed + '"'); } - dfareporting_v3_4.Resource$Sizes = Resource$Sizes; - class Resource$Subaccounts { + } else if(errors) { + if(obj.tagClass !== v.tagClass) { + errors.push( + '[' + v.name + '] ' + + 'Expected tag class "' + v.tagClass + '", got "' + + obj.tagClass + '"'); + } + if(obj.type !== v.type) { + errors.push( + '[' + v.name + '] ' + + 'Expected type "' + v.type + '", got "' + obj.type + '"'); + } + } + return rval; +}; + +// regex for testing for non-latin characters +var _nonLatinRegex = /[^\\u0000-\\u00ff]/; + +/** + * Pretty prints an ASN.1 object to a string. + * + * @param obj the object to write out. + * @param level the level in the tree. + * @param indentation the indentation to use. + * + * @return the string. + */ +asn1.prettyPrint = function(obj, level, indentation) { + var rval = ''; + + // set default level and indentation + level = level || 0; + indentation = indentation || 2; + + // start new line for deep levels + if(level > 0) { + rval += '\n'; + } + + // create indent + var indent = ''; + for(var i = 0; i < level * indentation; ++i) { + indent += ' '; + } + + // print class:type + rval += indent + 'Tag: '; + switch(obj.tagClass) { + case asn1.Class.UNIVERSAL: + rval += 'Universal:'; + break; + case asn1.Class.APPLICATION: + rval += 'Application:'; + break; + case asn1.Class.CONTEXT_SPECIFIC: + rval += 'Context-Specific:'; + break; + case asn1.Class.PRIVATE: + rval += 'Private:'; + break; + } + + if(obj.tagClass === asn1.Class.UNIVERSAL) { + rval += obj.type; + + // known types + switch(obj.type) { + case asn1.Type.NONE: + rval += ' (None)'; + break; + case asn1.Type.BOOLEAN: + rval += ' (Boolean)'; + break; + case asn1.Type.INTEGER: + rval += ' (Integer)'; + break; + case asn1.Type.BITSTRING: + rval += ' (Bit string)'; + break; + case asn1.Type.OCTETSTRING: + rval += ' (Octet string)'; + break; + case asn1.Type.NULL: + rval += ' (Null)'; + break; + case asn1.Type.OID: + rval += ' (Object Identifier)'; + break; + case asn1.Type.ODESC: + rval += ' (Object Descriptor)'; + break; + case asn1.Type.EXTERNAL: + rval += ' (External or Instance of)'; + break; + case asn1.Type.REAL: + rval += ' (Real)'; + break; + case asn1.Type.ENUMERATED: + rval += ' (Enumerated)'; + break; + case asn1.Type.EMBEDDED: + rval += ' (Embedded PDV)'; + break; + case asn1.Type.UTF8: + rval += ' (UTF8)'; + break; + case asn1.Type.ROID: + rval += ' (Relative Object Identifier)'; + break; + case asn1.Type.SEQUENCE: + rval += ' (Sequence)'; + break; + case asn1.Type.SET: + rval += ' (Set)'; + break; + case asn1.Type.PRINTABLESTRING: + rval += ' (Printable String)'; + break; + case asn1.Type.IA5String: + rval += ' (IA5String (ASCII))'; + break; + case asn1.Type.UTCTIME: + rval += ' (UTC time)'; + break; + case asn1.Type.GENERALIZEDTIME: + rval += ' (Generalized time)'; + break; + case asn1.Type.BMPSTRING: + rval += ' (BMP String)'; + break; + } + } else { + rval += obj.type; + } + + rval += '\n'; + rval += indent + 'Constructed: ' + obj.constructed + '\n'; + + if(obj.composed) { + var subvalues = 0; + var sub = ''; + for(var i = 0; i < obj.value.length; ++i) { + if(obj.value[i] !== undefined) { + subvalues += 1; + sub += asn1.prettyPrint(obj.value[i], level + 1, indentation); + if((i + 1) < obj.value.length) { + sub += ','; + } + } + } + rval += indent + 'Sub values: ' + subvalues + sub; + } else { + rval += indent + 'Value: '; + if(obj.type === asn1.Type.OID) { + var oid = asn1.derToOid(obj.value); + rval += oid; + if(forge.pki && forge.pki.oids) { + if(oid in forge.pki.oids) { + rval += ' (' + forge.pki.oids[oid] + ') '; + } + } + } + if(obj.type === asn1.Type.INTEGER) { + try { + rval += asn1.derToInteger(obj.value); + } catch(ex) { + rval += '0x' + forge.util.bytesToHex(obj.value); + } + } else if(obj.type === asn1.Type.BITSTRING) { + // TODO: shift bits as needed to display without padding + if(obj.value.length > 1) { + // remove unused bits field + rval += '0x' + forge.util.bytesToHex(obj.value.slice(1)); + } else { + rval += '(none)'; + } + // show unused bit count + if(obj.value.length > 0) { + var unused = obj.value.charCodeAt(0); + if(unused == 1) { + rval += ' (1 unused bit shown)'; + } else if(unused > 1) { + rval += ' (' + unused + ' unused bits shown)'; + } + } + } else if(obj.type === asn1.Type.OCTETSTRING) { + if(!_nonLatinRegex.test(obj.value)) { + rval += '(' + obj.value + ') '; + } + rval += '0x' + forge.util.bytesToHex(obj.value); + } else if(obj.type === asn1.Type.UTF8) { + try { + rval += forge.util.decodeUtf8(obj.value); + } catch(e) { + if(e.message === 'URI malformed') { + rval += + '0x' + forge.util.bytesToHex(obj.value) + ' (malformed UTF8)'; + } else { + throw e; + } + } + } else if(obj.type === asn1.Type.PRINTABLESTRING || + obj.type === asn1.Type.IA5String) { + rval += obj.value; + } else if(_nonLatinRegex.test(obj.value)) { + rval += '0x' + forge.util.bytesToHex(obj.value); + } else if(obj.value.length === 0) { + rval += '[null]'; + } else { + rval += obj.value; + } + } + + return rval; +}; + + +/***/ }), + +/***/ 1435: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(__webpack_require__(4976)); + +var _sha = _interopRequireDefault(__webpack_require__(267)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports.default = _default; + +/***/ }), + +/***/ 1442: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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. +/*! THIS FILE IS AUTO-GENERATED */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GeneratedAPIs = exports.APIS = void 0; +const abusiveexperiencereport_1 = __webpack_require__(854); +const acceleratedmobilepageurl_1 = __webpack_require__(6514); +const accessapproval_1 = __webpack_require__(5132); +const accesscontextmanager_1 = __webpack_require__(4090); +const acmedns_1 = __webpack_require__(6275); +const adexchangebuyer_1 = __webpack_require__(8666); +const adexchangebuyer2_1 = __webpack_require__(1257); +const adexperiencereport_1 = __webpack_require__(3817); +const admin_1 = __webpack_require__(2527); +const admob_1 = __webpack_require__(322); +const adsense_1 = __webpack_require__(4158); +const adsensehost_1 = __webpack_require__(4058); +const advisorynotifications_1 = __webpack_require__(8015); +const alertcenter_1 = __webpack_require__(4933); +const analytics_1 = __webpack_require__(1989); +const analyticsadmin_1 = __webpack_require__(9065); +const analyticsdata_1 = __webpack_require__(8013); +const analyticshub_1 = __webpack_require__(9218); +const analyticsreporting_1 = __webpack_require__(9402); +const androiddeviceprovisioning_1 = __webpack_require__(4353); +const androidenterprise_1 = __webpack_require__(2418); +const androidmanagement_1 = __webpack_require__(116); +const androidpublisher_1 = __webpack_require__(6300); +const apigateway_1 = __webpack_require__(3294); +const apigeeregistry_1 = __webpack_require__(8283); +const apikeys_1 = __webpack_require__(8169); +const appengine_1 = __webpack_require__(3300); +const appsactivity_1 = __webpack_require__(3435); +const area120tables_1 = __webpack_require__(1281); +const artifactregistry_1 = __webpack_require__(7335); +const assuredworkloads_1 = __webpack_require__(8112); +const authorizedbuyersmarketplace_1 = __webpack_require__(8334); +const baremetalsolution_1 = __webpack_require__(2825); +const batch_1 = __webpack_require__(7147); +const beyondcorp_1 = __webpack_require__(3799); +const bigquery_1 = __webpack_require__(8182); +const bigqueryconnection_1 = __webpack_require__(8478); +const bigquerydatatransfer_1 = __webpack_require__(6075); +const bigqueryreservation_1 = __webpack_require__(2970); +const bigtableadmin_1 = __webpack_require__(4438); +const billingbudgets_1 = __webpack_require__(2252); +const binaryauthorization_1 = __webpack_require__(363); +const blogger_1 = __webpack_require__(1609); +const books_1 = __webpack_require__(7948); +const businessprofileperformance_1 = __webpack_require__(8802); +const calendar_1 = __webpack_require__(1590); +const certificatemanager_1 = __webpack_require__(1328); +const chat_1 = __webpack_require__(81); +const chromemanagement_1 = __webpack_require__(5896); +const chromepolicy_1 = __webpack_require__(7728); +const chromeuxreport_1 = __webpack_require__(3258); +const civicinfo_1 = __webpack_require__(8718); +const classroom_1 = __webpack_require__(5748); +const cloudasset_1 = __webpack_require__(6243); +const cloudbilling_1 = __webpack_require__(2395); +const cloudbuild_1 = __webpack_require__(6743); +const cloudchannel_1 = __webpack_require__(9213); +const clouddebugger_1 = __webpack_require__(6478); +const clouddeploy_1 = __webpack_require__(1003); +const clouderrorreporting_1 = __webpack_require__(5190); +const cloudfunctions_1 = __webpack_require__(6625); +const cloudidentity_1 = __webpack_require__(1051); +const cloudiot_1 = __webpack_require__(7594); +const cloudkms_1 = __webpack_require__(615); +const cloudprofiler_1 = __webpack_require__(6624); +const cloudresourcemanager_1 = __webpack_require__(8950); +const cloudscheduler_1 = __webpack_require__(6319); +const cloudsearch_1 = __webpack_require__(7182); +const cloudshell_1 = __webpack_require__(7126); +const cloudsupport_1 = __webpack_require__(8562); +const cloudtasks_1 = __webpack_require__(6777); +const cloudtrace_1 = __webpack_require__(5461); +const composer_1 = __webpack_require__(6677); +const compute_1 = __webpack_require__(9252); +const connectors_1 = __webpack_require__(7425); +const contactcenteraiplatform_1 = __webpack_require__(7721); +const contactcenterinsights_1 = __webpack_require__(9991); +const container_1 = __webpack_require__(5751); +const containeranalysis_1 = __webpack_require__(2659); +const content_1 = __webpack_require__(529); +const contentwarehouse_1 = __webpack_require__(5713); +const customsearch_1 = __webpack_require__(6630); +const datacatalog_1 = __webpack_require__(5648); +const dataflow_1 = __webpack_require__(85); +const dataform_1 = __webpack_require__(2886); +const datafusion_1 = __webpack_require__(5122); +const datalabeling_1 = __webpack_require__(1892); +const datalineage_1 = __webpack_require__(8700); +const datamigration_1 = __webpack_require__(7173); +const datapipelines_1 = __webpack_require__(1979); +const dataplex_1 = __webpack_require__(3072); +const dataproc_1 = __webpack_require__(9082); +const datastore_1 = __webpack_require__(6445); +const datastream_1 = __webpack_require__(1490); +const deploymentmanager_1 = __webpack_require__(2784); +const dfareporting_1 = __webpack_require__(3124); +const dialogflow_1 = __webpack_require__(5020); +const digitalassetlinks_1 = __webpack_require__(3695); +const discovery_1 = __webpack_require__(7510); +const discoveryengine_1 = __webpack_require__(9369); +const displayvideo_1 = __webpack_require__(3060); +const dlp_1 = __webpack_require__(9090); +const dns_1 = __webpack_require__(3773); +const docs_1 = __webpack_require__(1277); +const documentai_1 = __webpack_require__(4226); +const domains_1 = __webpack_require__(9360); +const domainsrdap_1 = __webpack_require__(1693); +const doubleclickbidmanager_1 = __webpack_require__(5489); +const doubleclicksearch_1 = __webpack_require__(6015); +const drive_1 = __webpack_require__(9247); +const driveactivity_1 = __webpack_require__(4025); +const drivelabels_1 = __webpack_require__(6781); +const essentialcontacts_1 = __webpack_require__(1272); +const eventarc_1 = __webpack_require__(5643); +const factchecktools_1 = __webpack_require__(441); +const fcm_1 = __webpack_require__(8358); +const fcmdata_1 = __webpack_require__(6326); +const file_1 = __webpack_require__(6377); +const firebase_1 = __webpack_require__(4294); +const firebaseappcheck_1 = __webpack_require__(5760); +const firebaseappdistribution_1 = __webpack_require__(5919); +const firebasedatabase_1 = __webpack_require__(1613); +const firebasedynamiclinks_1 = __webpack_require__(1808); +const firebasehosting_1 = __webpack_require__(1647); +const firebaseml_1 = __webpack_require__(3374); +const firebaserules_1 = __webpack_require__(6821); +const firebasestorage_1 = __webpack_require__(130); +const firestore_1 = __webpack_require__(2068); +const fitness_1 = __webpack_require__(2811); +const forms_1 = __webpack_require__(3970); +const games_1 = __webpack_require__(5312); +const gamesConfiguration_1 = __webpack_require__(7136); +const gamesManagement_1 = __webpack_require__(9742); +const gameservices_1 = __webpack_require__(9091); +const genomics_1 = __webpack_require__(6667); +const gkebackup_1 = __webpack_require__(1344); +const gkehub_1 = __webpack_require__(7289); +const gmail_1 = __webpack_require__(5136); +const gmailpostmastertools_1 = __webpack_require__(8053); +const groupsmigration_1 = __webpack_require__(7104); +const groupssettings_1 = __webpack_require__(7260); +const healthcare_1 = __webpack_require__(8518); +const homegraph_1 = __webpack_require__(1675); +const iam_1 = __webpack_require__(6404); +const iamcredentials_1 = __webpack_require__(5597); +const iap_1 = __webpack_require__(3898); +const ideahub_1 = __webpack_require__(8545); +const identitytoolkit_1 = __webpack_require__(8279); +const ids_1 = __webpack_require__(2942); +const indexing_1 = __webpack_require__(7935); +const integrations_1 = __webpack_require__(7253); +const jobs_1 = __webpack_require__(8644); +const kgsearch_1 = __webpack_require__(321); +const kmsinventory_1 = __webpack_require__(1769); +const language_1 = __webpack_require__(7850); +const libraryagent_1 = __webpack_require__(1452); +const licensing_1 = __webpack_require__(7390); +const lifesciences_1 = __webpack_require__(2107); +const localservices_1 = __webpack_require__(8032); +const logging_1 = __webpack_require__(9650); +const managedidentities_1 = __webpack_require__(7888); +const manufacturers_1 = __webpack_require__(9989); +const memcache_1 = __webpack_require__(458); +const metastore_1 = __webpack_require__(8094); +const migrationcenter_1 = __webpack_require__(4896); +const ml_1 = __webpack_require__(1188); +const monitoring_1 = __webpack_require__(2295); +const mybusinessaccountmanagement_1 = __webpack_require__(879); +const mybusinessbusinesscalls_1 = __webpack_require__(4379); +const mybusinessbusinessinformation_1 = __webpack_require__(1470); +const mybusinesslodging_1 = __webpack_require__(5644); +const mybusinessnotifications_1 = __webpack_require__(8432); +const mybusinessplaceactions_1 = __webpack_require__(2643); +const mybusinessqanda_1 = __webpack_require__(9325); +const mybusinessverifications_1 = __webpack_require__(8833); +const networkconnectivity_1 = __webpack_require__(7984); +const networkmanagement_1 = __webpack_require__(9571); +const networksecurity_1 = __webpack_require__(5664); +const networkservices_1 = __webpack_require__(1752); +const notebooks_1 = __webpack_require__(6375); +const oauth2_1 = __webpack_require__(7970); +const ondemandscanning_1 = __webpack_require__(1606); +const orgpolicy_1 = __webpack_require__(4997); +const osconfig_1 = __webpack_require__(1280); +const oslogin_1 = __webpack_require__(8619); +const pagespeedonline_1 = __webpack_require__(5006); +const paymentsresellersubscription_1 = __webpack_require__(4616); +const people_1 = __webpack_require__(1197); +const playablelocations_1 = __webpack_require__(2843); +const playcustomapp_1 = __webpack_require__(9740); +const playdeveloperreporting_1 = __webpack_require__(7604); +const playintegrity_1 = __webpack_require__(8151); +const plus_1 = __webpack_require__(5374); +const policyanalyzer_1 = __webpack_require__(5238); +const policysimulator_1 = __webpack_require__(5888); +const policytroubleshooter_1 = __webpack_require__(3478); +const poly_1 = __webpack_require__(2962); +const privateca_1 = __webpack_require__(3088); +const prod_tt_sasportal_1 = __webpack_require__(1209); +const publicca_1 = __webpack_require__(4416); +const pubsub_1 = __webpack_require__(1962); +const pubsublite_1 = __webpack_require__(600); +const readerrevenuesubscriptionlinking_1 = __webpack_require__(3034); +const realtimebidding_1 = __webpack_require__(4488); +const recaptchaenterprise_1 = __webpack_require__(2281); +const recommendationengine_1 = __webpack_require__(2776); +const recommender_1 = __webpack_require__(6268); +const redis_1 = __webpack_require__(9707); +const remotebuildexecution_1 = __webpack_require__(6658); +const reseller_1 = __webpack_require__(1005); +const resourcesettings_1 = __webpack_require__(7206); +const retail_1 = __webpack_require__(6712); +const run_1 = __webpack_require__(3269); +const runtimeconfig_1 = __webpack_require__(8386); +const safebrowsing_1 = __webpack_require__(6922); +const sasportal_1 = __webpack_require__(3537); +const script_1 = __webpack_require__(3317); +const searchads360_1 = __webpack_require__(7308); +const searchconsole_1 = __webpack_require__(1797); +const secretmanager_1 = __webpack_require__(8330); +const securitycenter_1 = __webpack_require__(6215); +const serviceconsumermanagement_1 = __webpack_require__(9967); +const servicecontrol_1 = __webpack_require__(9720); +const servicedirectory_1 = __webpack_require__(8387); +const servicemanagement_1 = __webpack_require__(8140); +const servicenetworking_1 = __webpack_require__(9610); +const serviceusage_1 = __webpack_require__(5458); +const sheets_1 = __webpack_require__(772); +const siteVerification_1 = __webpack_require__(9960); +const slides_1 = __webpack_require__(4340); +const smartdevicemanagement_1 = __webpack_require__(188); +const sourcerepo_1 = __webpack_require__(5882); +const spanner_1 = __webpack_require__(2736); +const speech_1 = __webpack_require__(6591); +const sql_1 = __webpack_require__(1735); +const sqladmin_1 = __webpack_require__(3212); +const storage_1 = __webpack_require__(9010); +const storagetransfer_1 = __webpack_require__(7939); +const streetviewpublish_1 = __webpack_require__(3199); +const sts_1 = __webpack_require__(1947); +const tagmanager_1 = __webpack_require__(9376); +const tasks_1 = __webpack_require__(9495); +const testing_1 = __webpack_require__(6681); +const texttospeech_1 = __webpack_require__(6494); +const toolresults_1 = __webpack_require__(4419); +const tpu_1 = __webpack_require__(8766); +const trafficdirector_1 = __webpack_require__(7159); +const transcoder_1 = __webpack_require__(1529); +const translate_1 = __webpack_require__(5246); +const travelimpactmodel_1 = __webpack_require__(9877); +const vault_1 = __webpack_require__(623); +const vectortile_1 = __webpack_require__(8557); +const verifiedaccess_1 = __webpack_require__(1350); +const versionhistory_1 = __webpack_require__(8688); +const videointelligence_1 = __webpack_require__(2037); +const vision_1 = __webpack_require__(9248); +const vmmigration_1 = __webpack_require__(8222); +const vpcaccess_1 = __webpack_require__(2778); +const webfonts_1 = __webpack_require__(7567); +const webmasters_1 = __webpack_require__(6703); +const webrisk_1 = __webpack_require__(5024); +const websecurityscanner_1 = __webpack_require__(849); +const workflowexecutions_1 = __webpack_require__(8837); +const workflows_1 = __webpack_require__(1017); +const workloadmanager_1 = __webpack_require__(1346); +const workstations_1 = __webpack_require__(2471); +const youtube_1 = __webpack_require__(1996); +const youtubeAnalytics_1 = __webpack_require__(7006); +const youtubereporting_1 = __webpack_require__(4613); +exports.APIS = { + abusiveexperiencereport: abusiveexperiencereport_1.VERSIONS, + acceleratedmobilepageurl: acceleratedmobilepageurl_1.VERSIONS, + accessapproval: accessapproval_1.VERSIONS, + accesscontextmanager: accesscontextmanager_1.VERSIONS, + acmedns: acmedns_1.VERSIONS, + adexchangebuyer: adexchangebuyer_1.VERSIONS, + adexchangebuyer2: adexchangebuyer2_1.VERSIONS, + adexperiencereport: adexperiencereport_1.VERSIONS, + admin: admin_1.VERSIONS, + admob: admob_1.VERSIONS, + adsense: adsense_1.VERSIONS, + adsensehost: adsensehost_1.VERSIONS, + advisorynotifications: advisorynotifications_1.VERSIONS, + alertcenter: alertcenter_1.VERSIONS, + analytics: analytics_1.VERSIONS, + analyticsadmin: analyticsadmin_1.VERSIONS, + analyticsdata: analyticsdata_1.VERSIONS, + analyticshub: analyticshub_1.VERSIONS, + analyticsreporting: analyticsreporting_1.VERSIONS, + androiddeviceprovisioning: androiddeviceprovisioning_1.VERSIONS, + androidenterprise: androidenterprise_1.VERSIONS, + androidmanagement: androidmanagement_1.VERSIONS, + androidpublisher: androidpublisher_1.VERSIONS, + apigateway: apigateway_1.VERSIONS, + apigeeregistry: apigeeregistry_1.VERSIONS, + apikeys: apikeys_1.VERSIONS, + appengine: appengine_1.VERSIONS, + appsactivity: appsactivity_1.VERSIONS, + area120tables: area120tables_1.VERSIONS, + artifactregistry: artifactregistry_1.VERSIONS, + assuredworkloads: assuredworkloads_1.VERSIONS, + authorizedbuyersmarketplace: authorizedbuyersmarketplace_1.VERSIONS, + baremetalsolution: baremetalsolution_1.VERSIONS, + batch: batch_1.VERSIONS, + beyondcorp: beyondcorp_1.VERSIONS, + bigquery: bigquery_1.VERSIONS, + bigqueryconnection: bigqueryconnection_1.VERSIONS, + bigquerydatatransfer: bigquerydatatransfer_1.VERSIONS, + bigqueryreservation: bigqueryreservation_1.VERSIONS, + bigtableadmin: bigtableadmin_1.VERSIONS, + billingbudgets: billingbudgets_1.VERSIONS, + binaryauthorization: binaryauthorization_1.VERSIONS, + blogger: blogger_1.VERSIONS, + books: books_1.VERSIONS, + businessprofileperformance: businessprofileperformance_1.VERSIONS, + calendar: calendar_1.VERSIONS, + certificatemanager: certificatemanager_1.VERSIONS, + chat: chat_1.VERSIONS, + chromemanagement: chromemanagement_1.VERSIONS, + chromepolicy: chromepolicy_1.VERSIONS, + chromeuxreport: chromeuxreport_1.VERSIONS, + civicinfo: civicinfo_1.VERSIONS, + classroom: classroom_1.VERSIONS, + cloudasset: cloudasset_1.VERSIONS, + cloudbilling: cloudbilling_1.VERSIONS, + cloudbuild: cloudbuild_1.VERSIONS, + cloudchannel: cloudchannel_1.VERSIONS, + clouddebugger: clouddebugger_1.VERSIONS, + clouddeploy: clouddeploy_1.VERSIONS, + clouderrorreporting: clouderrorreporting_1.VERSIONS, + cloudfunctions: cloudfunctions_1.VERSIONS, + cloudidentity: cloudidentity_1.VERSIONS, + cloudiot: cloudiot_1.VERSIONS, + cloudkms: cloudkms_1.VERSIONS, + cloudprofiler: cloudprofiler_1.VERSIONS, + cloudresourcemanager: cloudresourcemanager_1.VERSIONS, + cloudscheduler: cloudscheduler_1.VERSIONS, + cloudsearch: cloudsearch_1.VERSIONS, + cloudshell: cloudshell_1.VERSIONS, + cloudsupport: cloudsupport_1.VERSIONS, + cloudtasks: cloudtasks_1.VERSIONS, + cloudtrace: cloudtrace_1.VERSIONS, + composer: composer_1.VERSIONS, + compute: compute_1.VERSIONS, + connectors: connectors_1.VERSIONS, + contactcenteraiplatform: contactcenteraiplatform_1.VERSIONS, + contactcenterinsights: contactcenterinsights_1.VERSIONS, + container: container_1.VERSIONS, + containeranalysis: containeranalysis_1.VERSIONS, + content: content_1.VERSIONS, + contentwarehouse: contentwarehouse_1.VERSIONS, + customsearch: customsearch_1.VERSIONS, + datacatalog: datacatalog_1.VERSIONS, + dataflow: dataflow_1.VERSIONS, + dataform: dataform_1.VERSIONS, + datafusion: datafusion_1.VERSIONS, + datalabeling: datalabeling_1.VERSIONS, + datalineage: datalineage_1.VERSIONS, + datamigration: datamigration_1.VERSIONS, + datapipelines: datapipelines_1.VERSIONS, + dataplex: dataplex_1.VERSIONS, + dataproc: dataproc_1.VERSIONS, + datastore: datastore_1.VERSIONS, + datastream: datastream_1.VERSIONS, + deploymentmanager: deploymentmanager_1.VERSIONS, + dfareporting: dfareporting_1.VERSIONS, + dialogflow: dialogflow_1.VERSIONS, + digitalassetlinks: digitalassetlinks_1.VERSIONS, + discovery: discovery_1.VERSIONS, + discoveryengine: discoveryengine_1.VERSIONS, + displayvideo: displayvideo_1.VERSIONS, + dlp: dlp_1.VERSIONS, + dns: dns_1.VERSIONS, + docs: docs_1.VERSIONS, + documentai: documentai_1.VERSIONS, + domains: domains_1.VERSIONS, + domainsrdap: domainsrdap_1.VERSIONS, + doubleclickbidmanager: doubleclickbidmanager_1.VERSIONS, + doubleclicksearch: doubleclicksearch_1.VERSIONS, + drive: drive_1.VERSIONS, + driveactivity: driveactivity_1.VERSIONS, + drivelabels: drivelabels_1.VERSIONS, + essentialcontacts: essentialcontacts_1.VERSIONS, + eventarc: eventarc_1.VERSIONS, + factchecktools: factchecktools_1.VERSIONS, + fcm: fcm_1.VERSIONS, + fcmdata: fcmdata_1.VERSIONS, + file: file_1.VERSIONS, + firebase: firebase_1.VERSIONS, + firebaseappcheck: firebaseappcheck_1.VERSIONS, + firebaseappdistribution: firebaseappdistribution_1.VERSIONS, + firebasedatabase: firebasedatabase_1.VERSIONS, + firebasedynamiclinks: firebasedynamiclinks_1.VERSIONS, + firebasehosting: firebasehosting_1.VERSIONS, + firebaseml: firebaseml_1.VERSIONS, + firebaserules: firebaserules_1.VERSIONS, + firebasestorage: firebasestorage_1.VERSIONS, + firestore: firestore_1.VERSIONS, + fitness: fitness_1.VERSIONS, + forms: forms_1.VERSIONS, + games: games_1.VERSIONS, + gamesConfiguration: gamesConfiguration_1.VERSIONS, + gamesManagement: gamesManagement_1.VERSIONS, + gameservices: gameservices_1.VERSIONS, + genomics: genomics_1.VERSIONS, + gkebackup: gkebackup_1.VERSIONS, + gkehub: gkehub_1.VERSIONS, + gmail: gmail_1.VERSIONS, + gmailpostmastertools: gmailpostmastertools_1.VERSIONS, + groupsmigration: groupsmigration_1.VERSIONS, + groupssettings: groupssettings_1.VERSIONS, + healthcare: healthcare_1.VERSIONS, + homegraph: homegraph_1.VERSIONS, + iam: iam_1.VERSIONS, + iamcredentials: iamcredentials_1.VERSIONS, + iap: iap_1.VERSIONS, + ideahub: ideahub_1.VERSIONS, + identitytoolkit: identitytoolkit_1.VERSIONS, + ids: ids_1.VERSIONS, + indexing: indexing_1.VERSIONS, + integrations: integrations_1.VERSIONS, + jobs: jobs_1.VERSIONS, + kgsearch: kgsearch_1.VERSIONS, + kmsinventory: kmsinventory_1.VERSIONS, + language: language_1.VERSIONS, + libraryagent: libraryagent_1.VERSIONS, + licensing: licensing_1.VERSIONS, + lifesciences: lifesciences_1.VERSIONS, + localservices: localservices_1.VERSIONS, + logging: logging_1.VERSIONS, + managedidentities: managedidentities_1.VERSIONS, + manufacturers: manufacturers_1.VERSIONS, + memcache: memcache_1.VERSIONS, + metastore: metastore_1.VERSIONS, + migrationcenter: migrationcenter_1.VERSIONS, + ml: ml_1.VERSIONS, + monitoring: monitoring_1.VERSIONS, + mybusinessaccountmanagement: mybusinessaccountmanagement_1.VERSIONS, + mybusinessbusinesscalls: mybusinessbusinesscalls_1.VERSIONS, + mybusinessbusinessinformation: mybusinessbusinessinformation_1.VERSIONS, + mybusinesslodging: mybusinesslodging_1.VERSIONS, + mybusinessnotifications: mybusinessnotifications_1.VERSIONS, + mybusinessplaceactions: mybusinessplaceactions_1.VERSIONS, + mybusinessqanda: mybusinessqanda_1.VERSIONS, + mybusinessverifications: mybusinessverifications_1.VERSIONS, + networkconnectivity: networkconnectivity_1.VERSIONS, + networkmanagement: networkmanagement_1.VERSIONS, + networksecurity: networksecurity_1.VERSIONS, + networkservices: networkservices_1.VERSIONS, + notebooks: notebooks_1.VERSIONS, + oauth2: oauth2_1.VERSIONS, + ondemandscanning: ondemandscanning_1.VERSIONS, + orgpolicy: orgpolicy_1.VERSIONS, + osconfig: osconfig_1.VERSIONS, + oslogin: oslogin_1.VERSIONS, + pagespeedonline: pagespeedonline_1.VERSIONS, + paymentsresellersubscription: paymentsresellersubscription_1.VERSIONS, + people: people_1.VERSIONS, + playablelocations: playablelocations_1.VERSIONS, + playcustomapp: playcustomapp_1.VERSIONS, + playdeveloperreporting: playdeveloperreporting_1.VERSIONS, + playintegrity: playintegrity_1.VERSIONS, + plus: plus_1.VERSIONS, + policyanalyzer: policyanalyzer_1.VERSIONS, + policysimulator: policysimulator_1.VERSIONS, + policytroubleshooter: policytroubleshooter_1.VERSIONS, + poly: poly_1.VERSIONS, + privateca: privateca_1.VERSIONS, + prod_tt_sasportal: prod_tt_sasportal_1.VERSIONS, + publicca: publicca_1.VERSIONS, + pubsub: pubsub_1.VERSIONS, + pubsublite: pubsublite_1.VERSIONS, + readerrevenuesubscriptionlinking: readerrevenuesubscriptionlinking_1.VERSIONS, + realtimebidding: realtimebidding_1.VERSIONS, + recaptchaenterprise: recaptchaenterprise_1.VERSIONS, + recommendationengine: recommendationengine_1.VERSIONS, + recommender: recommender_1.VERSIONS, + redis: redis_1.VERSIONS, + remotebuildexecution: remotebuildexecution_1.VERSIONS, + reseller: reseller_1.VERSIONS, + resourcesettings: resourcesettings_1.VERSIONS, + retail: retail_1.VERSIONS, + run: run_1.VERSIONS, + runtimeconfig: runtimeconfig_1.VERSIONS, + safebrowsing: safebrowsing_1.VERSIONS, + sasportal: sasportal_1.VERSIONS, + script: script_1.VERSIONS, + searchads360: searchads360_1.VERSIONS, + searchconsole: searchconsole_1.VERSIONS, + secretmanager: secretmanager_1.VERSIONS, + securitycenter: securitycenter_1.VERSIONS, + serviceconsumermanagement: serviceconsumermanagement_1.VERSIONS, + servicecontrol: servicecontrol_1.VERSIONS, + servicedirectory: servicedirectory_1.VERSIONS, + servicemanagement: servicemanagement_1.VERSIONS, + servicenetworking: servicenetworking_1.VERSIONS, + serviceusage: serviceusage_1.VERSIONS, + sheets: sheets_1.VERSIONS, + siteVerification: siteVerification_1.VERSIONS, + slides: slides_1.VERSIONS, + smartdevicemanagement: smartdevicemanagement_1.VERSIONS, + sourcerepo: sourcerepo_1.VERSIONS, + spanner: spanner_1.VERSIONS, + speech: speech_1.VERSIONS, + sql: sql_1.VERSIONS, + sqladmin: sqladmin_1.VERSIONS, + storage: storage_1.VERSIONS, + storagetransfer: storagetransfer_1.VERSIONS, + streetviewpublish: streetviewpublish_1.VERSIONS, + sts: sts_1.VERSIONS, + tagmanager: tagmanager_1.VERSIONS, + tasks: tasks_1.VERSIONS, + testing: testing_1.VERSIONS, + texttospeech: texttospeech_1.VERSIONS, + toolresults: toolresults_1.VERSIONS, + tpu: tpu_1.VERSIONS, + trafficdirector: trafficdirector_1.VERSIONS, + transcoder: transcoder_1.VERSIONS, + translate: translate_1.VERSIONS, + travelimpactmodel: travelimpactmodel_1.VERSIONS, + vault: vault_1.VERSIONS, + vectortile: vectortile_1.VERSIONS, + verifiedaccess: verifiedaccess_1.VERSIONS, + versionhistory: versionhistory_1.VERSIONS, + videointelligence: videointelligence_1.VERSIONS, + vision: vision_1.VERSIONS, + vmmigration: vmmigration_1.VERSIONS, + vpcaccess: vpcaccess_1.VERSIONS, + webfonts: webfonts_1.VERSIONS, + webmasters: webmasters_1.VERSIONS, + webrisk: webrisk_1.VERSIONS, + websecurityscanner: websecurityscanner_1.VERSIONS, + workflowexecutions: workflowexecutions_1.VERSIONS, + workflows: workflows_1.VERSIONS, + workloadmanager: workloadmanager_1.VERSIONS, + workstations: workstations_1.VERSIONS, + youtube: youtube_1.VERSIONS, + youtubeAnalytics: youtubeAnalytics_1.VERSIONS, + youtubereporting: youtubereporting_1.VERSIONS, +}; +class GeneratedAPIs { + constructor() { + this.abusiveexperiencereport = abusiveexperiencereport_1.abusiveexperiencereport; + this.acceleratedmobilepageurl = acceleratedmobilepageurl_1.acceleratedmobilepageurl; + this.accessapproval = accessapproval_1.accessapproval; + this.accesscontextmanager = accesscontextmanager_1.accesscontextmanager; + this.acmedns = acmedns_1.acmedns; + this.adexchangebuyer = adexchangebuyer_1.adexchangebuyer; + this.adexchangebuyer2 = adexchangebuyer2_1.adexchangebuyer2; + this.adexperiencereport = adexperiencereport_1.adexperiencereport; + this.admin = admin_1.admin; + this.admob = admob_1.admob; + this.adsense = adsense_1.adsense; + this.adsensehost = adsensehost_1.adsensehost; + this.advisorynotifications = advisorynotifications_1.advisorynotifications; + this.alertcenter = alertcenter_1.alertcenter; + this.analytics = analytics_1.analytics; + this.analyticsadmin = analyticsadmin_1.analyticsadmin; + this.analyticsdata = analyticsdata_1.analyticsdata; + this.analyticshub = analyticshub_1.analyticshub; + this.analyticsreporting = analyticsreporting_1.analyticsreporting; + this.androiddeviceprovisioning = androiddeviceprovisioning_1.androiddeviceprovisioning; + this.androidenterprise = androidenterprise_1.androidenterprise; + this.androidmanagement = androidmanagement_1.androidmanagement; + this.androidpublisher = androidpublisher_1.androidpublisher; + this.apigateway = apigateway_1.apigateway; + this.apigeeregistry = apigeeregistry_1.apigeeregistry; + this.apikeys = apikeys_1.apikeys; + this.appengine = appengine_1.appengine; + this.appsactivity = appsactivity_1.appsactivity; + this.area120tables = area120tables_1.area120tables; + this.artifactregistry = artifactregistry_1.artifactregistry; + this.assuredworkloads = assuredworkloads_1.assuredworkloads; + this.authorizedbuyersmarketplace = authorizedbuyersmarketplace_1.authorizedbuyersmarketplace; + this.baremetalsolution = baremetalsolution_1.baremetalsolution; + this.batch = batch_1.batch; + this.beyondcorp = beyondcorp_1.beyondcorp; + this.bigquery = bigquery_1.bigquery; + this.bigqueryconnection = bigqueryconnection_1.bigqueryconnection; + this.bigquerydatatransfer = bigquerydatatransfer_1.bigquerydatatransfer; + this.bigqueryreservation = bigqueryreservation_1.bigqueryreservation; + this.bigtableadmin = bigtableadmin_1.bigtableadmin; + this.billingbudgets = billingbudgets_1.billingbudgets; + this.binaryauthorization = binaryauthorization_1.binaryauthorization; + this.blogger = blogger_1.blogger; + this.books = books_1.books; + this.businessprofileperformance = businessprofileperformance_1.businessprofileperformance; + this.calendar = calendar_1.calendar; + this.certificatemanager = certificatemanager_1.certificatemanager; + this.chat = chat_1.chat; + this.chromemanagement = chromemanagement_1.chromemanagement; + this.chromepolicy = chromepolicy_1.chromepolicy; + this.chromeuxreport = chromeuxreport_1.chromeuxreport; + this.civicinfo = civicinfo_1.civicinfo; + this.classroom = classroom_1.classroom; + this.cloudasset = cloudasset_1.cloudasset; + this.cloudbilling = cloudbilling_1.cloudbilling; + this.cloudbuild = cloudbuild_1.cloudbuild; + this.cloudchannel = cloudchannel_1.cloudchannel; + this.clouddebugger = clouddebugger_1.clouddebugger; + this.clouddeploy = clouddeploy_1.clouddeploy; + this.clouderrorreporting = clouderrorreporting_1.clouderrorreporting; + this.cloudfunctions = cloudfunctions_1.cloudfunctions; + this.cloudidentity = cloudidentity_1.cloudidentity; + this.cloudiot = cloudiot_1.cloudiot; + this.cloudkms = cloudkms_1.cloudkms; + this.cloudprofiler = cloudprofiler_1.cloudprofiler; + this.cloudresourcemanager = cloudresourcemanager_1.cloudresourcemanager; + this.cloudscheduler = cloudscheduler_1.cloudscheduler; + this.cloudsearch = cloudsearch_1.cloudsearch; + this.cloudshell = cloudshell_1.cloudshell; + this.cloudsupport = cloudsupport_1.cloudsupport; + this.cloudtasks = cloudtasks_1.cloudtasks; + this.cloudtrace = cloudtrace_1.cloudtrace; + this.composer = composer_1.composer; + this.compute = compute_1.compute; + this.connectors = connectors_1.connectors; + this.contactcenteraiplatform = contactcenteraiplatform_1.contactcenteraiplatform; + this.contactcenterinsights = contactcenterinsights_1.contactcenterinsights; + this.container = container_1.container; + this.containeranalysis = containeranalysis_1.containeranalysis; + this.content = content_1.content; + this.contentwarehouse = contentwarehouse_1.contentwarehouse; + this.customsearch = customsearch_1.customsearch; + this.datacatalog = datacatalog_1.datacatalog; + this.dataflow = dataflow_1.dataflow; + this.dataform = dataform_1.dataform; + this.datafusion = datafusion_1.datafusion; + this.datalabeling = datalabeling_1.datalabeling; + this.datalineage = datalineage_1.datalineage; + this.datamigration = datamigration_1.datamigration; + this.datapipelines = datapipelines_1.datapipelines; + this.dataplex = dataplex_1.dataplex; + this.dataproc = dataproc_1.dataproc; + this.datastore = datastore_1.datastore; + this.datastream = datastream_1.datastream; + this.deploymentmanager = deploymentmanager_1.deploymentmanager; + this.dfareporting = dfareporting_1.dfareporting; + this.dialogflow = dialogflow_1.dialogflow; + this.digitalassetlinks = digitalassetlinks_1.digitalassetlinks; + this.discovery = discovery_1.discovery; + this.discoveryengine = discoveryengine_1.discoveryengine; + this.displayvideo = displayvideo_1.displayvideo; + this.dlp = dlp_1.dlp; + this.dns = dns_1.dns; + this.docs = docs_1.docs; + this.documentai = documentai_1.documentai; + this.domains = domains_1.domains; + this.domainsrdap = domainsrdap_1.domainsrdap; + this.doubleclickbidmanager = doubleclickbidmanager_1.doubleclickbidmanager; + this.doubleclicksearch = doubleclicksearch_1.doubleclicksearch; + this.drive = drive_1.drive; + this.driveactivity = driveactivity_1.driveactivity; + this.drivelabels = drivelabels_1.drivelabels; + this.essentialcontacts = essentialcontacts_1.essentialcontacts; + this.eventarc = eventarc_1.eventarc; + this.factchecktools = factchecktools_1.factchecktools; + this.fcm = fcm_1.fcm; + this.fcmdata = fcmdata_1.fcmdata; + this.file = file_1.file; + this.firebase = firebase_1.firebase; + this.firebaseappcheck = firebaseappcheck_1.firebaseappcheck; + this.firebaseappdistribution = firebaseappdistribution_1.firebaseappdistribution; + this.firebasedatabase = firebasedatabase_1.firebasedatabase; + this.firebasedynamiclinks = firebasedynamiclinks_1.firebasedynamiclinks; + this.firebasehosting = firebasehosting_1.firebasehosting; + this.firebaseml = firebaseml_1.firebaseml; + this.firebaserules = firebaserules_1.firebaserules; + this.firebasestorage = firebasestorage_1.firebasestorage; + this.firestore = firestore_1.firestore; + this.fitness = fitness_1.fitness; + this.forms = forms_1.forms; + this.games = games_1.games; + this.gamesConfiguration = gamesConfiguration_1.gamesConfiguration; + this.gamesManagement = gamesManagement_1.gamesManagement; + this.gameservices = gameservices_1.gameservices; + this.genomics = genomics_1.genomics; + this.gkebackup = gkebackup_1.gkebackup; + this.gkehub = gkehub_1.gkehub; + this.gmail = gmail_1.gmail; + this.gmailpostmastertools = gmailpostmastertools_1.gmailpostmastertools; + this.groupsmigration = groupsmigration_1.groupsmigration; + this.groupssettings = groupssettings_1.groupssettings; + this.healthcare = healthcare_1.healthcare; + this.homegraph = homegraph_1.homegraph; + this.iam = iam_1.iam; + this.iamcredentials = iamcredentials_1.iamcredentials; + this.iap = iap_1.iap; + this.ideahub = ideahub_1.ideahub; + this.identitytoolkit = identitytoolkit_1.identitytoolkit; + this.ids = ids_1.ids; + this.indexing = indexing_1.indexing; + this.integrations = integrations_1.integrations; + this.jobs = jobs_1.jobs; + this.kgsearch = kgsearch_1.kgsearch; + this.kmsinventory = kmsinventory_1.kmsinventory; + this.language = language_1.language; + this.libraryagent = libraryagent_1.libraryagent; + this.licensing = licensing_1.licensing; + this.lifesciences = lifesciences_1.lifesciences; + this.localservices = localservices_1.localservices; + this.logging = logging_1.logging; + this.managedidentities = managedidentities_1.managedidentities; + this.manufacturers = manufacturers_1.manufacturers; + this.memcache = memcache_1.memcache; + this.metastore = metastore_1.metastore; + this.migrationcenter = migrationcenter_1.migrationcenter; + this.ml = ml_1.ml; + this.monitoring = monitoring_1.monitoring; + this.mybusinessaccountmanagement = mybusinessaccountmanagement_1.mybusinessaccountmanagement; + this.mybusinessbusinesscalls = mybusinessbusinesscalls_1.mybusinessbusinesscalls; + this.mybusinessbusinessinformation = mybusinessbusinessinformation_1.mybusinessbusinessinformation; + this.mybusinesslodging = mybusinesslodging_1.mybusinesslodging; + this.mybusinessnotifications = mybusinessnotifications_1.mybusinessnotifications; + this.mybusinessplaceactions = mybusinessplaceactions_1.mybusinessplaceactions; + this.mybusinessqanda = mybusinessqanda_1.mybusinessqanda; + this.mybusinessverifications = mybusinessverifications_1.mybusinessverifications; + this.networkconnectivity = networkconnectivity_1.networkconnectivity; + this.networkmanagement = networkmanagement_1.networkmanagement; + this.networksecurity = networksecurity_1.networksecurity; + this.networkservices = networkservices_1.networkservices; + this.notebooks = notebooks_1.notebooks; + this.oauth2 = oauth2_1.oauth2; + this.ondemandscanning = ondemandscanning_1.ondemandscanning; + this.orgpolicy = orgpolicy_1.orgpolicy; + this.osconfig = osconfig_1.osconfig; + this.oslogin = oslogin_1.oslogin; + this.pagespeedonline = pagespeedonline_1.pagespeedonline; + this.paymentsresellersubscription = paymentsresellersubscription_1.paymentsresellersubscription; + this.people = people_1.people; + this.playablelocations = playablelocations_1.playablelocations; + this.playcustomapp = playcustomapp_1.playcustomapp; + this.playdeveloperreporting = playdeveloperreporting_1.playdeveloperreporting; + this.playintegrity = playintegrity_1.playintegrity; + this.plus = plus_1.plus; + this.policyanalyzer = policyanalyzer_1.policyanalyzer; + this.policysimulator = policysimulator_1.policysimulator; + this.policytroubleshooter = policytroubleshooter_1.policytroubleshooter; + this.poly = poly_1.poly; + this.privateca = privateca_1.privateca; + this.prod_tt_sasportal = prod_tt_sasportal_1.prod_tt_sasportal; + this.publicca = publicca_1.publicca; + this.pubsub = pubsub_1.pubsub; + this.pubsublite = pubsublite_1.pubsublite; + this.readerrevenuesubscriptionlinking = readerrevenuesubscriptionlinking_1.readerrevenuesubscriptionlinking; + this.realtimebidding = realtimebidding_1.realtimebidding; + this.recaptchaenterprise = recaptchaenterprise_1.recaptchaenterprise; + this.recommendationengine = recommendationengine_1.recommendationengine; + this.recommender = recommender_1.recommender; + this.redis = redis_1.redis; + this.remotebuildexecution = remotebuildexecution_1.remotebuildexecution; + this.reseller = reseller_1.reseller; + this.resourcesettings = resourcesettings_1.resourcesettings; + this.retail = retail_1.retail; + this.run = run_1.run; + this.runtimeconfig = runtimeconfig_1.runtimeconfig; + this.safebrowsing = safebrowsing_1.safebrowsing; + this.sasportal = sasportal_1.sasportal; + this.script = script_1.script; + this.searchads360 = searchads360_1.searchads360; + this.searchconsole = searchconsole_1.searchconsole; + this.secretmanager = secretmanager_1.secretmanager; + this.securitycenter = securitycenter_1.securitycenter; + this.serviceconsumermanagement = serviceconsumermanagement_1.serviceconsumermanagement; + this.servicecontrol = servicecontrol_1.servicecontrol; + this.servicedirectory = servicedirectory_1.servicedirectory; + this.servicemanagement = servicemanagement_1.servicemanagement; + this.servicenetworking = servicenetworking_1.servicenetworking; + this.serviceusage = serviceusage_1.serviceusage; + this.sheets = sheets_1.sheets; + this.siteVerification = siteVerification_1.siteVerification; + this.slides = slides_1.slides; + this.smartdevicemanagement = smartdevicemanagement_1.smartdevicemanagement; + this.sourcerepo = sourcerepo_1.sourcerepo; + this.spanner = spanner_1.spanner; + this.speech = speech_1.speech; + this.sql = sql_1.sql; + this.sqladmin = sqladmin_1.sqladmin; + this.storage = storage_1.storage; + this.storagetransfer = storagetransfer_1.storagetransfer; + this.streetviewpublish = streetviewpublish_1.streetviewpublish; + this.sts = sts_1.sts; + this.tagmanager = tagmanager_1.tagmanager; + this.tasks = tasks_1.tasks; + this.testing = testing_1.testing; + this.texttospeech = texttospeech_1.texttospeech; + this.toolresults = toolresults_1.toolresults; + this.tpu = tpu_1.tpu; + this.trafficdirector = trafficdirector_1.trafficdirector; + this.transcoder = transcoder_1.transcoder; + this.translate = translate_1.translate; + this.travelimpactmodel = travelimpactmodel_1.travelimpactmodel; + this.vault = vault_1.vault; + this.vectortile = vectortile_1.vectortile; + this.verifiedaccess = verifiedaccess_1.verifiedaccess; + this.versionhistory = versionhistory_1.versionhistory; + this.videointelligence = videointelligence_1.videointelligence; + this.vision = vision_1.vision; + this.vmmigration = vmmigration_1.vmmigration; + this.vpcaccess = vpcaccess_1.vpcaccess; + this.webfonts = webfonts_1.webfonts; + this.webmasters = webmasters_1.webmasters; + this.webrisk = webrisk_1.webrisk; + this.websecurityscanner = websecurityscanner_1.websecurityscanner; + this.workflowexecutions = workflowexecutions_1.workflowexecutions; + this.workflows = workflows_1.workflows; + this.workloadmanager = workloadmanager_1.workloadmanager; + this.workstations = workstations_1.workstations; + this.youtube = youtube_1.youtube; + this.youtubeAnalytics = youtubeAnalytics_1.youtubeAnalytics; + this.youtubereporting = youtubereporting_1.youtubereporting; + } +} +exports.GeneratedAPIs = GeneratedAPIs; + + +/***/ }), + +/***/ 1446: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.content_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 = __webpack_require__(927); +var content_v2; +(function (content_v2) { + /** + * Content API for Shopping + * + * Manage your product listings and accounts for Google Shopping + * + * @example + * ```js + * const {google} = require('googleapis'); + * const content = google.content('v2'); + * ``` + */ + class Content { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.accountstatuses = new Resource$Accountstatuses(this.context); + this.accounttax = new Resource$Accounttax(this.context); + this.datafeeds = new Resource$Datafeeds(this.context); + this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); + this.liasettings = new Resource$Liasettings(this.context); + this.orderinvoices = new Resource$Orderinvoices(this.context); + this.orderreports = new Resource$Orderreports(this.context); + this.orderreturns = new Resource$Orderreturns(this.context); + this.orders = new Resource$Orders(this.context); + this.pos = new Resource$Pos(this.context); + this.products = new Resource$Products(this.context); + this.productstatuses = new Resource$Productstatuses(this.context); + this.shippingsettings = new Resource$Shippingsettings(this.context); + } + } + content_v2.Content = Content; + class Resource$Accounts { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + authinfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118271,26 +115286,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + claimwebsite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118303,27 +115317,28 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118334,28 +115349,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118366,28 +115379,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118398,34 +115409,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Subaccounts = Resource$Subaccounts; - class Resource$Targetableremarketinglists { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118436,28 +115439,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), + url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + link(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118468,34 +115469,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; - class Resource$Targetingtemplates { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118506,28 +115499,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118538,26 +115529,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accountstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118570,26 +115566,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118602,26 +115597,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118634,33 +115628,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Targetingtemplates = Resource$Targetingtemplates; - class Resource$Userprofiles { + content_v2.Resource$Accountstatuses = Resource$Accountstatuses; + class Resource$Accounttax { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118671,27 +115665,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118702,33 +115695,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userrolepermissiongroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118739,26 +115725,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118771,32 +115756,31 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; - class Resource$Userrolepermissions { + content_v2.Resource$Accounttax = Resource$Accounttax; + class Resource$Datafeeds { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118809,28 +115793,26 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118841,33 +115823,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Userrolepermissions = Resource$Userrolepermissions; - class Resource$Userroles { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + fetchnow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118878,23 +115854,23 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -118909,23 +115885,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -118940,22 +115915,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -118970,25 +115945,25 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -119000,26 +115975,33 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2.Resource$Datafeeds = Resource$Datafeeds; + class Resource$Datafeedstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119030,32 +116012,27 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_4.Resource$Userroles = Resource$Userroles; - class Resource$Videoformats { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119066,23 +116043,22 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -119098,544 +116074,61 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_4.Resource$Videoformats = Resource$Videoformats; -})(dfareporting_v3_4 = exports.dfareporting_v3_4 || (exports.dfareporting_v3_4 = {})); -//# sourceMappingURL=v3.4.js.map - -/***/ }), -/* 293 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Copyright 2020 The Oppia Authors. All Rights Reserved. -// -// 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. - -/** - * @fileoverview File to handle checks when a issue is labeled. - */ - -const core = __webpack_require__(470); -const { context, GitHub } = __webpack_require__(469); -const whitelist = __webpack_require__(35); -const GOOD_FIRST_LABEL = 'good first issue'; -const prLabels = ['dependencies', 'stale']; - -const checkLabels = async () => { - core.info('Checking newly added label...'); - const token = core.getInput('repo-token'); - const label = context.payload.label; - const octokit = new GitHub(token); - const user = context.payload.sender.login; - - if ( - label.name === GOOD_FIRST_LABEL && - !whitelist.goodFirstIssue.includes(user) - ) { - core.info('Good first issue label got added by non whitelisted user.'); - await handleGoodFirstIssueLabel(octokit, user); - } else if (prLabels.includes(label.name) || label.name.startsWith('PR')) { - core.info('PR label got added on an issue'); - await handlePRLabel(octokit, label.name, user); - } -}; - -/** - * Handles cases when a good first issue gets added by a non whitelisted user. - * - * @param {import('@actions/github').GitHub} octokit - * @param {String} user - Username of the user that added the label. - */ -const handleGoodFirstIssueLabel = async (octokit, user) => { - const issueNumber = context.payload.issue.number; - // Comment on the issue and ping the onboarding team lead. - await octokit.issues.createComment( - { - body: 'Hi @' + user + ', thanks for proposing this as a good first ' + - 'issue. I am removing the label for now and looping in ' + - '@' + whitelist.teamLeads.onboardingTeam + ' to approve the label. ' + - 'It will be added back if approved. Thanks!', - issue_number: issueNumber, - owner: context.repo.owner, - repo: context.repo.repo, - } - ); - // Remove the label. - core.info('Removing the label.'); - await octokit.issues.removeLabel({ - issue_number: issueNumber, - name: GOOD_FIRST_LABEL, - owner: context.repo.owner, - repo: context.repo.repo - }); - - // Assign issue to Team Lead. - core.info(`Assigning to ${whitelist.teamLeads.onboardingTeam}.`); - await octokit.issues.addAssignees({ - issue_number: issueNumber, - owner: context.repo.owner, - repo: context.repo.repo, - assignees: [whitelist.teamLeads.onboardingTeam], - }); -}; - -/** - * Handles cases when a PR label gets added to an issue. - * - * @param {import('@actions/github').GitHub} octokit - * @param {String} label - Name of label that got added. - * @param {String} user - Username of the user that added the label. - */ -const handlePRLabel = async (octokit, label, user) => { - const issueNumber = context.payload.issue.number; - const linkText = 'here'; - // Add link to wiki. - const link = linkText.link( - 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#' + - 'labeling-issues-and-pull-requests'); - let commentBody = ''; - if (label.startsWith('PR CHANGELOG')) { - // Handle case for a changelog label. - commentBody = ( - 'Hi @' + user + ', changelog labels should not be used on issues.' + - ' I’m removing the label. You can learn more about labels ' + link + - '. Thanks!'); - } else { - commentBody = ( - 'Hi @' + user + ', the ' + label + ' label should only be used in ' + - 'pull requests. I’m removing the label. You can learn more about ' + - 'labels ' + link + '. Thanks!'); - } - - await octokit.issues.createComment( - { - body: commentBody, - issue_number: issueNumber, - owner: context.repo.owner, - repo: context.repo.repo, - } - ); - - // Remove the label. - core.info('Removing the label.'); - await octokit.issues.removeLabel({ - issue_number: issueNumber, - name: label, - owner: context.repo.owner, - repo: context.repo.repo - }); -}; - -module.exports = { - checkLabels, -}; - - -/***/ }), -/* 294 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.firebase = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(172); -exports.VERSIONS = { - v1beta1: v1beta1_1.firebase_v1beta1.Firebase, -}; -function firebase(versionOrOptions) { - return googleapis_common_1.getAPI('firebase', versionOrOptions, exports.VERSIONS, this); -} -exports.firebase = firebase; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 295 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.monitoring = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(918); -const v3_1 = __webpack_require__(653); -exports.VERSIONS = { - v1: v1_1.monitoring_v1.Monitoring, - v3: v3_1.monitoring_v3.Monitoring, -}; -function monitoring(versionOrOptions) { - return googleapis_common_1.getAPI('monitoring', versionOrOptions, exports.VERSIONS, this); -} -exports.monitoring = monitoring; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 296 */, -/* 297 */ -/***/ (function(module) { - -module.exports = class HttpError extends Error { - constructor (message, code, headers) { - super(message) - - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) - } - - this.name = 'HttpError' - this.code = code - this.headers = headers - } -} - - -/***/ }), -/* 298 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -/*global exports*/ -var SignStream = __webpack_require__(508); -var VerifyStream = __webpack_require__(443); - -var ALGORITHMS = [ - 'HS256', 'HS384', 'HS512', - 'RS256', 'RS384', 'RS512', - 'PS256', 'PS384', 'PS512', - 'ES256', 'ES384', 'ES512' -]; - -exports.ALGORITHMS = ALGORITHMS; -exports.sign = SignStream.sign; -exports.verify = VerifyStream.verify; -exports.decode = VerifyStream.decode; -exports.isValid = VerifyStream.isValid; -exports.createSign = function createSign(opts) { - return new SignStream(opts); -}; -exports.createVerify = function createVerify(opts) { - return new VerifyStream(opts); -}; - - -/***/ }), -/* 299 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -const VERSION = "1.1.2"; - -/** - * Some “list” response that can be paginated have a different response structure - * - * They have a `total_count` key in the response (search also has `incomplete_results`, - * /installation/repositories also has `repository_selection`), as well as a key with - * the list of the items which name varies from endpoint to endpoint: - * - * - https://developer.github.com/v3/search/#example (key `items`) - * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`) - * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`) - * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`) - * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`) - * - * Octokit normalizes these responses so that paginated results are always returned following - * the same structure. One challenge is that if the list response has only one page, no Link - * header is provided, so this header alone is not sufficient to check wether a response is - * paginated or not. For the exceptions with the namespace, a fallback check for the route - * paths has to be added in order to normalize the response. We cannot check for the total_count - * property because it also exists in the response of Get the combined status for a specific ref. - */ -const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/]; -function normalizePaginatedListResponse(octokit, url, response) { - const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, ""); - const responseNeedsNormalization = REGEX.find(regex => regex.test(path)); - if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way - // to retrieve the same information. - - const incompleteResults = response.data.incomplete_results; - const repositorySelection = response.data.repository_selection; - const totalCount = response.data.total_count; - delete response.data.incomplete_results; - delete response.data.repository_selection; - delete response.data.total_count; - const namespaceKey = Object.keys(response.data)[0]; - const data = response.data[namespaceKey]; - response.data = data; - - if (typeof incompleteResults !== "undefined") { - response.data.incomplete_results = incompleteResults; - } - - if (typeof repositorySelection !== "undefined") { - response.data.repository_selection = repositorySelection; - } - - response.data.total_count = totalCount; - Object.defineProperty(response.data, namespaceKey, { - get() { - octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`); - return Array.from(data); - } - - }); -} - -function iterator(octokit, route, parameters) { - const options = octokit.request.endpoint(route, parameters); - const method = options.method; - const headers = options.headers; - let url = options.url; - return { - [Symbol.asyncIterator]: () => ({ - next() { - if (!url) { - return Promise.resolve({ - done: true - }); - } - - return octokit.request({ - method, - url, - headers - }).then(response => { - normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format: - // '; rel="next", ; rel="last"' - // sets `url` to undefined if "next" URL is not present or `link` header is not set - - url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; - return { - value: response - }; - }); - } - - }) - }; -} - -function paginate(octokit, route, parameters, mapFn) { - if (typeof parameters === "function") { - mapFn = parameters; - parameters = undefined; - } - - return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn); -} - -function gather(octokit, results, iterator, mapFn) { - return iterator.next().then(result => { - if (result.done) { - return results; - } - - let earlyExit = false; - - function done() { - earlyExit = true; - } - - results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data); - - if (earlyExit) { - return results; - } - - return gather(octokit, results, iterator, mapFn); - }); -} - -/** - * @param octokit Octokit instance - * @param options Options passed to Octokit constructor - */ - -function paginateRest(octokit) { - return { - paginate: Object.assign(paginate.bind(null, octokit), { - iterator: iterator.bind(null, octokit) - }) - }; -} -paginateRest.VERSION = VERSION; - -exports.paginateRest = paginateRest; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 300 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.androidpublisher = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1_1 = __webpack_require__(122); -const v1_1 = __webpack_require__(286); -const v2_1 = __webpack_require__(945); -const v3_1 = __webpack_require__(827); -exports.VERSIONS = { - 'v1.1': v1_1_1.androidpublisher_v1_1.Androidpublisher, - v1: v1_1.androidpublisher_v1.Androidpublisher, - v2: v2_1.androidpublisher_v2.Androidpublisher, - v3: v3_1.androidpublisher_v3.Androidpublisher, -}; -function androidpublisher(versionOrOptions) { - return googleapis_common_1.getAPI('androidpublisher', versionOrOptions, exports.VERSIONS, this); -} -exports.androidpublisher = androidpublisher; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 301 */, -/* 302 */, -/* 303 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.blogger_v3 = 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 = __webpack_require__(927); -var blogger_v3; -(function (blogger_v3) { - /** - * Blogger API v3 - * - * The Blogger API provides access to posts, comments and pages of a Blogger blog. - * - * @example - * const {google} = require('googleapis'); - * const blogger = google.blogger('v3'); - * - * @namespace blogger - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Blogger - */ - class Blogger { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.blogs = new Resource$Blogs(this.context); - this.blogUserInfos = new Resource$Bloguserinfos(this.context); - this.comments = new Resource$Comments(this.context); - this.pages = new Resource$Pages(this.context); - this.pageViews = new Resource$Pageviews(this.context); - this.posts = new Resource$Posts(this.context); - this.postUserInfos = new Resource$Postuserinfos(this.context); - this.users = new Resource$Users(this.context); - } - } - blogger_v3.Blogger = Blogger; - class Resource$Blogs { + content_v2.Resource$Datafeedstatuses = Resource$Datafeedstatuses; + class Resource$Liasettings { constructor(context) { this.context = context; } + custombatch(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://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119648,26 +116141,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getByUrl(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119678,25 +116172,26 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/byurl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['url'], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listByUser(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -119708,31 +116203,25 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Blogs = Resource$Blogs; - class Resource$Bloguserinfos { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119745,32 +116234,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'blogId'], - pathParams: ['blogId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Bloguserinfos = Resource$Bloguserinfos; - class Resource$Comments { - constructor(context) { - this.context = context; - } - approve(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119781,27 +116265,28 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/approve').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['merchantId', 'accountId', 'gmbEmail'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119812,56 +116297,68 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setinventoryverificationcontact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: [ + 'merchantId', + 'accountId', + 'country', + 'language', + 'contactName', + 'contactEmail', + ], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119872,25 +116369,26 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listByBlog(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119903,25 +116401,31 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Liasettings = Resource$Liasettings; + class Resource$Orderinvoices { + constructor(context) { + this.context = context; + } + createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119934,26 +116438,26 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/spam').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeContent(paramsOrCallback, optionsOrCallback, callback) { + createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119966,33 +116470,34 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - blogger_v3.Resource$Comments = Resource$Comments; - class Resource$Pages { + content_v2.Resource$Orderinvoices = Resource$Orderinvoices; + class Resource$Orderreports { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120003,26 +116508,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listtransactions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120033,25 +116539,32 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['merchantId', 'disbursementId'], + pathParams: ['disbursementId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Orderreports = Resource$Orderreports; + class Resource$Orderreturns { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -120063,26 +116576,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120093,26 +116607,33 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2.Resource$Orderreturns = Resource$Orderreturns; + class Resource$Orders { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120123,26 +116644,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120153,25 +116675,25 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -120183,62 +116705,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/revert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], - 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://blogger.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Pages = Resource$Pages; - class Resource$Pageviews { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancellineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120249,32 +116736,28 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pageviews').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Pageviews = Resource$Pageviews; - class Resource$Posts { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120285,26 +116768,28 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createtestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120315,26 +116800,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getByPath(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createtestreturn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120345,26 +116831,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/bypath').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'path'], - pathParams: ['blogId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120375,25 +116862,25 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/orders/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -120405,26 +116892,27 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120435,26 +116923,28 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120465,26 +116955,28 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120495,25 +116987,26 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/revert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -120525,25 +117018,25 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'q'], - pathParams: ['blogId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + refund(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -120555,31 +117048,25 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Posts = Resource$Posts; - class Resource$Postuserinfos { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120592,25 +117079,26 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'blogId', 'postId'], - pathParams: ['blogId', 'postId', 'userId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + returnlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120623,32 +117111,28 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/returnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'blogId'], - pathParams: ['blogId', 'userId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Postuserinfos = Resource$Postuserinfos; - class Resource$Users { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120659,101 +117143,26 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Users = Resource$Users; -})(blogger_v3 = exports.blogger_v3 || (exports.blogger_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 304 */, -/* 305 */, -/* 306 */, -/* 307 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.bigqueryreservation_v1alpha2 = 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 = __webpack_require__(927); -var bigqueryreservation_v1alpha2; -(function (bigqueryreservation_v1alpha2) { - /** - * BigQuery Reservation API - * - * A service to modify your BigQuery flat-rate reservations. - * - * @example - * const {google} = require('googleapis'); - * const bigqueryreservation = google.bigqueryreservation('v1alpha2'); - * - * @namespace bigqueryreservation - * @type {Function} - * @version v1alpha2 - * @variation v1alpha2 - * @param {object=} options Options for Bigqueryreservation - */ - class Bigqueryreservation { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - bigqueryreservation_v1alpha2.Bigqueryreservation = Bigqueryreservation; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - bigqueryreservation_v1alpha2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.reservationGrants = new Resource$Projects$Locations$Reservationgrants(this.context); - this.reservations = new Resource$Projects$Locations$Reservations(this.context); - } - searchReservationGrants(paramsOrCallback, optionsOrCallback, callback) { + setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120766,31 +117175,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}:SearchReservationGrants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + shiplineitems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120803,25 +117207,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120834,31 +117239,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Reservationgrants { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120871,25 +117271,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateshipment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -120902,27 +117303,33 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + content_v2.Resource$Orders = Resource$Orders; + class Resource$Pos { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120933,34 +117340,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/pos/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservationgrants = Resource$Projects$Locations$Reservationgrants; - class Resource$Projects$Locations$Reservations { - constructor(context) { - this.context = context; - this.slotPools = new Resource$Projects$Locations$Reservations$Slotpools(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -120971,27 +117370,27 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createReservation(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121002,27 +117401,27 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121033,27 +117432,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + inventory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121064,27 +117462,27 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121095,27 +117493,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + sale(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121126,31 +117523,31 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; - class Resource$Projects$Locations$Reservations$Slotpools { + content_v2.Resource$Pos = Resource$Pos; + class Resource$Products { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -121163,27 +117560,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2/products/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121194,27 +117590,26 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121225,89 +117620,25 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/slotPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations$Slotpools = Resource$Projects$Locations$Reservations$Slotpools; -})(bigqueryreservation_v1alpha2 = exports.bigqueryreservation_v1alpha2 || (exports.bigqueryreservation_v1alpha2 = {})); -//# sourceMappingURL=v1alpha2.js.map - -/***/ }), -/* 308 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.customsearch_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 = __webpack_require__(927); -var customsearch_v1; -(function (customsearch_v1) { - /** - * Custom Search API - * - * Searches over a website or collection of websites - * - * @example - * const {google} = require('googleapis'); - * const customsearch = google.customsearch('v1'); - * - * @namespace customsearch - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Customsearch - */ - class Customsearch { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.cse = new Resource$Cse(this.context); - } - } - customsearch_v1.Customsearch = Customsearch; - class Resource$Cse { - constructor(context) { - this.context = context; - this.siterestrict = new Resource$Cse$Siterestrict(this.context); - } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -121319,33 +117650,26 @@ var customsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/customsearch/v1').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - customsearch_v1.Resource$Cse = Resource$Cse; - class Resource$Cse$Siterestrict { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121356,88 +117680,31 @@ var customsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/customsearch/v1/siterestrict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - customsearch_v1.Resource$Cse$Siterestrict = Resource$Cse$Siterestrict; -})(customsearch_v1 = exports.customsearch_v1 || (exports.customsearch_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 309 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudshell_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 = __webpack_require__(927); -var cloudshell_v1; -(function (cloudshell_v1) { - /** - * Cloud Shell API - * - * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. - * - * @example - * const {google} = require('googleapis'); - * const cloudshell = google.cloudshell('v1'); - * - * @namespace cloudshell - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudshell - */ - class Cloudshell { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - } - } - cloudshell_v1.Cloudshell = Cloudshell; - class Resource$Operations { + content_v2.Resource$Products = Resource$Products; + class Resource$Productstatuses { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -121450,25 +117717,25 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -121481,56 +117748,27 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.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://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121541,242 +117779,31 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - cloudshell_v1.Resource$Operations = Resource$Operations; -})(cloudshell_v1 = exports.cloudshell_v1 || (exports.cloudshell_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 310 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2013 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 }); -const arrify = __webpack_require__(155); -const gcpMetadata = __webpack_require__(479); -const oauth2client_1 = __webpack_require__(449); -class Compute extends oauth2client_1.OAuth2Client { - /** - * Google Compute Engine service account credentials. - * - * Retrieve access token from the metadata server. - * See: https://developers.google.com/compute/docs/authentication - */ - constructor(options = {}) { - super(options); - // Start with an expired refresh token, which will automatically be - // refreshed before the first API call is made. - this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; - this.serviceAccountEmail = options.serviceAccountEmail || 'default'; - this.scopes = arrify(options.scopes); - } - /** - * Refreshes the access token. - * @param refreshToken Unused parameter - */ - async refreshTokenNoCache(refreshToken) { - const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; - let data; - try { - const instanceOptions = { - property: tokenPath, - }; - if (this.scopes.length > 0) { - instanceOptions.params = { - scopes: this.scopes.join(','), - }; - } - data = await gcpMetadata.instance(instanceOptions); - } - catch (e) { - e.message = `Could not refresh access token: ${e.message}`; - this.wrapError(e); - throw e; - } - const tokens = data; - if (data && data.expires_in) { - tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; - delete tokens.expires_in; - } - this.emit('tokens', tokens); - return { tokens, res: null }; - } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + - `?format=full&audience=${targetAudience}`; - let idToken; - try { - const instanceOptions = { - property: idTokenPath, - }; - idToken = await gcpMetadata.instance(instanceOptions); - } - catch (e) { - e.message = `Could not fetch ID token: ${e.message}`; - throw e; - } - return idToken; - } - wrapError(e) { - const res = e.response; - if (res && res.status) { - e.code = res.status.toString(); - if (res.status === 403) { - e.message = - 'A Forbidden error was returned while attempting to retrieve an access ' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have the correct permission scopes specified: ' + - e.message; - } - else if (res.status === 404) { - e.message = - 'A Not Found error was returned while attempting to retrieve an access' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have any permission scopes specified: ' + - e.message; + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } -} -exports.Compute = Compute; -//# sourceMappingURL=computeclient.js.map - -/***/ }), -/* 311 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.doubleclicksearch_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 = __webpack_require__(927); -var doubleclicksearch_v2; -(function (doubleclicksearch_v2) { - /** - * Search Ads 360 API - * - * Reports and modifies your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions). - * - * @example - * const {google} = require('googleapis'); - * const doubleclicksearch = google.doubleclicksearch('v2'); - * - * @namespace doubleclicksearch - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Doubleclicksearch - */ - class Doubleclicksearch { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.conversion = new Resource$Conversion(this.context); - this.reports = new Resource$Reports(this.context); - this.savedColumns = new Resource$Savedcolumns(this.context); - } - } - doubleclicksearch_v2.Doubleclicksearch = Doubleclicksearch; - class Resource$Conversion { + content_v2.Resource$Productstatuses = Resource$Productstatuses; + class Resource$Shippingsettings { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [ - 'agencyId', - 'advertiserId', - 'engineAccountId', - 'endDate', - 'rowCount', - 'startDate', - 'startRow', - ], - pathParams: ['advertiserId', 'agencyId', 'engineAccountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -121789,10 +117816,10 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -121801,13 +117828,13 @@ var doubleclicksearch_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -121820,25 +117847,25 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAvailability(paramsOrCallback, optionsOrCallback, callback) { + getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -121851,32 +117878,27 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/conversion/updateAvailability').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - doubleclicksearch_v2.Resource$Conversion = Resource$Conversion; - class Resource$Reports { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121887,56 +117909,59 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/reports/generate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getsupportedpickupservices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportId'], - pathParams: ['reportId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFile(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121947,27 +117972,27 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportId', 'reportFragment'], - pathParams: ['reportFragment', 'reportId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - request(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -121978,69 +118003,185 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - doubleclicksearch_v2.Resource$Reports = Resource$Reports; - class Resource$Savedcolumns { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['agencyId', 'advertiserId'], - pathParams: ['advertiserId', 'agencyId'], - context: this.context, + content_v2.Resource$Shippingsettings = Resource$Shippingsettings; +})(content_v2 = exports.content_v2 || (exports.content_v2 = {})); + + +/***/ }), + +/***/ 1452: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.libraryagent_v1 = exports.auth = exports.libraryagent = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8164); +Object.defineProperty(exports, "libraryagent_v1", { enumerable: true, get: function () { return v1_1.libraryagent_v1; } }); +exports.VERSIONS = { + v1: v1_1.libraryagent_v1.Libraryagent, +}; +function libraryagent(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('libraryagent', versionOrOptions, exports.VERSIONS, this); +} +exports.libraryagent = libraryagent; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1469: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts +const graphql_1 = __webpack_require__(4898); +const rest_1 = __webpack_require__(0); +const Context = __importStar(__webpack_require__(7262)); +const httpClient = __importStar(__webpack_require__(4983)); +// We need this in order to extend Octokit +rest_1.Octokit.prototype = new rest_1.Octokit(); +exports.context = new Context.Context(); +class GitHub extends rest_1.Octokit { + constructor(token, opts) { + super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts))); + this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts)); + } + /** + * Disambiguates the constructor overload parameters + */ + static disambiguate(token, opts) { + return [ + typeof token === 'string' ? token : '', + typeof token === 'object' ? token : opts || {} + ]; + } + static getOctokitOptions(args) { + const token = args[0]; + const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller + // Base URL - GHES or Dotcom + options.baseUrl = options.baseUrl || this.getApiBaseUrl(); + // Auth + const auth = GitHub.getAuthString(token, options); + if (auth) { + options.auth = auth; + } + // Proxy + const agent = GitHub.getProxyAgent(options.baseUrl, options); + if (agent) { + // Shallow clone - don't mutate the object provided by the caller + options.request = options.request ? Object.assign({}, options.request) : {}; + // Set the agent + options.request.agent = agent; + } + return options; + } + static getGraphQL(args) { + const defaults = {}; + defaults.baseUrl = this.getGraphQLBaseUrl(); + const token = args[0]; + const options = args[1]; + // Authorization + const auth = this.getAuthString(token, options); + if (auth) { + defaults.headers = { + authorization: auth }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); + } + // Proxy + const agent = GitHub.getProxyAgent(defaults.baseUrl, options); + if (agent) { + defaults.request = { agent }; + } + return graphql_1.graphql.defaults(defaults); + } + static getAuthString(token, options) { + // Validate args + if (!token && !options.auth) { + throw new Error('Parameter token or opts.auth is required'); + } + else if (token && options.auth) { + throw new Error('Parameters token and opts.auth may not both be specified'); + } + return typeof options.auth === 'string' ? options.auth : `token ${token}`; + } + static getProxyAgent(destinationUrl, options) { + var _a; + if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) { + if (httpClient.getProxyUrl(destinationUrl)) { + const hc = new httpClient.HttpClient(); + return hc.getAgent(destinationUrl); } } + return undefined; } - doubleclicksearch_v2.Resource$Savedcolumns = Resource$Savedcolumns; -})(doubleclicksearch_v2 = exports.doubleclicksearch_v2 || (exports.doubleclicksearch_v2 = {})); -//# sourceMappingURL=v2.js.map + static getApiBaseUrl() { + return process.env['GITHUB_API_URL'] || 'https://api.github.com'; + } + static getGraphQLBaseUrl() { + let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql'; + // Shouldn't be a trailing slash, but remove if so + if (url.endsWith('/')) { + url = url.substr(0, url.length - 1); + } + // Remove trailing "/graphql" + if (url.toUpperCase().endsWith('/GRAPHQL')) { + url = url.substr(0, url.length - '/graphql'.length); + } + return url; + } +} +exports.GitHub = GitHub; +//# sourceMappingURL=github.js.map /***/ }), -/* 312 */ + +/***/ 1470: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -122058,23 +118199,77 @@ var doubleclicksearch_v2; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.games = exports.VERSIONS = void 0; +exports.AuthPlus = exports.mybusinessbusinessinformation_v1 = exports.auth = exports.mybusinessbusinessinformation = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(437); +const v1_1 = __webpack_require__(5585); +Object.defineProperty(exports, "mybusinessbusinessinformation_v1", { enumerable: true, get: function () { return v1_1.mybusinessbusinessinformation_v1; } }); exports.VERSIONS = { - v1: v1_1.games_v1.Games, + v1: v1_1.mybusinessbusinessinformation_v1.Mybusinessbusinessinformation, }; -function games(versionOrOptions) { - return googleapis_common_1.getAPI('games', versionOrOptions, exports.VERSIONS, this); +function mybusinessbusinessinformation(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessbusinessinformation', versionOrOptions, exports.VERSIONS, this); } -exports.games = games; +exports.mybusinessbusinessinformation = mybusinessbusinessinformation; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1471: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticationBeforeRequest; + +const btoa = __webpack_require__(397); +const uniq = __webpack_require__(126); + +function authenticationBeforeRequest(state, options) { + if (!state.auth.type) { + return; + } + + if (state.auth.type === "basic") { + const hash = btoa(`${state.auth.username}:${state.auth.password}`); + options.headers.authorization = `Basic ${hash}`; + return; + } + + if (state.auth.type === "token") { + options.headers.authorization = `token ${state.auth.token}`; + return; + } + + if (state.auth.type === "app") { + options.headers.authorization = `Bearer ${state.auth.token}`; + const acceptHeaders = options.headers.accept + .split(",") + .concat("application/vnd.github.machine-man-preview+json"); + options.headers.accept = uniq(acceptHeaders) + .filter(Boolean) + .join(","); + return; + } + + options.url += options.url.indexOf("?") === -1 ? "?" : "&"; + + if (state.auth.token) { + options.url += `access_token=${encodeURIComponent(state.auth.token)}`; + return; + } + + const key = encodeURIComponent(state.auth.key); + const secret = encodeURIComponent(state.auth.secret); + options.url += `client_id=${key}&client_secret=${secret}`; +} + /***/ }), -/* 313 */ + +/***/ 1478: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -122092,49 +118287,43 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.clouderrorreporting_v1beta1 = void 0; +exports.mybusinessverifications_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 = __webpack_require__(927); -var clouderrorreporting_v1beta1; -(function (clouderrorreporting_v1beta1) { +var mybusinessverifications_v1; +(function (mybusinessverifications_v1) { /** - * Error Reporting API + * My Business Verifications API * - * Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors. + * The My Business Verifications API provides an interface for taking verifications related actions for locations. * * @example + * ```js * const {google} = require('googleapis'); - * const clouderrorreporting = google.clouderrorreporting('v1beta1'); - * - * @namespace clouderrorreporting - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Clouderrorreporting + * const mybusinessverifications = google.mybusinessverifications('v1'); + * ``` */ - class Clouderrorreporting { + class Mybusinessverifications { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.locations = new Resource$Locations(this.context); + this.verificationTokens = new Resource$Verificationtokens(this.context); } } - clouderrorreporting_v1beta1.Clouderrorreporting = Clouderrorreporting; - class Resource$Projects { + mybusinessverifications_v1.Mybusinessverifications = Mybusinessverifications; + class Resource$Locations { constructor(context) { this.context = context; - this.events = new Resource$Projects$Events(this.context); - this.groups = new Resource$Projects$Groups(this.context); - this.groupStats = new Resource$Projects$Groupstats(this.context); + this.verifications = new Resource$Locations$Verifications(this.context); } - deleteEvents(paramsOrCallback, optionsOrCallback, callback) { + fetchVerificationOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122147,31 +118336,25 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+location}:fetchVerificationOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - clouderrorreporting_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Events { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + getVoiceOfMerchantState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122184,27 +118367,26 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/VoiceOfMerchantState').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - report(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -122215,31 +118397,31 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/events:report').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - clouderrorreporting_v1beta1.Resource$Projects$Events = Resource$Projects$Events; - class Resource$Projects$Groups { + mybusinessverifications_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Verifications { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + complete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122252,25 +118434,25 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupName'], - pathParams: ['groupName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122283,31 +118465,31 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/verifications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - clouderrorreporting_v1beta1.Resource$Projects$Groups = Resource$Projects$Groups; - class Resource$Projects$Groupstats { + mybusinessverifications_v1.Resource$Locations$Verifications = Resource$Locations$Verifications; + class Resource$Verificationtokens { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122320,183 +118502,326 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/verificationTokens:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - clouderrorreporting_v1beta1.Resource$Projects$Groupstats = Resource$Projects$Groupstats; -})(clouderrorreporting_v1beta1 = exports.clouderrorreporting_v1beta1 || (exports.clouderrorreporting_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + mybusinessverifications_v1.Resource$Verificationtokens = Resource$Verificationtokens; +})(mybusinessverifications_v1 = exports.mybusinessverifications_v1 || (exports.mybusinessverifications_v1 = {})); -/***/ }), -/* 314 */, -/* 315 */, -/* 316 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudscheduler = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(570); -const v1beta1_1 = __webpack_require__(124); -exports.VERSIONS = { - v1: v1_1.cloudscheduler_v1.Cloudscheduler, - v1beta1: v1beta1_1.cloudscheduler_v1beta1.Cloudscheduler, -}; -function cloudscheduler(versionOrOptions) { - return googleapis_common_1.getAPI('cloudscheduler', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudscheduler = cloudscheduler; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 317 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.policytroubleshooter = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(1); -const v1beta_1 = __webpack_require__(482); -exports.VERSIONS = { - v1: v1_1.policytroubleshooter_v1.Policytroubleshooter, - v1beta: v1beta_1.policytroubleshooter_v1beta.Policytroubleshooter, -}; -function policytroubleshooter(versionOrOptions) { - return googleapis_common_1.getAPI('policytroubleshooter', versionOrOptions, exports.VERSIONS, this); -} -exports.policytroubleshooter = policytroubleshooter; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 318 */ +/***/ 1479: /***/ (function(__unusedmodule, exports, __webpack_require__) { "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.auth = exports.cloudasset = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(10); -const v1beta1_1 = __webpack_require__(599); -const v1p1beta1_1 = __webpack_require__(253); -const v1p4beta1_1 = __webpack_require__(320); -exports.VERSIONS = { - v1: v1_1.cloudasset_v1.Cloudasset, - v1beta1: v1beta1_1.cloudasset_v1beta1.Cloudasset, - v1p1beta1: v1p1beta1_1.cloudasset_v1p1beta1.Cloudasset, - v1p4beta1: v1p4beta1_1.cloudasset_v1p4beta1.Cloudasset, +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; -function cloudasset(versionOrOptions) { - return googleapis_common_1.getAPI('cloudasset', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudasset = cloudasset; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 319 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.appengine = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(840); -const v1alpha_1 = __webpack_require__(354); -const v1beta_1 = __webpack_require__(363); -exports.VERSIONS = { - v1: v1_1.appengine_v1.Appengine, - v1alpha: v1alpha_1.appengine_v1alpha.Appengine, - v1beta: v1beta_1.appengine_v1beta.Appengine, -}; -function appengine(versionOrOptions) { - return googleapis_common_1.getAPI('appengine', versionOrOptions, exports.VERSIONS, this); +exports.requestTimeout = exports.setGCPResidency = exports.gcpResidencyCache = exports.resetIsAvailableCache = exports.isAvailable = exports.project = exports.instance = exports.HEADERS = exports.HEADER_VALUE = exports.HEADER_NAME = exports.SECONDARY_HOST_ADDRESS = exports.HOST_ADDRESS = exports.BASE_PATH = void 0; +const gaxios_1 = __webpack_require__(3597); +const jsonBigint = __webpack_require__(5738); +const gcp_residency_1 = __webpack_require__(4460); +exports.BASE_PATH = '/computeMetadata/v1'; +exports.HOST_ADDRESS = 'http://169.254.169.254'; +exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; +exports.HEADER_NAME = 'Metadata-Flavor'; +exports.HEADER_VALUE = 'Google'; +exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); +/** + * Returns the base URL while taking into account the GCE_METADATA_HOST + * environment variable if it exists. + * + * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. + */ +function getBaseUrl(baseUrl) { + if (!baseUrl) { + baseUrl = + process.env.GCE_METADATA_IP || + process.env.GCE_METADATA_HOST || + exports.HOST_ADDRESS; + } + // If no scheme is provided default to HTTP: + if (!/^https?:\/\//.test(baseUrl)) { + baseUrl = `http://${baseUrl}`; + } + return new URL(exports.BASE_PATH, baseUrl).href; } -exports.appengine = appengine; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; +// Accepts an options object passed from the user to the API. In previous +// versions of the API, it referred to a `Request` or an `Axios` request +// options object. Now it refers to an object with very limited property +// names. This is here to help ensure users don't pass invalid options when +// they upgrade from 0.4 to 0.5 to 0.8. +function validate(options) { + Object.keys(options).forEach(key => { + switch (key) { + case 'params': + case 'property': + case 'headers': + break; + case 'qs': + throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); + default: + throw new Error(`'${key}' is not a valid configuration option.`); + } + }); +} +async function metadataAccessor(type, options, noResponseRetries = 3, fastFail = false) { + options = options || {}; + if (typeof options === 'string') { + options = { property: options }; + } + let property = ''; + if (typeof options === 'object' && options.property) { + property = '/' + options.property; + } + validate(options); + try { + const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; + const res = await requestMethod({ + url: `${getBaseUrl()}/${type}${property}`, + headers: Object.assign({}, exports.HEADERS, options.headers), + retryConfig: { noResponseRetries }, + params: options.params, + responseType: 'text', + timeout: requestTimeout(), + }); + // NOTE: node.js converts all incoming headers to lower case. + if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { + throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`); + } + else if (!res.data) { + throw new Error('Invalid response from the metadata service'); + } + if (typeof res.data === 'string') { + try { + return jsonBigint.parse(res.data); + } + catch (_a) { + /* ignore */ + } + } + return res.data; + } + catch (e) { + const err = e; + if (err.response && err.response.status !== 200) { + err.message = `Unsuccessful response status code. ${err.message}`; + } + throw e; + } +} +async function fastFailMetadataRequest(options) { + const secondaryOptions = { + ...options, + url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), + }; + // We race a connection between DNS/IP to metadata server. There are a couple + // reasons for this: + // + // 1. the DNS is slow in some GCP environments; by checking both, we might + // detect the runtime environment signficantly faster. + // 2. we can't just check the IP, which is tarpitted and slow to respond + // on a user's local machine. + // + // Additional logic has been added to make sure that we don't create an + // unhandled rejection in scenarios where a failure happens sometime + // after a success. + // + // Note, however, if a failure happens prior to a success, a rejection should + // occur, this is for folks running locally. + // + let responded = false; + const r1 = (0, gaxios_1.request)(options) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r2; + } + else { + responded = true; + throw err; + } + }); + const r2 = (0, gaxios_1.request)(secondaryOptions) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r1; + } + else { + responded = true; + throw err; + } + }); + return Promise.race([r1, r2]); +} +/** + * Obtain metadata for the current GCE instance + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function instance(options) { + return metadataAccessor('instance', options); +} +exports.instance = instance; +/** + * Obtain metadata for the current GCP Project. + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function project(options) { + return metadataAccessor('project', options); +} +exports.project = project; +/* + * How many times should we retry detecting GCP environment. + */ +function detectGCPAvailableRetries() { + return process.env.DETECT_GCP_RETRIES + ? Number(process.env.DETECT_GCP_RETRIES) + : 0; +} +let cachedIsAvailableResponse; +/** + * Determine if the metadata server is currently available. + */ +async function isAvailable() { + try { + // If a user is instantiating several GCP libraries at the same time, + // this may result in multiple calls to isAvailable(), to detect the + // runtime environment. We use the same promise for each of these calls + // to reduce the network load. + if (cachedIsAvailableResponse === undefined) { + cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), + // If the default HOST_ADDRESS has been overridden, we should not + // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in + // a non-GCP environment): + !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST)); + } + await cachedIsAvailableResponse; + return true; + } + catch (e) { + const err = e; + if (process.env.DEBUG_AUTH) { + console.info(err); + } + if (err.type === 'request-timeout') { + // If running in a GCP environment, metadata endpoint should return + // within ms. + return false; + } + if (err.response && err.response.status === 404) { + return false; + } + else { + if (!(err.response && err.response.status === 404) && + // A warning is emitted if we see an unexpected err.code, or err.code + // is not populated: + (!err.code || + ![ + 'EHOSTDOWN', + 'EHOSTUNREACH', + 'ENETUNREACH', + 'ENOENT', + 'ENOTFOUND', + 'ECONNREFUSED', + ].includes(err.code))) { + let code = 'UNKNOWN'; + if (err.code) + code = err.code; + process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); + } + // Failure to resolve the metadata service means that it is not available. + return false; + } + } +} +exports.isAvailable = isAvailable; +/** + * reset the memoized isAvailable() lookup. + */ +function resetIsAvailableCache() { + cachedIsAvailableResponse = undefined; +} +exports.resetIsAvailableCache = resetIsAvailableCache; +/** + * A cache for the detected GCP Residency. + */ +exports.gcpResidencyCache = null; +/** + * Sets the detected GCP Residency. + * Useful for forcing metadata server detection behavior. + * + * Set `null` to autodetect the environment (default behavior). + */ +function setGCPResidency(value = null) { + exports.gcpResidencyCache = value !== null ? value : (0, gcp_residency_1.detectGCPResidency)(); +} +exports.setGCPResidency = setGCPResidency; +/** + * Obtain the timeout for requests to the metadata server. + * + * In certain environments and conditions requests can take longer than + * the default timeout to complete. This function will determine the + * appropriate timeout based on the environment. + * + * @returns {number} a request timeout duration in milliseconds. + */ +function requestTimeout() { + // Detecting the residency can be resource-intensive. Let's cache the result. + if (exports.gcpResidencyCache === null) { + exports.gcpResidencyCache = (0, gcp_residency_1.detectGCPResidency)(); + } + return exports.gcpResidencyCache ? 0 : 3000; +} +exports.requestTimeout = requestTimeout; +__exportStar(__webpack_require__(4460), exports); //# sourceMappingURL=index.js.map /***/ }), -/* 320 */ + +/***/ 1480: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -122514,77 +118839,41 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudasset_v1p4beta1 = void 0; +exports.playintegrity_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 = __webpack_require__(927); -var cloudasset_v1p4beta1; -(function (cloudasset_v1p4beta1) { +var playintegrity_v1; +(function (playintegrity_v1) { /** - * Cloud Asset API + * Google Play Integrity API * - * The cloud asset API manages the history and inventory of cloud resources. + * The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudasset = google.cloudasset('v1p4beta1'); - * - * @namespace cloudasset - * @type {Function} - * @version v1p4beta1 - * @variation v1p4beta1 - * @param {object=} options Options for Cloudasset + * const playintegrity = google.playintegrity('v1'); + * ``` */ - class Cloudasset { + class Playintegrity { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.v1p4beta1 = new Resource$V1p4beta1(this.context); + this.v1 = new Resource$V1(this.context); } } - cloudasset_v1p4beta1.Cloudasset = Cloudasset; - class Resource$V1p4beta1 { + playintegrity_v1.Playintegrity = Playintegrity; + class Resource$V1 { constructor(context) { this.context = context; } - analyzeIamPolicy(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://cloudasset.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1p4beta1/{+parent}:analyzeIamPolicy').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); - } - } - exportIamPolicyAnalysis(paramsOrCallback, optionsOrCallback, callback) { + decodeIntegrityToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122597,120 +118886,32 @@ var cloudasset_v1p4beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playintegrity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p4beta1/{+parent}:exportIamPolicyAnalysis').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+packageName}:decodeIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['packageName'], + pathParams: ['packageName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudasset_v1p4beta1.Resource$V1p4beta1 = Resource$V1p4beta1; -})(cloudasset_v1p4beta1 = exports.cloudasset_v1p4beta1 || (exports.cloudasset_v1p4beta1 = {})); -//# sourceMappingURL=v1p4beta1.js.map - -/***/ }), -/* 321 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.kgsearch = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(38); -exports.VERSIONS = { - v1: v1_1.kgsearch_v1.Kgsearch, -}; -function kgsearch(versionOrOptions) { - return googleapis_common_1.getAPI('kgsearch', versionOrOptions, exports.VERSIONS, this); -} -exports.kgsearch = kgsearch; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 322 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; + playintegrity_v1.Resource$V1 = Resource$V1; +})(playintegrity_v1 = exports.playintegrity_v1 || (exports.playintegrity_v1 = {})); -// 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.isBrowser = void 0; -function isBrowser() { - return typeof window !== 'undefined'; -} -exports.isBrowser = isBrowser; -//# sourceMappingURL=isbrowser.js.map /***/ }), -/* 323 */ -/***/ (function(module) { - -"use strict"; - -var isStream = module.exports = function (stream) { - return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function'; -}; - -isStream.writable = function (stream) { - return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object'; -}; - -isStream.readable = function (stream) { - return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object'; -}; - -isStream.duplex = function (stream) { - return isStream.writable(stream) && isStream.readable(stream); -}; - -isStream.transform = function (stream) { - return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object'; -}; - - -/***/ }), -/* 324 */, -/* 325 */ +/***/ 1490: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -122728,23 +118929,30 @@ isStream.transform = function (stream) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.storagetransfer = exports.VERSIONS = void 0; +exports.AuthPlus = exports.datastream_v1alpha1 = exports.datastream_v1 = exports.auth = exports.datastream = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(189); +const v1_1 = __webpack_require__(329); +Object.defineProperty(exports, "datastream_v1", { enumerable: true, get: function () { return v1_1.datastream_v1; } }); +const v1alpha1_1 = __webpack_require__(3913); +Object.defineProperty(exports, "datastream_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.datastream_v1alpha1; } }); exports.VERSIONS = { - v1: v1_1.storagetransfer_v1.Storagetransfer, + v1: v1_1.datastream_v1.Datastream, + v1alpha1: v1alpha1_1.datastream_v1alpha1.Datastream, }; -function storagetransfer(versionOrOptions) { - return googleapis_common_1.getAPI('storagetransfer', versionOrOptions, exports.VERSIONS, this); +function datastream(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datastream', versionOrOptions, exports.VERSIONS, this); } -exports.storagetransfer = storagetransfer; +exports.datastream = datastream; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 326 */ + +/***/ 1508: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -122762,7 +118970,7 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.acceleratedmobilepageurl_v1 = void 0; +exports.remotebuildexecution_v2 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/class-name-casing */ /* eslint-disable @typescript-eslint/no-unused-vars */ @@ -122770,39 +118978,40 @@ exports.acceleratedmobilepageurl_v1 = void 0; /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = __webpack_require__(927); -var acceleratedmobilepageurl_v1; -(function (acceleratedmobilepageurl_v1) { +var remotebuildexecution_v2; +(function (remotebuildexecution_v2) { /** - * Accelerated Mobile Pages (AMP) URL API + * Remote Build Execution API * - * Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). + * Supplies a Remote Execution API service for tools such as bazel. * * @example + * ```js * const {google} = require('googleapis'); - * const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1'); - * - * @namespace acceleratedmobilepageurl - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Acceleratedmobilepageurl + * const remotebuildexecution = google.remotebuildexecution('v2'); + * ``` */ - class Acceleratedmobilepageurl { + class Remotebuildexecution { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.ampUrls = new Resource$Ampurls(this.context); + this.actionResults = new Resource$Actionresults(this.context); + this.actions = new Resource$Actions(this.context); + this.blobs = new Resource$Blobs(this.context); + this.operations = new Resource$Operations(this.context); + this.v2 = new Resource$V2(this.context); } } - acceleratedmobilepageurl_v1.Acceleratedmobilepageurl = Acceleratedmobilepageurl; - class Resource$Ampurls { + remotebuildexecution_v2.Remotebuildexecution = Remotebuildexecution; + class Resource$Actionresults { constructor(context) { this.context = context; } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -122813,104 +119022,25 @@ var acceleratedmobilepageurl_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls; -})(acceleratedmobilepageurl_v1 = exports.acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 327 */, -/* 328 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adexchangebuyer2_v2beta1 = 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 = __webpack_require__(927); -var adexchangebuyer2_v2beta1; -(function (adexchangebuyer2_v2beta1) { - /** - * Ad Exchange Buyer API II - * - * Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals. - * - * @example - * const {google} = require('googleapis'); - * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); - * - * @namespace adexchangebuyer2 - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Adexchangebuyer2 - */ - class Adexchangebuyer2 { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - this.bidders = new Resource$Bidders(this.context); - } - } - adexchangebuyer2_v2beta1.Adexchangebuyer2 = Adexchangebuyer2; - class Resource$Accounts { - constructor(context) { - this.context = context; - this.clients = new Resource$Accounts$Clients(this.context); - this.creatives = new Resource$Accounts$Creatives(this.context); - this.finalizedProposals = new Resource$Accounts$Finalizedproposals(this.context); - this.products = new Resource$Accounts$Products(this.context); - this.proposals = new Resource$Accounts$Proposals(this.context); - this.publisherProfiles = new Resource$Accounts$Publisherprofiles(this.context); - } - } - adexchangebuyer2_v2beta1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Clients { - constructor(context) { - this.context = context; - this.invitations = new Resource$Accounts$Clients$Invitations(this.context); - this.users = new Resource$Accounts$Clients$Users(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122923,27 +119053,32 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + remotebuildexecution_v2.Resource$Actionresults = Resource$Actionresults; + class Resource$Actions { + constructor(context) { + this.context = context; + } + execute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -122954,28 +119089,32 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+instanceName}/actions:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + remotebuildexecution_v2.Resource$Actions = Resource$Actions; + class Resource$Blobs { + constructor(context) { + this.context = context; + } + batchRead(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -122986,25 +119125,25 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+instanceName}/blobs:batchRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123017,32 +119156,25 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+instanceName}/blobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Clients = Resource$Accounts$Clients; - class Resource$Accounts$Clients$Invitations { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + findMissing(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123055,28 +119187,26 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+instanceName}/blobs:findMissing').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getTree(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -123087,26 +119217,31 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'clientAccountId', 'invitationId'], - pathParams: ['accountId', 'clientAccountId', 'invitationId'], + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v2.Resource$Blobs = Resource$Blobs; + class Resource$Operations { + constructor(context) { + this.context = context; + } + waitExecution(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123119,890 +119254,31 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Invitations = Resource$Accounts$Clients$Invitations; - class Resource$Accounts$Clients$Users { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'clientAccountId', 'userId'], - pathParams: ['accountId', 'clientAccountId', 'userId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['accountId', 'clientAccountId', 'userId'], - pathParams: ['accountId', 'clientAccountId', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Users = Resource$Accounts$Clients$Users; - class Resource$Accounts$Creatives { - constructor(context) { - this.context = context; - this.dealAssociations = new Resource$Accounts$Creatives$Dealassociations(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - stopWatching(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - watch(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}:watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Creatives = Resource$Accounts$Creatives; - class Resource$Accounts$Creatives$Dealassociations { - constructor(context) { - this.context = context; - } - add(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - remove(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Creatives$Dealassociations = Resource$Accounts$Creatives$Dealassociations; - class Resource$Accounts$Finalizedproposals { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Finalizedproposals = Resource$Accounts$Finalizedproposals; - class Resource$Accounts$Products { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'productId'], - pathParams: ['accountId', 'productId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Accounts$Products = Resource$Accounts$Products; - class Resource$Accounts$Proposals { - constructor(context) { - this.context = context; - } - accept(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - addNote(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - cancelNegotiation(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - completeSetup(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - pause(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - resume(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:waitExecution').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer2_v2beta1.Resource$Accounts$Proposals = Resource$Accounts$Proposals; - class Resource$Accounts$Publisherprofiles { + remotebuildexecution_v2.Resource$Operations = Resource$Operations; + class Resource$V2 { 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'publisherProfileId'], - pathParams: ['accountId', 'publisherProfileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { + getCapabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124015,184 +119291,85 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+instanceName}/capabilities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer2_v2beta1.Resource$Accounts$Publisherprofiles = Resource$Accounts$Publisherprofiles; - class Resource$Bidders { - constructor(context) { - this.context = context; - this.accounts = new Resource$Bidders$Accounts(this.context); - this.filterSets = new Resource$Bidders$Filtersets(this.context); - } - } - adexchangebuyer2_v2beta1.Resource$Bidders = Resource$Bidders; - class Resource$Bidders$Accounts { - constructor(context) { - this.context = context; - this.filterSets = new Resource$Bidders$Accounts$Filtersets(this.context); - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts = Resource$Bidders$Accounts; - class Resource$Bidders$Accounts$Filtersets { - constructor(context) { - this.context = context; - this.bidMetrics = new Resource$Bidders$Accounts$Filtersets$Bidmetrics(this.context); - this.bidResponseErrors = new Resource$Bidders$Accounts$Filtersets$Bidresponseerrors(this.context); - this.bidResponsesWithoutBids = new Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids(this.context); - this.filteredBidRequests = new Resource$Bidders$Accounts$Filtersets$Filteredbidrequests(this.context); - this.filteredBids = new Resource$Bidders$Accounts$Filtersets$Filteredbids(this.context); - this.impressionMetrics = new Resource$Bidders$Accounts$Filtersets$Impressionmetrics(this.context); - this.losingBids = new Resource$Bidders$Accounts$Filtersets$Losingbids(this.context); - this.nonBillableWinningBids = new Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], - context: this.context, + remotebuildexecution_v2.Resource$V2 = Resource$V2; +})(remotebuildexecution_v2 = exports.remotebuildexecution_v2 || (exports.remotebuildexecution_v2 = {})); + + +/***/ }), + +/***/ 1525: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.localservices_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var localservices_v1; +(function (localservices_v1) { + /** + * Local Services API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const localservices = google.localservices('v1'); + * ``` + */ + class Localservices { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.accountReports = new Resource$Accountreports(this.context); + this.detailedLeadReports = new Resource$Detailedleadreports(this.context); } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets = Resource$Bidders$Accounts$Filtersets; - class Resource$Bidders$Accounts$Filtersets$Bidmetrics { + localservices_v1.Localservices = Localservices; + class Resource$Accountreports { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124205,31 +119382,31 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://localservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/accountReports:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidmetrics = Resource$Bidders$Accounts$Filtersets$Bidmetrics; - class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors { + localservices_v1.Resource$Accountreports = Resource$Accountreports; + class Resource$Detailedleadreports { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124242,1536 +119419,2053 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://localservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/detailedLeadReports:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidresponseerrors = Resource$Bidders$Accounts$Filtersets$Bidresponseerrors; - class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids; - class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbidrequests = Resource$Bidders$Accounts$Filtersets$Filteredbidrequests; - class Resource$Bidders$Accounts$Filtersets$Filteredbids { - constructor(context) { - this.context = context; - this.creatives = new Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives(this.context); - this.details = new Resource$Bidders$Accounts$Filtersets$Filteredbids$Details(this.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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids = Resource$Bidders$Accounts$Filtersets$Filteredbids; - class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives = Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives; - class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids$Details = Resource$Bidders$Accounts$Filtersets$Filteredbids$Details; - class Resource$Bidders$Accounts$Filtersets$Impressionmetrics { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Impressionmetrics = Resource$Bidders$Accounts$Filtersets$Impressionmetrics; - class Resource$Bidders$Accounts$Filtersets$Losingbids { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Losingbids = Resource$Bidders$Accounts$Filtersets$Losingbids; - class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids = Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids; - class Resource$Bidders$Filtersets { - constructor(context) { - this.context = context; - this.bidMetrics = new Resource$Bidders$Filtersets$Bidmetrics(this.context); - this.bidResponseErrors = new Resource$Bidders$Filtersets$Bidresponseerrors(this.context); - this.bidResponsesWithoutBids = new Resource$Bidders$Filtersets$Bidresponseswithoutbids(this.context); - this.filteredBidRequests = new Resource$Bidders$Filtersets$Filteredbidrequests(this.context); - this.filteredBids = new Resource$Bidders$Filtersets$Filteredbids(this.context); - this.impressionMetrics = new Resource$Bidders$Filtersets$Impressionmetrics(this.context); - this.losingBids = new Resource$Bidders$Filtersets$Losingbids(this.context); - this.nonBillableWinningBids = new Resource$Bidders$Filtersets$Nonbillablewinningbids(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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets = Resource$Bidders$Filtersets; - class Resource$Bidders$Filtersets$Bidmetrics { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidmetrics = Resource$Bidders$Filtersets$Bidmetrics; - class Resource$Bidders$Filtersets$Bidresponseerrors { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseerrors = Resource$Bidders$Filtersets$Bidresponseerrors; - class Resource$Bidders$Filtersets$Bidresponseswithoutbids { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Filtersets$Bidresponseswithoutbids; - class Resource$Bidders$Filtersets$Filteredbidrequests { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbidrequests = Resource$Bidders$Filtersets$Filteredbidrequests; - class Resource$Bidders$Filtersets$Filteredbids { - constructor(context) { - this.context = context; - this.creatives = new Resource$Bidders$Filtersets$Filteredbids$Creatives(this.context); - this.details = new Resource$Bidders$Filtersets$Filteredbids$Details(this.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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids = Resource$Bidders$Filtersets$Filteredbids; - class Resource$Bidders$Filtersets$Filteredbids$Creatives { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Creatives = Resource$Bidders$Filtersets$Filteredbids$Creatives; - class Resource$Bidders$Filtersets$Filteredbids$Details { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Details = Resource$Bidders$Filtersets$Filteredbids$Details; - class Resource$Bidders$Filtersets$Impressionmetrics { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Impressionmetrics = Resource$Bidders$Filtersets$Impressionmetrics; - class Resource$Bidders$Filtersets$Losingbids { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Losingbids = Resource$Bidders$Filtersets$Losingbids; - class Resource$Bidders$Filtersets$Nonbillablewinningbids { - 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://adexchangebuyer.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Nonbillablewinningbids = Resource$Bidders$Filtersets$Nonbillablewinningbids; -})(adexchangebuyer2_v2beta1 = exports.adexchangebuyer2_v2beta1 || (exports.adexchangebuyer2_v2beta1 = {})); -//# sourceMappingURL=v2beta1.js.map - -/***/ }), -/* 329 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + localservices_v1.Resource$Detailedleadreports = Resource$Detailedleadreports; +})(localservices_v1 = exports.localservices_v1 || (exports.localservices_v1 = {})); -"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.auth = exports.drive = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(583); -const v3_1 = __webpack_require__(776); -exports.VERSIONS = { - v2: v2_1.drive_v2.Drive, - v3: v3_1.drive_v3.Drive, -}; -function drive(versionOrOptions) { - return googleapis_common_1.getAPI('drive', versionOrOptions, exports.VERSIONS, this); -} -exports.drive = drive; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 330 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.secretmanager = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(719); -const v1beta1_1 = __webpack_require__(689); -exports.VERSIONS = { - v1: v1_1.secretmanager_v1.Secretmanager, - v1beta1: v1beta1_1.secretmanager_v1beta1.Secretmanager, -}; -function secretmanager(versionOrOptions) { - return googleapis_common_1.getAPI('secretmanager', versionOrOptions, exports.VERSIONS, this); -} -exports.secretmanager = secretmanager; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 331 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 1526: +/***/ (function(module, __unusedexports, __webpack_require__) { -"use strict"; +/** + * Javascript implementation of basic RSA algorithms. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * + * The only algorithm currently supported for PKI is RSA. + * + * An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo + * ASN.1 structure is composed of an algorithm of type AlgorithmIdentifier + * and a subjectPublicKey of type bit string. + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of RSA, there aren't any. + * + * SubjectPublicKeyInfo ::= SEQUENCE { + * algorithm AlgorithmIdentifier, + * subjectPublicKey BIT STRING + * } + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * For an RSA public key, the subjectPublicKey is: + * + * RSAPublicKey ::= SEQUENCE { + * modulus INTEGER, -- n + * publicExponent INTEGER -- e + * } + * + * PrivateKeyInfo ::= SEQUENCE { + * version Version, + * privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, + * privateKey PrivateKey, + * attributes [0] IMPLICIT Attributes OPTIONAL + * } + * + * Version ::= INTEGER + * PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier + * PrivateKey ::= OCTET STRING + * Attributes ::= SET OF Attribute + * + * An RSA private key as the following structure: + * + * RSAPrivateKey ::= SEQUENCE { + * version Version, + * modulus INTEGER, -- n + * publicExponent INTEGER, -- e + * privateExponent INTEGER, -- d + * prime1 INTEGER, -- p + * prime2 INTEGER, -- q + * exponent1 INTEGER, -- d mod (p-1) + * exponent2 INTEGER, -- d mod (q-1) + * coefficient INTEGER -- (inverse of q) mod p + * } + * + * Version ::= INTEGER + * + * The OID for the RSA key algorithm is: 1.2.840.113549.1.1.1 + */ +var forge = __webpack_require__(239); +__webpack_require__(1431); +__webpack_require__(7349); +__webpack_require__(1988); +__webpack_require__(2065); +__webpack_require__(1850); +__webpack_require__(5707); +__webpack_require__(7152); -// 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 }); -const oauth2client_1 = __webpack_require__(449); -class IdTokenClient extends oauth2client_1.OAuth2Client { - /** - * Google ID Token client - * - * Retrieve access token from the metadata server. - * See: https://developers.google.com/compute/docs/authentication - */ - constructor(options) { - super(); - this.targetAudience = options.targetAudience; - this.idTokenProvider = options.idTokenProvider; - } - async getRequestMetadataAsync(url) { - if (!this.credentials.id_token || - (this.credentials.expiry_date || 0) < Date.now()) { - const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); - this.credentials = { - id_token: idToken, - expiry_date: this.getIdTokenExpiryDate(idToken), - }; - } - const headers = { - Authorization: 'Bearer ' + this.credentials.id_token, - }; - return { headers }; - } - getIdTokenExpiryDate(idToken) { - const payloadB64 = idToken.split('.')[1]; - if (payloadB64) { - const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); - return payload.exp * 1000; - } - } +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; } -exports.IdTokenClient = IdTokenClient; -//# sourceMappingURL=idtokenclient.js.map -/***/ }), -/* 332 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +var _crypto = forge.util.isNodejs ? __webpack_require__(6417) : null; -"use strict"; +// shortcut for asn.1 API +var asn1 = forge.asn1; -// 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.AuthPlus = void 0; -const google_auth_library_1 = __webpack_require__(668); -class AuthPlus extends google_auth_library_1.GoogleAuth { - constructor() { - super(...arguments); - this.JWT = google_auth_library_1.JWT; - this.Compute = google_auth_library_1.Compute; - this.OAuth2 = google_auth_library_1.OAuth2Client; - this.GoogleAuth = google_auth_library_1.GoogleAuth; - } - /** - * Override getClient(), memoizing an instance of auth for - * subsequent calls to getProjectId(). - */ - async getClient(options) { - this._cachedAuth = new google_auth_library_1.GoogleAuth(options); - return this._cachedAuth.getClient(); - } - getProjectId(callback) { - if (callback) { - return this._cachedAuth - ? this._cachedAuth.getProjectId(callback) - : super.getProjectId(callback); - } - else { - return this._cachedAuth - ? this._cachedAuth.getProjectId() - : super.getProjectId(); - } - } -} -exports.AuthPlus = AuthPlus; -//# sourceMappingURL=authplus.js.map +// shortcut for util API +var util = forge.util; -/***/ }), -/* 333 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/* + * RSA encryption and decryption, see RFC 2313. + */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; +var pki = forge.pki; -"use strict"; +// for finding primes, which are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 +var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; -// 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.auth = exports.appsactivity = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(556); -exports.VERSIONS = { - v1: v1_1.appsactivity_v1.Appsactivity, -}; -function appsactivity(versionOrOptions) { - return googleapis_common_1.getAPI('appsactivity', versionOrOptions, exports.VERSIONS, this); -} -exports.appsactivity = appsactivity; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +// validator for a PrivateKeyInfo structure +var privateKeyValidator = { + // PrivateKeyInfo + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'PrivateKeyInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // privateKeyAlgorithm + name: 'PrivateKeyInfo.privateKeyAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'privateKeyOid' + }] + }, { + // PrivateKey + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'privateKey' + }] +}; -/***/ }), -/* 334 */, -/* 335 */, -/* 336 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +// validator for an RSA private key +var rsaPrivateKeyValidator = { + // RSAPrivateKey + name: 'RSAPrivateKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'RSAPrivateKey.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // modulus (n) + name: 'RSAPrivateKey.modulus', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyModulus' + }, { + // publicExponent (e) + name: 'RSAPrivateKey.publicExponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPublicExponent' + }, { + // privateExponent (d) + name: 'RSAPrivateKey.privateExponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrivateExponent' + }, { + // prime1 (p) + name: 'RSAPrivateKey.prime1', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrime1' + }, { + // prime2 (q) + name: 'RSAPrivateKey.prime2', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrime2' + }, { + // exponent1 (d mod (p-1)) + name: 'RSAPrivateKey.exponent1', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyExponent1' + }, { + // exponent2 (d mod (q-1)) + name: 'RSAPrivateKey.exponent2', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyExponent2' + }, { + // coefficient ((inverse of q) mod p) + name: 'RSAPrivateKey.coefficient', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyCoefficient' + }] +}; -module.exports = hasLastPage +// validator for an RSA public key +var rsaPublicKeyValidator = { + // RSAPublicKey + name: 'RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // modulus (n) + name: 'RSAPublicKey.modulus', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'publicKeyModulus' + }, { + // publicExponent (e) + name: 'RSAPublicKey.exponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'publicKeyExponent' + }] +}; -const deprecate = __webpack_require__(370) -const getPageLinks = __webpack_require__(577) +// validator for an SubjectPublicKeyInfo structure +// Note: Currently only works with an RSA public key +var publicKeyValidator = forge.pki.rsa.publicKeyValidator = { + name: 'SubjectPublicKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'subjectPublicKeyInfo', + value: [{ + name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'publicKeyOid' + }] + }, { + // subjectPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + value: [{ + // RSAPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'rsaPublicKey' + }] + }] +}; -function hasLastPage (link) { - deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).last -} +// validator for a DigestInfo structure +var digestInfoValidator = { + name: 'DigestInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'DigestInfo.DigestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'DigestInfo.DigestAlgorithm.algorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'algorithmIdentifier' + }, { + // NULL paramters + name: 'DigestInfo.DigestAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.NULL, + // captured only to check existence for md2 and md5 + capture: 'parameters', + optional: true, + constructed: false + }] + }, { + // digest + name: 'DigestInfo.digest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'digest' + }] +}; +/** + * Wrap digest in DigestInfo object. + * + * This function implements EMSA-PKCS1-v1_5-ENCODE as per RFC 3447. + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * Digest ::= OCTET STRING + * + * @param md the message digest object with the hash to sign. + * + * @return the encoded message (ready for RSA encrytion) + */ +var emsaPkcs1v15encode = function(md) { + // get the oid for the algorithm + var oid; + if(md.algorithm in pki.oids) { + oid = pki.oids[md.algorithm]; + } else { + var error = new Error('Unknown message digest algorithm.'); + error.algorithm = md.algorithm; + throw error; + } + var oidBytes = asn1.oidToDer(oid).getBytes(); -/***/ }), -/* 337 */ -/***/ (function(module, __unusedexports, __webpack_require__) { + // create the digest info + var digestInfo = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var digestAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + digestAlgorithm.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, oidBytes)); + digestAlgorithm.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')); + var digest = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, + false, md.digest().getBytes()); + digestInfo.value.push(digestAlgorithm); + digestInfo.value.push(digest); -var BigNumber = null; -/* - json_parse.js - 2012-06-20 + // encode digest info + return asn1.toDer(digestInfo).getBytes(); +}; - Public Domain. +/** + * Performs x^c mod n (RSA encryption or decryption operation). + * + * @param x the number to raise and mod. + * @param key the key to use. + * @param pub true if the key is public, false if private. + * + * @return the result of x^c mod n. + */ +var _modPow = function(x, key, pub) { + if(pub) { + return x.modPow(key.e, key.n); + } - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + if(!key.p || !key.q) { + // allow calculation without CRT params (slow) + return x.modPow(key.d, key.n); + } - This file creates a json_parse function. - During create you can (optionally) specify some behavioural switches + // pre-compute dP, dQ, and qInv if necessary + if(!key.dP) { + key.dP = key.d.mod(key.p.subtract(BigInteger.ONE)); + } + if(!key.dQ) { + key.dQ = key.d.mod(key.q.subtract(BigInteger.ONE)); + } + if(!key.qInv) { + key.qInv = key.q.modInverse(key.p); + } - require('json-bigint')(options) + /* Chinese remainder theorem (CRT) states: - The optional options parameter holds switches that drive certain - aspects of the parsing process: - * options.strict = true will warn about duplicate-key usage in the json. - The default (strict = false) will silently ignore those and overwrite - values for keys that are in duplicate use. + Suppose n1, n2, ..., nk are positive integers which are pairwise + coprime (n1 and n2 have no common factors other than 1). For any + integers x1, x2, ..., xk there exists an integer x solving the + system of simultaneous congruences (where ~= means modularly + congruent so a ~= b mod n means a mod n = b mod n): - The resulting function follows this signature: - json_parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. + x ~= x1 mod n1 + x ~= x2 mod n2 + ... + x ~= xk mod nk - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. + This system of congruences has a single simultaneous solution x + between 0 and n - 1. Furthermore, each xk solution and x itself + is congruent modulo the product n = n1*n2*...*nk. + So x1 mod n = x2 mod n = xk mod n = x mod n. - Example: + The single simultaneous solution x can be solved with the following + equation: - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. + x = sum(xi*ri*si) mod n where ri = n/ni and si = ri^-1 mod ni. - myData = json_parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); + Where x is less than n, xi = x mod ni. - This is a reference implementation. You are free to copy, modify, or - redistribute. + For RSA we are only concerned with k = 2. The modulus n = pq, where + p and q are coprime. The RSA decryption algorithm is: - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html + y = x^d mod n - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. -*/ + Given the above: -/*members "", "\"", "\/", "\\", at, b, call, charAt, f, fromCharCode, - hasOwnProperty, message, n, name, prototype, push, r, t, text -*/ + x1 = x^d mod p + r1 = n/p = q + s1 = q^-1 mod p + x2 = x^d mod q + r2 = n/q = p + s2 = p^-1 mod q -var json_parse = function (options) { - "use strict"; + So y = (x1r1s1 + x2r2s2) mod n + = ((x^d mod p)q(q^-1 mod p) + (x^d mod q)p(p^-1 mod q)) mod n -// This is a function that can parse a JSON text, producing a JavaScript -// data structure. It is a simple, recursive descent parser. It does not use -// eval or regular expressions, so it can be used as a model for implementing -// a JSON parser in other languages. + According to Fermat's Little Theorem, if the modulus P is prime, + for any integer A not evenly divisible by P, A^(P-1) ~= 1 mod P. + Since A is not divisible by P it follows that if: + N ~= M mod (P - 1), then A^N mod P = A^M mod P. Therefore: -// We are defining the function inside of another function to avoid creating -// global variables. + A^N mod P = A^(M mod (P - 1)) mod P. (The latter takes less effort + to calculate). In order to calculate x^d mod p more quickly the + exponent d mod (p - 1) is stored in the RSA private key (the same + is done for x^d mod q). These values are referred to as dP and dQ + respectively. Therefore we now have: + y = ((x^dP mod p)q(q^-1 mod p) + (x^dQ mod q)p(p^-1 mod q)) mod n -// Default options one can override by passing options to the parse() - var _options = { - "strict": false, // not being strict means do not generate syntax errors for "duplicate key" - "storeAsString": false // toggles whether the values should be stored as BigNumber (default) or a string - }; + Since we'll be reducing x^dP by modulo p (same for q) we can also + reduce x by p (and q respectively) before hand. Therefore, let + xp = ((x mod p)^dP mod p), and + xq = ((x mod q)^dQ mod q), yielding: -// If there are options, then use them to override the default _options - if (options !== undefined && options !== null) { - if (options.strict === true) { - _options.strict = true; - } - if (options.storeAsString === true) { - _options.storeAsString = true; - } - } + y = (xp*q*(q^-1 mod p) + xq*p*(p^-1 mod q)) mod n + This can be further reduced to a simple algorithm that only + requires 1 inverse (the q inverse is used) to be used and stored. + The algorithm is called Garner's algorithm. If qInv is the + inverse of q, we simply calculate: - var at, // The index of the current character - ch, // The current character - escapee = { - '"': '"', - '\\': '\\', - '/': '/', - b: '\b', - f: '\f', - n: '\n', - r: '\r', - t: '\t' - }, - text, + y = (qInv*(xp - xq) mod p) * q + xq - error = function (m) { + However, there are two further complications. First, we need to + ensure that xp > xq to prevent signed BigIntegers from being used + so we add p until this is true (since we will be mod'ing with + p anyway). Then, there is a known timing attack on algorithms + using the CRT. To mitigate this risk, "cryptographic blinding" + should be used. This requires simply generating a random number r + between 0 and n-1 and its inverse and multiplying x by r^e before + calculating y and then multiplying y by r^-1 afterwards. Note that + r must be coprime with n (gcd(r, n) === 1) in order to have an + inverse. + */ -// Call error when something is wrong. + // cryptographic blinding + var r; + do { + r = new BigInteger( + forge.util.bytesToHex(forge.random.getBytes(key.n.bitLength() / 8)), + 16); + } while(r.compareTo(key.n) >= 0 || !r.gcd(key.n).equals(BigInteger.ONE)); + x = x.multiply(r.modPow(key.e, key.n)).mod(key.n); - throw { - name: 'SyntaxError', - message: m, - at: at, - text: text - }; - }, + // calculate xp and xq + var xp = x.mod(key.p).modPow(key.dP, key.p); + var xq = x.mod(key.q).modPow(key.dQ, key.q); - next = function (c) { + // xp must be larger than xq to avoid signed bit usage + while(xp.compareTo(xq) < 0) { + xp = xp.add(key.p); + } -// If a c parameter is provided, verify that it matches the current character. + // do last step + var y = xp.subtract(xq) + .multiply(key.qInv).mod(key.p) + .multiply(key.q).add(xq); - if (c && c !== ch) { - error("Expected '" + c + "' instead of '" + ch + "'"); - } + // remove effect of random for cryptographic blinding + y = y.multiply(r.modInverse(key.n)).mod(key.n); -// Get the next character. When there are no more characters, -// return the empty string. + return y; +}; - ch = text.charAt(at); - at += 1; - return ch; - }, +/** + * NOTE: THIS METHOD IS DEPRECATED, use 'sign' on a private key object or + * 'encrypt' on a public key object instead. + * + * Performs RSA encryption. + * + * The parameter bt controls whether to put padding bytes before the + * message passed in. Set bt to either true or false to disable padding + * completely (in order to handle e.g. EMSA-PSS encoding seperately before), + * signaling whether the encryption operation is a public key operation + * (i.e. encrypting data) or not, i.e. private key operation (data signing). + * + * For PKCS#1 v1.5 padding pass in the block type to use, i.e. either 0x01 + * (for signing) or 0x02 (for encryption). The key operation mode (private + * or public) is derived from this flag in that case). + * + * @param m the message to encrypt as a byte string. + * @param key the RSA key to use. + * @param bt for PKCS#1 v1.5 padding, the block type to use + * (0x01 for private key, 0x02 for public), + * to disable padding: true = public key, false = private key. + * + * @return the encrypted bytes as a string. + */ +pki.rsa.encrypt = function(m, key, bt) { + var pub = bt; + var eb; - number = function () { -// Parse a number value. + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); - var number, - string = ''; + if(bt !== false && bt !== true) { + // legacy, default to PKCS#1 v1.5 padding + pub = (bt === 0x02); + eb = _encodePkcs1_v1_5(m, key, bt); + } else { + eb = forge.util.createBuffer(); + eb.putBytes(m); + } - if (ch === '-') { - string = '-'; - next('-'); - } - while (ch >= '0' && ch <= '9') { - string += ch; - next(); - } - if (ch === '.') { - string += '.'; - while (next() && ch >= '0' && ch <= '9') { - string += ch; - } - } - if (ch === 'e' || ch === 'E') { - string += ch; - next(); - if (ch === '-' || ch === '+') { - string += ch; - next(); - } - while (ch >= '0' && ch <= '9') { - string += ch; - next(); - } - } - number = +string; - if (!isFinite(number)) { - error("Bad number"); - } else { - if (BigNumber == null) - BigNumber = __webpack_require__(421); - //if (number > 9007199254740992 || number < -9007199254740992) - // Bignumber has stricter check: everything with length > 15 digits disallowed - if (string.length > 15) - return (_options.storeAsString === true) ? string : new BigNumber(string); - return number; - } - }, + // load encryption block as big integer 'x' + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var x = new BigInteger(eb.toHex(), 16); - string = function () { + // do RSA encryption + var y = _modPow(x, key, pub); -// Parse a string value. + // convert y into the encrypted data byte string, if y is shorter in + // bytes than k, then prepend zero bytes to fill up ed + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var yhex = y.toString(16); + var ed = forge.util.createBuffer(); + var zeros = k - Math.ceil(yhex.length / 2); + while(zeros > 0) { + ed.putByte(0x00); + --zeros; + } + ed.putBytes(forge.util.hexToBytes(yhex)); + return ed.getBytes(); +}; - var hex, - i, - string = '', - uffff; +/** + * NOTE: THIS METHOD IS DEPRECATED, use 'decrypt' on a private key object or + * 'verify' on a public key object instead. + * + * Performs RSA decryption. + * + * The parameter ml controls whether to apply PKCS#1 v1.5 padding + * or not. Set ml = false to disable padding removal completely + * (in order to handle e.g. EMSA-PSS later on) and simply pass back + * the RSA encryption block. + * + * @param ed the encrypted data to decrypt in as a byte string. + * @param key the RSA key to use. + * @param pub true for a public key operation, false for private. + * @param ml the message length, if known, false to disable padding. + * + * @return the decrypted message as a byte string. + */ +pki.rsa.decrypt = function(ed, key, pub, ml) { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); -// When parsing for string values, we must look for " and \ characters. + // error if the length of the encrypted data ED is not k + if(ed.length !== k) { + var error = new Error('Encrypted message length is invalid.'); + error.length = ed.length; + error.expected = k; + throw error; + } - if (ch === '"') { - while (next()) { - if (ch === '"') { - next(); - return string; - } - if (ch === '\\') { - next(); - if (ch === 'u') { - uffff = 0; - for (i = 0; i < 4; i += 1) { - hex = parseInt(next(), 16); - if (!isFinite(hex)) { - break; - } - uffff = uffff * 16 + hex; - } - string += String.fromCharCode(uffff); - } else if (typeof escapee[ch] === 'string') { - string += escapee[ch]; - } else { - break; - } - } else { - string += ch; - } - } - } - error("Bad string"); - }, + // convert encrypted data into a big integer + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var y = new BigInteger(forge.util.createBuffer(ed).toHex(), 16); - white = function () { + // y must be less than the modulus or it wasn't the result of + // a previous mod operation (encryption) using that modulus + if(y.compareTo(key.n) >= 0) { + throw new Error('Encrypted message is invalid.'); + } -// Skip whitespace. + // do RSA decryption + var x = _modPow(y, key, pub); - while (ch && ch <= ' ') { - next(); - } - }, + // create the encryption block, if x is shorter in bytes than k, then + // prepend zero bytes to fill up eb + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var xhex = x.toString(16); + var eb = forge.util.createBuffer(); + var zeros = k - Math.ceil(xhex.length / 2); + while(zeros > 0) { + eb.putByte(0x00); + --zeros; + } + eb.putBytes(forge.util.hexToBytes(xhex)); + + if(ml !== false) { + // legacy, default to PKCS#1 v1.5 padding + return _decodePkcs1_v1_5(eb.getBytes(), key, pub); + } - word = function () { + // return message + return eb.getBytes(); +}; -// true, false, or null. +/** + * Creates an RSA key-pair generation state object. It is used to allow + * key-generation to be performed in steps. It also allows for a UI to + * display progress updates. + * + * @param bits the size for the private key in bits, defaults to 2048. + * @param e the public exponent to use, defaults to 65537 (0x10001). + * @param [options] the options to use. + * prng a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + * algorithm the algorithm to use (default: 'PRIMEINC'). + * + * @return the state object to use to generate the key-pair. + */ +pki.rsa.createKeyPairGenerationState = function(bits, e, options) { + // TODO: migrate step-based prime generation code to forge.prime - switch (ch) { - case 't': - next('t'); - next('r'); - next('u'); - next('e'); - return true; - case 'f': - next('f'); - next('a'); - next('l'); - next('s'); - next('e'); - return false; - case 'n': - next('n'); - next('u'); - next('l'); - next('l'); - return null; - } - error("Unexpected '" + ch + "'"); - }, + // set default bits + if(typeof(bits) === 'string') { + bits = parseInt(bits, 10); + } + bits = bits || 2048; - value, // Place holder for the value function. + // create prng with api that matches BigInteger secure random + options = options || {}; + var prng = options.prng || forge.random; + var rng = { + // x is an array to fill with bytes + nextBytes: function(x) { + var b = prng.getBytesSync(x.length); + for(var i = 0; i < x.length; ++i) { + x[i] = b.charCodeAt(i); + } + } + }; - array = function () { + var algorithm = options.algorithm || 'PRIMEINC'; -// Parse an array value. + // create PRIMEINC algorithm state + var rval; + if(algorithm === 'PRIMEINC') { + rval = { + algorithm: algorithm, + state: 0, + bits: bits, + rng: rng, + eInt: e || 65537, + e: new BigInteger(null), + p: null, + q: null, + qBits: bits >> 1, + pBits: bits - (bits >> 1), + pqState: 0, + num: null, + keys: null + }; + rval.e.fromInt(rval.eInt); + } else { + throw new Error('Invalid key generation algorithm: ' + algorithm); + } - var array = []; + return rval; +}; - if (ch === '[') { - next('['); - white(); - if (ch === ']') { - next(']'); - return array; // empty array - } - while (ch) { - array.push(value()); - white(); - if (ch === ']') { - next(']'); - return array; - } - next(','); - white(); - } - } - error("Bad array"); - }, +/** + * Attempts to runs the key-generation algorithm for at most n seconds + * (approximately) using the given state. When key-generation has completed, + * the keys will be stored in state.keys. + * + * To use this function to update a UI while generating a key or to prevent + * causing browser lockups/warnings, set "n" to a value other than 0. A + * simple pattern for generating a key and showing a progress indicator is: + * + * var state = pki.rsa.createKeyPairGenerationState(2048); + * var step = function() { + * // step key-generation, run algorithm for 100 ms, repeat + * if(!forge.pki.rsa.stepKeyPairGenerationState(state, 100)) { + * setTimeout(step, 1); + * } else { + * // key-generation complete + * // TODO: turn off progress indicator here + * // TODO: use the generated key-pair in "state.keys" + * } + * }; + * // TODO: turn on progress indicator here + * setTimeout(step, 0); + * + * @param state the state to use. + * @param n the maximum number of milliseconds to run the algorithm for, 0 + * to run the algorithm to completion. + * + * @return true if the key-generation completed, false if not. + */ +pki.rsa.stepKeyPairGenerationState = function(state, n) { + // set default algorithm if not set + if(!('algorithm' in state)) { + state.algorithm = 'PRIMEINC'; + } - object = function () { + // TODO: migrate step-based prime generation code to forge.prime + // TODO: abstract as PRIMEINC algorithm -// Parse an object value. + // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) + // with some minor optimizations and designed to run in steps - var key, - object = {}; + // local state vars + var THIRTY = new BigInteger(null); + THIRTY.fromInt(30); + var deltaIdx = 0; + var op_or = function(x, y) {return x | y;}; - if (ch === '{') { - next('{'); - white(); - if (ch === '}') { - next('}'); - return object; // empty object - } - while (ch) { - key = string(); - white(); - next(':'); - if (_options.strict === true && Object.hasOwnProperty.call(object, key)) { - error('Duplicate key "' + key + '"'); - } - object[key] = value(); - white(); - if (ch === '}') { - next('}'); - return object; - } - next(','); - white(); - } - } - error("Bad object"); - }; + // keep stepping until time limit is reached or done + var t1 = +new Date(); + var t2; + var total = 0; + while(state.keys === null && (n <= 0 || total < n)) { + // generate p or q + if(state.state === 0) { + /* Note: All primes are of the form: - value = function () { + 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i -// Parse a JSON value. It could be an object, an array, a string, a number, -// or a word. + When we generate a random number, we always align it at 30k + 1. Each + time the number is determined not to be prime we add to get to the + next 'i', eg: if the number was at 30k + 1 we add 6. */ + var bits = (state.p === null) ? state.pBits : state.qBits; + var bits1 = bits - 1; - white(); - switch (ch) { - case '{': - return object(); - case '[': - return array(); - case '"': - return string(); - case '-': - return number(); - default: - return ch >= '0' && ch <= '9' ? number() : word(); + // get a random number + if(state.pqState === 0) { + state.num = new BigInteger(bits, state.rng); + // force MSB set + if(!state.num.testBit(bits1)) { + state.num.bitwiseTo( + BigInteger.ONE.shiftLeft(bits1), op_or, state.num); } - }; - -// Return the json_parse function. It will have access to all of the above -// functions and variables. + // align number on 30k+1 boundary + state.num.dAddOffset(31 - state.num.mod(THIRTY).byteValue(), 0); + deltaIdx = 0; - return function (source, reviver) { - var result; + ++state.pqState; + } else if(state.pqState === 1) { + // try to make the number a prime + if(state.num.bitLength() > bits) { + // overflow, try again + state.pqState = 0; + // do primality test + } else if(state.num.isProbablePrime( + _getMillerRabinTests(state.num.bitLength()))) { + ++state.pqState; + } else { + // get next potential prime + state.num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); + } + } else if(state.pqState === 2) { + // ensure number is coprime with e + state.pqState = + (state.num.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) === 0) ? 3 : 0; + } else if(state.pqState === 3) { + // store p or q + state.pqState = 0; + if(state.p === null) { + state.p = state.num; + } else { + state.q = state.num; + } - text = source + ''; - at = 0; - ch = ' '; - result = value(); - white(); - if (ch) { - error("Syntax error"); - } - -// If there is a reviver function, we recursively walk the new structure, -// passing each name/value pair to the reviver function for possible -// transformation, starting with a temporary root object that holds the result -// in an empty key. If there is not a reviver function, we simply return the -// result. - - return typeof reviver === 'function' - ? (function walk(holder, key) { - var k, v, value = holder[key]; - if (value && typeof value === 'object') { - Object.keys(value).forEach(function(k) { - v = walk(value, k); - if (v !== undefined) { - value[k] = v; - } else { - delete value[k]; - } - }); - } - return reviver.call(holder, key, value); - }({'': result}, '')) - : result; - }; -} + // advance state if both p and q are ready + if(state.p !== null && state.q !== null) { + ++state.state; + } + state.num = null; + } + } else if(state.state === 1) { + // ensure p is larger than q (swap them if not) + if(state.p.compareTo(state.q) < 0) { + state.num = state.p; + state.p = state.q; + state.q = state.num; + } + ++state.state; + } else if(state.state === 2) { + // compute phi: (p - 1)(q - 1) (Euler's totient function) + state.p1 = state.p.subtract(BigInteger.ONE); + state.q1 = state.q.subtract(BigInteger.ONE); + state.phi = state.p1.multiply(state.q1); + ++state.state; + } else if(state.state === 3) { + // ensure e and phi are coprime + if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) === 0) { + // phi and e are coprime, advance + ++state.state; + } else { + // phi and e aren't coprime, so generate a new p and q + state.p = null; + state.q = null; + state.state = 0; + } + } else if(state.state === 4) { + // create n, ensure n is has the right number of bits + state.n = state.p.multiply(state.q); -module.exports = json_parse; + // ensure n is right number of bits + if(state.n.bitLength() === state.bits) { + // success, advance + ++state.state; + } else { + // failed, get new q + state.q = null; + state.state = 0; + } + } else if(state.state === 5) { + // set keys + var d = state.e.modInverse(state.phi); + state.keys = { + privateKey: pki.rsa.setPrivateKey( + state.n, state.e, d, state.p, state.q, + d.mod(state.p1), d.mod(state.q1), + state.q.modInverse(state.p)), + publicKey: pki.rsa.setPublicKey(state.n, state.e) + }; + } + // update timing + t2 = +new Date(); + total += t2 - t1; + t1 = t2; + } -/***/ }), -/* 338 */, -/* 339 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + return state.keys !== null; +}; -"use strict"; +/** + * Generates an RSA public-private key pair in a single call. + * + * To generate a key-pair in steps (to allow for progress updates and to + * prevent blocking or warnings in slow browsers) then use the key-pair + * generation state functions. + * + * To generate a key-pair asynchronously (either through web-workers, if + * available, or by breaking up the work on the main thread), pass a + * callback function. + * + * @param [bits] the size for the private key in bits, defaults to 2048. + * @param [e] the public exponent to use, defaults to 65537. + * @param [options] options for key-pair generation, if given then 'bits' + * and 'e' must *not* be given: + * bits the size for the private key in bits, (default: 2048). + * e the public exponent to use, (default: 65537 (0x10001)). + * workerScript the worker script URL. + * workers the number of web workers (if supported) to use, + * (default: 2). + * workLoad the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * prng a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". Disables use of native APIs. + * algorithm the algorithm to use (default: 'PRIMEINC'). + * @param [callback(err, keypair)] called once the operation completes. + * + * @return an object with privateKey and publicKey properties. + */ +pki.rsa.generateKeyPair = function(bits, e, options, callback) { + // (bits), (options), (callback) + if(arguments.length === 1) { + if(typeof bits === 'object') { + options = bits; + bits = undefined; + } else if(typeof bits === 'function') { + callback = bits; + bits = undefined; + } + } else if(arguments.length === 2) { + // (bits, e), (bits, options), (bits, callback), (options, callback) + if(typeof bits === 'number') { + if(typeof e === 'function') { + callback = e; + e = undefined; + } else if(typeof e !== 'number') { + options = e; + e = undefined; + } + } else { + options = bits; + callback = e; + bits = undefined; + e = undefined; + } + } else if(arguments.length === 3) { + // (bits, e, options), (bits, e, callback), (bits, options, callback) + if(typeof e === 'number') { + if(typeof options === 'function') { + callback = options; + options = undefined; + } + } else { + callback = options; + options = e; + e = undefined; + } + } + options = options || {}; + if(bits === undefined) { + bits = options.bits || 2048; + } + if(e === undefined) { + e = options.e || 0x10001; + } -// 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.deploymentmanager_v2beta = 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 = __webpack_require__(927); -var deploymentmanager_v2beta; -(function (deploymentmanager_v2beta) { - /** - * Google Cloud Deployment Manager API V2Beta Methods - * - * The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const deploymentmanager = google.deploymentmanager('v2beta'); - * - * @namespace deploymentmanager - * @type {Function} - * @version v2beta - * @variation v2beta - * @param {object=} options Options for Deploymentmanager - */ - class Deploymentmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.compositeTypes = new Resource$Compositetypes(this.context); - this.deployments = new Resource$Deployments(this.context); - this.manifests = new Resource$Manifests(this.context); - this.operations = new Resource$Operations(this.context); - this.resources = new Resource$Resources(this.context); - this.typeProviders = new Resource$Typeproviders(this.context); - this.types = new Resource$Types(this.context); - } + // use native code if permitted, available, and parameters are acceptable + if(!forge.options.usePureJavaScript && !options.prng && + bits >= 256 && bits <= 16384 && (e === 0x10001 || e === 3)) { + if(callback) { + // try native async + if(_detectNodeCrypto('generateKeyPair')) { + return _crypto.generateKeyPair('rsa', { + modulusLength: bits, + publicExponent: e, + publicKeyEncoding: { + type: 'spki', + format: 'pem' + }, + privateKeyEncoding: { + type: 'pkcs8', + format: 'pem' + } + }, function(err, pub, priv) { + if(err) { + return callback(err); + } + callback(null, { + privateKey: pki.privateKeyFromPem(priv), + publicKey: pki.publicKeyFromPem(pub) + }); + }); + } + if(_detectSubtleCrypto('generateKey') && + _detectSubtleCrypto('exportKey')) { + // use standard native generateKey + return util.globalScope.crypto.subtle.generateKey({ + name: 'RSASSA-PKCS1-v1_5', + modulusLength: bits, + publicExponent: _intToUint8Array(e), + hash: {name: 'SHA-256'} + }, true /* key can be exported*/, ['sign', 'verify']) + .then(function(pair) { + return util.globalScope.crypto.subtle.exportKey( + 'pkcs8', pair.privateKey); + // avoiding catch(function(err) {...}) to support IE <= 8 + }).then(undefined, function(err) { + callback(err); + }).then(function(pkcs8) { + if(pkcs8) { + var privateKey = pki.privateKeyFromAsn1( + asn1.fromDer(forge.util.createBuffer(pkcs8))); + callback(null, { + privateKey: privateKey, + publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) + }); + } + }); + } + if(_detectSubtleMsCrypto('generateKey') && + _detectSubtleMsCrypto('exportKey')) { + var genOp = util.globalScope.msCrypto.subtle.generateKey({ + name: 'RSASSA-PKCS1-v1_5', + modulusLength: bits, + publicExponent: _intToUint8Array(e), + hash: {name: 'SHA-256'} + }, true /* key can be exported*/, ['sign', 'verify']); + genOp.oncomplete = function(e) { + var pair = e.target.result; + var exportOp = util.globalScope.msCrypto.subtle.exportKey( + 'pkcs8', pair.privateKey); + exportOp.oncomplete = function(e) { + var pkcs8 = e.target.result; + var privateKey = pki.privateKeyFromAsn1( + asn1.fromDer(forge.util.createBuffer(pkcs8))); + callback(null, { + privateKey: privateKey, + publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) + }); + }; + exportOp.onerror = function(err) { + callback(err); + }; + }; + genOp.onerror = function(err) { + callback(err); + }; + return; + } + } else { + // try native sync + if(_detectNodeCrypto('generateKeyPairSync')) { + var keypair = _crypto.generateKeyPairSync('rsa', { + modulusLength: bits, + publicExponent: e, + publicKeyEncoding: { + type: 'spki', + format: 'pem' + }, + privateKeyEncoding: { + type: 'pkcs8', + format: 'pem' + } + }); + return { + privateKey: pki.privateKeyFromPem(keypair.privateKey), + publicKey: pki.publicKeyFromPem(keypair.publicKey) + }; + } } - deploymentmanager_v2beta.Deploymentmanager = Deploymentmanager; - class Resource$Compositetypes { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; + } + + // use JavaScript implementation + var state = pki.rsa.createKeyPairGenerationState(bits, e, options); + if(!callback) { + pki.rsa.stepKeyPairGenerationState(state, 0); + return state.keys; + } + _generateKeyPair(state, options, callback); +}; + +/** + * Sets an RSA public key from BigIntegers modulus and exponent. + * + * @param n the modulus. + * @param e the exponent. + * + * @return the public key. + */ +pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) { + var key = { + n: n, + e: e + }; + + /** + * Encrypts the given data with this public key. Newer applications + * should use the 'RSA-OAEP' decryption scheme, 'RSAES-PKCS1-V1_5' is for + * legacy applications. + * + * @param data the byte string to encrypt. + * @param scheme the encryption scheme to use: + * 'RSAES-PKCS1-V1_5' (default), + * 'RSA-OAEP', + * 'RAW', 'NONE', or null to perform raw RSA encryption, + * an object with an 'encode' property set to a function + * with the signature 'function(data, key)' that returns + * a binary-encoded string representing the encoded data. + * @param schemeOptions any scheme-specific options. + * + * @return the encrypted byte string. + */ + key.encrypt = function(data, scheme, schemeOptions) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSAES-PKCS1-V1_5'; + } + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = { + encode: function(m, key, pub) { + return _encodePkcs1_v1_5(m, key, 0x02).getBytes(); + } + }; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + encode: function(m, key) { + return forge.pkcs1.encode_rsa_oaep(key, m, schemeOptions); + } + }; + } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { + scheme = {encode: function(e) {return e;}}; + } else if(typeof scheme === 'string') { + throw new Error('Unsupported encryption scheme: "' + scheme + '".'); + } + + // do scheme-based encoding then rsa encryption + var e = scheme.encode(data, key, true); + return pki.rsa.encrypt(e, key, true); + }; + + /** + * Verifies the given signature against the given digest. + * + * PKCS#1 supports multiple (currently two) signature schemes: + * RSASSA-PKCS1-V1_5 and RSASSA-PSS. + * + * By default this implementation uses the "old scheme", i.e. + * RSASSA-PKCS1-V1_5, in which case once RSA-decrypted, the + * signature is an OCTET STRING that holds a DigestInfo. + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * Digest ::= OCTET STRING + * + * To perform PSS signature verification, provide an instance + * of Forge PSS object as the scheme parameter. + * + * @param digest the message digest hash to compare against the signature, + * as a binary-encoded string. + * @param signature the signature to verify, as a binary-encoded string. + * @param scheme signature verification scheme to use: + * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, + * a Forge PSS object for RSASSA-PSS, + * 'NONE' or null for none, DigestInfo will not be expected, but + * PKCS#1 v1.5 padding will still be used. + * @param options optional verify options + * _parseAllDigestBytes testing flag to control parsing of all + * digest bytes. Unsupported and not for general usage. + * (default: true) + * + * @return true if the signature was verified, false if not. + */ + key.verify = function(digest, signature, scheme, options) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSASSA-PKCS1-V1_5'; + } + if(options === undefined) { + options = { + _parseAllDigestBytes: true + }; + } + if(!('_parseAllDigestBytes' in options)) { + options._parseAllDigestBytes = true; + } + + if(scheme === 'RSASSA-PKCS1-V1_5') { + scheme = { + verify: function(digest, d) { + // remove padding + d = _decodePkcs1_v1_5(d, key, true); + // d is ASN.1 BER-encoded DigestInfo + var obj = asn1.fromDer(d, { + parseAllBytes: options._parseAllDigestBytes + }); + + // validate DigestInfo + var capture = {}; + var errors = []; + if(!asn1.validate(obj, digestInfoValidator, capture, errors)) { + var error = new Error( + 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' + + 'DigestInfo value.'); + error.errors = errors; + throw error; + } + // check hash algorithm identifier + // see PKCS1-v1-5DigestAlgorithms in RFC 8017 + // FIXME: add support to vaidator for strict value choices + var oid = asn1.derToOid(capture.algorithmIdentifier); + if(!(oid === forge.oids.md2 || + oid === forge.oids.md5 || + oid === forge.oids.sha1 || + oid === forge.oids.sha224 || + oid === forge.oids.sha256 || + oid === forge.oids.sha384 || + oid === forge.oids.sha512 || + oid === forge.oids['sha512-224'] || + oid === forge.oids['sha512-256'])) { + var error = new Error( + 'Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.'); + error.oid = oid; + throw error; + } + + // special check for md2 and md5 that NULL parameters exist + if(oid === forge.oids.md2 || oid === forge.oids.md5) { + if(!('parameters' in capture)) { + throw new Error( + 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' + + 'DigestInfo value. ' + + 'Missing algorithm identifer NULL parameters.'); + } + } + + // compare the given digest to the decrypted one + return digest === capture.digest; + } + }; + } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { + scheme = { + verify: function(digest, d) { + // remove padding + d = _decodePkcs1_v1_5(d, key, true); + return digest === d; + } + }; + } + + // do rsa decryption w/o any decoding, then verify -- which does decoding + var d = pki.rsa.decrypt(signature, key, true, false); + return scheme.verify(digest, d, key.n.bitLength()); + }; + + return key; +}; + +/** + * Sets an RSA private key from BigIntegers modulus, exponent, primes, + * prime exponents, and modular multiplicative inverse. + * + * @param n the modulus. + * @param e the public exponent. + * @param d the private exponent ((inverse of e) mod n). + * @param p the first prime. + * @param q the second prime. + * @param dP exponent1 (d mod (p-1)). + * @param dQ exponent2 (d mod (q-1)). + * @param qInv ((inverse of q) mod p) + * + * @return the private key. + */ +pki.setRsaPrivateKey = pki.rsa.setPrivateKey = function( + n, e, d, p, q, dP, dQ, qInv) { + var key = { + n: n, + e: e, + d: d, + p: p, + q: q, + dP: dP, + dQ: dQ, + qInv: qInv + }; + + /** + * Decrypts the given data with this private key. The decryption scheme + * must match the one used to encrypt the data. + * + * @param data the byte string to decrypt. + * @param scheme the decryption scheme to use: + * 'RSAES-PKCS1-V1_5' (default), + * 'RSA-OAEP', + * 'RAW', 'NONE', or null to perform raw RSA decryption. + * @param schemeOptions any scheme-specific options. + * + * @return the decrypted byte string. + */ + key.decrypt = function(data, scheme, schemeOptions) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSAES-PKCS1-V1_5'; + } + + // do rsa decryption w/o any decoding + var d = pki.rsa.decrypt(data, key, false, false); + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = {decode: _decodePkcs1_v1_5}; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + decode: function(d, key) { + return forge.pkcs1.decode_rsa_oaep(key, d, schemeOptions); + } + }; + } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { + scheme = {decode: function(d) {return d;}}; + } else { + throw new Error('Unsupported encryption scheme: "' + scheme + '".'); + } + + // decode according to scheme + return scheme.decode(d, key, false); + }; + + /** + * Signs the given digest, producing a signature. + * + * PKCS#1 supports multiple (currently two) signature schemes: + * RSASSA-PKCS1-V1_5 and RSASSA-PSS. + * + * By default this implementation uses the "old scheme", i.e. + * RSASSA-PKCS1-V1_5. In order to generate a PSS signature, provide + * an instance of Forge PSS object as the scheme parameter. + * + * @param md the message digest object with the hash to sign. + * @param scheme the signature scheme to use: + * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, + * a Forge PSS object for RSASSA-PSS, + * 'NONE' or null for none, DigestInfo will not be used but + * PKCS#1 v1.5 padding will still be used. + * + * @return the signature as a byte string. + */ + key.sign = function(md, scheme) { + /* Note: The internal implementation of RSA operations is being + transitioned away from a PKCS#1 v1.5 hard-coded scheme. Some legacy + code like the use of an encoding block identifier 'bt' will eventually + be removed. */ + + // private key operation + var bt = false; + + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } + + if(scheme === undefined || scheme === 'RSASSA-PKCS1-V1_5') { + scheme = {encode: emsaPkcs1v15encode}; + bt = 0x01; + } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { + scheme = {encode: function() {return md;}}; + bt = 0x01; + } + + // encode and then encrypt + var d = scheme.encode(md, key.n.bitLength()); + return pki.rsa.encrypt(d, key, bt); + }; + + return key; +}; + +/** + * Wraps an RSAPrivateKey ASN.1 object in an ASN.1 PrivateKeyInfo object. + * + * @param rsaKey the ASN.1 RSAPrivateKey. + * + * @return the ASN.1 PrivateKeyInfo. + */ +pki.wrapRsaPrivateKey = function(rsaKey) { + // PrivateKeyInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (0) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(0).getBytes()), + // privateKeyAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // PrivateKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(rsaKey).getBytes()) + ]); +}; + +/** + * Converts a private key from an ASN.1 object. + * + * @param obj the ASN.1 representation of a PrivateKeyInfo containing an + * RSAPrivateKey or an RSAPrivateKey. + * + * @return the private key. + */ +pki.privateKeyFromAsn1 = function(obj) { + // get PrivateKeyInfo + var capture = {}; + var errors = []; + if(asn1.validate(obj, privateKeyValidator, capture, errors)) { + obj = asn1.fromDer(forge.util.createBuffer(capture.privateKey)); + } + + // get RSAPrivateKey + capture = {}; + errors = []; + if(!asn1.validate(obj, rsaPrivateKeyValidator, capture, errors)) { + var error = new Error('Cannot read private key. ' + + 'ASN.1 object does not contain an RSAPrivateKey.'); + error.errors = errors; + throw error; + } + + // Note: Version is currently ignored. + // capture.privateKeyVersion + // FIXME: inefficient, get a BigInteger that uses byte strings + var n, e, d, p, q, dP, dQ, qInv; + n = forge.util.createBuffer(capture.privateKeyModulus).toHex(); + e = forge.util.createBuffer(capture.privateKeyPublicExponent).toHex(); + d = forge.util.createBuffer(capture.privateKeyPrivateExponent).toHex(); + p = forge.util.createBuffer(capture.privateKeyPrime1).toHex(); + q = forge.util.createBuffer(capture.privateKeyPrime2).toHex(); + dP = forge.util.createBuffer(capture.privateKeyExponent1).toHex(); + dQ = forge.util.createBuffer(capture.privateKeyExponent2).toHex(); + qInv = forge.util.createBuffer(capture.privateKeyCoefficient).toHex(); + + // set private key + return pki.setRsaPrivateKey( + new BigInteger(n, 16), + new BigInteger(e, 16), + new BigInteger(d, 16), + new BigInteger(p, 16), + new BigInteger(q, 16), + new BigInteger(dP, 16), + new BigInteger(dQ, 16), + new BigInteger(qInv, 16)); +}; + +/** + * Converts a private key to an ASN.1 RSAPrivateKey. + * + * @param key the private key. + * + * @return the ASN.1 representation of an RSAPrivateKey. + */ +pki.privateKeyToAsn1 = pki.privateKeyToRSAPrivateKey = function(key) { + // RSAPrivateKey + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (0 = only 2 primes, 1 multiple primes) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(0).getBytes()), + // modulus (n) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.n)), + // publicExponent (e) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.e)), + // privateExponent (d) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.d)), + // privateKeyPrime1 (p) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.p)), + // privateKeyPrime2 (q) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.q)), + // privateKeyExponent1 (dP) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.dP)), + // privateKeyExponent2 (dQ) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.dQ)), + // coefficient (qInv) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.qInv)) + ]); +}; + +/** + * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey. + * + * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey. + * + * @return the public key. + */ +pki.publicKeyFromAsn1 = function(obj) { + // get SubjectPublicKeyInfo + var capture = {}; + var errors = []; + if(asn1.validate(obj, publicKeyValidator, capture, errors)) { + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + var error = new Error('Cannot read public key. Unknown OID.'); + error.oid = oid; + throw error; + } + obj = capture.rsaPublicKey; + } + + // get RSA params + errors = []; + if(!asn1.validate(obj, rsaPublicKeyValidator, capture, errors)) { + var error = new Error('Cannot read public key. ' + + 'ASN.1 object does not contain an RSAPublicKey.'); + error.errors = errors; + throw error; + } + + // FIXME: inefficient, get a BigInteger that uses byte strings + var n = forge.util.createBuffer(capture.publicKeyModulus).toHex(); + var e = forge.util.createBuffer(capture.publicKeyExponent).toHex(); + + // set public key + return pki.setRsaPublicKey( + new BigInteger(n, 16), + new BigInteger(e, 16)); +}; + +/** + * Converts a public key to an ASN.1 SubjectPublicKeyInfo. + * + * @param key the public key. + * + * @return the asn1 representation of a SubjectPublicKeyInfo. + */ +pki.publicKeyToAsn1 = pki.publicKeyToSubjectPublicKeyInfo = function(key) { + // SubjectPublicKeyInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // subjectPublicKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, [ + pki.publicKeyToRSAPublicKey(key) + ]) + ]); +}; + +/** + * Converts a public key to an ASN.1 RSAPublicKey. + * + * @param key the public key. + * + * @return the asn1 representation of a RSAPublicKey. + */ +pki.publicKeyToRSAPublicKey = function(key) { + // RSAPublicKey + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // modulus (n) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.n)), + // publicExponent (e) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.e)) + ]); +}; + +/** + * Encodes a message using PKCS#1 v1.5 padding. + * + * @param m the message to encode. + * @param key the RSA key to use. + * @param bt the block type to use, i.e. either 0x01 (for signing) or 0x02 + * (for encryption). + * + * @return the padded byte buffer. + */ +function _encodePkcs1_v1_5(m, key, bt) { + var eb = forge.util.createBuffer(); + + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + /* use PKCS#1 v1.5 padding */ + if(m.length > (k - 11)) { + var error = new Error('Message is too long for PKCS#1 v1.5 padding.'); + error.length = m.length; + error.max = k - 11; + throw error; + } + + /* A block type BT, a padding string PS, and the data D shall be + formatted into an octet string EB, the encryption block: + + EB = 00 || BT || PS || 00 || D + + The block type BT shall be a single octet indicating the structure of + the encryption block. For this version of the document it shall have + value 00, 01, or 02. For a private-key operation, the block type + shall be 00 or 01. For a public-key operation, it shall be 02. + + The padding string PS shall consist of k-3-||D|| octets. For block + type 00, the octets shall have value 00; for block type 01, they + shall have value FF; and for block type 02, they shall be + pseudorandomly generated and nonzero. This makes the length of the + encryption block EB equal to k. */ + + // build the encryption block + eb.putByte(0x00); + eb.putByte(bt); + + // create the padding + var padNum = k - 3 - m.length; + var padByte; + // private key op + if(bt === 0x00 || bt === 0x01) { + padByte = (bt === 0x00) ? 0x00 : 0xFF; + for(var i = 0; i < padNum; ++i) { + eb.putByte(padByte); + } + } else { + // public key op + // pad with random non-zero values + while(padNum > 0) { + var numZeros = 0; + var padBytes = forge.random.getBytes(padNum); + for(var i = 0; i < padNum; ++i) { + padByte = padBytes.charCodeAt(i); + if(padByte === 0) { + ++numZeros; + } else { + eb.putByte(padByte); + } + } + padNum = numZeros; + } + } + + // zero followed by message + eb.putByte(0x00); + eb.putBytes(m); + + return eb; +} + +/** + * Decodes a message using PKCS#1 v1.5 padding. + * + * @param em the message to decode. + * @param key the RSA key to use. + * @param pub true if the key is a public key, false if it is private. + * @param ml the message length, if specified. + * + * @return the decoded bytes. + */ +function _decodePkcs1_v1_5(em, key, pub, ml) { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + /* It is an error if any of the following conditions occurs: + + 1. The encryption block EB cannot be parsed unambiguously. + 2. The padding string PS consists of fewer than eight octets + or is inconsisent with the block type BT. + 3. The decryption process is a public-key operation and the block + type BT is not 00 or 01, or the decryption process is a + private-key operation and the block type is not 02. + */ + + // parse the encryption block + var eb = forge.util.createBuffer(em); + var first = eb.getByte(); + var bt = eb.getByte(); + if(first !== 0x00 || + (pub && bt !== 0x00 && bt !== 0x01) || + (!pub && bt != 0x02) || + (pub && bt === 0x00 && typeof(ml) === 'undefined')) { + throw new Error('Encryption block is invalid.'); + } + + var padNum = 0; + if(bt === 0x00) { + // check all padding bytes for 0x00 + padNum = k - 3 - ml; + for(var i = 0; i < padNum; ++i) { + if(eb.getByte() !== 0x00) { + throw new Error('Encryption block is invalid.'); + } + } + } else if(bt === 0x01) { + // find the first byte that isn't 0xFF, should be after all padding + padNum = 0; + while(eb.length() > 1) { + if(eb.getByte() !== 0xFF) { + --eb.read; + break; + } + ++padNum; + } + } else if(bt === 0x02) { + // look for 0x00 byte + padNum = 0; + while(eb.length() > 1) { + if(eb.getByte() === 0x00) { + --eb.read; + break; + } + ++padNum; + } + } + + // zero must be 0x00 and padNum must be (k - 3 - message length) + var zero = eb.getByte(); + if(zero !== 0x00 || padNum !== (k - 3 - eb.length())) { + throw new Error('Encryption block is invalid.'); + } + + return eb.getBytes(); +} + +/** + * Runs the key-generation algorithm asynchronously, either in the background + * via Web Workers, or using the main thread and setImmediate. + * + * @param state the key-pair generation state. + * @param [options] options for key-pair generation: + * workerScript the worker script URL. + * workers the number of web workers (if supported) to use, + * (default: 2, -1 to use estimated cores minus one). + * workLoad the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * @param callback(err, keypair) called once the operation completes. + */ +function _generateKeyPair(state, options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + + var opts = { + algorithm: { + name: options.algorithm || 'PRIMEINC', + options: { + workers: options.workers || 2, + workLoad: options.workLoad || 100, + workerScript: options.workerScript + } + } + }; + if('prng' in options) { + opts.prng = options.prng; + } + + generate(); + + function generate() { + // find p and then q (done in series to simplify) + getPrime(state.pBits, function(err, num) { + if(err) { + return callback(err); + } + state.p = num; + if(state.q !== null) { + return finish(err, state.q); + } + getPrime(state.qBits, finish); + }); + } + + function getPrime(bits, callback) { + forge.prime.generateProbablePrime(bits, opts, callback); + } + + function finish(err, num) { + if(err) { + return callback(err); + } + + // set q + state.q = num; + + // ensure p is larger than q (swap them if not) + if(state.p.compareTo(state.q) < 0) { + var tmp = state.p; + state.p = state.q; + state.q = tmp; + } + + // ensure p is coprime with e + if(state.p.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) !== 0) { + state.p = null; + generate(); + return; + } + + // ensure q is coprime with e + if(state.q.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) !== 0) { + state.q = null; + getPrime(state.qBits, finish); + return; + } + + // compute phi: (p - 1)(q - 1) (Euler's totient function) + state.p1 = state.p.subtract(BigInteger.ONE); + state.q1 = state.q.subtract(BigInteger.ONE); + state.phi = state.p1.multiply(state.q1); + + // ensure e and phi are coprime + if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) !== 0) { + // phi and e aren't coprime, so generate a new p and q + state.p = state.q = null; + generate(); + return; + } + + // create n, ensure n is has the right number of bits + state.n = state.p.multiply(state.q); + if(state.n.bitLength() !== state.bits) { + // failed, get new q + state.q = null; + getPrime(state.qBits, finish); + return; + } + + // set keys + var d = state.e.modInverse(state.phi); + state.keys = { + privateKey: pki.rsa.setPrivateKey( + state.n, state.e, d, state.p, state.q, + d.mod(state.p1), d.mod(state.q1), + state.q.modInverse(state.p)), + publicKey: pki.rsa.setPublicKey(state.n, state.e) + }; + + callback(null, state.keys); + } +} + +/** + * Converts a positive BigInteger into 2's-complement big-endian bytes. + * + * @param b the big integer to convert. + * + * @return the bytes. + */ +function _bnToBytes(b) { + // prepend 0x00 if first byte >= 0x80 + var hex = b.toString(16); + if(hex[0] >= '8') { + hex = '00' + hex; + } + var bytes = forge.util.hexToBytes(hex); + + // ensure integer is minimally-encoded + if(bytes.length > 1 && + // leading 0x00 for positive integer + ((bytes.charCodeAt(0) === 0 && + (bytes.charCodeAt(1) & 0x80) === 0) || + // leading 0xFF for negative integer + (bytes.charCodeAt(0) === 0xFF && + (bytes.charCodeAt(1) & 0x80) === 0x80))) { + return bytes.substr(1); + } + return bytes; +} + +/** + * Returns the required number of Miller-Rabin tests to generate a + * prime with an error probability of (1/2)^80. + * + * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * + * @param bits the bit size. + * + * @return the required number of iterations. + */ +function _getMillerRabinTests(bits) { + if(bits <= 100) return 27; + if(bits <= 150) return 18; + if(bits <= 200) return 15; + if(bits <= 250) return 12; + if(bits <= 300) return 9; + if(bits <= 350) return 8; + if(bits <= 400) return 7; + if(bits <= 500) return 6; + if(bits <= 600) return 5; + if(bits <= 800) return 4; + if(bits <= 1250) return 3; + return 2; +} + +/** + * Performs feature detection on the Node crypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectNodeCrypto(fn) { + return forge.util.isNodejs && typeof _crypto[fn] === 'function'; +} + +/** + * Performs feature detection on the SubtleCrypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectSubtleCrypto(fn) { + return (typeof util.globalScope !== 'undefined' && + typeof util.globalScope.crypto === 'object' && + typeof util.globalScope.crypto.subtle === 'object' && + typeof util.globalScope.crypto.subtle[fn] === 'function'); +} + +/** + * Performs feature detection on the deprecated Microsoft Internet Explorer + * outdated SubtleCrypto interface. This function should only be used after + * checking for the modern, standard SubtleCrypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectSubtleMsCrypto(fn) { + return (typeof util.globalScope !== 'undefined' && + typeof util.globalScope.msCrypto === 'object' && + typeof util.globalScope.msCrypto.subtle === 'object' && + typeof util.globalScope.msCrypto.subtle[fn] === 'function'); +} + +function _intToUint8Array(x) { + var bytes = forge.util.hexToBytes(x.toString(16)); + var buffer = new Uint8Array(bytes.length); + for(var i = 0; i < bytes.length; ++i) { + buffer[i] = bytes.charCodeAt(i); + } + return buffer; +} + +function _privateKeyFromJwk(jwk) { + if(jwk.kty !== 'RSA') { + throw new Error( + 'Unsupported key algorithm "' + jwk.kty + '"; algorithm must be "RSA".'); + } + return pki.setRsaPrivateKey( + _base64ToBigInt(jwk.n), + _base64ToBigInt(jwk.e), + _base64ToBigInt(jwk.d), + _base64ToBigInt(jwk.p), + _base64ToBigInt(jwk.q), + _base64ToBigInt(jwk.dp), + _base64ToBigInt(jwk.dq), + _base64ToBigInt(jwk.qi)); +} + +function _publicKeyFromJwk(jwk) { + if(jwk.kty !== 'RSA') { + throw new Error('Key algorithm must be "RSA".'); + } + return pki.setRsaPublicKey( + _base64ToBigInt(jwk.n), + _base64ToBigInt(jwk.e)); +} + +function _base64ToBigInt(b64) { + return new BigInteger(forge.util.bytesToHex(forge.util.decode64(b64)), 16); +} + + +/***/ }), + +/***/ 1527: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networkmanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networkmanagement_v1; +(function (networkmanagement_v1) { + /** + * Network Management API + * + * The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networkmanagement = google.networkmanagement('v1'); + * ``` + */ + class Networkmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networkmanagement_v1.Networkmanagement = Networkmanagement; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networkmanagement_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; params = {}; options = {}; } @@ -125779,26 +121473,25 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125811,189 +121504,363 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + networkmanagement_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.connectivityTests = + new Resource$Projects$Locations$Global$Connectivitytests(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + } + } + networkmanagement_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Connectivitytests { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rerun(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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Compositetypes = Resource$Compositetypes; - class Resource$Deployments { + networkmanagement_v1.Resource$Projects$Locations$Global$Connectivitytests = Resource$Projects$Locations$Global$Connectivitytests; + class Resource$Projects$Locations$Global$Operations { constructor(context) { this.context = context; } - cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -126002,34 +121869,35 @@ var deploymentmanager_v2beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126040,58 +121908,299 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + networkmanagement_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(networkmanagement_v1 = exports.networkmanagement_v1 || (exports.networkmanagement_v1 = {})); + + +/***/ }), + +/***/ 1529: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.transcoder_v1beta1 = exports.transcoder_v1 = exports.auth = exports.transcoder = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9789); +Object.defineProperty(exports, "transcoder_v1", { enumerable: true, get: function () { return v1_1.transcoder_v1; } }); +const v1beta1_1 = __webpack_require__(8591); +Object.defineProperty(exports, "transcoder_v1beta1", { enumerable: true, get: function () { return v1beta1_1.transcoder_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.transcoder_v1.Transcoder, + v1beta1: v1beta1_1.transcoder_v1beta1.Transcoder, +}; +function transcoder(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('transcoder', versionOrOptions, exports.VERSIONS, this); +} +exports.transcoder = transcoder; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1536: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = hasFirstPage + +const deprecate = __webpack_require__(6370) +const getPageLinks = __webpack_require__(4577) + +function hasFirstPage (link) { + deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) + return getPageLinks(link).first +} + + +/***/ }), + +/***/ 1560: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _rng = _interopRequireDefault(__webpack_require__(9007)); + +var _stringify = __webpack_require__(4106); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _stringify.unsafeStringify)(b); +} + +var _default = v1; +exports.default = _default; + +/***/ }), + +/***/ 1567: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datalabeling_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datalabeling_v1beta1; +(function (datalabeling_v1beta1) { + /** + * Data Labeling API + * + * Public API for Google Cloud AI Data Labeling Service. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datalabeling = google.datalabeling('v1beta1'); + * ``` + */ + class Datalabeling { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datalabeling_v1beta1.Datalabeling = Datalabeling; + class Resource$Projects { + constructor(context) { + this.context = context; + this.annotationSpecSets = new Resource$Projects$Annotationspecsets(this.context); + this.datasets = new Resource$Projects$Datasets(this.context); + this.evaluationJobs = new Resource$Projects$Evaluationjobs(this.context); + this.evaluations = new Resource$Projects$Evaluations(this.context); + this.instructions = new Resource$Projects$Instructions(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + datalabeling_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Annotationspecsets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126104,27 +122213,27 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotationSpecSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126135,26 +122244,56 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126167,26 +122306,37 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/annotationSpecSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + datalabeling_v1beta1.Resource$Projects$Annotationspecsets = Resource$Projects$Annotationspecsets; + class Resource$Projects$Datasets { + constructor(context) { + this.context = context; + this.annotatedDatasets = new Resource$Projects$Datasets$Annotateddatasets(this.context); + this.dataItems = new Resource$Projects$Datasets$Dataitems(this.context); + this.evaluations = new Resource$Projects$Datasets$Evaluations(this.context); + this.image = new Resource$Projects$Datasets$Image(this.context); + this.text = new Resource$Projects$Datasets$Text(this.context); + this.video = new Resource$Projects$Datasets$Video(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126199,27 +122349,27 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126230,26 +122380,56 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportData(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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:exportData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126262,26 +122442,56 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importData(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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:importData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126294,33 +122504,70 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Deployments = Resource$Deployments; - class Resource$Manifests { + datalabeling_v1beta1.Resource$Projects$Datasets = Resource$Projects$Datasets; + class Resource$Projects$Datasets$Annotateddatasets { constructor(context) { this.context = context; + this.dataItems = + new Resource$Projects$Datasets$Annotateddatasets$Dataitems(this.context); + this.examples = new Resource$Projects$Datasets$Annotateddatasets$Examples(this.context); + this.feedbackThreads = + new Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads(this.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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126331,27 +122578,27 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment', 'manifest'], - pathParams: ['deployment', 'manifest', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126362,166 +122609,171 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotatedDatasets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Manifests = Resource$Manifests; - class Resource$Operations { + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets = Resource$Projects$Datasets$Annotateddatasets; + class Resource$Projects$Datasets$Annotateddatasets$Dataitems { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Operations = Resource$Operations; - class Resource$Resources { + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets$Dataitems = Resource$Projects$Datasets$Annotateddatasets$Dataitems; + class Resource$Projects$Datasets$Annotateddatasets$Examples { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment', 'resource'], - pathParams: ['deployment', 'project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/examples').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Resources = Resource$Resources; - class Resource$Typeproviders { + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets$Examples = Resource$Projects$Datasets$Annotateddatasets$Examples; + class Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads { constructor(context) { this.context = context; + this.feedbackMessages = + new Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads$Feedbackmessages(this.context); } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -126529,30 +122781,30 @@ var deploymentmanager_v2beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -126561,94 +122813,164 @@ var deploymentmanager_v2beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getType(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/feedbackThreads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider', 'type'], - pathParams: ['project', 'type', 'typeProvider'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads = Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads; + class Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads$Feedbackmessages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/feedbackMessages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -126657,33 +122979,39 @@ var deploymentmanager_v2beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/feedbackMessages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listTypes(paramsOrCallback, optionsOrCallback, callback) { + } + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads$Feedbackmessages = Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads$Feedbackmessages; + class Resource$Projects$Datasets$Dataitems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126696,26 +123024,25 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126728,26 +123055,33 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + datalabeling_v1beta1.Resource$Projects$Datasets$Dataitems = Resource$Projects$Datasets$Dataitems; + class Resource$Projects$Datasets$Evaluations { + constructor(context) { + this.context = context; + this.exampleComparisons = + new Resource$Projects$Datasets$Evaluations$Examplecomparisons(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126760,33 +123094,71 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider'], - pathParams: ['project', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Typeproviders = Resource$Typeproviders; - class Resource$Types { + datalabeling_v1beta1.Resource$Projects$Datasets$Evaluations = Resource$Projects$Datasets$Evaluations; + class Resource$Projects$Datasets$Evaluations$Examplecomparisons { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + search(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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/exampleComparisons:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datalabeling_v1beta1.Resource$Projects$Datasets$Evaluations$Examplecomparisons = Resource$Projects$Datasets$Evaluations$Examplecomparisons; + class Resource$Projects$Datasets$Image { + constructor(context) { + this.context = context; + } + label(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126797,92 +123169,70 @@ var deploymentmanager_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/image:label').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2beta.Resource$Types = Resource$Types; -})(deploymentmanager_v2beta = exports.deploymentmanager_v2beta || (exports.deploymentmanager_v2beta = {})); -//# sourceMappingURL=v2beta.js.map - -/***/ }), -/* 340 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.firebaserules_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 = __webpack_require__(927); -var firebaserules_v1; -(function (firebaserules_v1) { - /** - * Firebase Rules API - * - * Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request. - * - * @example - * const {google} = require('googleapis'); - * const firebaserules = google.firebaserules('v1'); - * - * @namespace firebaserules - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Firebaserules - */ - class Firebaserules { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + datalabeling_v1beta1.Resource$Projects$Datasets$Image = Resource$Projects$Datasets$Image; + class Resource$Projects$Datasets$Text { + constructor(context) { + this.context = context; + } + label(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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/text:label').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - firebaserules_v1.Firebaserules = Firebaserules; - class Resource$Projects { + datalabeling_v1beta1.Resource$Projects$Datasets$Text = Resource$Projects$Datasets$Text; + class Resource$Projects$Datasets$Video { constructor(context) { this.context = context; - this.releases = new Resource$Projects$Releases(this.context); - this.rulesets = new Resource$Projects$Rulesets(this.context); } - test(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + label(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126893,27 +123243,27 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:test').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/video:label').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - firebaserules_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Releases { + datalabeling_v1beta1.Resource$Projects$Datasets$Video = Resource$Projects$Datasets$Video; + class Resource$Projects$Evaluationjobs { constructor(context) { this.context = context; } @@ -126930,22 +123280,22 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/evaluationJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -126961,10 +123311,10 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -126973,10 +123323,10 @@ var firebaserules_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -126992,10 +123342,10 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -127004,13 +123354,13 @@ var firebaserules_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getExecutable(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127023,25 +123373,25 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getExecutable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/evaluationJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127054,11 +123404,11 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -127066,13 +123416,13 @@ var firebaserules_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127085,11 +123435,11 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -127097,19 +123447,13 @@ var firebaserules_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebaserules_v1.Resource$Projects$Releases = Resource$Projects$Releases; - class Resource$Projects$Rulesets { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127122,10 +123466,10 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -127134,13 +123478,19 @@ var firebaserules_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + datalabeling_v1beta1.Resource$Projects$Evaluationjobs = Resource$Projects$Evaluationjobs; + class Resource$Projects$Evaluations { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127153,25 +123503,31 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/evaluations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + datalabeling_v1beta1.Resource$Projects$Evaluations = Resource$Projects$Evaluations; + class Resource$Projects$Instructions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127184,25 +123540,25 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/instructions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127215,11 +123571,11 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -127227,1449 +123583,550 @@ var firebaserules_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebaserules_v1.Resource$Projects$Rulesets = Resource$Projects$Rulesets; -})(firebaserules_v1 = exports.firebaserules_v1 || (exports.firebaserules_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 341 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = octokitValidate; - -const validate = __webpack_require__(63); - -function octokitValidate(octokit) { - octokit.hook.before("request", validate.bind(null, octokit)); -} - - -/***/ }), -/* 342 */, -/* 343 */, -/* 344 */, -/* 345 */, -/* 346 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2015 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 }); -const jws = __webpack_require__(894); -const LRU = __webpack_require__(243); -const DEFAULT_HEADER = { - alg: 'RS256', - typ: 'JWT', -}; -class JWTAccess { - /** - * JWTAccess service account credentials. - * - * Create a new access token by using the credential to create a new JWT token - * that's recognized as the access token. - * - * @param email the service account email address. - * @param key the private key that will be used to sign the token. - * @param keyId the ID of the private key used to sign the token. - */ - constructor(email, key, keyId) { - this.cache = new LRU({ max: 500, maxAge: 60 * 60 * 1000 }); - this.email = email; - this.key = key; - this.keyId = keyId; - } - /** - * Get a non-expired access token, after refreshing if necessary. - * - * @param url The URI being authorized. - * @param additionalClaims An object with a set of additional claims to - * include in the payload. - * @returns An object that includes the authorization header. - */ - getRequestHeaders(url, additionalClaims) { - const cachedToken = this.cache.get(url); - if (cachedToken) { - return cachedToken; + 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const iat = Math.floor(new Date().getTime() / 1000); - const exp = iat + 3600; // 3600 seconds = 1 hour - // The payload used for signed JWT headers has: - // iss == sub == - // aud == - const defaultClaims = { - iss: this.email, - sub: this.email, - aud: url, - exp, - iat, - }; - // if additionalClaims are provided, ensure they do not collide with - // other required claims. - if (additionalClaims) { - for (const claim in defaultClaims) { - if (additionalClaims[claim]) { - throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); - } + 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instructions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - const header = this.keyId - ? { ...DEFAULT_HEADER, kid: this.keyId } - : DEFAULT_HEADER; - const payload = Object.assign(defaultClaims, additionalClaims); - // Sign the jwt and add it to the cache - const signedJWT = jws.sign({ header, payload, secret: this.key }); - const headers = { Authorization: `Bearer ${signedJWT}` }; - this.cache.set(url, headers); - return headers; } - /** - * Create a JWTAccess credentials instance using the given input options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); - } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); + datalabeling_v1beta1.Resource$Projects$Instructions = Resource$Projects$Instructions; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); + 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(r => callback(), callback); + 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.fromStreamAsync(inputStream); + 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://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - reject(new Error('Must pass in a stream containing the service account auth settings.')); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - let s = ''; - inputStream - .setEncoding('utf8') - .on('data', chunk => (s += chunk)) - .on('error', reject) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (err) { - reject(err); - } - }); - }); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } -} -exports.JWTAccess = JWTAccess; -//# sourceMappingURL=jwtaccess.js.map - -/***/ }), -/* 347 */, -/* 348 */, -/* 349 */ -/***/ (function(module, __unusedexports, __webpack_require__) { + datalabeling_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(datalabeling_v1beta1 = exports.datalabeling_v1beta1 || (exports.datalabeling_v1beta1 = {})); -// Copyright (c) 2005 Tom Wu -// All Rights Reserved. -// See "LICENSE" for details. -// Basic JavaScript BN library - subset useful for RSA encryption. +/***/ }), -/* -Licensing (LICENSE) -------------------- +/***/ 1575: +/***/ (function(module, __unusedexports, __webpack_require__) { -This software is covered under the following copyright: -*/ -/* - * Copyright (c) 2003-2005 Tom Wu - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, - * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY - * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. +/** + * Password-Based Key-Derivation Function #2 implementation. * - * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, - * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER - * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF - * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT - * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * See RFC 2898 for details. * - * In addition, the following condition applies: + * @author Dave Longley * - * All redistributions must retain an intact copy of this copyright notice - * and disclaimer. + * Copyright (c) 2010-2013 Digital Bazaar, Inc. */ -/* -Address all questions regarding this license to: - - Tom Wu - tjw@cs.Stanford.EDU -*/ var forge = __webpack_require__(239); +__webpack_require__(3000); +__webpack_require__(1220); +__webpack_require__(7152); -module.exports = forge.jsbn = forge.jsbn || {}; - -// Bits per digit -var dbits; - -// JavaScript engine analysis -var canary = 0xdeadbeefcafe; -var j_lm = ((canary&0xffffff)==0xefcafe); +var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; -// (public) Constructor -function BigInteger(a,b,c) { - this.data = []; - if(a != null) - if("number" == typeof a) this.fromNumber(a,b,c); - else if(b == null && "string" != typeof a) this.fromString(a,256); - else this.fromString(a,b); +var crypto; +if(forge.util.isNodejs && !forge.options.usePureJavaScript) { + crypto = __webpack_require__(6417); } -forge.jsbn.BigInteger = BigInteger; -// return new, unset BigInteger -function nbi() { return new BigInteger(null); } +/** + * Derives a key from a password. + * + * @param p the password as a binary-encoded string of bytes. + * @param s the salt as a binary-encoded string of bytes. + * @param c the iteration count, a positive integer. + * @param dkLen the intended length, in bytes, of the derived key, + * (max: 2^32 - 1) * hash length of the PRF. + * @param [md] the message digest (or algorithm identifier as a string) to use + * in the PRF, defaults to SHA-1. + * @param [callback(err, key)] presence triggers asynchronous version, called + * once the operation completes. + * + * @return the derived key, as a binary-encoded string of bytes, for the + * synchronous version (if no callback is specified). + */ +module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function( + p, s, c, dkLen, md, callback) { + if(typeof md === 'function') { + callback = md; + md = null; + } -// am: Compute w_j += (x*this_i), propagate carries, -// c is initial carry, returns final carry. -// c < 3*dvalue, x < 2*dvalue, this_i < dvalue -// We need to select the fastest one that works in this environment. + // use native implementation if possible and not disabled, note that + // some node versions only support SHA-1, others allow digest to be changed + if(forge.util.isNodejs && !forge.options.usePureJavaScript && + crypto.pbkdf2 && (md === null || typeof md !== 'object') && + (crypto.pbkdf2Sync.length > 4 || (!md || md === 'sha1'))) { + if(typeof md !== 'string') { + // default prf to SHA-1 + md = 'sha1'; + } + p = Buffer.from(p, 'binary'); + s = Buffer.from(s, 'binary'); + if(!callback) { + if(crypto.pbkdf2Sync.length === 4) { + return crypto.pbkdf2Sync(p, s, c, dkLen).toString('binary'); + } + return crypto.pbkdf2Sync(p, s, c, dkLen, md).toString('binary'); + } + if(crypto.pbkdf2Sync.length === 4) { + return crypto.pbkdf2(p, s, c, dkLen, function(err, key) { + if(err) { + return callback(err); + } + callback(null, key.toString('binary')); + }); + } + return crypto.pbkdf2(p, s, c, dkLen, md, function(err, key) { + if(err) { + return callback(err); + } + callback(null, key.toString('binary')); + }); + } -// am1: use a single mult and divide to get the high bits, -// max digit bits should be 26 because -// max internal value = 2*dvalue^2-2*dvalue (< 2^53) -function am1(i,x,w,j,c,n) { - while(--n >= 0) { - var v = x*this.data[i++]+w.data[j]+c; - c = Math.floor(v/0x4000000); - w.data[j++] = v&0x3ffffff; + if(typeof md === 'undefined' || md === null) { + // default prf to SHA-1 + md = 'sha1'; } - return c; -} -// am2 avoids a big mult-and-extract completely. -// Max digit bits should be <= 30 because we do bitwise ops -// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) -function am2(i,x,w,j,c,n) { - var xl = x&0x7fff, xh = x>>15; - while(--n >= 0) { - var l = this.data[i]&0x7fff; - var h = this.data[i++]>>15; - var m = xh*l+h*xl; - l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff); - c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); - w.data[j++] = l&0x3fffffff; + if(typeof md === 'string') { + if(!(md in forge.md.algorithms)) { + throw new Error('Unknown hash algorithm: ' + md); + } + md = forge.md[md].create(); } - return c; -} -// Alternately, set max digit bits to 28 since some -// browsers slow down when dealing with 32-bit numbers. -function am3(i,x,w,j,c,n) { - var xl = x&0x3fff, xh = x>>14; - while(--n >= 0) { - var l = this.data[i]&0x3fff; - var h = this.data[i++]>>14; - var m = xh*l+h*xl; - l = xl*l+((m&0x3fff)<<14)+w.data[j]+c; - c = (l>>28)+(m>>14)+xh*h; - w.data[j++] = l&0xfffffff; + + var hLen = md.digestLength; + + /* 1. If dkLen > (2^32 - 1) * hLen, output "derived key too long" and + stop. */ + if(dkLen > (0xFFFFFFFF * hLen)) { + var err = new Error('Derived key is too long.'); + if(callback) { + return callback(err); + } + throw err; } - return c; -} -// node.js (no browser) -if(typeof(navigator) === 'undefined') -{ - BigInteger.prototype.am = am3; - dbits = 28; -} else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) { - BigInteger.prototype.am = am2; - dbits = 30; -} else if(j_lm && (navigator.appName != "Netscape")) { - BigInteger.prototype.am = am1; - dbits = 26; -} else { // Mozilla/Netscape seems to prefer am3 - BigInteger.prototype.am = am3; - dbits = 28; -} + /* 2. Let len be the number of hLen-octet blocks in the derived key, + rounding up, and let r be the number of octets in the last + block: -BigInteger.prototype.DB = dbits; -BigInteger.prototype.DM = ((1<= 0; --i) r.data[i] = this.data[i]; - r.t = this.t; - r.s = this.s; -} + F(P, S, c, i) = u_1 XOR u_2 XOR ... XOR u_c -// (protected) set from integer value x, -DV <= x < DV -function bnpFromInt(x) { - this.t = 1; - this.s = (x<0)?-1:0; - if(x > 0) this.data[0] = x; - else if(x < -1) this.data[0] = x+this.DV; - else this.t = 0; -} + where -// return bigint initialized to value -function nbv(i) { var r = nbi(); r.fromInt(i); return r; } + u_1 = PRF(P, S || INT(i)), + u_2 = PRF(P, u_1), + ... + u_c = PRF(P, u_{c-1}). -// (protected) set from string and radix -function bnpFromString(s,b) { - var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 256) k = 8; // byte array - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else { this.fromRadix(s,b); return; } - this.t = 0; - this.s = 0; - var i = s.length, mi = false, sh = 0; - while(--i >= 0) { - var x = (k==8)?s[i]&0xff:intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-") mi = true; - continue; - } - mi = false; - if(sh == 0) - this.data[this.t++] = x; - else if(sh+k > this.DB) { - this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); - } else - this.data[this.t-1] |= x<= this.DB) sh -= this.DB; - } - if(k == 8 && (s[0]&0x80) != 0) { - this.s = -1; - if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this.data[this.t-1] == c) --this.t; -} + // sync version + if(!callback) { + for(var i = 1; i <= len; ++i) { + // PRF(P, S || INT(i)) (first iteration) + prf.start(null, null); + prf.update(s); + prf.update(forge.util.int32ToBytes(i)); + xor = u_c1 = prf.digest().getBytes(); -// (public) return string representation in given radix -function bnToString(b) { - if(this.s < 0) return "-"+this.negate().toString(b); - var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else return this.toRadix(b); - var km = (1< 0) { - if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); } - while(i >= 0) { - if(p < k) { - d = (this.data[i]&((1<>(p+=this.DB-k); - } else { - d = (this.data[i]>>(p-=k))&km; - if(p <= 0) { p += this.DB; --i; } + // PRF(P, u_{c-1}) (other iterations) + for(var j = 2; j <= c; ++j) { + prf.start(null, null); + prf.update(u_c1); + u_c = prf.digest().getBytes(); + // F(p, s, c, i) + xor = forge.util.xorBytes(xor, u_c, hLen); + u_c1 = u_c; } - if(d > 0) m = true; - if(m) r += int2char(d); - } - } - return m?r:"0"; -} -// (public) -this -function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } + /* 4. Concatenate the blocks and extract the first dkLen octets to + produce a derived key DK: -// (public) |this| -function bnAbs() { return (this.s<0)?this.negate():this; } + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); + } + /* 5. Output the derived key DK. */ + return dk; + } -// (public) return + if this > a, - if this < a, 0 if equal -function bnCompareTo(a) { - var r = this.s-a.s; - if(r != 0) return r; - var i = this.t; - r = i-a.t; - if(r != 0) return (this.s<0)?-r:r; - while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r; - return 0; -} + // async version + var i = 1, j; + function outer() { + if(i > len) { + // done + return callback(null, dk); + } -// returns bit length of the integer x -function nbits(x) { - var r = 1, t; - if((t=x>>>16) != 0) { x = t; r += 16; } - if((t=x>>8) != 0) { x = t; r += 8; } - if((t=x>>4) != 0) { x = t; r += 4; } - if((t=x>>2) != 0) { x = t; r += 2; } - if((t=x>>1) != 0) { x = t; r += 1; } - return r; -} + // PRF(P, S || INT(i)) (first iteration) + prf.start(null, null); + prf.update(s); + prf.update(forge.util.int32ToBytes(i)); + xor = u_c1 = prf.digest().getBytes(); -// (public) return the number of bits in "this" -function bnBitLength() { - if(this.t <= 0) return 0; - return this.DB*(this.t-1)+nbits(this.data[this.t-1]^(this.s&this.DM)); -} + // PRF(P, u_{c-1}) (other iterations) + j = 2; + inner(); + } -// (protected) r = this << n*DB -function bnpDLShiftTo(n,r) { - var i; - for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i]; - for(i = n-1; i >= 0; --i) r.data[i] = 0; - r.t = this.t+n; - r.s = this.s; -} + function inner() { + if(j <= c) { + prf.start(null, null); + prf.update(u_c1); + u_c = prf.digest().getBytes(); + // F(p, s, c, i) + xor = forge.util.xorBytes(xor, u_c, hLen); + u_c1 = u_c; + ++j; + return forge.util.setImmediate(inner); + } -// (protected) r = this >> n*DB -function bnpDRShiftTo(n,r) { - for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i]; - r.t = Math.max(this.t-n,0); - r.s = this.s; -} + /* 4. Concatenate the blocks and extract the first dkLen octets to + produce a derived key DK: -// (protected) r = this << n -function bnpLShiftTo(n,r) { - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<= 0; --i) { - r.data[i+ds+1] = (this.data[i]>>cbs)|c; - c = (this.data[i]&bm)<= 0; --i) r.data[i] = 0; - r.data[ds] = c; - r.t = this.t+ds+1; - r.s = this.s; - r.clamp(); -} + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); -// (protected) r = this >> n -function bnpRShiftTo(n,r) { - r.s = this.s; - var ds = Math.floor(n/this.DB); - if(ds >= this.t) { r.t = 0; return; } - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<>bs; - for(var i = ds+1; i < this.t; ++i) { - r.data[i-ds-1] |= (this.data[i]&bm)<>bs; + ++i; + outer(); } - if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<>= this.DB; - } - if(a.t < this.t) { - c -= a.s; - while(i < this.t) { - c += this.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; - } else { - c += this.s; - while(i < a.t) { - c -= a.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c -= a.s; - } - r.s = (c<0)?-1:0; - if(c < -1) r.data[i++] = this.DV+c; - else if(c > 0) r.data[i++] = c; - r.t = i; - r.clamp(); -} + outer(); +}; -// (protected) r = this * a, r != this,a (HAC 14.12) -// "this" should be the larger one if appropriate. -function bnpMultiplyTo(a,r) { - var x = this.abs(), y = a.abs(); - var i = x.t; - r.t = i+y.t; - while(--i >= 0) r.data[i] = 0; - for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t); - r.s = 0; - r.clamp(); - if(this.s != a.s) BigInteger.ZERO.subTo(r,r); -} -// (protected) r = this^2, r != this (HAC 14.16) -function bnpSquareTo(r) { - var x = this.abs(); - var i = r.t = 2*x.t; - while(--i >= 0) r.data[i] = 0; - for(i = 0; i < x.t-1; ++i) { - var c = x.am(i,x.data[i],r,2*i,0,1); - if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { - r.data[i+x.t] -= x.DV; - r.data[i+x.t+1] = 1; - } - } - if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[i],r,2*i,0,1); - r.s = 0; - r.clamp(); -} +/***/ }), -// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) -// r != q, this != m. q or r may be null. -function bnpDivRemTo(m,q,r) { - var pm = m.abs(); - if(pm.t <= 0) return; - var pt = this.abs(); - if(pt.t < pm.t) { - if(q != null) q.fromInt(0); - if(r != null) this.copyTo(r); - return; - } - if(r == null) r = nbi(); - var y = nbi(), ts = this.s, ms = m.s; - var nsh = this.DB-nbits(pm.data[pm.t-1]); // normalize modulus - if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } else { pm.copyTo(y); pt.copyTo(r); } - var ys = y.t; - var y0 = y.data[ys-1]; - if(y0 == 0) return; - var yt = y0*(1<1)?y.data[ys-2]>>this.F2:0); - var d1 = this.FV/yt, d2 = (1<= 0) { - r.data[r.t++] = 1; - r.subTo(t,r); - } - BigInteger.ONE.dlShiftTo(ys,t); - t.subTo(y,y); // "negative" y so we can replace sub with am later - while(y.t < ys) y.data[y.t++] = 0; - while(--j >= 0) { - // Estimate quotient digit - var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2); - if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out - y.dlShiftTo(j,t); - r.subTo(t,r); - while(r.data[i] < --qd) r.subTo(t,r); - } - } - if(q != null) { - r.drShiftTo(ys,q); - if(ts != ms) BigInteger.ZERO.subTo(q,q); - } - r.t = ys; - r.clamp(); - if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder - if(ts < 0) BigInteger.ZERO.subTo(r,r); -} +/***/ 1590: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// (public) this mod a -function bnMod(a) { - var r = nbi(); - this.abs().divRemTo(a,null,r); - if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); - return r; -} +"use strict"; -// Modular reduction using "classic" algorithm -function Classic(m) { this.m = m; } -function cConvert(x) { - if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); - else return x; +// 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.AuthPlus = exports.calendar_v3 = exports.auth = exports.calendar = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_1 = __webpack_require__(1354); +Object.defineProperty(exports, "calendar_v3", { enumerable: true, get: function () { return v3_1.calendar_v3; } }); +exports.VERSIONS = { + v3: v3_1.calendar_v3.Calendar, +}; +function calendar(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('calendar', versionOrOptions, exports.VERSIONS, this); } -function cRevert(x) { return x; } -function cReduce(x) { x.divRemTo(this.m,null,x); } -function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } -function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - -Classic.prototype.convert = cConvert; -Classic.prototype.revert = cRevert; -Classic.prototype.reduce = cReduce; -Classic.prototype.mulTo = cMulTo; -Classic.prototype.sqrTo = cSqrTo; +exports.calendar = calendar; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -// (protected) return "-1/this % 2^DB"; useful for Mont. reduction -// justification: -// xy == 1 (mod m) -// xy = 1+km -// xy(2-xy) = (1+km)(1-km) -// x[y(2-xy)] = 1-k^2m^2 -// x[y(2-xy)] == 1 (mod m^2) -// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 -// should reduce x and y(2-xy) by m^2 at each step to keep size bounded. -// JS multiply "overflows" differently from C/C++, so care is needed here. -function bnpInvDigit() { - if(this.t < 1) return 0; - var x = this.data[0]; - if((x&1) == 0) return 0; - var y = x&3; // y == 1/x mod 2^2 - y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 - y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 - y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 - // last step - calculate inverse mod DV directly; - // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints - y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits - // we really want the negative inverse, and -DV < y < DV - return (y>0)?this.DV-y:-y; -} -// Montgomery reduction -function Montgomery(m) { - this.m = m; - this.mp = m.invDigit(); - this.mpl = this.mp&0x7fff; - this.mph = this.mp>>15; - this.um = (1<<(m.DB-15))-1; - this.mt2 = 2*m.t; -} +/***/ }), -// xR mod m -function montConvert(x) { - var r = nbi(); - x.abs().dlShiftTo(this.m.t,r); - r.divRemTo(this.m,null,r); - if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r); - return r; -} +/***/ 1606: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// x/R mod m -function montRevert(x) { - var r = nbi(); - x.copyTo(r); - this.reduce(r); - return r; -} +"use strict"; -// x = x/R mod m (HAC 14.32) -function montReduce(x) { - while(x.t <= this.mt2) // pad x so am has enough room later - x.data[x.t++] = 0; - for(var i = 0; i < this.m.t; ++i) { - // faster way of calculating u0 = x.data[i]*mp mod DV - var j = x.data[i]&0x7fff; - var u0 = (j*this.mpl+(((j*this.mph+(x.data[i]>>15)*this.mpl)&this.um)<<15))&x.DM; - // use am to combine the multiply-shift-add into one call - j = i+this.m.t; - x.data[j] += this.m.am(0,u0,x,i,0,this.m.t); - // propagate carry - while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; } - } - x.clamp(); - x.drShiftTo(this.m.t,x); - if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); +// 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.AuthPlus = exports.ondemandscanning_v1beta1 = exports.ondemandscanning_v1 = exports.auth = exports.ondemandscanning = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5283); +Object.defineProperty(exports, "ondemandscanning_v1", { enumerable: true, get: function () { return v1_1.ondemandscanning_v1; } }); +const v1beta1_1 = __webpack_require__(1236); +Object.defineProperty(exports, "ondemandscanning_v1beta1", { enumerable: true, get: function () { return v1beta1_1.ondemandscanning_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.ondemandscanning_v1.Ondemandscanning, + v1beta1: v1beta1_1.ondemandscanning_v1beta1.Ondemandscanning, +}; +function ondemandscanning(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('ondemandscanning', versionOrOptions, exports.VERSIONS, this); } +exports.ondemandscanning = ondemandscanning; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -// r = "x^2/R mod m"; x != r -function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - -// r = "xy/R mod m"; x,y != r -function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } -Montgomery.prototype.convert = montConvert; -Montgomery.prototype.revert = montRevert; -Montgomery.prototype.reduce = montReduce; -Montgomery.prototype.mulTo = montMulTo; -Montgomery.prototype.sqrTo = montSqrTo; +/***/ }), -// (protected) true iff this is even -function bnpIsEven() { return ((this.t>0)?(this.data[0]&1):this.s) == 0; } +/***/ 1609: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) -function bnpExp(e,z) { - if(e > 0xffffffff || e < 1) return BigInteger.ONE; - var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; - g.copyTo(r); - while(--i >= 0) { - z.sqrTo(r,r2); - if((e&(1< 0) z.mulTo(r2,g,r); - else { var t = r; r = r2; r2 = t; } - } - return z.revert(r); -} +"use strict"; -// (public) this^e % m, 0 <= e < 2^32 -function bnModPowInt(e,m) { - var z; - if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); - return this.exp(e,z); -} - -// protected -BigInteger.prototype.copyTo = bnpCopyTo; -BigInteger.prototype.fromInt = bnpFromInt; -BigInteger.prototype.fromString = bnpFromString; -BigInteger.prototype.clamp = bnpClamp; -BigInteger.prototype.dlShiftTo = bnpDLShiftTo; -BigInteger.prototype.drShiftTo = bnpDRShiftTo; -BigInteger.prototype.lShiftTo = bnpLShiftTo; -BigInteger.prototype.rShiftTo = bnpRShiftTo; -BigInteger.prototype.subTo = bnpSubTo; -BigInteger.prototype.multiplyTo = bnpMultiplyTo; -BigInteger.prototype.squareTo = bnpSquareTo; -BigInteger.prototype.divRemTo = bnpDivRemTo; -BigInteger.prototype.invDigit = bnpInvDigit; -BigInteger.prototype.isEven = bnpIsEven; -BigInteger.prototype.exp = bnpExp; - -// public -BigInteger.prototype.toString = bnToString; -BigInteger.prototype.negate = bnNegate; -BigInteger.prototype.abs = bnAbs; -BigInteger.prototype.compareTo = bnCompareTo; -BigInteger.prototype.bitLength = bnBitLength; -BigInteger.prototype.mod = bnMod; -BigInteger.prototype.modPowInt = bnModPowInt; - -// "constants" -BigInteger.ZERO = nbv(0); -BigInteger.ONE = nbv(1); - -// jsbn2 lib - -//Copyright (c) 2005-2009 Tom Wu -//All Rights Reserved. -//See "LICENSE" for details (See jsbn.js for LICENSE). - -//Extended JavaScript BN functions, required for RSA private ops. - -//Version 1.1: new BigInteger("0", 10) returns "proper" zero - -//(public) -function bnClone() { var r = nbi(); this.copyTo(r); return r; } - -//(public) return value as integer -function bnIntValue() { -if(this.s < 0) { - if(this.t == 1) return this.data[0]-this.DV; - else if(this.t == 0) return -1; -} else if(this.t == 1) return this.data[0]; -else if(this.t == 0) return 0; -// assumes 16 < DB < 32 -return ((this.data[1]&((1<<(32-this.DB))-1))<>24; } - -//(public) return value as short (assumes DB>=16) -function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; } - -//(protected) return x s.t. r^x < DV -function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } - -//(public) 0 if this == 0, 1 if this > 0 -function bnSigNum() { -if(this.s < 0) return -1; -else if(this.t <= 0 || (this.t == 1 && this.data[0] <= 0)) return 0; -else return 1; -} - -//(protected) convert to radix string -function bnpToRadix(b) { -if(b == null) b = 10; -if(this.signum() == 0 || b < 2 || b > 36) return "0"; -var cs = this.chunkSize(b); -var a = Math.pow(b,cs); -var d = nbv(a), y = nbi(), z = nbi(), r = ""; -this.divRemTo(d,y,z); -while(y.signum() > 0) { - r = (a+z.intValue()).toString(b).substr(1) + r; - y.divRemTo(d,y,z); -} -return z.intValue().toString(b) + r; -} - -//(protected) convert from radix string -function bnpFromRadix(s,b) { -this.fromInt(0); -if(b == null) b = 10; -var cs = this.chunkSize(b); -var d = Math.pow(b,cs), mi = false, j = 0, w = 0; -for(var i = 0; i < s.length; ++i) { - var x = intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-" && this.signum() == 0) mi = true; - continue; - } - w = b*w+x; - if(++j >= cs) { - this.dMultiply(d); - this.dAddOffset(w,0); - j = 0; - w = 0; - } -} -if(j > 0) { - this.dMultiply(Math.pow(b,j)); - this.dAddOffset(w,0); -} -if(mi) BigInteger.ZERO.subTo(this,this); -} - -//(protected) alternate constructor -function bnpFromNumber(a,b,c) { -if("number" == typeof b) { - // new BigInteger(int,int,RNG) - if(a < 2) this.fromInt(1); - else { - this.fromNumber(a,c); - if(!this.testBit(a-1)) // force MSB set - this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this); - if(this.isEven()) this.dAddOffset(1,0); // force odd - while(!this.isProbablePrime(b)) { - this.dAddOffset(2,0); - if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this); - } - } -} else { - // new BigInteger(int,RNG) - var x = new Array(), t = a&7; - x.length = (a>>3)+1; - b.nextBytes(x); - if(t > 0) x[0] &= ((1< 0) { - if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p) - r[k++] = d|(this.s<<(this.DB-p)); - while(i >= 0) { - if(p < 8) { - d = (this.data[i]&((1<>(p+=this.DB-8); - } else { - d = (this.data[i]>>(p-=8))&0xff; - if(p <= 0) { p += this.DB; --i; } - } - if((d&0x80) != 0) d |= -256; - if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; - if(k > 0 || d != this.s) r[k++] = d; - } -} -return r; -} - -function bnEquals(a) { return(this.compareTo(a)==0); } -function bnMin(a) { return(this.compareTo(a)<0)?this:a; } -function bnMax(a) { return(this.compareTo(a)>0)?this:a; } - -//(protected) r = this op a (bitwise) -function bnpBitwiseTo(a,op,r) { -var i, f, m = Math.min(a.t,this.t); -for(i = 0; i < m; ++i) r.data[i] = op(this.data[i],a.data[i]); -if(a.t < this.t) { - f = a.s&this.DM; - for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f); - r.t = this.t; -} else { - f = this.s&this.DM; - for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]); - r.t = a.t; -} -r.s = op(this.s,a.s); -r.clamp(); -} - -//(public) this & a -function op_and(x,y) { return x&y; } -function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } - -//(public) this | a -function op_or(x,y) { return x|y; } -function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } - -//(public) this ^ a -function op_xor(x,y) { return x^y; } -function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } - -//(public) this & ~a -function op_andnot(x,y) { return x&~y; } -function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } - -//(public) ~this -function bnNot() { -var r = nbi(); -for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i]; -r.t = this.t; -r.s = ~this.s; -return r; -} - -//(public) this << n -function bnShiftLeft(n) { -var r = nbi(); -if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); -return r; -} - -//(public) this >> n -function bnShiftRight(n) { -var r = nbi(); -if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); -return r; -} - -//return index of lowest 1-bit in x, x < 2^31 -function lbit(x) { -if(x == 0) return -1; -var r = 0; -if((x&0xffff) == 0) { x >>= 16; r += 16; } -if((x&0xff) == 0) { x >>= 8; r += 8; } -if((x&0xf) == 0) { x >>= 4; r += 4; } -if((x&3) == 0) { x >>= 2; r += 2; } -if((x&1) == 0) ++r; -return r; -} - -//(public) returns index of lowest 1-bit (or -1 if none) -function bnGetLowestSetBit() { -for(var i = 0; i < this.t; ++i) - if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]); -if(this.s < 0) return this.t*this.DB; -return -1; -} - -//return number of 1 bits in x -function cbit(x) { -var r = 0; -while(x != 0) { x &= x-1; ++r; } -return r; -} - -//(public) return number of set bits -function bnBitCount() { -var r = 0, x = this.s&this.DM; -for(var i = 0; i < this.t; ++i) r += cbit(this.data[i]^x); -return r; -} - -//(public) true iff nth bit is set -function bnTestBit(n) { -var j = Math.floor(n/this.DB); -if(j >= this.t) return(this.s!=0); -return((this.data[j]&(1<<(n%this.DB)))!=0); -} - -//(protected) this op (1<>= this.DB; -} -if(a.t < this.t) { - c += a.s; - while(i < this.t) { - c += this.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; -} else { - c += this.s; - while(i < a.t) { - c += a.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += a.s; -} -r.s = (c<0)?-1:0; -if(c > 0) r.data[i++] = c; -else if(c < -1) r.data[i++] = this.DV+c; -r.t = i; -r.clamp(); -} - -//(public) this + a -function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } - -//(public) this - a -function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } - -//(public) this * a -function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } - -//(public) this / a -function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } - -//(public) this % a -function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } - -//(public) [this/a,this%a] -function bnDivideAndRemainder(a) { -var q = nbi(), r = nbi(); -this.divRemTo(a,q,r); -return new Array(q,r); -} - -//(protected) this *= n, this >= 0, 1 < n < DV -function bnpDMultiply(n) { -this.data[this.t] = this.am(0,n-1,this,0,0,this.t); -++this.t; -this.clamp(); -} - -//(protected) this += n << w words, this >= 0 -function bnpDAddOffset(n,w) { -if(n == 0) return; -while(this.t <= w) this.data[this.t++] = 0; -this.data[w] += n; -while(this.data[w] >= this.DV) { - this.data[w] -= this.DV; - if(++w >= this.t) this.data[this.t++] = 0; - ++this.data[w]; -} -} - -//A "null" reducer -function NullExp() {} -function nNop(x) { return x; } -function nMulTo(x,y,r) { x.multiplyTo(y,r); } -function nSqrTo(x,r) { x.squareTo(r); } - -NullExp.prototype.convert = nNop; -NullExp.prototype.revert = nNop; -NullExp.prototype.mulTo = nMulTo; -NullExp.prototype.sqrTo = nSqrTo; - -//(public) this^e -function bnPow(e) { return this.exp(e,new NullExp()); } - -//(protected) r = lower n words of "this * a", a.t <= n -//"this" should be the larger one if appropriate. -function bnpMultiplyLowerTo(a,n,r) { -var i = Math.min(this.t+a.t,n); -r.s = 0; // assumes a,this >= 0 -r.t = i; -while(i > 0) r.data[--i] = 0; -var j; -for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t); -for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i); -r.clamp(); -} - -//(protected) r = "this * a" without lower n words, n > 0 -//"this" should be the larger one if appropriate. -function bnpMultiplyUpperTo(a,n,r) { ---n; -var i = r.t = this.t+a.t-n; -r.s = 0; // assumes a,this >= 0 -while(--i >= 0) r.data[i] = 0; -for(i = Math.max(n-this.t,0); i < a.t; ++i) - r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n); -r.clamp(); -r.drShiftTo(1,r); -} - -//Barrett modular reduction -function Barrett(m) { -// setup Barrett -this.r2 = nbi(); -this.q3 = nbi(); -BigInteger.ONE.dlShiftTo(2*m.t,this.r2); -this.mu = this.r2.divide(m); -this.m = m; -} - -function barrettConvert(x) { -if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); -else if(x.compareTo(this.m) < 0) return x; -else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } -} - -function barrettRevert(x) { return x; } - -//x = x mod m (HAC 14.42) -function barrettReduce(x) { -x.drShiftTo(this.m.t-1,this.r2); -if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } -this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); -this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); -while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); -x.subTo(this.r2,x); -while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); -} - -//r = x^2 mod m; x != r -function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - -//r = x*y mod m; x,y != r -function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - -Barrett.prototype.convert = barrettConvert; -Barrett.prototype.revert = barrettRevert; -Barrett.prototype.reduce = barrettReduce; -Barrett.prototype.mulTo = barrettMulTo; -Barrett.prototype.sqrTo = barrettSqrTo; - -//(public) this^e % m (HAC 14.85) -function bnModPow(e,m) { -var i = e.bitLength(), k, r = nbv(1), z; -if(i <= 0) return r; -else if(i < 18) k = 1; -else if(i < 48) k = 3; -else if(i < 144) k = 4; -else if(i < 768) k = 5; -else k = 6; -if(i < 8) - z = new Classic(m); -else if(m.isEven()) - z = new Barrett(m); -else - z = new Montgomery(m); - -// precomputation -var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { - var g2 = nbi(); - z.sqrTo(g[1],g2); - while(n <= km) { - g[n] = nbi(); - z.mulTo(g2,g[n-2],g[n]); - n += 2; - } -} - -var j = e.t-1, w, is1 = true, r2 = nbi(), t; -i = nbits(e.data[j])-1; -while(j >= 0) { - if(i >= k1) w = (e.data[j]>>(i-k1))&km; - else { - w = (e.data[j]&((1<<(i+1))-1))<<(k1-i); - if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1); - } - - n = k; - while((w&1) == 0) { w >>= 1; --n; } - if((i -= n) < 0) { i += this.DB; --j; } - if(is1) { // ret == 1, don't bother squaring or multiplying it - g[w].copyTo(r); - is1 = false; - } else { - while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } - if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } - z.mulTo(r2,g[w],r); - } - - while(j >= 0 && (e.data[j]&(1< 0) { - x.rShiftTo(g,x); - y.rShiftTo(g,y); -} -while(x.signum() > 0) { - if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); - if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); - if(x.compareTo(y) >= 0) { - x.subTo(y,x); - x.rShiftTo(1,x); - } else { - y.subTo(x,y); - y.rShiftTo(1,y); - } -} -if(g > 0) y.lShiftTo(g,y); -return y; -} - -//(protected) this % n, n < 2^26 -function bnpModInt(n) { -if(n <= 0) return 0; -var d = this.DV%n, r = (this.s<0)?n-1:0; -if(this.t > 0) - if(d == 0) r = this.data[0]%n; - else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n; -return r; -} - -//(public) 1/this % m (HAC 14.61) -function bnModInverse(m) { -var ac = m.isEven(); -if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO; -var u = m.clone(), v = this.clone(); -var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); -while(u.signum() != 0) { - while(u.isEven()) { - u.rShiftTo(1,u); - if(ac) { - if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } - a.rShiftTo(1,a); - } else if(!b.isEven()) b.subTo(m,b); - b.rShiftTo(1,b); - } - while(v.isEven()) { - v.rShiftTo(1,v); - if(ac) { - if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } - c.rShiftTo(1,c); - } else if(!d.isEven()) d.subTo(m,d); - d.rShiftTo(1,d); - } - if(u.compareTo(v) >= 0) { - u.subTo(v,u); - if(ac) a.subTo(c,a); - b.subTo(d,b); - } else { - v.subTo(u,v); - if(ac) c.subTo(a,c); - d.subTo(b,d); - } -} -if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO; -if(d.compareTo(m) >= 0) return d.subtract(m); -if(d.signum() < 0) d.addTo(m,d); else return d; -if(d.signum() < 0) return d.add(m); else return d; -} - -var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509]; -var lplim = (1<<26)/lowprimes[lowprimes.length-1]; - -//(public) test primality with certainty >= 1-.5^t -function bnIsProbablePrime(t) { -var i, x = this.abs(); -if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) { - for(i = 0; i < lowprimes.length; ++i) - if(x.data[0] == lowprimes[i]) return true; - return false; -} -if(x.isEven()) return false; -i = 1; -while(i < lowprimes.length) { - var m = lowprimes[i], j = i+1; - while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; - m = x.modInt(m); - while(i < j) if(m%lowprimes[i++] == 0) return false; -} -return x.millerRabin(t); -} - -//(protected) true if probably prime (HAC 4.24, Miller-Rabin) -function bnpMillerRabin(t) { -var n1 = this.subtract(BigInteger.ONE); -var k = n1.getLowestSetBit(); -if(k <= 0) return false; -var r = n1.shiftRight(k); -var prng = bnGetPrng(); -var a; -for(var i = 0; i < t; ++i) { - // select witness 'a' at random from between 1 and n1 - do { - a = new BigInteger(this.bitLength(), prng); - } - while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0); - var y = a.modPow(r,this); - if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { - var j = 1; - while(j++ < k && y.compareTo(n1) != 0) { - y = y.modPowInt(2,this); - if(y.compareTo(BigInteger.ONE) == 0) return false; - } - if(y.compareTo(n1) != 0) return false; - } -} -return true; -} - -// get pseudo random number generator -function bnGetPrng() { - // create prng with api that matches BigInteger secure random - return { - // x is an array to fill with bytes - nextBytes: function(x) { - for(var i = 0; i < x.length; ++i) { - x[i] = Math.floor(Math.random() * 0x0100); - } - } - }; +// 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.AuthPlus = exports.blogger_v3 = exports.blogger_v2 = exports.auth = exports.blogger = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(6551); +Object.defineProperty(exports, "blogger_v2", { enumerable: true, get: function () { return v2_1.blogger_v2; } }); +const v3_1 = __webpack_require__(5303); +Object.defineProperty(exports, "blogger_v3", { enumerable: true, get: function () { return v3_1.blogger_v3; } }); +exports.VERSIONS = { + v2: v2_1.blogger_v2.Blogger, + v3: v3_1.blogger_v3.Blogger, +}; +function blogger(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('blogger', versionOrOptions, exports.VERSIONS, this); } - -//protected -BigInteger.prototype.chunkSize = bnpChunkSize; -BigInteger.prototype.toRadix = bnpToRadix; -BigInteger.prototype.fromRadix = bnpFromRadix; -BigInteger.prototype.fromNumber = bnpFromNumber; -BigInteger.prototype.bitwiseTo = bnpBitwiseTo; -BigInteger.prototype.changeBit = bnpChangeBit; -BigInteger.prototype.addTo = bnpAddTo; -BigInteger.prototype.dMultiply = bnpDMultiply; -BigInteger.prototype.dAddOffset = bnpDAddOffset; -BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; -BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; -BigInteger.prototype.modInt = bnpModInt; -BigInteger.prototype.millerRabin = bnpMillerRabin; - -//public -BigInteger.prototype.clone = bnClone; -BigInteger.prototype.intValue = bnIntValue; -BigInteger.prototype.byteValue = bnByteValue; -BigInteger.prototype.shortValue = bnShortValue; -BigInteger.prototype.signum = bnSigNum; -BigInteger.prototype.toByteArray = bnToByteArray; -BigInteger.prototype.equals = bnEquals; -BigInteger.prototype.min = bnMin; -BigInteger.prototype.max = bnMax; -BigInteger.prototype.and = bnAnd; -BigInteger.prototype.or = bnOr; -BigInteger.prototype.xor = bnXor; -BigInteger.prototype.andNot = bnAndNot; -BigInteger.prototype.not = bnNot; -BigInteger.prototype.shiftLeft = bnShiftLeft; -BigInteger.prototype.shiftRight = bnShiftRight; -BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; -BigInteger.prototype.bitCount = bnBitCount; -BigInteger.prototype.testBit = bnTestBit; -BigInteger.prototype.setBit = bnSetBit; -BigInteger.prototype.clearBit = bnClearBit; -BigInteger.prototype.flipBit = bnFlipBit; -BigInteger.prototype.add = bnAdd; -BigInteger.prototype.subtract = bnSubtract; -BigInteger.prototype.multiply = bnMultiply; -BigInteger.prototype.divide = bnDivide; -BigInteger.prototype.remainder = bnRemainder; -BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; -BigInteger.prototype.modPow = bnModPow; -BigInteger.prototype.modInverse = bnModInverse; -BigInteger.prototype.pow = bnPow; -BigInteger.prototype.gcd = bnGCD; -BigInteger.prototype.isProbablePrime = bnIsProbablePrime; - -//BigInteger interfaces not implemented in jsbn: - -//BigInteger(int signum, byte[] magnitude) -//double doubleValue() -//float floatValue() -//int hashCode() -//long longValue() -//static BigInteger valueOf(long val) +exports.blogger = blogger; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 350 */ + +/***/ 1611: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -128687,48 +124144,49 @@ BigInteger.prototype.isProbablePrime = bnIsProbablePrime; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.datacatalog_v1beta1 = void 0; +exports.dns_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 = __webpack_require__(927); -var datacatalog_v1beta1; -(function (datacatalog_v1beta1) { +var dns_v1; +(function (dns_v1) { /** - * Google Cloud Data Catalog API + * Cloud DNS API + * * - * A fully managed and highly scalable data discovery and metadata management service. * * @example + * ```js * const {google} = require('googleapis'); - * const datacatalog = google.datacatalog('v1beta1'); - * - * @namespace datacatalog - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Datacatalog + * const dns = google.dns('v1'); + * ``` */ - class Datacatalog { + class Dns { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.catalog = new Resource$Catalog(this.context); - this.entries = new Resource$Entries(this.context); + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + this.responsePolicies = new Resource$Responsepolicies(this.context); + this.responsePolicyRules = new Resource$Responsepolicyrules(this.context); } } - datacatalog_v1beta1.Datacatalog = Datacatalog; - class Resource$Catalog { + dns_v1.Dns = Dns; + class Resource$Changes { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -128740,31 +124198,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datacatalog_v1beta1.Resource$Catalog = Resource$Catalog; - class Resource$Entries { - constructor(context) { - this.context = context; - } - lookup(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -128776,51 +124229,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datacatalog_v1beta1.Resource$Entries = Resource$Entries; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - datacatalog_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.entryGroups = new Resource$Projects$Locations$Entrygroups(this.context); - this.tagTemplates = new Resource$Projects$Locations$Tagtemplates(this.context); - this.taxonomies = new Resource$Projects$Locations$Taxonomies(this.context); - } - } - datacatalog_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Entrygroups { - constructor(context) { - this.context = context; - this.entries = new Resource$Projects$Locations$Entrygroups$Entries(this.context); - this.tags = new Resource$Projects$Locations$Entrygroups$Tags(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -128831,27 +124260,33 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dns_v1.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -128862,27 +124297,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -128893,25 +124328,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v1.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128924,22 +124366,23 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -128955,25 +124398,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128986,25 +124436,25 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129017,27 +124467,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129048,32 +124497,25 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; - class Resource$Projects$Locations$Entrygroups$Entries { - constructor(context) { - this.context = context; - this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129086,25 +124528,25 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129117,25 +124559,25 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129148,25 +124590,25 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129179,10 +124621,10 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -129191,13 +124633,13 @@ var datacatalog_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129210,25 +124652,25 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129241,27 +124683,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dns_v1.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129272,33 +124719,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; - class Resource$Projects$Locations$Entrygroups$Entries$Tags { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129309,27 +124749,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129340,27 +124779,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129371,27 +124809,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129402,27 +124839,93 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries$Tags = Resource$Projects$Locations$Entrygroups$Entries$Tags; - class Resource$Projects$Locations$Entrygroups$Tags { + dns_v1.Resource$Policies = Resource$Policies; + class Resource$Projects { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { constructor(context) { this.context = context; } @@ -129439,22 +124942,23 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -129470,22 +124974,55 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -129501,22 +125038,23 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -129532,30 +125070,30 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Tags = Resource$Projects$Locations$Entrygroups$Tags; - class Resource$Projects$Locations$Tagtemplates { + dns_v1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; + class Resource$Responsepolicies { constructor(context) { this.context = context; - this.fields = new Resource$Projects$Locations$Tagtemplates$Fields(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -129570,22 +125108,22 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -129601,22 +125139,23 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -129632,25 +125171,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129663,22 +125203,22 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -129694,25 +125234,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129725,25 +125266,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v1.Resource$Responsepolicies = Resource$Responsepolicies; + class Resource$Responsepolicyrules { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129756,31 +125304,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates = Resource$Projects$Locations$Tagtemplates; - class Resource$Projects$Locations$Tagtemplates$Fields { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129793,25 +125336,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129824,25 +125368,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129855,25 +125400,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rename(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129886,32 +125432,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates$Fields = Resource$Projects$Locations$Tagtemplates$Fields; - class Resource$Projects$Locations$Taxonomies { - constructor(context) { - this.context = context; - this.policyTags = new Resource$Projects$Locations$Taxonomies$Policytags(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129924,25 +125464,227 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v1.Resource$Responsepolicyrules = Resource$Responsepolicyrules; +})(dns_v1 = exports.dns_v1 || (exports.dns_v1 = {})); + + +/***/ }), + +/***/ 1613: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebasedatabase_v1beta = exports.auth = exports.firebasedatabase = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta_1 = __webpack_require__(8779); +Object.defineProperty(exports, "firebasedatabase_v1beta", { enumerable: true, get: function () { return v1beta_1.firebasedatabase_v1beta; } }); +exports.VERSIONS = { + v1beta: v1beta_1.firebasedatabase_v1beta.Firebasedatabase, +}; +function firebasedatabase(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebasedatabase', versionOrOptions, exports.VERSIONS, this); +} +exports.firebasedatabase = firebasedatabase; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1631: +/***/ (function(module) { + +module.exports = require("net"); + +/***/ }), + +/***/ 1635: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.compute_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var compute_v1; +(function (compute_v1) { + /** + * Compute Engine API + * + * Creates and runs virtual machines on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * ``` + */ + class Compute { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acceleratorTypes = new Resource$Acceleratortypes(this.context); + this.addresses = new Resource$Addresses(this.context); + this.autoscalers = new Resource$Autoscalers(this.context); + this.backendBuckets = new Resource$Backendbuckets(this.context); + this.backendServices = new Resource$Backendservices(this.context); + this.disks = new Resource$Disks(this.context); + this.diskTypes = new Resource$Disktypes(this.context); + this.externalVpnGateways = new Resource$Externalvpngateways(this.context); + this.firewallPolicies = new Resource$Firewallpolicies(this.context); + this.firewalls = new Resource$Firewalls(this.context); + this.forwardingRules = new Resource$Forwardingrules(this.context); + this.globalAddresses = new Resource$Globaladdresses(this.context); + this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); + this.globalNetworkEndpointGroups = + new Resource$Globalnetworkendpointgroups(this.context); + this.globalOperations = new Resource$Globaloperations(this.context); + this.globalOrganizationOperations = + new Resource$Globalorganizationoperations(this.context); + this.globalPublicDelegatedPrefixes = + new Resource$Globalpublicdelegatedprefixes(this.context); + this.healthChecks = new Resource$Healthchecks(this.context); + this.httpHealthChecks = new Resource$Httphealthchecks(this.context); + this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); + this.imageFamilyViews = new Resource$Imagefamilyviews(this.context); + this.images = new Resource$Images(this.context); + this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); + this.instanceGroups = new Resource$Instancegroups(this.context); + this.instances = new Resource$Instances(this.context); + this.instanceTemplates = new Resource$Instancetemplates(this.context); + this.interconnectAttachments = new Resource$Interconnectattachments(this.context); + this.interconnectLocations = new Resource$Interconnectlocations(this.context); + this.interconnects = new Resource$Interconnects(this.context); + this.licenseCodes = new Resource$Licensecodes(this.context); + this.licenses = new Resource$Licenses(this.context); + this.machineImages = new Resource$Machineimages(this.context); + this.machineTypes = new Resource$Machinetypes(this.context); + this.networkAttachments = new Resource$Networkattachments(this.context); + this.networkEdgeSecurityServices = + new Resource$Networkedgesecurityservices(this.context); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); + this.networkFirewallPolicies = new Resource$Networkfirewallpolicies(this.context); + this.networks = new Resource$Networks(this.context); + this.nodeGroups = new Resource$Nodegroups(this.context); + this.nodeTemplates = new Resource$Nodetemplates(this.context); + this.nodeTypes = new Resource$Nodetypes(this.context); + this.packetMirrorings = new Resource$Packetmirrorings(this.context); + this.projects = new Resource$Projects(this.context); + this.publicAdvertisedPrefixes = new Resource$Publicadvertisedprefixes(this.context); + this.publicDelegatedPrefixes = new Resource$Publicdelegatedprefixes(this.context); + this.regionAutoscalers = new Resource$Regionautoscalers(this.context); + this.regionBackendServices = new Resource$Regionbackendservices(this.context); + this.regionCommitments = new Resource$Regioncommitments(this.context); + this.regionDisks = new Resource$Regiondisks(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); + this.regionInstanceGroupManagers = + new Resource$Regioninstancegroupmanagers(this.context); + this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); + this.regionInstances = new Resource$Regioninstances(this.context); + this.regionNetworkEndpointGroups = + new Resource$Regionnetworkendpointgroups(this.context); + this.regionNetworkFirewallPolicies = + new Resource$Regionnetworkfirewallpolicies(this.context); + this.regionNotificationEndpoints = + new Resource$Regionnotificationendpoints(this.context); + this.regionOperations = new Resource$Regionoperations(this.context); + this.regions = new Resource$Regions(this.context); + this.regionSecurityPolicies = new Resource$Regionsecuritypolicies(this.context); + this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); + this.regionSslPolicies = new Resource$Regionsslpolicies(this.context); + this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); + this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); + this.regionTargetTcpProxies = new Resource$Regiontargettcpproxies(this.context); + this.regionUrlMaps = new Resource$Regionurlmaps(this.context); + this.reservations = new Resource$Reservations(this.context); + this.resourcePolicies = new Resource$Resourcepolicies(this.context); + this.routers = new Resource$Routers(this.context); + this.routes = new Resource$Routes(this.context); + this.securityPolicies = new Resource$Securitypolicies(this.context); + this.serviceAttachments = new Resource$Serviceattachments(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetGrpcProxies = new Resource$Targetgrpcproxies(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zones = new Resource$Zones(this.context); + } + } + compute_v1.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129955,25 +125697,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129986,25 +125729,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130017,25 +125761,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130048,27 +125799,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130079,27 +125829,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130110,27 +125860,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130141,27 +125891,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130172,25 +125922,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130203,31 +125954,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies = Resource$Projects$Locations$Taxonomies; - class Resource$Projects$Locations$Taxonomies$Policytags { + compute_v1.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130240,22 +125992,22 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -130271,27 +126023,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130302,25 +126054,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130333,27 +126086,27 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130364,22 +126117,23 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -130395,25 +126149,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130426,25 +126181,32 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130457,165 +126219,26 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; -})(datacatalog_v1beta1 = exports.datacatalog_v1beta1 || (exports.datacatalog_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 351 */ -/***/ (function(module) { - -module.exports = {"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}; - -/***/ }), -/* 352 */, -/* 353 */ -/***/ (function(module) { - -"use strict"; - - -/* eslint no-invalid-this: 1 */ - -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var slice = Array.prototype.slice; -var toStr = Object.prototype.toString; -var funcType = '[object Function]'; - -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.call(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slice.call(arguments, 1); - - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - args.concat(slice.call(arguments)) - ); - if (Object(result) === result) { - return result; + return (0, googleapis_common_1.createAPIRequest)(parameters); } - return this; - } else { - return target.apply( - that, - args.concat(slice.call(arguments)) - ); - } - }; - - var boundLength = Math.max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push('$' + i); - } - - bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - - return bound; -}; - - -/***/ }), -/* 354 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.appengine_v1alpha = 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 = __webpack_require__(927); -var appengine_v1alpha; -(function (appengine_v1alpha) { - /** - * App Engine Admin API - * - * Provisions and manages developers' App Engine applications. - * - * @example - * const {google} = require('googleapis'); - * const appengine = google.appengine('v1alpha'); - * - * @namespace appengine - * @type {Function} - * @version v1alpha - * @variation v1alpha - * @param {object=} options Options for Appengine - */ - class Appengine { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.apps = new Resource$Apps(this.context); - } - } - appengine_v1alpha.Appengine = Appengine; - class Resource$Apps { - constructor(context) { - this.context = context; - this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); - this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); - this.domainMappings = new Resource$Apps$Domainmappings(this.context); - this.locations = new Resource$Apps$Locations(this.context); - this.operations = new Resource$Apps$Operations(this.context); } - } - appengine_v1alpha.Resource$Apps = Resource$Apps; - class Resource$Apps$Authorizedcertificates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130628,25 +126251,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130659,23 +126283,23 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -130691,26 +126315,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130723,25 +126347,25 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130754,32 +126378,25 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1alpha.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; - class Resource$Apps$Authorizeddomains { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130792,31 +126409,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; - class Resource$Apps$Domainmappings { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130829,25 +126441,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130860,26 +126473,32 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130892,26 +126511,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130924,25 +126543,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130955,32 +126575,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1alpha.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; - class Resource$Apps$Locations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130993,25 +126607,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'locationsId'], - pathParams: ['appsId', 'locationsId'], + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131024,31 +126639,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1alpha.Resource$Apps$Locations = Resource$Apps$Locations; - class Resource$Apps$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131061,25 +126671,26 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'operationsId'], - pathParams: ['appsId', 'operationsId'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131092,97 +126703,28 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1alpha.Resource$Apps$Operations = Resource$Apps$Operations; -})(appengine_v1alpha = exports.appengine_v1alpha || (exports.appengine_v1alpha = {})); -//# sourceMappingURL=v1alpha.js.map - -/***/ }), -/* 355 */, -/* 356 */, -/* 357 */ -/***/ (function(module) { - -module.exports = require("assert"); - -/***/ }), -/* 358 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.discovery_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 = __webpack_require__(927); -var discovery_v1; -(function (discovery_v1) { - /** - * API Discovery Service - * - * Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API. - * - * @example - * const {google} = require('googleapis'); - * const discovery = google.discovery('v1'); - * - * @namespace discovery - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Discovery - */ - class Discovery { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.apis = new Resource$Apis(this.context); - } - } - discovery_v1.Discovery = Discovery; - class Resource$Apis { - constructor(context) { - this.context = context; - } - getRest(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131193,26 +126735,27 @@ var discovery_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/discovery/v1/apis/{api}/{version}/rest').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['api', 'version'], - pathParams: ['api', 'version'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131223,90 +126766,25 @@ var discovery_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/discovery/v1/apis').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - discovery_v1.Resource$Apis = Resource$Apis; -})(discovery_v1 = exports.discovery_v1 || (exports.discovery_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 359 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.alertcenter_v1beta1 = 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 = __webpack_require__(927); -var alertcenter_v1beta1; -(function (alertcenter_v1beta1) { - /** - * G Suite Alert Center API - * - * Manages alerts on issues affecting your domain. - * - * @example - * const {google} = require('googleapis'); - * const alertcenter = google.alertcenter('v1beta1'); - * - * @namespace alertcenter - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Alertcenter - */ - class Alertcenter { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.alerts = new Resource$Alerts(this.context); - this.v1beta1 = new Resource$V1beta1(this.context); - } - } - alertcenter_v1beta1.Alertcenter = Alertcenter; - class Resource$Alerts { - constructor(context) { - this.context = context; - this.feedback = new Resource$Alerts$Feedback(this.context); - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131319,25 +126797,26 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUndelete(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131350,26 +126829,28 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts:batchUndelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131380,26 +126861,28 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131410,25 +126893,26 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetadata(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131441,26 +126925,34 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131471,26 +126963,28 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131501,31 +126995,25 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - alertcenter_v1beta1.Resource$Alerts = Resource$Alerts; - class Resource$Alerts$Feedback { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131538,27 +127026,27 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131569,33 +127057,27 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - alertcenter_v1beta1.Resource$Alerts$Feedback = Resource$Alerts$Feedback; - class Resource$V1beta1 { - constructor(context) { - this.context = context; - } - getSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131606,25 +127088,26 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSettings(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131637,103 +127120,26 @@ var alertcenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - alertcenter_v1beta1.Resource$V1beta1 = Resource$V1beta1; -})(alertcenter_v1beta1 = exports.alertcenter_v1beta1 || (exports.alertcenter_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 360 */ -/***/ (function(module) { - -module.exports = {"_from":"googleapis-common@^4.1.0","_id":"googleapis-common@4.4.3","_inBundle":false,"_integrity":"sha512-W46WKCk3QtlCCfmZyQIH5zxmDOyeV5Qj+qs7nr2ox08eRkEJMWp6iwv542R/PsokXaGUSrmif4vCC4+rGzRSsQ==","_location":"/googleapis-common","_phantomChildren":{"abort-controller":"3.0.0","extend":"3.0.2","node-fetch":"2.6.0","side-channel":"1.0.4"},"_requested":{"type":"range","registry":true,"raw":"googleapis-common@^4.1.0","name":"googleapis-common","escapedName":"googleapis-common","rawSpec":"^4.1.0","saveSpec":null,"fetchSpec":"^4.1.0"},"_requiredBy":["/googleapis"],"_resolved":"https://registry.npmjs.org/googleapis-common/-/googleapis-common-4.4.3.tgz","_shasum":"a2063adf17b14501a5f426b9cb0685496d835b7d","_spec":"googleapis-common@^4.1.0","_where":"/home/praneeth/opensource/oppiabot/node_modules/googleapis","author":{"name":"Google LLC"},"bugs":{"url":"https://github.com/googleapis/nodejs-googleapis-common/issues"},"bundleDependencies":false,"dependencies":{"extend":"^3.0.2","gaxios":"^4.0.0","google-auth-library":"^6.0.0","qs":"^6.7.0","url-template":"^2.0.8","uuid":"^8.0.0"},"deprecated":false,"description":"A common tooling library used by the googleapis npm module. You probably don't want to use this directly.","devDependencies":{"@compodoc/compodoc":"^1.1.9","@microsoft/api-documenter":"^7.8.10","@microsoft/api-extractor":"^7.8.10","@types/execa":"^0.9.0","@types/extend":"^3.0.1","@types/mocha":"^8.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/nock":"^10.0.3","@types/proxyquire":"^1.3.28","@types/qs":"^6.5.3","@types/sinon":"^9.0.4","@types/tmp":"0.2.0","@types/url-template":"^2.0.28","@types/uuid":"^8.0.0","c8":"^7.0.0","codecov":"^3.5.0","execa":"^4.0.0","gts":"^2.0.0","http2spy":"^2.0.0","is-docker":"^2.0.0","karma":"^5.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.2","linkinator":"^2.0.0","mocha":"^8.0.0","mv":"^2.1.1","ncp":"^2.0.0","nock":"^13.0.0","null-loader":"^4.0.0","proxyquire":"^2.1.3","puppeteer":"^5.0.0","sinon":"^9.0.2","tmp":"^0.2.0","ts-loader":"^8.0.0","typescript":"^3.8.3","webpack":"^4.35.0","webpack-cli":"^4.0.0"},"engines":{"node":">=10.10.0"},"files":["build/src","!build/src/**/*.map"],"homepage":"https://github.com/googleapis/nodejs-googleapis-common#readme","keywords":[],"license":"Apache-2.0","main":"build/src/index.js","name":"googleapis-common","repository":{"type":"git","url":"git+https://github.com/googleapis/nodejs-googleapis-common.git"},"scripts":{"api-documenter":"api-documenter yaml --input-folder=temp","api-extractor":"api-extractor run --local","benchmark":"node build/benchmark/bench.js","browser-test":"karma start","clean":"gts clean","compile":"tsc -p .","docs":"compodoc src/","docs-test":"linkinator docs","fix":"gts fix","lint":"gts check","prebenchmark":"npm run compile","precompile":"gts clean","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","prepare":"npm run compile","presystem-test":"npm run compile","pretest":"npm run compile","samples-test":"mocha build/samples-test","system-test":"c8 mocha build/system-test --timeout 600000","test":"c8 mocha build/test","webpack":"webpack"},"types":"build/src/index.d.ts","version":"4.4.3"}; - -/***/ }), -/* 361 */, -/* 362 */, -/* 363 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.appengine_v1beta = 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 = __webpack_require__(927); -var appengine_v1beta; -(function (appengine_v1beta) { - /** - * App Engine Admin API - * - * Provisions and manages developers' App Engine applications. - * - * @example - * const {google} = require('googleapis'); - * const appengine = google.appengine('v1beta'); - * - * @namespace appengine - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Appengine - */ - class Appengine { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.apps = new Resource$Apps(this.context); - } - } - appengine_v1beta.Appengine = Appengine; - class Resource$Apps { - constructor(context) { - this.context = context; - this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); - this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); - this.domainMappings = new Resource$Apps$Domainmappings(this.context); - this.firewall = new Resource$Apps$Firewall(this.context); - this.locations = new Resource$Apps$Locations(this.context); - this.operations = new Resource$Apps$Operations(this.context); - this.services = new Resource$Apps$Services(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -131745,25 +127151,25 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -131775,26 +127181,27 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131805,25 +127212,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - repair(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -131835,31 +127243,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps = Resource$Apps; - class Resource$Apps$Authorizedcertificates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131872,27 +127275,27 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131903,26 +127306,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131935,28 +127338,27 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -131967,25 +127369,32 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131998,34 +127407,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; - class Resource$Apps$Authorizeddomains { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132036,33 +127437,27 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; - class Resource$Apps$Domainmappings { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132073,24 +127468,30 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -132104,23 +127505,23 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -132136,26 +127537,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132168,25 +127569,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132199,39 +127601,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; - class Resource$Apps$Firewall { - constructor(context) { - this.context = context; - this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); - } - } - appengine_v1beta.Resource$Apps$Firewall = Resource$Apps$Firewall; - class Resource$Apps$Firewall$Ingressrules { - constructor(context) { - this.context = context; - } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132244,26 +127633,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132276,25 +127665,32 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132307,26 +127703,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132339,26 +127735,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132371,25 +127767,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132402,31 +127799,25 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; - class Resource$Apps$Locations { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -132440,25 +127831,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'locationsId'], - pathParams: ['appsId', 'locationsId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132471,31 +127863,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Locations = Resource$Apps$Locations; - class Resource$Apps$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132508,25 +127895,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'operationsId'], - pathParams: ['appsId', 'operationsId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132539,32 +127927,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Operations = Resource$Apps$Operations; - class Resource$Apps$Services { - constructor(context) { - this.context = context; - this.versions = new Resource$Apps$Services$Versions(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132577,25 +127959,25 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/v1/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132608,25 +127990,25 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listAssociations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132639,25 +128021,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132670,32 +128053,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Services = Resource$Apps$Services; - class Resource$Apps$Services$Versions { - constructor(context) { - this.context = context; - this.instances = new Resource$Apps$Services$Versions$Instances(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132708,25 +128085,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132739,26 +128117,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132771,26 +128149,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132803,25 +128181,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132834,32 +128213,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; - class Resource$Apps$Services$Versions$Instances { - constructor(context) { - this.context = context; - } - debug(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132872,28 +128245,33 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132904,28 +128282,27 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132936,28 +128313,27 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132968,101 +128344,26 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; -})(appengine_v1beta = exports.appengine_v1beta || (exports.appengine_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 364 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.gameservices_v1beta = 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 = __webpack_require__(927); -var gameservices_v1beta; -(function (gameservices_v1beta) { - /** - * Game Services API - * - * Deploy and manage infrastructure for global multiplayer gaming experiences. - * - * @example - * const {google} = require('googleapis'); - * const gameservices = google.gameservices('v1beta'); - * - * @namespace gameservices - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Gameservices - */ - class Gameservices { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - gameservices_v1beta.Gameservices = Gameservices; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - gameservices_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.gameServerDeployments = new Resource$Projects$Locations$Gameserverdeployments(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.realms = new Resource$Projects$Locations$Realms(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133073,27 +128374,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133104,34 +128404,27 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gameservices_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Gameserverdeployments { - constructor(context) { - this.context = context; - this.configs = new Resource$Projects$Locations$Gameserverdeployments$Configs(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133142,25 +128435,32 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gameServerDeployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133173,25 +128473,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchDeploymentState(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133204,22 +128505,23 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:fetchDeploymentState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -133235,25 +128537,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133266,25 +128569,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRollout(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133297,25 +128601,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/rollout').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133328,25 +128633,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gameServerDeployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133359,25 +128665,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - previewRollout(paramsOrCallback, optionsOrCallback, callback) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133390,25 +128697,32 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/rollout:preview').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Globaladdresses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133421,25 +128735,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133452,25 +128767,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateRollout(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133483,31 +128799,56 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/rollout').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gameservices_v1beta.Resource$Projects$Locations$Gameserverdeployments = Resource$Projects$Locations$Gameserverdeployments; - class Resource$Projects$Locations$Gameserverdeployments$Configs { - 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133520,24 +128861,31 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -133551,22 +128899,23 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -133582,25 +128931,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133613,31 +128963,25 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gameservices_v1beta.Resource$Projects$Locations$Gameserverdeployments$Configs = Resource$Projects$Locations$Gameserverdeployments$Configs; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133650,25 +128994,25 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133681,25 +129025,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133712,25 +129057,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133743,60 +129089,62 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gameservices_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Realms { + compute_v1.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { constructor(context) { this.context = context; - this.gameServerClusters = new Resource$Projects$Locations$Realms$Gameserverclusters(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/realms').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -133812,22 +129160,56 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -133843,25 +129225,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133874,25 +129257,26 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/realms').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133905,62 +129289,65 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - previewUpdate(paramsOrCallback, optionsOrCallback, callback) { + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:previewUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gameservices_v1beta.Resource$Projects$Locations$Realms = Resource$Projects$Locations$Realms; - class Resource$Projects$Locations$Realms$Gameserverclusters { + compute_v1.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133973,22 +129360,22 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gameServerClusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -134004,22 +129391,23 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -134035,22 +129423,23 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -134066,25 +129455,25 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gameServerClusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134097,25 +129486,32 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - previewCreate(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134128,25 +129524,25 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gameServerClusters:previewCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - previewDelete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134159,25 +129555,25 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:previewDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/v1/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - previewUpdate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134190,171 +129586,33 @@ var gameservices_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:previewUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/compute/v1/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gameservices_v1beta.Resource$Projects$Locations$Realms$Gameserverclusters = Resource$Projects$Locations$Realms$Gameserverclusters; -})(gameservices_v1beta = exports.gameservices_v1beta || (exports.gameservices_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 365 */, -/* 366 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.osconfig = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(375); -const v1beta_1 = __webpack_require__(660); -exports.VERSIONS = { - v1: v1_1.osconfig_v1.Osconfig, - v1beta: v1beta_1.osconfig_v1beta.Osconfig, -}; -function osconfig(versionOrOptions) { - return googleapis_common_1.getAPI('osconfig', versionOrOptions, exports.VERSIONS, this); -} -exports.osconfig = osconfig; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 367 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.servicemanagement = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(98); -exports.VERSIONS = { - v1: v1_1.servicemanagement_v1.Servicemanagement, -}; -function servicemanagement(versionOrOptions) { - return googleapis_common_1.getAPI('servicemanagement', versionOrOptions, exports.VERSIONS, this); -} -exports.servicemanagement = servicemanagement; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 368 */ -/***/ (function(module) { - -module.exports = function atob(str) { - return Buffer.from(str, 'base64').toString('binary') -} - - -/***/ }), -/* 369 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.civicinfo_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 = __webpack_require__(927); -var civicinfo_v2; -(function (civicinfo_v2) { - /** - * Google Civic Information API - * - * Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. - * - * @example - * const {google} = require('googleapis'); - * const civicinfo = google.civicinfo('v2'); - * - * @namespace civicinfo - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Civicinfo - */ - class Civicinfo { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.divisions = new Resource$Divisions(this.context); - this.elections = new Resource$Elections(this.context); - this.representatives = new Resource$Representatives(this.context); - } - } - civicinfo_v2.Civicinfo = Civicinfo; - class Resource$Divisions { + compute_v1.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -134365,31 +129623,26 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/divisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - civicinfo_v2.Resource$Divisions = Resource$Divisions; - class Resource$Elections { - constructor(context) { - this.context = context; - } - electionQuery(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134402,25 +129655,26 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/elections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - voterInfoQuery(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134433,31 +129687,26 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/voterinfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['address'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - civicinfo_v2.Resource$Elections = Resource$Elections; - class Resource$Representatives { - constructor(context) { - this.context = context; - } - representativeInfoByAddress(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134470,25 +129719,26 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/representatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - representativeInfoByDivision(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134501,388 +129751,32 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/representatives/{ocdId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['ocdId'], - pathParams: ['ocdId'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - civicinfo_v2.Resource$Representatives = Resource$Representatives; -})(civicinfo_v2 = exports.civicinfo_v2 || (exports.civicinfo_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 370 */ -/***/ (function(module) { - -module.exports = deprecate - -const loggedMessages = {} - -function deprecate (message) { - if (loggedMessages[message]) { - return - } - - console.warn(`DEPRECATED (@octokit/rest): ${message}`) - loggedMessages[message] = 1 -} - - -/***/ }), -/* 371 */, -/* 372 */, -/* 373 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Copyright 2021 The Oppia Authors. All Rights Reserved. -// -// 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. - -/** - * @fileoverview File to check if PR Author has signed the CLA - */ - -const core = __webpack_require__(470); -const { context, GitHub } = __webpack_require__(469); -const { google } = __webpack_require__(819); - -/** - * Create an OAuth2 client with the given credentials, and then execute the - * given claCheck function. - */ -const authorize = async function() { - try { - const CREDENTIALS = JSON.parse(core.getInput('sheets-cred')); - const SHEETS_TOKEN = JSON.parse(core.getInput('sheets-token')); - // eslint-disable-next-line camelcase - const { client_secret, client_id, redirect_uris } = CREDENTIALS.installed; - var oAuth2Client = new google.auth.OAuth2( - client_id, - client_secret, - redirect_uris[0] - ); - oAuth2Client.credentials = SHEETS_TOKEN; - return oAuth2Client; - } catch (err) { - core.setFailed('Auth failure: ' + err); - } -}; - -const generateOutput = async (hasClaSigned) => { - const GITHUB_TOKEN = core.getInput('repo-token'); - const octokit = new GitHub(GITHUB_TOKEN); - const PR_NUMBER = context.payload.pull_request.number; - const PR_AUTHOR = context.payload.pull_request.user.login; - const REPO_NAME = context.payload.repository.name; - - let LINK_RESULT = ''; - - if (REPO_NAME === 'oppia-android' ){ - LINK_RESULT = 'here'.link( - 'https://github.com/oppia/oppia-android/wiki#onboarding-instructions' - ); - } else { - LINK_RESULT = 'here'.link( - 'https://github.com/oppia/oppia/wiki/' + - 'Contributing-code-to-Oppia#setting-things-up' - ); - } - - let comment = ''; - if (!hasClaSigned) { - comment = ('Hi! @' + - PR_AUTHOR + - ' Welcome to Oppia! Could you please ' + - 'follow the instructions ' + LINK_RESULT + - " and sign the CLA Sheet to get started? You'll need to do " + - "this before we can accept your PR. Once you're done," + - ' please reopen the PR. Thanks!'); - core.info('Closing and commenting in PR...'); - - await octokit.issues.update({ - issue_number: PR_NUMBER, - state: 'closed', - owner: context.repo.owner, - repo: context.repo.repo, - }); - await octokit.issues.createComment( - { - body: comment, - issue_number: PR_NUMBER, - owner: context.repo.owner, - repo: context.repo.repo, - } - ); - core.setFailed(PR_AUTHOR + ' has not signed the CLA'); - } else { - core.info(`${PR_AUTHOR} has signed the CLA`); - } -}; - - -/** - * Checks if the PR Author has signed the CLA Sheet. - * @param {google.auth.OAuth2} auth The authenticated Google OAuth client. - */ -const checkSheet = async (auth) => { - const PR_AUTHOR = context.payload.pull_request.user.login; - const sheets = google.sheets({ version: 'v4', auth }); - const SPREADSHEET_ID = core.getInput('cla-sheet-id'); - await sheets.spreadsheets.values.get( - { - spreadsheetId: SPREADSHEET_ID, - range: 'Usernames!A:A', - }, - async (err, res) => { - if (err) { - core.setFailed('The API returned an error: ' + err); - return; - } - - const rows = res.data.values; - const flatRows = [].concat.apply([], rows); - if (!rows || rows.length === 0) { - core.setFailed('No data found.'); - } else { - core.info(`Checking if ${PR_AUTHOR} has signed the CLA`); - const hasUserSignedCla = flatRows.some( - username => username.toLowerCase() === PR_AUTHOR.toLowerCase() - ); - - await generateOutput(hasUserSignedCla); - } - } - ); -}; - -const claCheckGithubAction = async () => { - // Authorize a client with the loaded credentials. - const auth = await authorize(); - - // Call the sheets API with the authorized client. - await checkSheet(auth); -}; - -module.exports = { - claCheckGithubAction, -}; - - -/***/ }), -/* 374 */ -/***/ (function(module) { - -"use strict"; - - -var hasOwn = Object.prototype.hasOwnProperty; -var toStr = Object.prototype.toString; -var defineProperty = Object.defineProperty; -var gOPD = Object.getOwnPropertyDescriptor; - -var isArray = function isArray(arr) { - if (typeof Array.isArray === 'function') { - return Array.isArray(arr); - } - - return toStr.call(arr) === '[object Array]'; -}; - -var isPlainObject = function isPlainObject(obj) { - if (!obj || toStr.call(obj) !== '[object Object]') { - return false; - } - - var hasOwnConstructor = hasOwn.call(obj, 'constructor'); - var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); - // Not own constructor property must be Object - if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { - return false; - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - var key; - for (key in obj) { /**/ } - - return typeof key === 'undefined' || hasOwn.call(obj, key); -}; - -// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target -var setProperty = function setProperty(target, options) { - if (defineProperty && options.name === '__proto__') { - defineProperty(target, options.name, { - enumerable: true, - configurable: true, - value: options.newValue, - writable: true - }); - } else { - target[options.name] = options.newValue; - } -}; - -// Return undefined instead of __proto__ if '__proto__' is not an own property -var getProperty = function getProperty(obj, name) { - if (name === '__proto__') { - if (!hasOwn.call(obj, name)) { - return void 0; - } else if (gOPD) { - // In early versions of node, obj['__proto__'] is buggy when obj has - // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. - return gOPD(obj, name).value; - } - } - - return obj[name]; -}; - -module.exports = function extend() { - var options, name, src, copy, copyIsArray, clone; - var target = arguments[0]; - var i = 1; - var length = arguments.length; - var deep = false; - - // Handle a deep copy situation - if (typeof target === 'boolean') { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - if (target == null || (typeof target !== 'object' && typeof target !== 'function')) { - target = {}; - } - - for (; i < length; ++i) { - options = arguments[i]; - // Only deal with non-null/undefined values - if (options != null) { - // Extend the base object - for (name in options) { - src = getProperty(target, name); - copy = getProperty(options, name); - - // Prevent never-ending loop - if (target !== copy) { - // Recurse if we're merging plain objects or arrays - if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { - if (copyIsArray) { - copyIsArray = false; - clone = src && isArray(src) ? src : []; - } else { - clone = src && isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); - - // Don't bring in undefined values - } else if (typeof copy !== 'undefined') { - setProperty(target, { name: name, newValue: copy }); - } - } - } - } - } - - // Return the modified object - return target; -}; - - -/***/ }), -/* 375 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.osconfig_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 = __webpack_require__(927); -var osconfig_v1; -(function (osconfig_v1) { - /** - * Cloud OS Config API - * - * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. - * - * @example - * const {google} = require('googleapis'); - * const osconfig = google.osconfig('v1'); - * - * @namespace osconfig - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Osconfig - */ - class Osconfig { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - osconfig_v1.Osconfig = Osconfig; - class Resource$Projects { - constructor(context) { - this.context = context; - this.patchDeployments = new Resource$Projects$Patchdeployments(this.context); - this.patchJobs = new Resource$Projects$Patchjobs(this.context); - } - } - osconfig_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Patchdeployments { + compute_v1.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134895,22 +129789,22 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -134926,27 +129820,27 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -134957,25 +129851,26 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134988,32 +129883,25 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - osconfig_v1.Resource$Projects$Patchdeployments = Resource$Projects$Patchdeployments; - class Resource$Projects$Patchjobs { - constructor(context) { - this.context = context; - this.instanceDetails = new Resource$Projects$Patchjobs$Instancedetails(this.context); - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135026,25 +129914,25 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - execute(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135057,25 +129945,26 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135088,25 +129977,32 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135119,29 +130015,87 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - osconfig_v1.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; - class Resource$Projects$Patchjobs$Instancedetails { - constructor(context) { - this.context = context; + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -135156,88 +130110,57 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - osconfig_v1.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; -})(osconfig_v1 = exports.osconfig_v1 || (exports.osconfig_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 376 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.licensing_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 = __webpack_require__(927); -var licensing_v1; -(function (licensing_v1) { - /** - * Licensing API - * - * Licensing API to view and manage licenses for your domain - * - * @example - * const {google} = require('googleapis'); - * const licensing = google.licensing('v1'); - * - * @namespace licensing - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Licensing - */ - class Licensing { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, }; - this.licenseAssignments = new Resource$Licenseassignments(this.context); - } - } - licensing_v1.Licensing = Licensing; - class Resource$Licenseassignments { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135250,26 +130173,32 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['productId', 'skuId', 'userId'], - pathParams: ['productId', 'skuId', 'userId'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135282,26 +130211,26 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['productId', 'skuId', 'userId'], - pathParams: ['productId', 'skuId', 'userId'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135314,26 +130243,26 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['productId', 'skuId'], - pathParams: ['productId', 'skuId'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listForProduct(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135346,25 +130275,26 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/licensing/v1/product/{productId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['productId', 'customerId'], - pathParams: ['productId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listForProductAndSku(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135377,23 +130307,23 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/users').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['productId', 'skuId', 'customerId'], - pathParams: ['productId', 'skuId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -135409,23 +130339,23 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['productId', 'skuId', 'userId'], - pathParams: ['productId', 'skuId', 'userId'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -135441,220 +130371,32 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['productId', 'skuId', 'userId'], - pathParams: ['productId', 'skuId', 'userId'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - licensing_v1.Resource$Licenseassignments = Resource$Licenseassignments; -})(licensing_v1 = exports.licensing_v1 || (exports.licensing_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 377 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __webpack_require__(718); -} else { - module.exports = __webpack_require__(807); -} - - -/***/ }), -/* 378 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2019 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. -/* global window */ -Object.defineProperty(exports, "__esModule", { value: true }); -// This file implements crypto functions we need using in-browser -// SubtleCrypto interface `window.crypto.subtle`. -const base64js = __webpack_require__(397); -// Not all browsers support `TextEncoder`. The following `require` will -// provide a fast UTF8-only replacement for those browsers that don't support -// text encoding natively. -// eslint-disable-next-line node/no-unsupported-features/node-builtins -if (typeof process === 'undefined' && typeof TextEncoder === 'undefined') { - __webpack_require__(671); -} -class BrowserCrypto { - constructor() { - if (typeof window === 'undefined' || - window.crypto === undefined || - window.crypto.subtle === undefined) { - throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); - } - } - async sha256DigestBase64(str) { - // SubtleCrypto digest() method is async, so we must make - // this method async as well. - // To calculate SHA256 digest using SubtleCrypto, we first - // need to convert an input string to an ArrayBuffer: - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const inputBuffer = new TextEncoder().encode(str); - // Result is ArrayBuffer as well. - const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); - return base64js.fromByteArray(new Uint8Array(outputBuffer)); - } - randomBytesBase64(count) { - const array = new Uint8Array(count); - window.crypto.getRandomValues(array); - return base64js.fromByteArray(array); - } - static padBase64(base64) { - // base64js requires padding, so let's add some '=' - while (base64.length % 4 !== 0) { - base64 += '='; - } - return base64; - } - async verify(pubkey, data, signature) { - const algo = { - name: 'RSASSA-PKCS1-v1_5', - hash: { name: 'SHA-256' }, - }; - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const dataArray = new TextEncoder().encode(data); - const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); - const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); - // SubtleCrypto's verify method is async so we must make - // this method async as well. - const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); - return result; - } - async sign(privateKey, data) { - const algo = { - name: 'RSASSA-PKCS1-v1_5', - hash: { name: 'SHA-256' }, - }; - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const dataArray = new TextEncoder().encode(data); - const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); - // SubtleCrypto's sign method is async so we must make - // this method async as well. - const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); - return base64js.fromByteArray(new Uint8Array(result)); - } - decodeBase64StringUtf8(base64) { - const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const result = new TextDecoder().decode(uint8array); - return result; - } - encodeBase64StringUtf8(text) { - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const uint8array = new TextEncoder().encode(text); - const result = base64js.fromByteArray(uint8array); - return result; - } -} -exports.BrowserCrypto = BrowserCrypto; -//# sourceMappingURL=crypto.js.map - -/***/ }), -/* 379 */, -/* 380 */, -/* 381 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.websecurityscanner_v1beta = 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 = __webpack_require__(927); -var websecurityscanner_v1beta; -(function (websecurityscanner_v1beta) { - /** - * Web Security Scanner API - * - * Scans your Compute and App Engine apps for common web vulnerabilities. - * - * @example - * const {google} = require('googleapis'); - * const websecurityscanner = google.websecurityscanner('v1beta'); - * - * @namespace websecurityscanner - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Websecurityscanner - */ - class Websecurityscanner { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - websecurityscanner_v1beta.Websecurityscanner = Websecurityscanner; - class Resource$Projects { - constructor(context) { - this.context = context; - this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); - } - } - websecurityscanner_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Scanconfigs { + compute_v1.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Imagefamilyviews { constructor(context) { this.context = context; - this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135667,27 +130409,33 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Imagefamilyviews = Resource$Imagefamilyviews; + class Resource$Images { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135698,27 +130446,26 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135729,27 +130476,27 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135760,25 +130507,25 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135791,25 +130538,26 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135822,36 +130570,27 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; - class Resource$Projects$Scanconfigs$Scanruns { - constructor(context) { - this.context = context; - this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); - this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); - this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135862,27 +130601,26 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135893,27 +130631,26 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135924,31 +130661,25 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; - class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135961,33 +130692,27 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; - class Resource$Projects$Scanconfigs$Scanruns$Findings { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135998,25 +130723,26 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136029,31 +130755,32 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; - class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + compute_v1.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136066,89 +130793,26 @@ var websecurityscanner_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; -})(websecurityscanner_v1beta = exports.websecurityscanner_v1beta || (exports.websecurityscanner_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 382 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.bigqueryreservation_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 = __webpack_require__(927); -var bigqueryreservation_v1; -(function (bigqueryreservation_v1) { - /** - * BigQuery Reservation API - * - * A service to modify your BigQuery flat-rate reservations. - * - * @example - * const {google} = require('googleapis'); - * const bigqueryreservation = google.bigqueryreservation('v1'); - * - * @namespace bigqueryreservation - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Bigqueryreservation - */ - class Bigqueryreservation { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - } - } - bigqueryreservation_v1.Bigqueryreservation = Bigqueryreservation; - class Resource$Operations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136161,70 +130825,59 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - bigqueryreservation_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.capacityCommitments = new Resource$Projects$Locations$Capacitycommitments(this.context); - this.reservations = new Resource$Projects$Locations$Reservations(this.context); - } - getBiReservation(paramsOrCallback, optionsOrCallback, callback) { + createInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136237,25 +130890,26 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAssignments(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136268,25 +130922,26 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBiReservation(paramsOrCallback, optionsOrCallback, callback) { + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136299,62 +130954,59 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Capacitycommitments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136367,25 +131019,26 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136398,22 +131051,23 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -136429,25 +131083,26 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - merge(paramsOrCallback, optionsOrCallback, callback) { + listErrors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136460,94 +131115,92 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - split(paramsOrCallback, optionsOrCallback, callback) { + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; - class Resource$Projects$Locations$Reservations { - constructor(context) { - this.context = context; - this.assignments = new Resource$Projects$Locations$Reservations$Assignments(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136560,56 +131213,59 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136622,25 +131278,26 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136653,62 +131310,59 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; - class Resource$Projects$Locations$Reservations$Assignments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136721,56 +131375,65 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136783,25 +131446,26 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136814,565 +131478,28 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; -})(bigqueryreservation_v1 = exports.bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 383 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.sourcerepo = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(782); -exports.VERSIONS = { - v1: v1_1.sourcerepo_v1.Sourcerepo, -}; -function sourcerepo(versionOrOptions) { - return googleapis_common_1.getAPI('sourcerepo', versionOrOptions, exports.VERSIONS, this); -} -exports.sourcerepo = sourcerepo; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 384 */, -/* 385 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var isPlainObject = _interopDefault(__webpack_require__(696)); -var universalUserAgent = __webpack_require__(562); - -function lowercaseKeys(object) { - if (!object) { - return {}; - } - - return Object.keys(object).reduce((newObj, key) => { - newObj[key.toLowerCase()] = object[key]; - return newObj; - }, {}); -} - -function mergeDeep(defaults, options) { - const result = Object.assign({}, defaults); - Object.keys(options).forEach(key => { - if (isPlainObject(options[key])) { - if (!(key in defaults)) Object.assign(result, { - [key]: options[key] - });else result[key] = mergeDeep(defaults[key], options[key]); - } else { - Object.assign(result, { - [key]: options[key] - }); - } - }); - return result; -} - -function merge(defaults, route, options) { - if (typeof route === "string") { - let [method, url] = route.split(" "); - options = Object.assign(url ? { - method, - url - } : { - url: method - }, options); - } else { - options = Object.assign({}, route); - } // lowercase header names before merging with defaults to avoid duplicates - - - options.headers = lowercaseKeys(options.headers); - const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten - - if (defaults && defaults.mediaType.previews.length) { - mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews); - } - - mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, "")); - return mergedOptions; -} - -function addQueryParameters(url, parameters) { - const separator = /\?/.test(url) ? "&" : "?"; - const names = Object.keys(parameters); - - if (names.length === 0) { - return url; - } - - return url + separator + names.map(name => { - if (name === "q") { - return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+"); - } - - return `${name}=${encodeURIComponent(parameters[name])}`; - }).join("&"); -} - -const urlVariableRegex = /\{[^}]+\}/g; - -function removeNonChars(variableName) { - return variableName.replace(/^\W+|\W+$/g, "").split(/,/); -} - -function extractUrlVariableNames(url) { - const matches = url.match(urlVariableRegex); - - if (!matches) { - return []; - } - - return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); -} - -function omit(object, keysToOmit) { - return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => { - obj[key] = object[key]; - return obj; - }, {}); -} - -// Based on https://github.com/bramstein/url-template, licensed under BSD -// TODO: create separate package. -// -// Copyright (c) 2012-2014, Bram Stein -// All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// 1. Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// 2. Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// 3. The name of the author may not be used to endorse or promote products -// derived from this software without specific prior written permission. -// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* istanbul ignore file */ -function encodeReserved(str) { - return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { - if (!/%[0-9A-Fa-f]/.test(part)) { - part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]"); - } - - return part; - }).join(""); -} - -function encodeUnreserved(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); - }); -} - -function encodeValue(operator, value, key) { - value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value); - - if (key) { - return encodeUnreserved(key) + "=" + value; - } else { - return value; - } -} - -function isDefined(value) { - return value !== undefined && value !== null; -} - -function isKeyOperator(operator) { - return operator === ";" || operator === "&" || operator === "?"; -} - -function getValues(context, operator, key, modifier) { - var value = context[key], - result = []; - - if (isDefined(value) && value !== "") { - if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") { - value = value.toString(); - - if (modifier && modifier !== "*") { - value = value.substring(0, parseInt(modifier, 10)); - } - - result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); - } else { - if (modifier === "*") { - if (Array.isArray(value)) { - value.filter(isDefined).forEach(function (value) { - result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); - }); - } else { - Object.keys(value).forEach(function (k) { - if (isDefined(value[k])) { - result.push(encodeValue(operator, value[k], k)); - } - }); - } - } else { - const tmp = []; - - if (Array.isArray(value)) { - value.filter(isDefined).forEach(function (value) { - tmp.push(encodeValue(operator, value)); - }); - } else { - Object.keys(value).forEach(function (k) { - if (isDefined(value[k])) { - tmp.push(encodeUnreserved(k)); - tmp.push(encodeValue(operator, value[k].toString())); - } - }); - } - - if (isKeyOperator(operator)) { - result.push(encodeUnreserved(key) + "=" + tmp.join(",")); - } else if (tmp.length !== 0) { - result.push(tmp.join(",")); - } - } - } - } else { - if (operator === ";") { - if (isDefined(value)) { - result.push(encodeUnreserved(key)); - } - } else if (value === "" && (operator === "&" || operator === "?")) { - result.push(encodeUnreserved(key) + "="); - } else if (value === "") { - result.push(""); - } - } - - return result; -} - -function parseUrl(template) { - return { - expand: expand.bind(null, template) - }; -} - -function expand(template, context) { - var operators = ["+", "#", ".", "/", ";", "?", "&"]; - return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { - if (expression) { - let operator = ""; - const values = []; - - if (operators.indexOf(expression.charAt(0)) !== -1) { - operator = expression.charAt(0); - expression = expression.substr(1); - } - - expression.split(/,/g).forEach(function (variable) { - var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); - values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3])); - }); - - if (operator && operator !== "+") { - var separator = ","; - - if (operator === "?") { - separator = "&"; - } else if (operator !== "#") { - separator = operator; - } - - return (values.length !== 0 ? operator : "") + values.join(separator); - } else { - return values.join(","); - } - } else { - return encodeReserved(literal); - } - }); -} - -function parse(options) { - // https://fetch.spec.whatwg.org/#methods - let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible - - let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}"); - let headers = Object.assign({}, options.headers); - let body; - let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later - - const urlVariableNames = extractUrlVariableNames(url); - url = parseUrl(url).expand(parameters); - - if (!/^http/.test(url)) { - url = options.baseUrl + url; - } - - const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl"); - const remainingParameters = omit(parameters, omittedParameters); - const isBinaryRequset = /application\/octet-stream/i.test(headers.accept); - - if (!isBinaryRequset) { - if (options.mediaType.format) { - // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw - headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(","); - } - - if (options.mediaType.previews.length) { - const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || []; - headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => { - const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json"; - return `application/vnd.github.${preview}-preview${format}`; - }).join(","); - } - } // for GET/HEAD requests, set URL query parameters from remaining parameters - // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters - - - if (["GET", "HEAD"].includes(method)) { - url = addQueryParameters(url, remainingParameters); - } else { - if ("data" in remainingParameters) { - body = remainingParameters.data; - } else { - if (Object.keys(remainingParameters).length) { - body = remainingParameters; - } else { - headers["content-length"] = 0; - } - } - } // default content-type for JSON if body is set - - - if (!headers["content-type"] && typeof body !== "undefined") { - headers["content-type"] = "application/json; charset=utf-8"; - } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body. - // fetch does not allow to set `content-length` header, but we can set body to an empty string - - - if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") { - body = ""; - } // Only return body/request keys if present - - - return Object.assign({ - method, - url, - headers - }, typeof body !== "undefined" ? { - body - } : null, options.request ? { - request: options.request - } : null); -} - -function endpointWithDefaults(defaults, route, options) { - return parse(merge(defaults, route, options)); -} - -function withDefaults(oldDefaults, newDefaults) { - const DEFAULTS = merge(oldDefaults, newDefaults); - const endpoint = endpointWithDefaults.bind(null, DEFAULTS); - return Object.assign(endpoint, { - DEFAULTS, - defaults: withDefaults.bind(null, DEFAULTS), - merge: merge.bind(null, DEFAULTS), - parse - }); -} - -const VERSION = "6.0.1"; - -const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url. -// So we use RequestParameters and add method as additional required property. - -const DEFAULTS = { - method: "GET", - baseUrl: "https://api.github.com", - headers: { - accept: "application/vnd.github.v3+json", - "user-agent": userAgent - }, - mediaType: { - format: "", - previews: [] - } -}; - -const endpoint = withDefaults(null, DEFAULTS); - -exports.endpoint = endpoint; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 386 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2019 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 }); -const crypto = __webpack_require__(417); -class NodeCrypto { - async sha256DigestBase64(str) { - return crypto.createHash('sha256').update(str).digest('base64'); - } - randomBytesBase64(count) { - return crypto.randomBytes(count).toString('base64'); - } - async verify(pubkey, data, signature) { - const verifier = crypto.createVerify('sha256'); - verifier.update(data); - verifier.end(); - return verifier.verify(pubkey, signature, 'base64'); - } - async sign(privateKey, data) { - const signer = crypto.createSign('RSA-SHA256'); - signer.update(data); - signer.end(); - return signer.sign(privateKey, 'base64'); - } - decodeBase64StringUtf8(base64) { - return Buffer.from(base64, 'base64').toString('utf-8'); - } - encodeBase64StringUtf8(text) { - return Buffer.from(text, 'utf-8').toString('base64'); - } -} -exports.NodeCrypto = NodeCrypto; -//# sourceMappingURL=crypto.js.map - -/***/ }), -/* 387 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.sasportal_v1alpha1 = 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 = __webpack_require__(927); -var sasportal_v1alpha1; -(function (sasportal_v1alpha1) { - /** - * SAS Portal API - * - * - * - * @example - * const {google} = require('googleapis'); - * const sasportal = google.sasportal('v1alpha1'); - * - * @namespace sasportal - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Sasportal - */ - class Sasportal { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.customers = new Resource$Customers(this.context); - this.installer = new Resource$Installer(this.context); - this.nodes = new Resource$Nodes(this.context); - this.policies = new Resource$Policies(this.context); - } - } - sasportal_v1alpha1.Sasportal = Sasportal; - class Resource$Customers { - constructor(context) { - this.context = context; - this.devices = new Resource$Customers$Devices(this.context); - this.nodes = new Resource$Customers$Nodes(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -137383,26 +131510,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -137413,26 +131542,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -137443,31 +131574,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Customers = Resource$Customers; - class Resource$Customers$Devices { - constructor(context) { - this.context = context; - } - bulk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137480,25 +131606,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + listInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137511,25 +131638,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + removeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137542,25 +131670,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137573,25 +131702,32 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137604,25 +131740,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137635,25 +131772,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137666,25 +131804,25 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + attachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137697,25 +131835,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(paramsOrCallback, optionsOrCallback, callback) { + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137728,27 +131867,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -137759,32 +131898,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Customers$Devices = Resource$Customers$Devices; - class Resource$Customers$Nodes { - constructor(context) { - this.context = context; - this.nodes = new Resource$Customers$Nodes$Nodes(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137797,25 +131930,32 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + detachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137828,27 +131968,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -137859,25 +131999,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137890,25 +132031,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137921,25 +132063,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137952,31 +132095,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; - class Resource$Customers$Nodes$Nodes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137989,25 +132127,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138020,31 +132159,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Customers$Nodes$Nodes = Resource$Customers$Nodes$Nodes; - class Resource$Installer { - constructor(context) { - this.context = context; - } - generateSecret(paramsOrCallback, optionsOrCallback, callback) { + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138057,27 +132191,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138088,41 +132222,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Installer = Resource$Installer; - class Resource$Nodes { - constructor(context) { - this.context = context; - this.devices = new Resource$Nodes$Devices(this.context); - this.nodes = new Resource$Nodes$Nodes(this.context); - } - } - sasportal_v1alpha1.Resource$Nodes = Resource$Nodes; - class Resource$Nodes$Devices { - constructor(context) { - this.context = context; - } - bulk(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138133,25 +132252,25 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + listReferrers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138164,25 +132283,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138195,27 +132315,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138226,27 +132346,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138257,25 +132377,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138288,25 +132409,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138319,25 +132441,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138350,25 +132473,32 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138381,25 +132511,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138412,33 +132543,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Nodes$Devices = Resource$Nodes$Devices; - class Resource$Nodes$Nodes { - constructor(context) { - this.context = context; - this.devices = new Resource$Nodes$Nodes$Devices(this.context); - this.nodes = new Resource$Nodes$Nodes$Nodes(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138451,25 +132575,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setMachineType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138482,26 +132607,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138512,26 +132639,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138542,26 +132671,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setName(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138572,25 +132703,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setScheduling(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138603,31 +132735,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Nodes$Nodes = Resource$Nodes$Nodes; - class Resource$Nodes$Nodes$Devices { - constructor(context) { - this.context = context; - } - bulk(paramsOrCallback, optionsOrCallback, callback) { + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138640,56 +132767,59 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + setTags(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138702,25 +132832,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138733,33 +132864,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; - class Resource$Nodes$Nodes$Nodes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138770,25 +132895,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138801,31 +132927,26 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; - class Resource$Policies { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -138837,26 +132958,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - set(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138867,26 +132990,28 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:set').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - test(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -138897,106 +133022,27 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sasportal_v1alpha1.Resource$Policies = Resource$Policies; -})(sasportal_v1alpha1 = exports.sasportal_v1alpha1 || (exports.sasportal_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 388 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.dataproc_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 = __webpack_require__(927); -var dataproc_v1; -(function (dataproc_v1) { - /** - * Cloud Dataproc API - * - * Manages Hadoop-based clusters and jobs on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const dataproc = google.dataproc('v1'); - * - * @namespace dataproc - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Dataproc - */ - class Dataproc { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - dataproc_v1.Dataproc = Dataproc; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - this.regions = new Resource$Projects$Regions(this.context); - } - } - dataproc_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.autoscalingPolicies = new Resource$Projects$Locations$Autoscalingpolicies(this.context); - this.workflowTemplates = new Resource$Projects$Locations$Workflowtemplates(this.context); - } - } - dataproc_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Autoscalingpolicies { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -139007,25 +133053,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139038,25 +133085,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139069,25 +133117,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139100,25 +133149,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139131,25 +133181,32 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Instances = Resource$Instances; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139162,25 +133219,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139193,25 +133251,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139224,31 +133283,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; - class Resource$Projects$Locations$Workflowtemplates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139261,25 +133315,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139292,25 +133347,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139323,25 +133379,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139354,25 +133411,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139385,25 +133443,32 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139416,25 +133481,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139447,25 +133513,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139478,25 +133545,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139509,25 +133577,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139540,42 +133609,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; - class Resource$Projects$Regions { - constructor(context) { - this.context = context; - this.autoscalingPolicies = new Resource$Projects$Regions$Autoscalingpolicies(this.context); - this.clusters = new Resource$Projects$Regions$Clusters(this.context); - this.jobs = new Resource$Projects$Regions$Jobs(this.context); - this.operations = new Resource$Projects$Regions$Operations(this.context); - this.workflowTemplates = new Resource$Projects$Regions$Workflowtemplates(this.context); - } - } - dataproc_v1.Resource$Projects$Regions = Resource$Projects$Regions; - class Resource$Projects$Regions$Autoscalingpolicies { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139588,25 +133641,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139619,24 +133673,31 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -139650,25 +133711,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139681,25 +133743,32 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139712,25 +133781,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139743,25 +133813,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139774,25 +133845,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139805,31 +133877,25 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; - class Resource$Projects$Regions$Clusters { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139842,25 +133908,25 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139873,26 +133939,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - diagnose(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139905,28 +133971,33 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -139937,26 +134008,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139969,27 +134040,33 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + compute_v1.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -140000,27 +134077,27 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -140031,26 +134108,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140063,27 +134140,27 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -140094,33 +134171,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; - class Resource$Projects$Regions$Jobs { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -140131,26 +134201,25 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140163,25 +134232,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140194,25 +134264,32 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140225,25 +134302,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140256,25 +134334,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140287,25 +134366,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140318,25 +134398,25 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140349,25 +134429,25 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140380,23 +134460,23 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -140412,31 +134492,32 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dataproc_v1.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; - class Resource$Projects$Regions$Operations { + compute_v1.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140449,27 +134530,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -140480,25 +134560,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140511,25 +134592,32 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140542,25 +134630,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140573,25 +134662,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140604,25 +134694,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140635,31 +134726,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; - class Resource$Projects$Regions$Workflowtemplates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140672,25 +134758,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140703,25 +134790,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140734,25 +134822,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140765,56 +134854,65 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); + } + compute_v1.Resource$Networkattachments = Resource$Networkattachments; + class Resource$Networkedgesecurityservices { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140827,25 +134925,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140858,25 +134957,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140889,25 +134989,26 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140920,25 +135021,97 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140951,232 +135124,91 @@ var dataproc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; -})(dataproc_v1 = exports.dataproc_v1 || (exports.dataproc_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 389 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -const fs = __webpack_require__(747); -const shebangCommand = __webpack_require__(866); - -function readShebang(command) { - // Read the first 150 bytes from the file - const size = 150; - let buffer; - - if (Buffer.alloc) { - // Node.js v4.5+ / v5.10+ - buffer = Buffer.alloc(size); - } else { - // Old Node.js API - buffer = new Buffer(size); - buffer.fill(0); // zero-fill - } - - let fd; - - try { - fd = fs.openSync(command, 'r'); - fs.readSync(fd, buffer, 0, size, 0); - fs.closeSync(fd); - } catch (e) { /* Empty */ } - - // Attempt to extract shebang (null is returned if not a shebang) - return shebangCommand(buffer.toString()); -} - -module.exports = readShebang; - - -/***/ }), -/* 390 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.licensing = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(376); -exports.VERSIONS = { - v1: v1_1.licensing_v1.Licensing, -}; -function licensing(versionOrOptions) { - return googleapis_common_1.getAPI('licensing', versionOrOptions, exports.VERSIONS, this); -} -exports.licensing = licensing; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 391 */, -/* 392 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.dialogflow = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(968); -const v2beta1_1 = __webpack_require__(80); -exports.VERSIONS = { - v2: v2_1.dialogflow_v2.Dialogflow, - v2beta1: v2beta1_1.dialogflow_v2beta1.Dialogflow, -}; -function dialogflow(versionOrOptions) { - return googleapis_common_1.getAPI('dialogflow', versionOrOptions, exports.VERSIONS, this); -} -exports.dialogflow = dialogflow; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 393 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.lifesciences = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2beta_1 = __webpack_require__(48); -exports.VERSIONS = { - v2beta: v2beta_1.lifesciences_v2beta.Lifesciences, -}; -function lifesciences(versionOrOptions) { - return googleapis_common_1.getAPI('lifesciences', versionOrOptions, exports.VERSIONS, this); -} -exports.lifesciences = lifesciences; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 394 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.identitytoolkit_v3 = 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 = __webpack_require__(927); -var identitytoolkit_v3; -(function (identitytoolkit_v3) { - /** - * Google Identity Toolkit API - * - * Help the third party sites to implement federated login. - * - * @example - * const {google} = require('googleapis'); - * const identitytoolkit = google.identitytoolkit('v3'); - * - * @namespace identitytoolkit - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Identitytoolkit - */ - class Identitytoolkit { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, }; - this.relyingparty = new Resource$Relyingparty(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - identitytoolkit_v3.Identitytoolkit = Identitytoolkit; - class Resource$Relyingparty { - 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - createAuthUri(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141189,25 +135221,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/createAuthUri').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccount(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141220,25 +135253,59 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/deleteAccount').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - downloadAccount(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141251,25 +135318,32 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/downloadAccount').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - emailLinkSignin(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141282,25 +135356,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/emailLinkSignin').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccountInfo(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141313,25 +135388,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/getAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOobConfirmationCode(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141344,26 +135420,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/identitytoolkit/v3/relyingparty/getOobConfirmationCode').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141376,25 +135452,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/getProjectConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPublicKeys(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141407,25 +135484,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRecaptchaParam(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141438,25 +135516,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/getRecaptchaParam').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetPassword(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141469,25 +135548,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/resetPassword').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendVerificationCode(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141500,25 +135580,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAccountInfo(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141531,25 +135612,25 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/setAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141562,25 +135643,25 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/setProjectConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signOutUser(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141593,25 +135674,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/signOutUser').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signupNewUser(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141624,56 +135706,59 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/signupNewUser').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadAccount(paramsOrCallback, optionsOrCallback, callback) { + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/uploadAccount').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyAssertion(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141686,25 +135771,26 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyAssertion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyCustomToken(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141717,56 +135803,65 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyCustomToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyPassword(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPassword').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyPhoneNumber(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141779,282 +135874,88 @@ var identitytoolkit_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPhoneNumber').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - identitytoolkit_v3.Resource$Relyingparty = Resource$Relyingparty; -})(identitytoolkit_v3 = exports.identitytoolkit_v3 || (exports.identitytoolkit_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 395 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudbilling = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(534); -exports.VERSIONS = { - v1: v1_1.cloudbilling_v1.Cloudbilling, -}; -function cloudbilling(versionOrOptions) { - return googleapis_common_1.getAPI('cloudbilling', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudbilling = cloudbilling; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 396 */, -/* 397 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -exports.byteLength = byteLength -exports.toByteArray = toByteArray -exports.fromByteArray = fromByteArray - -var lookup = [] -var revLookup = [] -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - -var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' -for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i -} - -// Support decoding URL-safe base64 strings, as Node.js does. -// See: https://en.wikipedia.org/wiki/Base64#URL_applications -revLookup['-'.charCodeAt(0)] = 62 -revLookup['_'.charCodeAt(0)] = 63 - -function getLens (b64) { - var len = b64.length - - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('=') - if (validLen === -1) validLen = len - - var placeHoldersLen = validLen === len - ? 0 - : 4 - (validLen % 4) - - return [validLen, placeHoldersLen] -} - -// base64 is 4/3 + up to two characters of the original data -function byteLength (b64) { - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function _byteLength (b64, validLen, placeHoldersLen) { - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function toByteArray (b64) { - var tmp - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) - - var curByte = 0 - - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 - ? validLen - 4 - : validLen - - var i - for (i = 0; i < len; i += 4) { - tmp = - (revLookup[b64.charCodeAt(i)] << 18) | - (revLookup[b64.charCodeAt(i + 1)] << 12) | - (revLookup[b64.charCodeAt(i + 2)] << 6) | - revLookup[b64.charCodeAt(i + 3)] - arr[curByte++] = (tmp >> 16) & 0xFF - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 2) { - tmp = - (revLookup[b64.charCodeAt(i)] << 2) | - (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 1) { - tmp = - (revLookup[b64.charCodeAt(i)] << 10) | - (revLookup[b64.charCodeAt(i + 1)] << 4) | - (revLookup[b64.charCodeAt(i + 2)] >> 2) - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - return arr -} - -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + - lookup[num >> 12 & 0x3F] + - lookup[num >> 6 & 0x3F] + - lookup[num & 0x3F] -} - -function encodeChunk (uint8, start, end) { - var tmp - var output = [] - for (var i = start; i < end; i += 3) { - tmp = - ((uint8[i] << 16) & 0xFF0000) + - ((uint8[i + 1] << 8) & 0xFF00) + - (uint8[i + 2] & 0xFF) - output.push(tripletToBase64(tmp)) - } - return output.join('') -} - -function fromByteArray (uint8) { - var tmp - var len = uint8.length - var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes - var parts = [] - var maxChunkLength = 16383 // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk( - uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength) - )) - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1] - parts.push( - lookup[tmp >> 2] + - lookup[(tmp << 4) & 0x3F] + - '==' - ) - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1] - parts.push( - lookup[tmp >> 10] + - lookup[(tmp >> 4) & 0x3F] + - lookup[(tmp << 2) & 0x3F] + - '=' - ) - } - - return parts.join('') -} - - -/***/ }), -/* 398 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.language_v1beta1 = 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 = __webpack_require__(927); -var language_v1beta1; -(function (language_v1beta1) { - /** - * Cloud Natural Language API - * - * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. - * - * @example - * const {google} = require('googleapis'); - * const language = google.language('v1beta1'); - * - * @namespace language - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Language - */ - class Language { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, }; - this.documents = new Resource$Documents(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - language_v1beta1.Language = Language; - class Resource$Documents { - 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142067,25 +135968,86 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142098,25 +136060,57 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removePeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142129,25 +136123,26 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - annotateText(paramsOrCallback, optionsOrCallback, callback) { + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142160,468 +136155,64 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - language_v1beta1.Resource$Documents = Resource$Documents; -})(language_v1beta1 = exports.language_v1beta1 || (exports.language_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 399 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.runtimeconfig = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(601); -const v1beta1_1 = __webpack_require__(699); -exports.VERSIONS = { - v1: v1_1.runtimeconfig_v1.Runtimeconfig, - v1beta1: v1beta1_1.runtimeconfig_v1beta1.Runtimeconfig, -}; -function runtimeconfig(versionOrOptions) { - return googleapis_common_1.getAPI('runtimeconfig', versionOrOptions, exports.VERSIONS, this); -} -exports.runtimeconfig = runtimeconfig; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 400 */, -/* 401 */, -/* 402 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.analyticsreporting = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v4_1 = __webpack_require__(554); -exports.VERSIONS = { - v4: v4_1.analyticsreporting_v4.Analyticsreporting, -}; -function analyticsreporting(versionOrOptions) { - return googleapis_common_1.getAPI('analyticsreporting', versionOrOptions, exports.VERSIONS, this); -} -exports.analyticsreporting = analyticsreporting; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 403 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = __webpack_require__(142); - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * Active `debug` instances. - */ - createDebug.instances = []; - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return match; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.enabled = createDebug.enabled(namespace); - debug.useColors = createDebug.useColors(); - debug.color = selectColor(namespace); - debug.destroy = destroy; - debug.extend = extend; - // Debug.formatArgs = formatArgs; - // debug.rawLog = rawLog; - - // env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - createDebug.instances.push(debug); - - return debug; - } - - function destroy() { - const index = createDebug.instances.indexOf(this); - if (index !== -1) { - createDebug.instances.splice(index, 1); - return true; - } - return false; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - - createDebug.names = []; - createDebug.skips = []; - - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; - - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } - - namespaces = split[i].replace(/\*/g, '.*?'); - - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - - for (i = 0; i < createDebug.instances.length; i++) { - const instance = createDebug.instances[i]; - instance.enabled = createDebug.enabled(instance.namespace); - } - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } - - let i; - let len; - - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - - return false; - } - - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - createDebug.enable(createDebug.load()); - - return createDebug; -} - -module.exports = setup; - - -/***/ }), -/* 404 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.iam = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(992); -exports.VERSIONS = { - v1: v1_1.iam_v1.Iam, -}; -function iam(versionOrOptions) { - return googleapis_common_1.getAPI('iam', versionOrOptions, exports.VERSIONS, this); -} -exports.iam = iam; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 405 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.testing_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 = __webpack_require__(927); -var testing_v1; -(function (testing_v1) { - /** - * Cloud Testing API - * - * Allows developers to run automated tests for their mobile applications on Google infrastructure. - * - * @example - * const {google} = require('googleapis'); - * const testing = google.testing('v1'); - * - * @namespace testing - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Testing - */ - class Testing { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + updatePeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, }; - this.applicationDetailService = new Resource$Applicationdetailservice(this.context); - this.projects = new Resource$Projects(this.context); - this.testEnvironmentCatalog = new Resource$Testenvironmentcatalog(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - testing_v1.Testing = Testing; - class Resource$Applicationdetailservice { + compute_v1.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { constructor(context) { this.context = context; } - getApkDetails(paramsOrCallback, optionsOrCallback, callback) { + addNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142634,38 +136225,57 @@ var testing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/applicationDetailService/getApkDetails').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - testing_v1.Resource$Applicationdetailservice = Resource$Applicationdetailservice; - class Resource$Projects { - constructor(context) { - this.context = context; - this.testMatrices = new Resource$Projects$Testmatrices(this.context); - } - } - testing_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Testmatrices { - constructor(context) { - this.context = context; + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142678,26 +136288,26 @@ var testing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'testMatrixId'], - pathParams: ['projectId', 'testMatrixId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142710,27 +136320,27 @@ var testing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/testMatrices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -142741,31 +136351,26 @@ var testing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/testMatrices/{testMatrixId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'testMatrixId'], - pathParams: ['projectId', 'testMatrixId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - testing_v1.Resource$Projects$Testmatrices = Resource$Projects$Testmatrices; - class Resource$Testenvironmentcatalog { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142778,105 +136383,26 @@ var testing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/testEnvironmentCatalog/{environmentType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['environmentType'], - pathParams: ['environmentType'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - testing_v1.Resource$Testenvironmentcatalog = Resource$Testenvironmentcatalog; -})(testing_v1 = exports.testing_v1 || (exports.testing_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 406 */, -/* 407 */ -/***/ (function(module) { - -module.exports = require("buffer"); - -/***/ }), -/* 408 */, -/* 409 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.clouddebugger_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 = __webpack_require__(927); -var clouddebugger_v2; -(function (clouddebugger_v2) { - /** - * Cloud Debugger API - * - * Examines the call stack and variables of a running application without stopping or slowing it down. - * - * @example - * const {google} = require('googleapis'); - * const clouddebugger = google.clouddebugger('v2'); - * - * @namespace clouddebugger - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Clouddebugger - */ - class Clouddebugger { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.controller = new Resource$Controller(this.context); - this.debugger = new Resource$Debugger(this.context); - } - } - clouddebugger_v2.Clouddebugger = Clouddebugger; - class Resource$Controller { - constructor(context) { - this.context = context; - this.debuggees = new Resource$Controller$Debuggees(this.context); - } - } - clouddebugger_v2.Resource$Controller = Resource$Controller; - class Resource$Controller$Debuggees { - constructor(context) { - this.context = context; - this.breakpoints = new Resource$Controller$Debuggees$Breakpoints(this.context); - } - register(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142889,33 +136415,26 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/controller/debuggees/register').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - clouddebugger_v2.Resource$Controller$Debuggees = Resource$Controller$Debuggees; - class Resource$Controller$Debuggees$Breakpoints { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -142926,25 +136445,25 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['debuggeeId'], - pathParams: ['debuggeeId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + listNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142957,41 +136476,27 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['debuggeeId', 'id'], - pathParams: ['debuggeeId', 'id'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - clouddebugger_v2.Resource$Controller$Debuggees$Breakpoints = Resource$Controller$Debuggees$Breakpoints; - class Resource$Debugger { - constructor(context) { - this.context = context; - this.debuggees = new Resource$Debugger$Debuggees(this.context); - } - } - clouddebugger_v2.Resource$Debugger = Resource$Debugger; - class Resource$Debugger$Debuggees { - constructor(context) { - this.context = context; - this.breakpoints = new Resource$Debugger$Debuggees$Breakpoints(this.context); - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143002,31 +136507,26 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/debugger/debuggees').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - clouddebugger_v2.Resource$Debugger$Debuggees = Resource$Debugger$Debuggees; - class Resource$Debugger$Debuggees$Breakpoints { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143039,26 +136539,26 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['debuggeeId', 'breakpointId'], - pathParams: ['breakpointId', 'debuggeeId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143071,26 +136571,26 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['debuggeeId', 'breakpointId'], - pathParams: ['breakpointId', 'debuggeeId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143103,25 +136603,26 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['debuggeeId'], - pathParams: ['debuggeeId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - set(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143134,91 +136635,34 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/set').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['debuggeeId'], - pathParams: ['debuggeeId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - clouddebugger_v2.Resource$Debugger$Debuggees$Breakpoints = Resource$Debugger$Debuggees$Breakpoints; -})(clouddebugger_v2 = exports.clouddebugger_v2 || (exports.clouddebugger_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 410 */, -/* 411 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudidentity_v1beta1 = 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 = __webpack_require__(927); -var cloudidentity_v1beta1; -(function (cloudidentity_v1beta1) { - /** - * Cloud Identity API - * - * API for provisioning and managing identity resources. - * - * @example - * const {google} = require('googleapis'); - * const cloudidentity = google.cloudidentity('v1beta1'); - * - * @namespace cloudidentity - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Cloudidentity - */ - class Cloudidentity { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.groups = new Resource$Groups(this.context); - } - } - cloudidentity_v1beta1.Cloudidentity = Cloudidentity; - class Resource$Groups { + compute_v1.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { constructor(context) { this.context = context; - this.memberships = new Resource$Groups$Memberships(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143229,26 +136673,28 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143259,26 +136705,28 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143289,26 +136737,28 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143319,26 +136769,28 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143349,26 +136801,28 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143379,26 +136833,28 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143409,31 +136865,26 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudidentity_v1beta1.Resource$Groups = Resource$Groups; - class Resource$Groups$Memberships { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143446,25 +136897,32 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143477,27 +136935,26 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143508,25 +136965,62 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143539,25 +137033,26 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143570,25 +137065,26 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143601,155 +137097,162 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudidentity_v1beta1.Resource$Groups$Memberships = Resource$Groups$Memberships; -})(cloudidentity_v1beta1 = exports.cloudidentity_v1beta1 || (exports.cloudidentity_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 412 */, -/* 413 */ -/***/ (function(module) { - -module.exports = require("stream"); - -/***/ }), -/* 414 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = authenticationBeforeRequest; - -const btoa = __webpack_require__(675); - -const withAuthorizationPrefix = __webpack_require__(85); - -function authenticationBeforeRequest(state, options) { - if (typeof state.auth === "string") { - options.headers.authorization = withAuthorizationPrefix(state.auth); - return; - } - - if (state.auth.username) { - const hash = btoa(`${state.auth.username}:${state.auth.password}`); - options.headers.authorization = `Basic ${hash}`; - if (state.otp) { - options.headers["x-github-otp"] = state.otp; - } - return; - } - - if (state.auth.clientId) { - // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as - // Basic Authorization instead of query parameters. The only routes where that applies share the same - // URL though: `/applications/:client_id/tokens/:access_token`. - // - // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization) - // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization) - // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application) - // - // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token" - // as well as "/applications/123/tokens/token456" - if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) { - const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`); - options.headers.authorization = `Basic ${hash}`; - return; - } - - options.url += options.url.indexOf("?") === -1 ? "?" : "&"; - options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`; - return; - } - - return Promise.resolve() - - .then(() => { - return state.auth(); - }) - - .then(authorization => { - options.headers.authorization = withAuthorizationPrefix(authorization); - }); -} - - -/***/ }), -/* 415 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.videointelligence_v1beta2 = 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 = __webpack_require__(927); -var videointelligence_v1beta2; -(function (videointelligence_v1beta2) { - /** - * Cloud Video Intelligence API - * - * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. - * - * @example - * const {google} = require('googleapis'); - * const videointelligence = google.videointelligence('v1beta2'); - * - * @namespace videointelligence - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Videointelligence - */ - class Videointelligence { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, }; - this.videos = new Resource$Videos(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - videointelligence_v1beta2.Videointelligence = Videointelligence; - class Resource$Videos { + compute_v1.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143760,113 +137263,87 @@ var videointelligence_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - videointelligence_v1beta2.Resource$Videos = Resource$Videos; -})(videointelligence_v1beta2 = exports.videointelligence_v1beta2 || (exports.videointelligence_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 416 */, -/* 417 */ -/***/ (function(module) { - -module.exports = require("crypto"); - -/***/ }), -/* 418 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var stringify = __webpack_require__(934); -var parse = __webpack_require__(886); -var formats = __webpack_require__(852); - -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; - - -/***/ }), -/* 419 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.genomics_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 = __webpack_require__(927); -var genomics_v1; -(function (genomics_v1) { - /** - * Genomics API - * - * Uploads, processes, queries, and searches Genomics data in the cloud. - * - * @example - * const {google} = require('googleapis'); - * const genomics = google.genomics('v1'); - * - * @namespace genomics - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Genomics - */ - class Genomics { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + disableXpnResource(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.operations = new Resource$Operations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - genomics_v1.Genomics = Genomics; - class Resource$Operations { - constructor(context) { - this.context = context; + enableXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143879,22 +137356,22 @@ var genomics_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -143909,26 +137386,27 @@ var genomics_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143939,2957 +137417,283 @@ var genomics_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - genomics_v1.Resource$Operations = Resource$Operations; -})(genomics_v1 = exports.genomics_v1 || (exports.genomics_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 420 */, -/* 421 */ -/***/ (function(module) { - -;(function (globalObject) { - 'use strict'; - -/* - * bignumber.js v7.2.1 - * A JavaScript library for arbitrary-precision arithmetic. - * https://github.com/MikeMcl/bignumber.js - * Copyright (c) 2018 Michael Mclaughlin - * MIT Licensed. - * - * BigNumber.prototype methods | BigNumber methods - * | - * absoluteValue abs | clone - * comparedTo | config set - * decimalPlaces dp | DECIMAL_PLACES - * dividedBy div | ROUNDING_MODE - * dividedToIntegerBy idiv | EXPONENTIAL_AT - * exponentiatedBy pow | RANGE - * integerValue | CRYPTO - * isEqualTo eq | MODULO_MODE - * isFinite | POW_PRECISION - * isGreaterThan gt | FORMAT - * isGreaterThanOrEqualTo gte | ALPHABET - * isInteger | isBigNumber - * isLessThan lt | maximum max - * isLessThanOrEqualTo lte | minimum min - * isNaN | random - * isNegative | - * isPositive | - * isZero | - * minus | - * modulo mod | - * multipliedBy times | - * negated | - * plus | - * precision sd | - * shiftedBy | - * squareRoot sqrt | - * toExponential | - * toFixed | - * toFormat | - * toFraction | - * toJSON | - * toNumber | - * toPrecision | - * toString | - * valueOf | - * - */ - - - var BigNumber, - isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, - - mathceil = Math.ceil, - mathfloor = Math.floor, - - bignumberError = '[BigNumber Error] ', - tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ', - - BASE = 1e14, - LOG_BASE = 14, - MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1 - // MAX_INT32 = 0x7fffffff, // 2^31 - 1 - POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], - SQRT_BASE = 1e7, - - // EDITABLE - // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and - // the arguments to toExponential, toFixed, toFormat, and toPrecision. - MAX = 1E9; // 0 to MAX_INT32 - - - /* - * Create and return a BigNumber constructor. - */ - function clone(configObject) { - var div, convertBase, parseNumeric, - P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null }, - ONE = new BigNumber(1), - - - //----------------------------- EDITABLE CONFIG DEFAULTS ------------------------------- - - - // The default values below must be integers within the inclusive ranges stated. - // The values can also be changed at run-time using BigNumber.set. - - // The maximum number of decimal places for operations involving division. - DECIMAL_PLACES = 20, // 0 to MAX - - // The rounding mode used when rounding to the above decimal places, and when using - // toExponential, toFixed, toFormat and toPrecision, and round (default value). - // UP 0 Away from zero. - // DOWN 1 Towards zero. - // CEIL 2 Towards +Infinity. - // FLOOR 3 Towards -Infinity. - // HALF_UP 4 Towards nearest neighbour. If equidistant, up. - // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. - // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. - // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. - // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. - ROUNDING_MODE = 4, // 0 to 8 - - // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] - - // The exponent value at and beneath which toString returns exponential notation. - // Number type: -7 - TO_EXP_NEG = -7, // 0 to -MAX - - // The exponent value at and above which toString returns exponential notation. - // Number type: 21 - TO_EXP_POS = 21, // 0 to MAX - - // RANGE : [MIN_EXP, MAX_EXP] - - // The minimum exponent value, beneath which underflow to zero occurs. - // Number type: -324 (5e-324) - MIN_EXP = -1e7, // -1 to -MAX - - // The maximum exponent value, above which overflow to Infinity occurs. - // Number type: 308 (1.7976931348623157e+308) - // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow. - MAX_EXP = 1e7, // 1 to MAX - - // Whether to use cryptographically-secure random number generation, if available. - CRYPTO = false, // true or false - - // The modulo mode used when calculating the modulus: a mod n. - // The quotient (q = a / n) is calculated according to the corresponding rounding mode. - // The remainder (r) is calculated as: r = a - n * q. - // - // UP 0 The remainder is positive if the dividend is negative, else is negative. - // DOWN 1 The remainder has the same sign as the dividend. - // This modulo mode is commonly known as 'truncated division' and is - // equivalent to (a % n) in JavaScript. - // FLOOR 3 The remainder has the same sign as the divisor (Python %). - // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. - // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). - // The remainder is always positive. - // - // The truncated division, floored division, Euclidian division and IEEE 754 remainder - // modes are commonly used for the modulus operation. - // Although the other rounding modes can also be used, they may not give useful results. - MODULO_MODE = 1, // 0 to 9 - - // The maximum number of significant digits of the result of the exponentiatedBy operation. - // If POW_PRECISION is 0, there will be unlimited significant digits. - POW_PRECISION = 0, // 0 to MAX - - // The format specification used by the BigNumber.prototype.toFormat method. - FORMAT = { - decimalSeparator: '.', - groupSeparator: ',', - groupSize: 3, - secondaryGroupSize: 0, - fractionGroupSeparator: '\xA0', // non-breaking space - fractionGroupSize: 0 - }, - - // The alphabet used for base conversion. - // It must be at least 2 characters long, with no '.' or repeated character. - // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' - ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz'; - - - //------------------------------------------------------------------------------------------ - - - // CONSTRUCTOR - - - /* - * The BigNumber constructor and exported function. - * Create and return a new instance of a BigNumber object. - * - * n {number|string|BigNumber} A numeric value. - * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive. - */ - function BigNumber(n, b) { - var alphabet, c, caseChanged, e, i, isNum, len, str, - x = this; - - // Enable constructor usage without new. - if (!(x instanceof BigNumber)) { - - // Don't throw on constructor call without new (#81). - // '[BigNumber Error] Constructor call without new: {n}' - //throw Error(bignumberError + ' Constructor call without new: ' + n); - return new BigNumber(n, b); - } - - if (b == null) { - - // Duplicate. - if (n instanceof BigNumber) { - x.s = n.s; - x.e = n.e; - x.c = (n = n.c) ? n.slice() : n; - return; - } - - isNum = typeof n == 'number'; - - if (isNum && n * 0 == 0) { - - // Use `1 / n` to handle minus zero also. - x.s = 1 / n < 0 ? (n = -n, -1) : 1; - - // Faster path for integers. - if (n === ~~n) { - for (e = 0, i = n; i >= 10; i /= 10, e++); - x.e = e; - x.c = [n]; - return; - } - - str = n + ''; - } else { - if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum); - x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1; - } - - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); - - // Exponential form? - if ((i = str.search(/e/i)) > 0) { - - // Determine exponent. - if (e < 0) e = i; - e += +str.slice(i + 1); - str = str.substring(0, i); - } else if (e < 0) { - - // Integer. - e = str.length; - } - - } else { - - // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' - intCheck(b, 2, ALPHABET.length, 'Base'); - str = n + ''; - - // Allow exponential notation to be used with base 10 argument, while - // also rounding to DECIMAL_PLACES as with other bases. - if (b == 10) { - x = new BigNumber(n instanceof BigNumber ? n : str); - return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); - } - - isNum = typeof n == 'number'; - - if (isNum) { - - // Avoid potential interpretation of Infinity and NaN as base 44+ values. - if (n * 0 != 0) return parseNumeric(x, str, isNum, b); - - x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1; - - // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' - if (BigNumber.DEBUG && str.replace(/^0\.0*|\./, '').length > 15) { - throw Error - (tooManyDigits + n); - } - - // Prevent later check for length on converted number. - isNum = false; - } else { - x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; - } - - alphabet = ALPHABET.slice(0, b); - e = i = 0; - - // Check that str is a valid base b number. - // Don't use RegExp so alphabet can contain special characters. - for (len = str.length; i < len; i++) { - if (alphabet.indexOf(c = str.charAt(i)) < 0) { - if (c == '.') { - - // If '.' is not the first character and it has not be found before. - if (i > e) { - e = len; - continue; - } - } else if (!caseChanged) { - - // Allow e.g. hexadecimal 'FF' as well as 'ff'. - if (str == str.toUpperCase() && (str = str.toLowerCase()) || - str == str.toLowerCase() && (str = str.toUpperCase())) { - caseChanged = true; - i = -1; - e = 0; - continue; - } + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - - return parseNumeric(x, n + '', isNum, b); - } - } - - str = convertBase(str, b, 10, x.s); - - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); - else e = str.length; - } - - // Determine leading zeros. - for (i = 0; str.charCodeAt(i) === 48; i++); - - // Determine trailing zeros. - for (len = str.length; str.charCodeAt(--len) === 48;); - - str = str.slice(i, ++len); - - if (str) { - len -= i; - - // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' - if (isNum && BigNumber.DEBUG && - len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) { - throw Error - (tooManyDigits + (x.s * n)); - } - - e = e - i - 1; - - // Overflow? - if (e > MAX_EXP) { - - // Infinity. - x.c = x.e = null; - - // Underflow? - } else if (e < MIN_EXP) { - - // Zero. - x.c = [x.e = 0]; - } else { - x.e = e; - x.c = []; - - // Transform base - - // e is the base 10 exponent. - // i is where to slice str to get the first element of the coefficient array. - i = (e + 1) % LOG_BASE; - if (e < 0) i += LOG_BASE; - - if (i < len) { - if (i) x.c.push(+str.slice(0, i)); - - for (len -= LOG_BASE; i < len;) { - x.c.push(+str.slice(i, i += LOG_BASE)); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - - str = str.slice(i); - i = LOG_BASE - str.length; - } else { - i -= len; - } - - for (; i--; str += '0'); - x.c.push(+str); } - } else { - - // Zero. - x.c = [x.e = 0]; - } - } - - - // CONSTRUCTOR PROPERTIES - - - BigNumber.clone = clone; - - BigNumber.ROUND_UP = 0; - BigNumber.ROUND_DOWN = 1; - BigNumber.ROUND_CEIL = 2; - BigNumber.ROUND_FLOOR = 3; - BigNumber.ROUND_HALF_UP = 4; - BigNumber.ROUND_HALF_DOWN = 5; - BigNumber.ROUND_HALF_EVEN = 6; - BigNumber.ROUND_HALF_CEIL = 7; - BigNumber.ROUND_HALF_FLOOR = 8; - BigNumber.EUCLID = 9; - - - /* - * Configure infrequently-changing library-wide settings. - * - * Accept an object with the following optional properties (if the value of a property is - * a number, it must be an integer within the inclusive range stated): - * - * DECIMAL_PLACES {number} 0 to MAX - * ROUNDING_MODE {number} 0 to 8 - * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX] - * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX] - * CRYPTO {boolean} true or false - * MODULO_MODE {number} 0 to 9 - * POW_PRECISION {number} 0 to MAX - * ALPHABET {string} A string of two or more unique characters which does - * not contain '.'. - * FORMAT {object} An object with some of the following properties: - * decimalSeparator {string} - * groupSeparator {string} - * groupSize {number} - * secondaryGroupSize {number} - * fractionGroupSeparator {string} - * fractionGroupSize {number} - * - * (The values assigned to the above FORMAT object properties are not checked for validity.) - * - * E.g. - * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 }) - * - * Ignore properties/parameters set to null or undefined, except for ALPHABET. - * - * Return an object with the properties current values. - */ - BigNumber.config = BigNumber.set = function (obj) { - var p, v; - - if (obj != null) { - - if (typeof obj == 'object') { - - // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive. - // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) { - v = obj[p]; - intCheck(v, 0, MAX, p); - DECIMAL_PLACES = v; - } - - // ROUNDING_MODE {number} Integer, 0 to 8 inclusive. - // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) { - v = obj[p]; - intCheck(v, 0, 8, p); - ROUNDING_MODE = v; - } - - // EXPONENTIAL_AT {number|number[]} - // Integer, -MAX to MAX inclusive or - // [integer -MAX to 0 inclusive, 0 to MAX inclusive]. - // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) { - v = obj[p]; - if (isArray(v)) { - intCheck(v[0], -MAX, 0, p); - intCheck(v[1], 0, MAX, p); - TO_EXP_NEG = v[0]; - TO_EXP_POS = v[1]; - } else { - intCheck(v, -MAX, MAX, p); - TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v); + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - - // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or - // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive]. - // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}' - if (obj.hasOwnProperty(p = 'RANGE')) { - v = obj[p]; - if (isArray(v)) { - intCheck(v[0], -MAX, -1, p); - intCheck(v[1], 1, MAX, p); - MIN_EXP = v[0]; - MAX_EXP = v[1]; - } else { - intCheck(v, -MAX, MAX, p); - if (v) { - MIN_EXP = -(MAX_EXP = v < 0 ? -v : v); - } else { - throw Error - (bignumberError + p + ' cannot be zero: ' + v); - } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - - // CRYPTO {boolean} true or false. - // '[BigNumber Error] CRYPTO not true or false: {v}' - // '[BigNumber Error] crypto unavailable' - if (obj.hasOwnProperty(p = 'CRYPTO')) { - v = obj[p]; - if (v === !!v) { - if (v) { - if (typeof crypto != 'undefined' && crypto && - (crypto.getRandomValues || crypto.randomBytes)) { - CRYPTO = v; - } else { - CRYPTO = !v; - throw Error - (bignumberError + 'crypto unavailable'); - } - } else { - CRYPTO = v; - } - } else { - throw Error - (bignumberError + p + ' not true or false: ' + v); + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - } - - // MODULO_MODE {number} Integer, 0 to 9 inclusive. - // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'MODULO_MODE')) { - v = obj[p]; - intCheck(v, 0, 9, p); - MODULO_MODE = v; - } - - // POW_PRECISION {number} Integer, 0 to MAX inclusive. - // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'POW_PRECISION')) { - v = obj[p]; - intCheck(v, 0, MAX, p); - POW_PRECISION = v; - } - - // FORMAT {object} - // '[BigNumber Error] FORMAT not an object: {v}' - if (obj.hasOwnProperty(p = 'FORMAT')) { - v = obj[p]; - if (typeof v == 'object') FORMAT = v; - else throw Error - (bignumberError + p + ' not an object: ' + v); - } - - // ALPHABET {string} - // '[BigNumber Error] ALPHABET invalid: {v}' - if (obj.hasOwnProperty(p = 'ALPHABET')) { - v = obj[p]; - - // Disallow if only one character, or contains '.' or a repeated character. - if (typeof v == 'string' && !/^.$|\.|(.).*\1/.test(v)) { - ALPHABET = v; - } else { - throw Error - (bignumberError + p + ' invalid: ' + v); + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } - - } else { - - // '[BigNumber Error] Object expected: {v}' - throw Error - (bignumberError + 'Object expected: ' + obj); } - } - - return { - DECIMAL_PLACES: DECIMAL_PLACES, - ROUNDING_MODE: ROUNDING_MODE, - EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS], - RANGE: [MIN_EXP, MAX_EXP], - CRYPTO: CRYPTO, - MODULO_MODE: MODULO_MODE, - POW_PRECISION: POW_PRECISION, - FORMAT: FORMAT, - ALPHABET: ALPHABET - }; - }; - - - /* - * Return true if v is a BigNumber instance, otherwise return false. - * - * v {any} - */ - BigNumber.isBigNumber = function (v) { - return v instanceof BigNumber || v && v._isBigNumber === true || false; - }; - - - /* - * Return a new BigNumber whose value is the maximum of the arguments. - * - * arguments {number|string|BigNumber} - */ - BigNumber.maximum = BigNumber.max = function () { - return maxOrMin(arguments, P.lt); - }; - - - /* - * Return a new BigNumber whose value is the minimum of the arguments. - * - * arguments {number|string|BigNumber} - */ - BigNumber.minimum = BigNumber.min = function () { - return maxOrMin(arguments, P.gt); - }; - - - /* - * Return a new BigNumber with a random value equal to or greater than 0 and less than 1, - * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing - * zeros are produced). - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}' - * '[BigNumber Error] crypto unavailable' - */ - BigNumber.random = (function () { - var pow2_53 = 0x20000000000000; - - // Return a 53 bit integer n, where 0 <= n < 9007199254740992. - // Check if Math.random() produces more than 32 bits of randomness. - // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits. - // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1. - var random53bitInt = (Math.random() * pow2_53) & 0x1fffff - ? function () { return mathfloor(Math.random() * pow2_53); } - : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) + - (Math.random() * 0x800000 | 0); }; - - return function (dp) { - var a, b, e, k, v, - i = 0, - c = [], - rand = new BigNumber(ONE); - - if (dp == null) dp = DECIMAL_PLACES; - else intCheck(dp, 0, MAX); - - k = mathceil(dp / LOG_BASE); - - if (CRYPTO) { - - // Browsers supporting crypto.getRandomValues. - if (crypto.getRandomValues) { - - a = crypto.getRandomValues(new Uint32Array(k *= 2)); - - for (; i < k;) { - - // 53 bits: - // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2) - // 11111 11111111 11111111 11111111 11100000 00000000 00000000 - // ((Math.pow(2, 32) - 1) >>> 11).toString(2) - // 11111 11111111 11111111 - // 0x20000 is 2^21. - v = a[i] * 0x20000 + (a[i + 1] >>> 11); - - // Rejection sampling: - // 0 <= v < 9007199254740992 - // Probability that v >= 9e15, is - // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251 - if (v >= 9e15) { - b = crypto.getRandomValues(new Uint32Array(2)); - a[i] = b[0]; - a[i + 1] = b[1]; - } else { - - // 0 <= v <= 8999999999999999 - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 2; - } + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - i = k / 2; - - // Node.js supporting crypto.randomBytes. - } else if (crypto.randomBytes) { - - // buffer - a = crypto.randomBytes(k *= 7); - - for (; i < k;) { - - // 0x1000000000000 is 2^48, 0x10000000000 is 2^40 - // 0x100000000 is 2^32, 0x1000000 is 2^24 - // 11111 11111111 11111111 11111111 11111111 11111111 11111111 - // 0 <= v < 9007199254740992 - v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) + - (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) + - (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6]; - - if (v >= 9e15) { - crypto.randomBytes(7).copy(a, i); - } else { - - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 7; - } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - i = k / 7; - } else { - CRYPTO = false; - throw Error - (bignumberError + 'crypto unavailable'); - } - } - - // Use Math.random. - if (!CRYPTO) { - - for (; i < k;) { - v = random53bitInt(); - if (v < 9e15) c[i++] = v % 1e14; - } - } - - k = c[--i]; - dp %= LOG_BASE; - - // Convert trailing digits to zeros according to dp. - if (k && dp) { - v = POWS_TEN[LOG_BASE - dp]; - c[i] = mathfloor(k / v) * v; - } - - // Remove trailing elements which are zero. - for (; c[i] === 0; c.pop(), i--); - - // Zero? - if (i < 0) { - c = [e = 0]; - } else { - - // Remove leading elements which are zero and adjust exponent accordingly. - for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE); - - // Count the digits of the first element of c to determine leading zeros, and... - for (i = 1, v = c[0]; v >= 10; v /= 10, i++); - - // adjust the exponent accordingly. - if (i < LOG_BASE) e -= LOG_BASE - i; - } - - rand.e = e; - rand.c = c; - return rand; - }; - })(); - - - // PRIVATE FUNCTIONS - - - // Called by BigNumber and BigNumber.prototype.toString. - convertBase = (function () { - var decimal = '0123456789'; - - /* - * Convert string of baseIn to an array of numbers of baseOut. - * Eg. toBaseOut('255', 10, 16) returns [15, 15]. - * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5]. - */ - function toBaseOut(str, baseIn, baseOut, alphabet) { - var j, - arr = [0], - arrL, - i = 0, - len = str.length; - - for (; i < len;) { - for (arrL = arr.length; arrL--; arr[arrL] *= baseIn); - - arr[0] += alphabet.indexOf(str.charAt(i++)); - - for (j = 0; j < arr.length; j++) { - - if (arr[j] > baseOut - 1) { - if (arr[j + 1] == null) arr[j + 1] = 0; - arr[j + 1] += arr[j] / baseOut | 0; - arr[j] %= baseOut; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - } - } - - return arr.reverse(); - } - - // Convert a numeric string of baseIn to a numeric string of baseOut. - // If the caller is toString, we are converting from base 10 to baseOut. - // If the caller is BigNumber, we are converting from baseIn to base 10. - return function (str, baseIn, baseOut, sign, callerIsToString) { - var alphabet, d, e, k, r, x, xc, y, - i = str.indexOf('.'), - dp = DECIMAL_PLACES, - rm = ROUNDING_MODE; - - // Non-integer. - if (i >= 0) { - k = POW_PRECISION; - - // Unlimited precision. - POW_PRECISION = 0; - str = str.replace('.', ''); - y = new BigNumber(baseIn); - x = y.pow(str.length - i); - POW_PRECISION = k; - - // Convert str as if an integer, then restore the fraction part by dividing the - // result by its base raised to a power. - - y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'), - 10, baseOut, decimal); - y.e = y.c.length; - } - - // Convert the number as integer. - - xc = toBaseOut(str, baseIn, baseOut, callerIsToString - ? (alphabet = ALPHABET, decimal) - : (alphabet = decimal, ALPHABET)); - - // xc now represents str as an integer and converted to baseOut. e is the exponent. - e = k = xc.length; - - // Remove trailing zeros. - for (; xc[--k] == 0; xc.pop()); - - // Zero? - if (!xc[0]) return alphabet.charAt(0); - - // Does str represent an integer? If so, no need for the division. - if (i < 0) { - --e; - } else { - x.c = xc; - x.e = e; - - // The sign is needed for correct rounding. - x.s = sign; - x = div(x, y, dp, rm, baseOut); - xc = x.c; - r = x.r; - e = x.e; - } - - // xc now represents str converted to baseOut. - - // THe index of the rounding digit. - d = e + dp + 1; - - // The rounding digit: the digit to the right of the digit that may be rounded up. - i = xc[d]; - - // Look at the rounding digits and mode to determine whether to round up. - - k = baseOut / 2; - r = r || d < 0 || xc[d + 1] != null; - - r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) - : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 || - rm == (x.s < 0 ? 8 : 7)); - - // If the index of the rounding digit is not greater than zero, or xc represents - // zero, then the result of the base conversion is zero or, if rounding up, a value - // such as 0.00001. - if (d < 1 || !xc[0]) { - - // 1^-dp or 0 - str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) - : alphabet.charAt(0); - } else { - - // Truncate xc to the required number of decimal places. - xc.length = d; - - // Round up? - if (r) { - - // Rounding up may mean the previous digit has to be rounded up and so on. - for (--baseOut; ++xc[--d] > baseOut;) { - xc[d] = 0; - - if (!d) { - ++e; - xc = [1].concat(xc); - } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } - - // Determine trailing zeros. - for (k = xc.length; !xc[--k];); - - // E.g. [4, 11, 15] becomes 4bf. - for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++])); - - // Add leading zeros, decimal point and trailing zeros as required. - str = toFixedPoint(str, e, alphabet.charAt(0)); - } - - // The caller will add the sign. - return str; - }; - })(); - - - // Perform division in the specified base. Called by div and convertBase. - div = (function () { - - // Assume non-zero x and k. - function multiply(x, k, base) { - var m, temp, xlo, xhi, - carry = 0, - i = x.length, - klo = k % SQRT_BASE, - khi = k / SQRT_BASE | 0; - - for (x = x.slice(); i--;) { - xlo = x[i] % SQRT_BASE; - xhi = x[i] / SQRT_BASE | 0; - m = khi * xlo + xhi * klo; - temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry; - carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi; - x[i] = temp % base; } - - if (carry) x = [carry].concat(x); - - return x; - } - - function compare(a, b, aL, bL) { - var i, cmp; - - if (aL != bL) { - cmp = aL > bL ? 1 : -1; - } else { - - for (i = cmp = 0; i < aL; i++) { - - if (a[i] != b[i]) { - cmp = a[i] > b[i] ? 1 : -1; - break; + moveInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } - } - - return cmp; - } - - function subtract(a, b, aL, base) { - var i = 0; - - // Subtract b from a. - for (; aL--;) { - a[aL] -= i; - i = a[aL] < b[aL] ? 1 : 0; - a[aL] = i * base + a[aL] - b[aL]; - } - - // Remove leading zeros. - for (; !a[0] && a.length > 1; a.splice(0, 1)); - } - - // x: dividend, y: divisor. - return function (x, y, dp, rm, base) { - var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, - yL, yz, - s = x.s == y.s ? 1 : -1, - xc = x.c, - yc = y.c; - - // Either NaN, Infinity or 0? - if (!xc || !xc[0] || !yc || !yc[0]) { - - return new BigNumber( - - // Return NaN if either NaN, or both Infinity or 0. - !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : - - // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. - xc && xc[0] == 0 || !yc ? s * 0 : s / 0 - ); - } - - q = new BigNumber(s); - qc = q.c = []; - e = x.e - y.e; - s = dp + e + 1; - - if (!base) { - base = BASE; - e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); - s = s / LOG_BASE | 0; } - - // Result exponent may be one less then the current value of e. - // The coefficients of the BigNumbers from convertBase may have trailing zeros. - for (i = 0; yc[i] == (xc[i] || 0); i++); - - if (yc[i] > (xc[i] || 0)) e--; - - if (s < 0) { - qc.push(1); - more = true; - } else { - xL = xc.length; - yL = yc.length; - i = 0; - s += 2; - - // Normalise xc and yc so highest order digit of yc is >= base / 2. - - n = mathfloor(base / (yc[0] + 1)); - - // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1. - // if (n > 1 || n++ == 1 && yc[0] < base / 2) { - if (n > 1) { - yc = multiply(yc, n, base); - xc = multiply(xc, n, base); - yL = yc.length; - xL = xc.length; - } - - xi = yL; - rem = xc.slice(0, yL); - remL = rem.length; - - // Add zeros to make remainder as long as divisor. - for (; remL < yL; rem[remL++] = 0); - yz = yc.slice(); - yz = [0].concat(yz); - yc0 = yc[0]; - if (yc[1] >= base / 2) yc0++; - // Not necessary, but to prevent trial digit n > base, when using base 3. - // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15; - - do { - n = 0; - - // Compare divisor and remainder. - cmp = compare(yc, rem, yL, remL); - - // If divisor < remainder. - if (cmp < 0) { - - // Calculate trial digit, n. - - rem0 = rem[0]; - if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); - - // n is how many times the divisor goes into the current remainder. - n = mathfloor(rem0 / yc0); - - // Algorithm: - // product = divisor multiplied by trial digit (n). - // Compare product and remainder. - // If product is greater than remainder: - // Subtract divisor from product, decrement trial digit. - // Subtract product from remainder. - // If product was less than remainder at the last compare: - // Compare new remainder and divisor. - // If remainder is greater than divisor: - // Subtract divisor from remainder, increment trial digit. - - if (n > 1) { - - // n may be > base only when base is 3. - if (n >= base) n = base - 1; - - // product = divisor * trial digit. - prod = multiply(yc, n, base); - prodL = prod.length; - remL = rem.length; - - // Compare product and remainder. - // If product > remainder then trial digit n too high. - // n is 1 too high about 5% of the time, and is not known to have - // ever been more than 1 too high. - while (compare(prod, rem, prodL, remL) == 1) { - n--; - - // Subtract divisor from product. - subtract(prod, yL < prodL ? yz : yc, prodL, base); - prodL = prod.length; - cmp = 1; - } - } else { - - // n is 0 or 1, cmp is -1. - // If n is 0, there is no need to compare yc and rem again below, - // so change cmp to 1 to avoid it. - // If n is 1, leave cmp as -1, so yc and rem are compared again. - if (n == 0) { - - // divisor < remainder, so n must be at least 1. - cmp = n = 1; - } - - // product = divisor - prod = yc.slice(); - prodL = prod.length; - } - - if (prodL < remL) prod = [0].concat(prod); - - // Subtract product from remainder. - subtract(rem, prod, remL, base); - remL = rem.length; - - // If product was < remainder. - if (cmp == -1) { - - // Compare divisor and new remainder. - // If divisor < new remainder, subtract divisor from remainder. - // Trial digit n too low. - // n is 1 too low about 5% of the time, and very rarely 2 too low. - while (compare(yc, rem, yL, remL) < 1) { - n++; - - // Subtract divisor from remainder. - subtract(rem, yL < remL ? yz : yc, remL, base); - remL = rem.length; - } - } - } else if (cmp === 0) { - n++; - rem = [0]; - } // else cmp === 1 and n will be 0 - - // Add the next digit, n, to the result array. - qc[i++] = n; - - // Update the remainder. - if (rem[0]) { - rem[remL++] = xc[xi] || 0; - } else { - rem = [xc[xi]]; - remL = 1; + setCommonInstanceMetadata(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } while ((xi++ < xL || rem[0] != null) && s--); - - more = rem[0] != null; - - // Leading zero? - if (!qc[0]) qc.splice(0, 1); } - - if (base == BASE) { - - // To calculate q.e, first get the number of digits of qc[0]. - for (i = 1, s = qc[0]; s >= 10; s /= 10, i++); - - round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more); - - // Caller is convertBase. - } else { - q.e = e; - q.r = +more; + setDefaultNetworkTier(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - return q; - }; - })(); - - - /* - * Return a string representing the value of BigNumber n in fixed-point or exponential - * notation rounded to the specified decimal places or significant digits. - * - * n: a BigNumber. - * i: the index of the last digit required (i.e. the digit that may be rounded up). - * rm: the rounding mode. - * id: 1 (toExponential) or 2 (toPrecision). - */ - function format(n, i, rm, id) { - var c0, e, ne, len, str; - - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - - if (!n.c) return n.toString(); - - c0 = n.c[0]; - ne = n.e; - - if (i == null) { - str = coeffToString(n.c); - str = id == 1 || id == 2 && ne <= TO_EXP_NEG - ? toExponential(str, ne) - : toFixedPoint(str, ne, '0'); - } else { - n = round(new BigNumber(n), i, rm); - - // n.e may have changed if the value was rounded up. - e = n.e; - - str = coeffToString(n.c); - len = str.length; - - // toPrecision returns exponential notation if the number of significant digits - // specified is less than the number of digits necessary to represent the integer - // part of the value in fixed-point notation. - - // Exponential notation. - if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) { - - // Append zeros? - for (; len < i; str += '0', len++); - str = toExponential(str, e); - - // Fixed-point notation. - } else { - i -= ne; - str = toFixedPoint(str, e, '0'); - - // Append zeros? - if (e + 1 > len) { - if (--i > 0) for (str += '.'; i--; str += '0'); - } else { - i += e - len; - if (i > 0) { - if (e + 1 == len) str += '.'; - for (; i--; str += '0'); + setUsageExportBucket(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } } - } - - return n.s < 0 && c0 ? '-' + str : str; } - - - // Handle BigNumber.max and BigNumber.min. - function maxOrMin(args, method) { - var m, n, - i = 0; - - if (isArray(args[0])) args = args[0]; - m = new BigNumber(args[0]); - - for (; ++i < args.length;) { - n = new BigNumber(args[i]); - - // If any number is NaN, return NaN. - if (!n.s) { - m = n; - break; - } else if (method.call(m, n)) { - m = n; + compute_v1.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { + constructor(context) { + this.context = context; } - } - - return m; - } - - - /* - * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP. - * Called by minus, plus and times. - */ - function normalise(n, c, e) { - var i = 1, - j = c.length; - - // Remove trailing zeros. - for (; !c[--j]; c.pop()); - - // Calculate the base 10 exponent. First get the number of digits of c[0]. - for (j = c[0]; j >= 10; j /= 10, i++); - - // Overflow? - if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { - - // Infinity. - n.c = n.e = null; - - // Underflow? - } else if (e < MIN_EXP) { - - // Zero. - n.c = [n.e = 0]; - } else { - n.e = e; - n.c = c; - } - - return n; - } - - - // Handle values that fail the validity test in BigNumber. - parseNumeric = (function () { - var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, - dotAfter = /^([^.]+)\.$/, - dotBefore = /^\.([^.]+)$/, - isInfinityOrNaN = /^-?(Infinity|NaN)$/, - whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g; - - return function (x, str, isNum, b) { - var base, - s = isNum ? str : str.replace(whitespaceOrPlus, ''); - - // No exception on ±Infinity or NaN. - if (isInfinityOrNaN.test(s)) { - x.s = isNaN(s) ? null : s < 0 ? -1 : 1; - x.c = x.e = null; - } else { - if (!isNum) { - - // basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i - s = s.replace(basePrefix, function (m, p1, p2) { - base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8; - return !b || b == base ? p1 : m; - }); - - if (b) { - base = b; - - // E.g. '1.' to '1', '.1' to '0.1' - s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - - if (str != s) return new BigNumber(s, base); - } - - // '[BigNumber Error] Not a number: {n}' - // '[BigNumber Error] Not a base {b} number: {n}' - if (BigNumber.DEBUG) { - throw Error - (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str); - } - - // NaN - x.c = x.e = x.s = null; - } - } - })(); - - - /* - * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. - * If r is truthy, it is known that there are more digits after the rounding digit. - */ - function round(x, sd, rm, r) { - var d, i, j, k, n, ni, rd, - xc = x.c, - pows10 = POWS_TEN; - - // if x is not Infinity or NaN... - if (xc) { - - // rd is the rounding digit, i.e. the digit after the digit that may be rounded up. - // n is a base 1e14 number, the value of the element of array x.c containing rd. - // ni is the index of n within x.c. - // d is the number of digits of n. - // i is the index of rd within n including leading zeros. - // j is the actual index of rd within n (if < 0, rd is a leading zero). - out: { - - // Get the number of digits of the first element of xc. - for (d = 1, k = xc[0]; k >= 10; k /= 10, d++); - i = sd - d; - - // If the rounding digit is in the first element of xc... - if (i < 0) { - i += LOG_BASE; - j = sd; - n = xc[ni = 0]; - - // Get the rounding digit at index j of n. - rd = n / pows10[d - j - 1] % 10 | 0; - } else { - ni = mathceil((i + 1) / LOG_BASE); - - if (ni >= xc.length) { - - if (r) { - - // Needed by sqrt. - for (; xc.length <= ni; xc.push(0)); - n = rd = 0; - d = 1; - i %= LOG_BASE; - j = i - LOG_BASE + 1; - } else { - break out; - } - } else { - n = k = xc[ni]; - - // Get the number of digits of n. - for (d = 1; k >= 10; k /= 10, d++); - - // Get the index of rd within n. - i %= LOG_BASE; - - // Get the index of rd within n, adjusted for leading zeros. - // The number of leading zeros of n is given by LOG_BASE - d. - j = i - LOG_BASE + d; - - // Get the rounding digit at index j of n. - rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - - r = r || sd < 0 || - - // Are there any non-zero digits after the rounding digit? - // The expression n % pows10[d - j - 1] returns all digits of n to the right - // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. - xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]); - - r = rm < 4 - ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) - : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && - - // Check whether the digit to the left of the rounding digit is odd. - ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 || - rm == (x.s < 0 ? 8 : 7)); - - if (sd < 1 || !xc[0]) { - xc.length = 0; - - if (r) { - - // Convert sd to decimal places. - sd -= x.e + 1; - - // 1, 0.1, 0.01, 0.001, 0.0001 etc. - xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE]; - x.e = -sd || 0; - } else { - - // Zero. - xc[0] = x.e = 0; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - - return x; - } - - // Remove excess digits. - if (i == 0) { - xc.length = ni; - k = 1; - ni--; - } else { - xc.length = ni + 1; - k = pows10[LOG_BASE - i]; - - // E.g. 56700 becomes 56000 if 7 is the rounding digit. - // j > 0 means i > number of leading zeros of n. - xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0; - } - - // Round up? - if (r) { - - for (; ;) { - - // If the digit to be rounded up is in the first element of xc... - if (ni == 0) { - - // i will be the length of xc[0] before k is added. - for (i = 1, j = xc[0]; j >= 10; j /= 10, i++); - j = xc[0] += k; - for (k = 1; j >= 10; j /= 10, k++); - - // if i != k the length has increased. - if (i != k) { - x.e++; - if (xc[0] == BASE) xc[0] = 1; - } - - break; - } else { - xc[ni] += k; - if (xc[ni] != BASE) break; - xc[ni--] = 0; - k = 1; - } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } - - // Remove trailing zeros. - for (i = xc.length; xc[--i] === 0; xc.pop()); - } - - // Overflow? Infinity. - if (x.e > MAX_EXP) { - x.c = x.e = null; - - // Underflow? Zero. - } else if (x.e < MIN_EXP) { - x.c = [x.e = 0]; - } - } - - return x; - } - - - // PROTOTYPE/INSTANCE METHODS - - - /* - * Return a new BigNumber whose value is the absolute value of this BigNumber. - */ - P.absoluteValue = P.abs = function () { - var x = new BigNumber(this); - if (x.s < 0) x.s = 1; - return x; - }; - - - /* - * Return - * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b), - * -1 if the value of this BigNumber is less than the value of BigNumber(y, b), - * 0 if they have the same value, - * or null if the value of either is NaN. - */ - P.comparedTo = function (y, b) { - return compare(this, new BigNumber(y, b)); - }; - - - /* - * If dp is undefined or null or true or false, return the number of decimal places of the - * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. - * - * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this - * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or - * ROUNDING_MODE if rm is omitted. - * - * [dp] {number} Decimal places: integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.decimalPlaces = P.dp = function (dp, rm) { - var c, n, v, - x = this; - - if (dp != null) { - intCheck(dp, 0, MAX); - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - - return round(new BigNumber(x), dp + x.e + 1, rm); - } - - if (!(c = x.c)) return null; - n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE; - - // Subtract the number of trailing zeros of the last number. - if (v = c[v]) for (; v % 10 == 0; v /= 10, n--); - if (n < 0) n = 0; - - return n; - }; - - - /* - * n / 0 = I - * n / N = N - * n / I = 0 - * 0 / n = 0 - * 0 / 0 = N - * 0 / N = N - * 0 / I = 0 - * N / n = N - * N / 0 = N - * N / N = N - * N / I = N - * I / n = I - * I / 0 = I - * I / N = N - * I / I = N - * - * Return a new BigNumber whose value is the value of this BigNumber divided by the value of - * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE. - */ - P.dividedBy = P.div = function (y, b) { - return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE); - }; - - - /* - * Return a new BigNumber whose value is the integer part of dividing the value of this - * BigNumber by the value of BigNumber(y, b). - */ - P.dividedToIntegerBy = P.idiv = function (y, b) { - return div(this, new BigNumber(y, b), 0, 1); - }; - - - /* - * Return a BigNumber whose value is the value of this BigNumber exponentiated by n. - * - * If m is present, return the result modulo m. - * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE. - * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE. - * - * The modular power operation works efficiently when x, n, and m are integers, otherwise it - * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0. - * - * n {number|string|BigNumber} The exponent. An integer. - * [m] {number|string|BigNumber} The modulus. - * - * '[BigNumber Error] Exponent not an integer: {n}' - */ - P.exponentiatedBy = P.pow = function (n, m) { - var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y, - x = this; - - n = new BigNumber(n); - - // Allow NaN and ±Infinity, but not other non-integers. - if (n.c && !n.isInteger()) { - throw Error - (bignumberError + 'Exponent not an integer: ' + n); - } - - if (m != null) m = new BigNumber(m); - - // Exponent of MAX_SAFE_INTEGER is 15. - nIsBig = n.e > 14; - - // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0. - if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { - - // The sign of the result of pow when x is negative depends on the evenness of n. - // If +n overflows to ±Infinity, the evenness of n would be not be known. - y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n)); - return m ? y.mod(m) : y; - } - - nIsNeg = n.s < 0; - - if (m) { - - // x % m returns NaN if abs(m) is zero, or m is NaN. - if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN); - - isModExp = !nIsNeg && x.isInteger() && m.isInteger(); - - if (isModExp) x = x.mod(m); - - // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15. - // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15. - } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 - // [1, 240000000] - ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 - // [80000000000000] [99999750000000] - : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) { - - // If x is negative and n is odd, k = -0, else k = 0. - k = x.s < 0 && isOdd(n) ? -0 : 0; - - // If x >= 1, k = ±Infinity. - if (x.e > -1) k = 1 / k; - - // If n is negative return ±0, else return ±Infinity. - return new BigNumber(nIsNeg ? 1 / k : k); - - } else if (POW_PRECISION) { - - // Truncating each coefficient array to a length of k after each multiplication - // equates to truncating significant digits to POW_PRECISION + [28, 41], - // i.e. there will be a minimum of 28 guard digits retained. - k = mathceil(POW_PRECISION / LOG_BASE + 2); - } - - if (nIsBig) { - half = new BigNumber(0.5); - nIsOdd = isOdd(n); - } else { - nIsOdd = n % 2; - } - - if (nIsNeg) n.s = 1; - - y = new BigNumber(ONE); - - // Performs 54 loop iterations for n of 9007199254740991. - for (; ;) { - - if (nIsOdd) { - y = y.times(x); - if (!y.c) break; - - if (k) { - if (y.c.length > k) y.c.length = k; - } else if (isModExp) { - y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m)); - } - } - - if (nIsBig) { - n = n.times(half); - round(n, n.e + 1, 1); - if (!n.c[0]) break; - nIsBig = n.e > 14; - nIsOdd = isOdd(n); - } else { - n = mathfloor(n / 2); - if (!n) break; - nIsOdd = n % 2; - } - - x = x.times(x); - - if (k) { - if (x.c && x.c.length > k) x.c.length = k; - } else if (isModExp) { - x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m)); - } - } - - if (isModExp) return y; - if (nIsNeg) y = ONE.div(y); - - return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; - }; - - - /* - * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer - * using rounding mode rm, or ROUNDING_MODE if rm is omitted. - * - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}' - */ - P.integerValue = function (rm) { - var n = new BigNumber(this); - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - return round(n, n.e + 1, rm); - }; - - - /* - * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b), - * otherwise return false. - */ - P.isEqualTo = P.eq = function (y, b) { - return compare(this, new BigNumber(y, b)) === 0; - }; - - - /* - * Return true if the value of this BigNumber is a finite number, otherwise return false. - */ - P.isFinite = function () { - return !!this.c; - }; - - - /* - * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b), - * otherwise return false. - */ - P.isGreaterThan = P.gt = function (y, b) { - return compare(this, new BigNumber(y, b)) > 0; - }; - - - /* - * Return true if the value of this BigNumber is greater than or equal to the value of - * BigNumber(y, b), otherwise return false. - */ - P.isGreaterThanOrEqualTo = P.gte = function (y, b) { - return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0; - - }; - - - /* - * Return true if the value of this BigNumber is an integer, otherwise return false. - */ - P.isInteger = function () { - return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; - }; - - - /* - * Return true if the value of this BigNumber is less than the value of BigNumber(y, b), - * otherwise return false. - */ - P.isLessThan = P.lt = function (y, b) { - return compare(this, new BigNumber(y, b)) < 0; - }; - - - /* - * Return true if the value of this BigNumber is less than or equal to the value of - * BigNumber(y, b), otherwise return false. - */ - P.isLessThanOrEqualTo = P.lte = function (y, b) { - return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0; - }; - - - /* - * Return true if the value of this BigNumber is NaN, otherwise return false. - */ - P.isNaN = function () { - return !this.s; - }; - - - /* - * Return true if the value of this BigNumber is negative, otherwise return false. - */ - P.isNegative = function () { - return this.s < 0; - }; - - - /* - * Return true if the value of this BigNumber is positive, otherwise return false. - */ - P.isPositive = function () { - return this.s > 0; - }; - - - /* - * Return true if the value of this BigNumber is 0 or -0, otherwise return false. - */ - P.isZero = function () { - return !!this.c && this.c[0] == 0; - }; - - - /* - * n - 0 = n - * n - N = N - * n - I = -I - * 0 - n = -n - * 0 - 0 = 0 - * 0 - N = N - * 0 - I = -I - * N - n = N - * N - 0 = N - * N - N = N - * N - I = N - * I - n = I - * I - 0 = I - * I - N = N - * I - I = N - * - * Return a new BigNumber whose value is the value of this BigNumber minus the value of - * BigNumber(y, b). - */ - P.minus = function (y, b) { - var i, j, t, xLTy, - x = this, - a = x.s; - - y = new BigNumber(y, b); - b = y.s; - - // Either NaN? - if (!a || !b) return new BigNumber(NaN); - - // Signs differ? - if (a != b) { - y.s = -b; - return x.plus(y); - } - - var xe = x.e / LOG_BASE, - ye = y.e / LOG_BASE, - xc = x.c, - yc = y.c; - - if (!xe || !ye) { - - // Either Infinity? - if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN); - - // Either zero? - if (!xc[0] || !yc[0]) { - - // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. - return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x : - - // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity - ROUNDING_MODE == 3 ? -0 : 0); - } - } - - xe = bitFloor(xe); - ye = bitFloor(ye); - xc = xc.slice(); - - // Determine which is the bigger number. - if (a = xe - ye) { - - if (xLTy = a < 0) { - a = -a; - t = xc; - } else { - ye = xe; - t = yc; - } - - t.reverse(); - - // Prepend zeros to equalise exponents. - for (b = a; b--; t.push(0)); - t.reverse(); - } else { - - // Exponents equal. Check digit by digit. - j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b; - - for (a = b = 0; b < j; b++) { - - if (xc[b] != yc[b]) { - xLTy = xc[b] < yc[b]; - break; - } - } - } - - // x < y? Point xc to the array of the bigger number. - if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s; - - b = (j = yc.length) - (i = xc.length); - - // Append zeros to xc if shorter. - // No need to add zeros to yc if shorter as subtract only needs to start at yc.length. - if (b > 0) for (; b--; xc[i++] = 0); - b = BASE - 1; - - // Subtract yc from xc. - for (; j > a;) { - - if (xc[--j] < yc[j]) { - for (i = j; i && !xc[--i]; xc[i] = b); - --xc[i]; - xc[j] += BASE; - } - - xc[j] -= yc[j]; - } - - // Remove leading zeros and adjust exponent accordingly. - for (; xc[0] == 0; xc.splice(0, 1), --ye); - - // Zero? - if (!xc[0]) { - - // Following IEEE 754 (2008) 6.3, - // n - n = +0 but n - n = -0 when rounding towards -Infinity. - y.s = ROUNDING_MODE == 3 ? -1 : 1; - y.c = [y.e = 0]; - return y; - } - - // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity - // for finite x and y. - return normalise(y, xc, ye); - }; - - - /* - * n % 0 = N - * n % N = N - * n % I = n - * 0 % n = 0 - * -0 % n = -0 - * 0 % 0 = N - * 0 % N = N - * 0 % I = 0 - * N % n = N - * N % 0 = N - * N % N = N - * N % I = N - * I % n = N - * I % 0 = N - * I % N = N - * I % I = N - * - * Return a new BigNumber whose value is the value of this BigNumber modulo the value of - * BigNumber(y, b). The result depends on the value of MODULO_MODE. - */ - P.modulo = P.mod = function (y, b) { - var q, s, - x = this; - - y = new BigNumber(y, b); - - // Return NaN if x is Infinity or NaN, or y is NaN or zero. - if (!x.c || !y.s || y.c && !y.c[0]) { - return new BigNumber(NaN); - - // Return x if y is Infinity or x is zero. - } else if (!y.c || x.c && !x.c[0]) { - return new BigNumber(x); - } - - if (MODULO_MODE == 9) { - - // Euclidian division: q = sign(y) * floor(x / abs(y)) - // r = x - qy where 0 <= r < abs(y) - s = y.s; - y.s = 1; - q = div(x, y, 0, 3); - y.s = s; - q.s *= s; - } else { - q = div(x, y, 0, MODULO_MODE); - } - - y = x.minus(q.times(y)); - - // To match JavaScript %, ensure sign of zero is sign of dividend. - if (!y.c[0] && MODULO_MODE == 1) y.s = x.s; - - return y; - }; - - - /* - * n * 0 = 0 - * n * N = N - * n * I = I - * 0 * n = 0 - * 0 * 0 = 0 - * 0 * N = N - * 0 * I = N - * N * n = N - * N * 0 = N - * N * N = N - * N * I = N - * I * n = I - * I * 0 = N - * I * N = N - * I * I = I - * - * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value - * of BigNumber(y, b). - */ - P.multipliedBy = P.times = function (y, b) { - var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, - base, sqrtBase, - x = this, - xc = x.c, - yc = (y = new BigNumber(y, b)).c; - - // Either NaN, ±Infinity or ±0? - if (!xc || !yc || !xc[0] || !yc[0]) { - - // Return NaN if either is NaN, or one is 0 and the other is Infinity. - if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) { - y.c = y.e = y.s = null; - } else { - y.s *= x.s; - - // Return ±Infinity if either is ±Infinity. - if (!xc || !yc) { - y.c = y.e = null; - - // Return ±0 if either is ±0. - } else { - y.c = [0]; - y.e = 0; - } - } - - return y; - } - - e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE); - y.s *= x.s; - xcL = xc.length; - ycL = yc.length; - - // Ensure xc points to longer array and xcL to its length. - if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i; - - // Initialise the result array with zeros. - for (i = xcL + ycL, zc = []; i--; zc.push(0)); - - base = BASE; - sqrtBase = SQRT_BASE; - - for (i = ycL; --i >= 0;) { - c = 0; - ylo = yc[i] % sqrtBase; - yhi = yc[i] / sqrtBase | 0; - - for (k = xcL, j = i + k; j > i;) { - xlo = xc[--k] % sqrtBase; - xhi = xc[k] / sqrtBase | 0; - m = yhi * xlo + xhi * ylo; - xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c; - c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi; - zc[j--] = xlo % base; - } - - zc[j] = c; - } - - if (c) { - ++e; - } else { - zc.splice(0, 1); - } - - return normalise(y, zc, e); - }; - - - /* - * Return a new BigNumber whose value is the value of this BigNumber negated, - * i.e. multiplied by -1. - */ - P.negated = function () { - var x = new BigNumber(this); - x.s = -x.s || null; - return x; - }; - - - /* - * n + 0 = n - * n + N = N - * n + I = I - * 0 + n = n - * 0 + 0 = 0 - * 0 + N = N - * 0 + I = I - * N + n = N - * N + 0 = N - * N + N = N - * N + I = N - * I + n = I - * I + 0 = I - * I + N = N - * I + I = I - * - * Return a new BigNumber whose value is the value of this BigNumber plus the value of - * BigNumber(y, b). - */ - P.plus = function (y, b) { - var t, - x = this, - a = x.s; - - y = new BigNumber(y, b); - b = y.s; - - // Either NaN? - if (!a || !b) return new BigNumber(NaN); - - // Signs differ? - if (a != b) { - y.s = -b; - return x.minus(y); - } - - var xe = x.e / LOG_BASE, - ye = y.e / LOG_BASE, - xc = x.c, - yc = y.c; - - if (!xe || !ye) { - - // Return ±Infinity if either ±Infinity. - if (!xc || !yc) return new BigNumber(a / 0); - - // Either zero? - // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. - if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0); - } - - xe = bitFloor(xe); - ye = bitFloor(ye); - xc = xc.slice(); - - // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts. - if (a = xe - ye) { - if (a > 0) { - ye = xe; - t = yc; - } else { - a = -a; - t = xc; - } - - t.reverse(); - for (; a--; t.push(0)); - t.reverse(); - } - - a = xc.length; - b = yc.length; - - // Point xc to the longer array, and b to the shorter length. - if (a - b < 0) t = yc, yc = xc, xc = t, b = a; - - // Only start adding at yc.length - 1 as the further digits of xc can be ignored. - for (a = 0; b;) { - a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0; - xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE; - } - - if (a) { - xc = [a].concat(xc); - ++ye; - } - - // No need to check for zero, as +x + +y != 0 && -x + -y != 0 - // ye = MAX_EXP + 1 possible - return normalise(y, xc, ye); - }; - - - /* - * If sd is undefined or null or true or false, return the number of significant digits of - * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. - * If sd is true include integer-part trailing zeros in the count. - * - * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this - * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or - * ROUNDING_MODE if rm is omitted. - * - * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive. - * boolean: whether to count integer-part trailing zeros: true or false. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' - */ - P.precision = P.sd = function (sd, rm) { - var c, n, v, - x = this; - - if (sd != null && sd !== !!sd) { - intCheck(sd, 1, MAX); - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - - return round(new BigNumber(x), sd, rm); - } - - if (!(c = x.c)) return null; - v = c.length - 1; - n = v * LOG_BASE + 1; - - if (v = c[v]) { - - // Subtract the number of trailing zeros of the last element. - for (; v % 10 == 0; v /= 10, n--); - - // Add the number of digits of the first element. - for (v = c[0]; v >= 10; v /= 10, n++); - } - - if (sd && x.e + 1 > n) n = x.e + 1; - - return n; - }; - - - /* - * Return a new BigNumber whose value is the value of this BigNumber shifted by k places - * (powers of 10). Shift to the right if n > 0, and to the left if n < 0. - * - * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}' - */ - P.shiftedBy = function (k) { - intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); - return this.times('1e' + k); - }; - - - /* - * sqrt(-n) = N - * sqrt(N) = N - * sqrt(-I) = N - * sqrt(I) = I - * sqrt(0) = 0 - * sqrt(-0) = -0 - * - * Return a new BigNumber whose value is the square root of the value of this BigNumber, - * rounded according to DECIMAL_PLACES and ROUNDING_MODE. - */ - P.squareRoot = P.sqrt = function () { - var m, n, r, rep, t, - x = this, - c = x.c, - s = x.s, - e = x.e, - dp = DECIMAL_PLACES + 4, - half = new BigNumber('0.5'); - - // Negative/NaN/Infinity/zero? - if (s !== 1 || !c || !c[0]) { - return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); - } - - // Initial estimate. - s = Math.sqrt(+x); - - // Math.sqrt underflow/overflow? - // Pass x to Math.sqrt as integer, then adjust the exponent of the result. - if (s == 0 || s == 1 / 0) { - n = coeffToString(c); - if ((n.length + e) % 2 == 0) n += '0'; - s = Math.sqrt(n); - e = bitFloor((e + 1) / 2) - (e < 0 || e % 2); - - if (s == 1 / 0) { - n = '1e' + e; - } else { - n = s.toExponential(); - n = n.slice(0, n.indexOf('e') + 1) + e; - } - - r = new BigNumber(n); - } else { - r = new BigNumber(s + ''); - } - - // Check for zero. - // r could be zero if MIN_EXP is changed after the this value was created. - // This would cause a division by zero (x/t) and hence Infinity below, which would cause - // coeffToString to throw. - if (r.c[0]) { - e = r.e; - s = e + dp; - if (s < 3) s = 0; - - // Newton-Raphson iteration. - for (; ;) { - t = r; - r = half.times(t.plus(div(x, t, dp, 1))); - - if (coeffToString(t.c ).slice(0, s) === (n = - coeffToString(r.c)).slice(0, s)) { - - // The exponent of r may here be one less than the final result exponent, - // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits - // are indexed correctly. - if (r.e < e) --s; - n = n.slice(s - 3, s + 1); - - // The 4th rounding digit may be in error by -1 so if the 4 rounding digits - // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the - // iteration. - if (n == '9999' || !rep && n == '4999') { - - // On the first iteration only, check to see if rounding up gives the - // exact result as the nines may infinitely repeat. - if (!rep) { - round(t, t.e + DECIMAL_PLACES + 2, 0); - - if (t.times(t).eq(x)) { - r = t; - break; - } - } - - dp += 4; - s += 4; - rep = 1; - } else { - - // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact - // result. If not, then there are further digits and m will be truthy. - if (!+n || !+n.slice(1) && n.charAt(0) == '5') { - - // Truncate to the first rounding digit. - round(r, r.e + DECIMAL_PLACES + 2, 1); - m = !r.times(r).eq(x); - } - - break; - } - } - } - } - - return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m); - }; - - - /* - * Return a string representing the value of this BigNumber in exponential notation and - * rounded using ROUNDING_MODE to dp fixed decimal places. - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.toExponential = function (dp, rm) { - if (dp != null) { - intCheck(dp, 0, MAX); - dp++; - } - return format(this, dp, rm, 1); - }; - - - /* - * Return a string representing the value of this BigNumber in fixed-point notation rounding - * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted. - * - * Note: as with JavaScript's number type, (-0).toFixed(0) is '0', - * but e.g. (-0.00001).toFixed(0) is '-0'. - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.toFixed = function (dp, rm) { - if (dp != null) { - intCheck(dp, 0, MAX); - dp = dp + this.e + 1; - } - return format(this, dp, rm); - }; - - - /* - * Return a string representing the value of this BigNumber in fixed-point notation rounded - * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties - * of the FORMAT object (see BigNumber.set). - * - * FORMAT = { - * decimalSeparator : '.', - * groupSeparator : ',', - * groupSize : 3, - * secondaryGroupSize : 0, - * fractionGroupSeparator : '\xA0', // non-breaking space - * fractionGroupSize : 0 - * }; - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.toFormat = function (dp, rm) { - var str = this.toFixed(dp, rm); - - if (this.c) { - var i, - arr = str.split('.'), - g1 = +FORMAT.groupSize, - g2 = +FORMAT.secondaryGroupSize, - groupSeparator = FORMAT.groupSeparator, - intPart = arr[0], - fractionPart = arr[1], - isNeg = this.s < 0, - intDigits = isNeg ? intPart.slice(1) : intPart, - len = intDigits.length; - - if (g2) i = g1, g1 = g2, g2 = i, len -= i; - - if (g1 > 0 && len > 0) { - i = len % g1 || g1; - intPart = intDigits.substr(0, i); - - for (; i < len; i += g1) { - intPart += groupSeparator + intDigits.substr(i, g1); - } - - if (g2 > 0) intPart += groupSeparator + intDigits.slice(i); - if (isNeg) intPart = '-' + intPart; - } - - str = fractionPart - ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize) - ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), - '$&' + FORMAT.fractionGroupSeparator) - : fractionPart) - : intPart; - } - - return str; - }; - - - /* - * Return a string array representing the value of this BigNumber as a simple fraction with - * an integer numerator and an integer denominator. The denominator will be a positive - * non-zero value less than or equal to the specified maximum denominator. If a maximum - * denominator is not specified, the denominator will be the lowest value necessary to - * represent the number exactly. - * - * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator. - * - * '[BigNumber Error] Argument {not an integer|out of range} : {md}' - */ - P.toFraction = function (md) { - var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s, - x = this, - xc = x.c; - - if (md != null) { - n = new BigNumber(md); - - // Throw if md is less than one or is not an integer, unless it is Infinity. - if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { - throw Error - (bignumberError + 'Argument ' + - (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md); - } - } - - if (!xc) return x.toString(); - - d = new BigNumber(ONE); - n1 = d0 = new BigNumber(ONE); - d1 = n0 = new BigNumber(ONE); - s = coeffToString(xc); - - // Determine initial denominator. - // d is a power of 10 and the minimum max denominator that specifies the value exactly. - e = d.e = s.length - x.e - 1; - d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; - md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n; - - exp = MAX_EXP; - MAX_EXP = 1 / 0; - n = new BigNumber(s); - - // n0 = d1 = 0 - n0.c[0] = 0; - - for (; ;) { - q = div(n, d, 0, 1); - d2 = d0.plus(q.times(d1)); - if (d2.comparedTo(md) == 1) break; - d0 = d1; - d1 = d2; - n1 = n0.plus(q.times(d2 = n1)); - n0 = d2; - d = n.minus(q.times(d2 = d)); - n = d2; - } - - d2 = div(md.minus(d0), d1, 0, 1); - n0 = n0.plus(d2.times(n1)); - d0 = d0.plus(d2.times(d1)); - n0.s = n1.s = x.s; - e *= 2; - - // Determine which fraction is closer to x, n0/d0 or n1/d1 - arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo( - div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 - ? [n1.toString(), d1.toString()] - : [n0.toString(), d0.toString()]; - - MAX_EXP = exp; - return arr; - }; - - - /* - * Return the value of this BigNumber converted to a number primitive. - */ - P.toNumber = function () { - return +this; - }; - - - /* - * Return a string representing the value of this BigNumber rounded to sd significant digits - * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits - * necessary to represent the integer part of the value in fixed-point notation, then use - * exponential notation. - * - * [sd] {number} Significant digits. Integer, 1 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' - */ - P.toPrecision = function (sd, rm) { - if (sd != null) intCheck(sd, 1, MAX); - return format(this, sd, rm, 2); - }; - - - /* - * Return a string representing the value of this BigNumber in base b, or base 10 if b is - * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and - * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent - * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than - * TO_EXP_NEG, return exponential notation. - * - * [b] {number} Integer, 2 to ALPHABET.length inclusive. - * - * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' - */ - P.toString = function (b) { - var str, - n = this, - s = n.s, - e = n.e; - - // Infinity or NaN? - if (e === null) { - - if (s) { - str = 'Infinity'; - if (s < 0) str = '-' + str; - } else { - str = 'NaN'; - } - } else { - str = coeffToString(n.c); - - if (b == null) { - str = e <= TO_EXP_NEG || e >= TO_EXP_POS - ? toExponential(str, e) - : toFixedPoint(str, e, '0'); - } else { - intCheck(b, 2, ALPHABET.length, 'Base'); - str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true); - } - - if (s < 0 && n.c[0]) str = '-' + str; - } - - return str; - }; - - - /* - * Return as toString, but do not accept a base argument, and include the minus sign for - * negative zero. - */ - P.valueOf = P.toJSON = function () { - var str, - n = this, - e = n.e; - - if (e === null) return n.toString(); - - str = coeffToString(n.c); - - str = e <= TO_EXP_NEG || e >= TO_EXP_POS - ? toExponential(str, e) - : toFixedPoint(str, e, '0'); - - return n.s < 0 ? '-' + str : str; - }; - - - P._isBigNumber = true; - - if (configObject != null) BigNumber.set(configObject); - - return BigNumber; - } - - - // PRIVATE HELPER FUNCTIONS - - - function bitFloor(n) { - var i = n | 0; - return n > 0 || n === i ? i : i - 1; - } - - - // Return a coefficient array as a string of base 10 digits. - function coeffToString(a) { - var s, z, - i = 1, - j = a.length, - r = a[0] + ''; - - for (; i < j;) { - s = a[i++] + ''; - z = LOG_BASE - s.length; - for (; z--; s = '0' + s); - r += s; - } - - // Determine trailing zeros. - for (j = r.length; r.charCodeAt(--j) === 48;); - return r.slice(0, j + 1 || 1); - } - - - // Compare the value of BigNumbers x and y. - function compare(x, y) { - var a, b, - xc = x.c, - yc = y.c, - i = x.s, - j = y.s, - k = x.e, - l = y.e; - - // Either NaN? - if (!i || !j) return null; - - a = xc && !xc[0]; - b = yc && !yc[0]; - - // Either zero? - if (a || b) return a ? b ? 0 : -j : i; - - // Signs differ? - if (i != j) return i; - - a = i < 0; - b = k == l; - - // Either Infinity? - if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1; - - // Compare exponents. - if (!b) return k > l ^ a ? 1 : -1; - - j = (k = xc.length) < (l = yc.length) ? k : l; - - // Compare digit by digit. - for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1; - - // Compare lengths. - return k == l ? 0 : k > l ^ a ? 1 : -1; - } - - - /* - * Check that n is a primitive number, an integer, and in range, otherwise throw. - */ - function intCheck(n, min, max, name) { - if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) { - throw Error - (bignumberError + (name || 'Argument') + (typeof n == 'number' - ? n < min || n > max ? ' out of range: ' : ' not an integer: ' - : ' not a primitive number: ') + n); - } - } - - - function isArray(obj) { - return Object.prototype.toString.call(obj) == '[object Array]'; - } - - - // Assumes finite n. - function isOdd(n) { - var k = n.c.length - 1; - return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0; - } - - - function toExponential(str, e) { - return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + - (e < 0 ? 'e' : 'e+') + e; - } - - - function toFixedPoint(str, e, z) { - var len, zs; - - // Negative exponent? - if (e < 0) { - - // Prepend zeros. - for (zs = z + '.'; ++e; zs += z); - str = zs + str; - - // Positive exponent - } else { - len = str.length; - - // Append zeros. - if (++e > len) { - for (zs = z, e -= len; --e; zs += z); - str += zs; - } else if (e < len) { - str = str.slice(0, e) + '.' + str.slice(e); - } - } - - return str; - } - - - // EXPORT - - - BigNumber = clone(); - BigNumber['default'] = BigNumber.BigNumber = BigNumber; - - // AMD. - if (typeof define == 'function' && define.amd) { - define(function () { return BigNumber; }); - - // Node.js and other environments that support module.exports. - } else if ( true && module.exports) { - module.exports = BigNumber; - - // Browser. - } else { - if (!globalObject) { - globalObject = typeof self != 'undefined' && self ? self : window; - } - - globalObject.BigNumber = BigNumber; - } -})(this); - - -/***/ }), -/* 422 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var osName = _interopDefault(__webpack_require__(2)); - -function getUserAgent() { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return "Windows "; - } - - throw error; - } -} - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 423 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.admin_directory_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 = __webpack_require__(927); -var admin_directory_v1; -(function (admin_directory_v1) { - /** - * Admin Directory API - * - * Manages enterprise resources such as users and groups, administrative notifications, security features, and more. - * - * @example - * const {google} = require('googleapis'); - * const admin = google.admin('directory_v1'); - * - * @namespace admin - * @type {Function} - * @version directory_v1 - * @variation directory_v1 - * @param {object=} options Options for Admin - */ - class Admin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.asps = new Resource$Asps(this.context); - this.channels = new Resource$Channels(this.context); - this.chromeosdevices = new Resource$Chromeosdevices(this.context); - this.customers = new Resource$Customers(this.context); - this.domainAliases = new Resource$Domainaliases(this.context); - this.domains = new Resource$Domains(this.context); - this.groups = new Resource$Groups(this.context); - this.members = new Resource$Members(this.context); - this.mobiledevices = new Resource$Mobiledevices(this.context); - this.notifications = new Resource$Notifications(this.context); - this.orgunits = new Resource$Orgunits(this.context); - this.privileges = new Resource$Privileges(this.context); - this.resources = new Resource$Resources(this.context); - this.roleAssignments = new Resource$Roleassignments(this.context); - this.roles = new Resource$Roles(this.context); - this.schemas = new Resource$Schemas(this.context); - this.tokens = new Resource$Tokens(this.context); - this.users = new Resource$Users(this.context); - this.verificationCodes = new Resource$Verificationcodes(this.context); } - } - admin_directory_v1.Admin = Admin; - class Resource$Asps { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146900,26 +137704,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey', 'codeId'], - pathParams: ['codeId', 'userKey'], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146930,26 +137736,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey', 'codeId'], - pathParams: ['codeId', 'userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146960,32 +137768,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Asps = Resource$Asps; - class Resource$Channels { - constructor(context) { - this.context = context; - } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146996,31 +137800,32 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/admin/directory_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_directory_v1.Resource$Channels = Resource$Channels; - class Resource$Chromeosdevices { + compute_v1.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { constructor(context) { this.context = context; } - action(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147033,26 +137838,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147065,26 +137870,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147097,26 +137902,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/chromeos').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDevicesToOu(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147129,26 +137934,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147161,26 +137966,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147193,63 +137998,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_directory_v1.Resource$Chromeosdevices = Resource$Chromeosdevices; - class Resource$Customers { + compute_v1.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['customerKey'], - pathParams: ['customerKey'], - 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147260,26 +138036,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customerKey'], - pathParams: ['customerKey'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147290,31 +138068,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerKey'], - pathParams: ['customerKey'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Customers = Resource$Customers; - class Resource$Domainaliases { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147327,26 +138100,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'domainAliasName'], - pathParams: ['customer', 'domainAliasName'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147359,26 +138132,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer', 'domainAliasName'], - pathParams: ['customer', 'domainAliasName'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147391,25 +138164,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147422,32 +138196,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_directory_v1.Resource$Domainaliases = Resource$Domainaliases; - class Resource$Domains { + compute_v1.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147458,27 +138234,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['customer', 'domainName'], - pathParams: ['customer', 'domainName'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147489,27 +138266,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer', 'domainName'], - pathParams: ['customer', 'domainName'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147520,26 +138298,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147550,33 +138330,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Domains = Resource$Domains; - class Resource$Groups { - constructor(context) { - this.context = context; - this.aliases = new Resource$Groups$Aliases(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147587,26 +138362,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147617,26 +138394,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147647,26 +138426,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147677,26 +138458,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147707,26 +138490,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147737,31 +138528,25 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Groups = Resource$Groups; - class Resource$Groups$Aliases { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147774,22 +138559,23 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey', 'alias'], - pathParams: ['alias', 'groupKey'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -147805,22 +138591,23 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -147836,32 +138623,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Groups$Aliases = Resource$Groups$Aliases; - class Resource$Members { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147872,27 +138655,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147903,26 +138693,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hasMember(paramsOrCallback, optionsOrCallback, callback) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147935,27 +138725,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147966,25 +138757,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -147996,26 +138788,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148026,27 +138820,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148057,34 +138852,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Members = Resource$Members; - class Resource$Mobiledevices { - constructor(context) { - this.context = context; - } - action(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148095,26 +138882,25 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148127,26 +138913,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148159,26 +138945,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148191,32 +138977,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/devices/mobile').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Mobiledevices = Resource$Mobiledevices; - class Resource$Notifications { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148229,26 +139009,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'notificationId'], - pathParams: ['customer', 'notificationId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148261,26 +139041,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'notificationId'], - pathParams: ['customer', 'notificationId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148293,25 +139073,32 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/notifications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148324,26 +139111,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'notificationId'], - pathParams: ['customer', 'notificationId'], + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148356,33 +139143,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'notificationId'], - pathParams: ['customer', 'notificationId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_directory_v1.Resource$Notifications = Resource$Notifications; - class Resource$Orgunits { + compute_v1.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148393,27 +139181,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148424,27 +139213,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148455,26 +139245,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148485,26 +139277,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148515,27 +139309,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148546,33 +139341,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_directory_v1.Resource$Orgunits = Resource$Orgunits; - class Resource$Privileges { + compute_v1.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148583,41 +139379,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/roles/ALL/privileges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Privileges = Resource$Privileges; - class Resource$Resources { - constructor(context) { - this.context = context; - this.buildings = new Resource$Resources$Buildings(this.context); - this.calendars = new Resource$Resources$Calendars(this.context); - this.features = new Resource$Resources$Features(this.context); - } - } - admin_directory_v1.Resource$Resources = Resource$Resources; - class Resource$Resources$Buildings { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148630,26 +139411,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148662,26 +139443,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148694,26 +139475,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148726,128 +139507,131 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Resources$Buildings = Resource$Resources$Buildings; - class Resource$Resources$Calendars { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + createInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148860,90 +139644,92 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148956,26 +139742,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148988,32 +139774,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Resources$Calendars = Resource$Resources$Calendars; - class Resource$Resources$Features { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149026,26 +139806,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listErrors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149058,87 +139838,89 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -149154,96 +139936,92 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rename(paramsOrCallback, optionsOrCallback, callback) { + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer', 'oldName'], - pathParams: ['customer', 'oldName'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Resources$Features = Resource$Resources$Features; - class Resource$Roleassignments { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149256,129 +140034,133 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'roleAssignmentId'], - pathParams: ['customer', 'roleAssignmentId'], + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'roleAssignmentId'], - pathParams: ['customer', 'roleAssignmentId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_directory_v1.Resource$Roleassignments = Resource$Roleassignments; - class Resource$Roles { + compute_v1.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149389,26 +140171,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149419,26 +140203,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149449,26 +140235,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149479,26 +140267,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149509,26 +140305,34 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regionnetworkendpointgroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149539,32 +140343,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Roles = Resource$Roles; - class Resource$Schemas { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149575,27 +140375,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149606,27 +140407,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149637,56 +140439,67 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnetworkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149697,27 +140510,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cloneRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149728,33 +140542,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Schemas = Resource$Schemas; - class Resource$Tokens { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149765,26 +140574,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userKey', 'clientId'], - pathParams: ['clientId', 'userKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149795,124 +140606,127 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey', 'clientId'], - pathParams: ['clientId', 'userKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Tokens = Resource$Tokens; - class Resource$Users { - constructor(context) { - this.context = context; - this.aliases = new Resource$Users$Aliases(this.context); - this.photos = new Resource$Users$Photos(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149923,26 +140737,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149953,26 +140769,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - makeAdmin(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -149983,26 +140801,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/makeAdmin').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -150013,26 +140833,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -150043,56 +140865,61 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -150103,93 +140930,98 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Users = Resource$Users; - class Resource$Users$Aliases { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey', 'alias'], - pathParams: ['alias', 'userKey'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150202,25 +141034,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150233,31 +141066,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Users$Aliases = Resource$Users$Aliases; - class Resource$Users$Photos { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150270,26 +141098,28 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -150300,25 +141130,32 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150331,25 +141168,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150362,31 +141200,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Users$Photos = Resource$Users$Photos; - class Resource$Verificationcodes { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150399,26 +141232,26 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/users/{userKey}/verificationCodes/generate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidate(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150431,28 +141264,33 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/users/{userKey}/verificationCodes/invalidate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + compute_v1.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -150463,96 +141301,61 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/verificationCodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Verificationcodes = Resource$Verificationcodes; -})(admin_directory_v1 = exports.admin_directory_v1 || (exports.admin_directory_v1 = {})); -//# sourceMappingURL=directory_v1.js.map - -/***/ }), -/* 424 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudshell_v1alpha1 = 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 = __webpack_require__(927); -var cloudshell_v1alpha1; -(function (cloudshell_v1alpha1) { - /** - * Cloud Shell API - * - * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. - * - * @example - * const {google} = require('googleapis'); - * const cloudshell = google.cloudshell('v1alpha1'); - * - * @namespace cloudshell - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Cloudshell - */ - class Cloudshell { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.users = new Resource$Users(this.context); - } - } - cloudshell_v1alpha1.Cloudshell = Cloudshell; - class Resource$Users { - constructor(context) { - this.context = context; - this.environments = new Resource$Users$Environments(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudshell_v1alpha1.Resource$Users = Resource$Users; - class Resource$Users$Environments { + compute_v1.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { constructor(context) { this.context = context; - this.publicKeys = new Resource$Users$Environments$Publickeys(this.context); } - authorize(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150565,22 +141368,23 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -150596,25 +141400,26 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150627,25 +141432,26 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150658,31 +141464,26 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudshell_v1alpha1.Resource$Users$Environments = Resource$Users$Environments; - class Resource$Users$Environments$Publickeys { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150695,24 +141496,31 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/publicKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -150726,531 +141534,28 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - cloudshell_v1alpha1.Resource$Users$Environments$Publickeys = Resource$Users$Environments$Publickeys; -})(cloudshell_v1alpha1 = exports.cloudshell_v1alpha1 || (exports.cloudshell_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 425 */, -/* 426 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Cipher base API. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); - -module.exports = forge.cipher = forge.cipher || {}; - -// registered algorithms -forge.cipher.algorithms = forge.cipher.algorithms || {}; - -/** - * Creates a cipher object that can be used to encrypt data using the given - * algorithm and key. The algorithm may be provided as a string value for a - * previously registered algorithm or it may be given as a cipher algorithm - * API object. - * - * @param algorithm the algorithm to use, either a string or an algorithm API - * object. - * @param key the key to use, as a binary-encoded string of bytes or a - * byte buffer. - * - * @return the cipher. - */ -forge.cipher.createCipher = function(algorithm, key) { - var api = algorithm; - if(typeof api === 'string') { - api = forge.cipher.getAlgorithm(api); - if(api) { - api = api(); - } - } - if(!api) { - throw new Error('Unsupported algorithm: ' + algorithm); - } - - // assume block cipher - return new forge.cipher.BlockCipher({ - algorithm: api, - key: key, - decrypt: false - }); -}; - -/** - * Creates a decipher object that can be used to decrypt data using the given - * algorithm and key. The algorithm may be provided as a string value for a - * previously registered algorithm or it may be given as a cipher algorithm - * API object. - * - * @param algorithm the algorithm to use, either a string or an algorithm API - * object. - * @param key the key to use, as a binary-encoded string of bytes or a - * byte buffer. - * - * @return the cipher. - */ -forge.cipher.createDecipher = function(algorithm, key) { - var api = algorithm; - if(typeof api === 'string') { - api = forge.cipher.getAlgorithm(api); - if(api) { - api = api(); - } - } - if(!api) { - throw new Error('Unsupported algorithm: ' + algorithm); - } - - // assume block cipher - return new forge.cipher.BlockCipher({ - algorithm: api, - key: key, - decrypt: true - }); -}; - -/** - * Registers an algorithm by name. If the name was already registered, the - * algorithm API object will be overwritten. - * - * @param name the name of the algorithm. - * @param algorithm the algorithm API object. - */ -forge.cipher.registerAlgorithm = function(name, algorithm) { - name = name.toUpperCase(); - forge.cipher.algorithms[name] = algorithm; -}; - -/** - * Gets a registered algorithm by name. - * - * @param name the name of the algorithm. - * - * @return the algorithm, if found, null if not. - */ -forge.cipher.getAlgorithm = function(name) { - name = name.toUpperCase(); - if(name in forge.cipher.algorithms) { - return forge.cipher.algorithms[name]; - } - return null; -}; - -var BlockCipher = forge.cipher.BlockCipher = function(options) { - this.algorithm = options.algorithm; - this.mode = this.algorithm.mode; - this.blockSize = this.mode.blockSize; - this._finish = false; - this._input = null; - this.output = null; - this._op = options.decrypt ? this.mode.decrypt : this.mode.encrypt; - this._decrypt = options.decrypt; - this.algorithm.initialize(options); -}; - -/** - * Starts or restarts the encryption or decryption process, whichever - * was previously configured. - * - * For non-GCM mode, the IV may be a binary-encoded string of bytes, an array - * of bytes, a byte buffer, or an array of 32-bit integers. If the IV is in - * bytes, then it must be Nb (16) bytes in length. If the IV is given in as - * 32-bit integers, then it must be 4 integers long. - * - * Note: an IV is not required or used in ECB mode. - * - * For GCM-mode, the IV must be given as a binary-encoded string of bytes or - * a byte buffer. The number of bytes should be 12 (96 bits) as recommended - * by NIST SP-800-38D but another length may be given. - * - * @param options the options to use: - * iv the initialization vector to use as a binary-encoded string of - * bytes, null to reuse the last ciphered block from a previous - * update() (this "residue" method is for legacy support only). - * additionalData additional authentication data as a binary-encoded - * string of bytes, for 'GCM' mode, (default: none). - * tagLength desired length of authentication tag, in bits, for - * 'GCM' mode (0-128, default: 128). - * tag the authentication tag to check if decrypting, as a - * binary-encoded string of bytes. - * output the output the buffer to write to, null to create one. - */ -BlockCipher.prototype.start = function(options) { - options = options || {}; - var opts = {}; - for(var key in options) { - opts[key] = options[key]; - } - opts.decrypt = this._decrypt; - this._finish = false; - this._input = forge.util.createBuffer(); - this.output = options.output || forge.util.createBuffer(); - this.mode.start(opts); -}; - -/** - * Updates the next block according to the cipher mode. - * - * @param input the buffer to read from. - */ -BlockCipher.prototype.update = function(input) { - if(input) { - // input given, so empty it into the input buffer - this._input.putBuffer(input); - } - - // do cipher operation until it needs more input and not finished - while(!this._op.call(this.mode, this._input, this.output, this._finish) && - !this._finish) {} - - // free consumed memory from input buffer - this._input.compact(); -}; - -/** - * Finishes encrypting or decrypting. - * - * @param pad a padding function to use in CBC mode, null for default, - * signature(blockSize, buffer, decrypt). - * - * @return true if successful, false on error. - */ -BlockCipher.prototype.finish = function(pad) { - // backwards-compatibility w/deprecated padding API - // Note: will overwrite padding functions even after another start() call - if(pad && (this.mode.name === 'ECB' || this.mode.name === 'CBC')) { - this.mode.pad = function(input) { - return pad(this.blockSize, input, false); - }; - this.mode.unpad = function(output) { - return pad(this.blockSize, output, true); - }; - } - - // build options for padding and afterFinish functions - var options = {}; - options.decrypt = this._decrypt; - - // get # of bytes that won't fill a block - options.overflow = this._input.length() % this.blockSize; - - if(!this._decrypt && this.mode.pad) { - if(!this.mode.pad(this._input, options)) { - return false; - } - } - - // do final update - this._finish = true; - this.update(); - - if(this._decrypt && this.mode.unpad) { - if(!this.mode.unpad(this.output, options)) { - return false; - } - } - - if(this.mode.afterFinish) { - if(!this.mode.afterFinish(this.output, options)) { - return false; - } - } - - return true; -}; - - -/***/ }), -/* 427 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -// Older verions of Node.js might not have `util.getSystemErrorName()`. -// In that case, fall back to a deprecated internal. -const util = __webpack_require__(669); - -let uv; - -if (typeof util.getSystemErrorName === 'function') { - module.exports = util.getSystemErrorName; -} else { - try { - uv = process.binding('uv'); - - if (typeof uv.errname !== 'function') { - throw new TypeError('uv.errname is not a function'); - } - } catch (err) { - console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err); - uv = null; - } - - module.exports = code => errname(uv, code); -} - -// Used for testing the fallback behavior -module.exports.__test__ = errname; - -function errname(uv, code) { - if (uv) { - return uv.errname(code); - } - - if (!(code < 0)) { - throw new Error('err >= 0'); - } - - return `Unknown system error ${code}`; -} - - - -/***/ }), -/* 428 */, -/* 429 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -exports.default = _default; - -/***/ }), -/* 430 */, -/* 431 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const os = __importStar(__webpack_require__(87)); -/** - * Commands - * - * Command Format: - * ::name key=value,key=value::message - * - * Examples: - * ::warning::This is the message - * ::set-env name=MY_VAR::some value - */ -function issueCommand(command, properties, message) { - const cmd = new Command(command, properties, message); - process.stdout.write(cmd.toString() + os.EOL); -} -exports.issueCommand = issueCommand; -function issue(name, message = '') { - issueCommand(name, {}, message); -} -exports.issue = issue; -const CMD_STRING = '::'; -class Command { - constructor(command, properties, message) { - if (!command) { - command = 'missing.command'; - } - this.command = command; - this.properties = properties; - this.message = message; - } - toString() { - let cmdStr = CMD_STRING + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += ' '; - let first = true; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - if (first) { - first = false; - } - else { - cmdStr += ','; - } - cmdStr += `${key}=${escapeProperty(val)}`; - } - } + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cmdStr += `${CMD_STRING}${escapeData(this.message)}`; - return cmdStr; - } -} -/** - * Sanitizes an input into a string so it can be passed into issueCommand safely - * @param input input to sanitize into a string - */ -function toCommandValue(input) { - if (input === null || input === undefined) { - return ''; - } - else if (typeof input === 'string' || input instanceof String) { - return input; - } - return JSON.stringify(input); -} -exports.toCommandValue = toCommandValue; -function escapeData(s) { - return toCommandValue(s) - .replace(/%/g, '%25') - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A'); -} -function escapeProperty(s) { - return toCommandValue(s) - .replace(/%/g, '%25') - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A') - .replace(/:/g, '%3A') - .replace(/,/g, '%2C'); -} -//# sourceMappingURL=command.js.map - -/***/ }), -/* 432 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.safebrowsing = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v4_1 = __webpack_require__(662); -exports.VERSIONS = { - v4: v4_1.safebrowsing_v4.Safebrowsing, -}; -function safebrowsing(versionOrOptions) { - return googleapis_common_1.getAPI('safebrowsing', versionOrOptions, exports.VERSIONS, this); -} -exports.safebrowsing = safebrowsing; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 433 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adexchangebuyer_v1_4 = 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 = __webpack_require__(927); -var adexchangebuyer_v1_4; -(function (adexchangebuyer_v1_4) { - /** - * Ad Exchange Buyer API - * - * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. - * - * @example - * const {google} = require('googleapis'); - * const adexchangebuyer = google.adexchangebuyer('v1.4'); - * - * @namespace adexchangebuyer - * @type {Function} - * @version v1.4 - * @variation v1.4 - * @param {object=} options Options for Adexchangebuyer - */ - class Adexchangebuyer { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - this.billingInfo = new Resource$Billinginfo(this.context); - this.budget = new Resource$Budget(this.context); - this.creatives = new Resource$Creatives(this.context); - this.marketplacedeals = new Resource$Marketplacedeals(this.context); - this.marketplacenotes = new Resource$Marketplacenotes(this.context); - this.marketplaceprivateauction = new Resource$Marketplaceprivateauction(this.context); - this.performanceReport = new Resource$Performancereport(this.context); - this.pretargetingConfig = new Resource$Pretargetingconfig(this.context); - this.products = new Resource$Products(this.context); - this.proposals = new Resource$Proposals(this.context); - this.pubprofiles = new Resource$Pubprofiles(this.context); - } - } - adexchangebuyer_v1_4.Adexchangebuyer = Adexchangebuyer; - class Resource$Accounts { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151261,26 +141566,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151291,26 +141598,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151321,26 +141630,34 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151351,32 +141668,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Accounts = Resource$Accounts; - class Resource$Billinginfo { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151387,26 +141700,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151417,32 +141732,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/billinginfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Billinginfo = Resource$Billinginfo; - class Resource$Budget { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151453,27 +141764,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151484,27 +141796,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151515,32 +141828,32 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer_v1_4.Resource$Budget = Resource$Budget; - class Resource$Creatives { + compute_v1.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { constructor(context) { this.context = context; } - addDeal(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151553,27 +141866,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], - pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151584,27 +141898,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151615,26 +141930,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -151645,25 +141962,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDeals(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151676,26 +141994,32 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/listDeals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeDeal(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151708,32 +142032,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], - pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Creatives = Resource$Creatives; - class Resource$Marketplacedeals { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151746,23 +142064,23 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/delete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -151778,23 +142096,23 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/insert').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -151810,25 +142128,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151841,64 +142160,59 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/update').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Marketplacedeals = Resource$Marketplacedeals; - class Resource$Marketplacenotes { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/notes/insert').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151911,31 +142225,32 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer_v1_4.Resource$Marketplacenotes = Resource$Marketplacenotes; - class Resource$Marketplaceprivateauction { + compute_v1.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { constructor(context) { this.context = context; } - updateproposal(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151948,32 +142263,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/privateauction/{privateAuctionId}/updateproposal').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['privateAuctionId'], - pathParams: ['privateAuctionId'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Marketplaceprivateauction = Resource$Marketplaceprivateauction; - class Resource$Performancereport { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151986,31 +142295,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/performancereport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'endDateTime', 'startDateTime'], - pathParams: [], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Performancereport = Resource$Performancereport; - class Resource$Pretargetingconfig { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152023,26 +142327,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152055,26 +142359,32 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152087,25 +142397,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152118,25 +142429,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152149,26 +142461,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152181,33 +142493,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Pretargetingconfig = Resource$Pretargetingconfig; - class Resource$Products { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152218,26 +142525,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['productId'], - pathParams: ['productId'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152248,32 +142557,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/products/search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Products = Resource$Products; - class Resource$Proposals { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152284,26 +142589,34 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152314,26 +142627,27 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/proposals/insert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152344,26 +142658,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], - pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -152375,25 +142689,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/proposals/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setupcomplete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152406,27 +142721,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/setupcomplete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152437,33 +142753,28 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], - pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Proposals = Resource$Proposals; - class Resource$Pubprofiles { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152474,145 +142785,26 @@ var adexchangebuyer_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.4/publisher/{accountId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Pubprofiles = Resource$Pubprofiles; -})(adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_4 || (exports.adexchangebuyer_v1_4 = {})); -//# sourceMappingURL=v1.4.js.map - -/***/ }), -/* 434 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _v = _interopRequireDefault(__webpack_require__(976)); - -var _md = _interopRequireDefault(__webpack_require__(897)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports.default = _default; - -/***/ }), -/* 435 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _v = _interopRequireDefault(__webpack_require__(976)); - -var _sha = _interopRequireDefault(__webpack_require__(267)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = v5; -exports.default = _default; - -/***/ }), -/* 436 */, -/* 437 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.games_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 = __webpack_require__(927); -var games_v1; -(function (games_v1) { - /** - * Google Play Game Services API - * - * The API for Google Play Game Services. - * - * @example - * const {google} = require('googleapis'); - * const games = google.games('v1'); - * - * @namespace games - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Games - */ - class Games { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.achievementDefinitions = new Resource$Achievementdefinitions(this.context); - this.achievements = new Resource$Achievements(this.context); - this.applications = new Resource$Applications(this.context); - this.events = new Resource$Events(this.context); - this.leaderboards = new Resource$Leaderboards(this.context); - this.metagame = new Resource$Metagame(this.context); - this.players = new Resource$Players(this.context); - this.pushtokens = new Resource$Pushtokens(this.context); - this.revisions = new Resource$Revisions(this.context); - this.rooms = new Resource$Rooms(this.context); - this.scores = new Resource$Scores(this.context); - this.snapshots = new Resource$Snapshots(this.context); - this.turnBasedMatches = new Resource$Turnbasedmatches(this.context); - } - } - games_v1.Games = Games; - class Resource$Achievementdefinitions { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152625,31 +142817,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Achievementdefinitions = Resource$Achievementdefinitions; - class Resource$Achievements { - constructor(context) { - this.context = context; - } - increment(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152662,25 +142849,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/increment').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['achievementId', 'stepsToIncrement'], - pathParams: ['achievementId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152693,25 +142881,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}/achievements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['playerId'], - pathParams: ['playerId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reveal(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152724,25 +142913,32 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/reveal').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setStepsAtLeast(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152755,25 +142951,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/setStepsAtLeast').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['achievementId', 'steps'], - pathParams: ['achievementId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unlock(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152786,25 +142983,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/unlock').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMultiple(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152817,32 +143015,28 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/updateMultiple').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Achievements = Resource$Achievements; - class Resource$Applications { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152853,25 +143047,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - played(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152884,25 +143079,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/played').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152915,31 +143111,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/{applicationId}/verify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Applications = Resource$Applications; - class Resource$Events { - constructor(context) { - this.context = context; - } - listByPlayer(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152952,25 +143143,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDefinitions(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152983,26 +143175,34 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/eventDefinitions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - record(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153013,31 +143213,25 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Events = Resource$Events; - class Resource$Leaderboards { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153049,27 +143243,27 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153080,31 +143274,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Leaderboards = Resource$Leaderboards; - class Resource$Metagame { - constructor(context) { - this.context = context; - } - getMetagameConfig(paramsOrCallback, optionsOrCallback, callback) { + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153117,25 +143306,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/metagameConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listCategoriesByPlayer(paramsOrCallback, optionsOrCallback, callback) { + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153148,31 +143338,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}/categories/{collection}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['playerId', 'collection'], - pathParams: ['collection', 'playerId'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Metagame = Resource$Metagame; - class Resource$Players { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153184,22 +143369,23 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['playerId'], - pathParams: ['playerId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -153214,33 +143400,27 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/me/players/{collection}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['collection'], - pathParams: ['collection'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Players = Resource$Players; - class Resource$Pushtokens { - constructor(context) { - this.context = context; - } - remove(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153251,27 +143431,27 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/pushtokens/remove').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153282,31 +143462,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/pushtokens').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Pushtokens = Resource$Pushtokens; - class Resource$Revisions { - constructor(context) { - this.context = context; - } - check(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153318,31 +143493,32 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/revisions/check').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['clientRevision'], - pathParams: [], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - games_v1.Resource$Revisions = Resource$Revisions; - class Resource$Rooms { + compute_v1.Resource$Routers = Resource$Routers; + class Resource$Routes { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153354,25 +143530,25 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/create').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - decline(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153384,25 +143560,25 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/{roomId}/decline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['roomId'], - pathParams: ['roomId'], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153414,25 +143590,25 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/{roomId}/dismiss').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['roomId'], - pathParams: ['roomId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -153444,56 +143620,33 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/{roomId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['roomId'], - pathParams: ['roomId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - join(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/{roomId}/join').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['roomId'], - pathParams: ['roomId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + compute_v1.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; } - leave(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153504,26 +143657,28 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/{roomId}/leave').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['roomId'], - pathParams: ['roomId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153534,25 +143689,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153565,32 +143721,28 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/rooms/{roomId}/reportstatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['roomId'], - pathParams: ['roomId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Rooms = Resource$Rooms; - class Resource$Scores { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153601,27 +143753,28 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['playerId', 'leaderboardId', 'timeSpan'], - pathParams: ['leaderboardId', 'playerId', 'timeSpan'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153632,26 +143785,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/games/v1/leaderboards/{leaderboardId}/scores/{collection}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['leaderboardId', 'collection', 'timeSpan'], - pathParams: ['collection', 'leaderboardId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listWindow(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153664,27 +143817,27 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1/leaderboards/{leaderboardId}/window/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId', 'collection', 'timeSpan'], - pathParams: ['collection', 'leaderboardId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153695,63 +143848,60 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}/scores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['leaderboardId', 'score'], - pathParams: ['leaderboardId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submitMultiple(paramsOrCallback, optionsOrCallback, callback) { + listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards/scores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Scores = Resource$Scores; - class Resource$Snapshots { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153762,26 +143912,28 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['snapshotId'], - pathParams: ['snapshotId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153792,31 +143944,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['playerId'], - pathParams: ['playerId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Snapshots = Resource$Snapshots; - class Resource$Turnbasedmatches { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153829,25 +143976,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153860,25 +144008,32 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/create').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - decline(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153891,25 +144046,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/decline').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153922,25 +144078,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - finish(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153953,25 +144110,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/finish').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153984,25 +144142,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - join(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154015,25 +144174,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/join').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - leave(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154046,25 +144206,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/leave').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - leaveTurn(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154077,25 +144238,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/leaveTurn').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matchId', 'matchVersion'], - pathParams: ['matchId'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154108,25 +144270,26 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rematch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154139,27 +144302,33 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/rematch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + compute_v1.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -154170,25 +144339,57 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/sync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - takeTurn(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154201,960 +144402,54 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/turn').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matchId'], - pathParams: ['matchId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Turnbasedmatches = Resource$Turnbasedmatches; -})(games_v1 = exports.games_v1 || (exports.games_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 438 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.bigtableadmin = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(103); -const v2_1 = __webpack_require__(226); -exports.VERSIONS = { - v1: v1_1.bigtableadmin_v1.Bigtableadmin, - v2: v2_1.bigtableadmin_v2.Bigtableadmin, -}; -function bigtableadmin(versionOrOptions) { - return googleapis_common_1.getAPI('bigtableadmin', versionOrOptions, exports.VERSIONS, this); -} -exports.bigtableadmin = bigtableadmin; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 439 */, -/* 440 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.oauth2 = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(980); -exports.VERSIONS = { - v2: v2_1.oauth2_v2.Oauth2, -}; -function oauth2(versionOrOptions) { - return googleapis_common_1.getAPI('oauth2', versionOrOptions, exports.VERSIONS, this); -} -exports.oauth2 = oauth2; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 441 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.factchecktools = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1alpha1_1 = __webpack_require__(690); -exports.VERSIONS = { - v1alpha1: v1alpha1_1.factchecktools_v1alpha1.Factchecktools, -}; -function factchecktools(versionOrOptions) { - return googleapis_common_1.getAPI('factchecktools', versionOrOptions, exports.VERSIONS, this); -} -exports.factchecktools = factchecktools; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 442 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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. -/*! THIS FILE IS AUTO-GENERATED */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GeneratedAPIs = exports.APIS = void 0; -const abusiveexperiencereport = __webpack_require__(81); -const acceleratedmobilepageurl = __webpack_require__(514); -const accessapproval = __webpack_require__(132); -const accesscontextmanager = __webpack_require__(90); -const adexchangebuyer = __webpack_require__(666); -const adexchangebuyer2 = __webpack_require__(728); -const adexperiencereport = __webpack_require__(817); -const admin = __webpack_require__(527); -const admob = __webpack_require__(492); -const adsense = __webpack_require__(564); -const adsensehost = __webpack_require__(58); -const alertcenter = __webpack_require__(933); -const analytics = __webpack_require__(989); -const analyticsreporting = __webpack_require__(402); -const androiddeviceprovisioning = __webpack_require__(269); -const androidenterprise = __webpack_require__(703); -const androidmanagement = __webpack_require__(116); -const androidpublisher = __webpack_require__(300); -const appengine = __webpack_require__(319); -const appsactivity = __webpack_require__(333); -const bigquery = __webpack_require__(275); -const bigqueryconnection = __webpack_require__(478); -const bigquerydatatransfer = __webpack_require__(606); -const bigqueryreservation = __webpack_require__(970); -const bigtableadmin = __webpack_require__(438); -const billingbudgets = __webpack_require__(252); -const binaryauthorization = __webpack_require__(193); -const blogger = __webpack_require__(609); -const books = __webpack_require__(13); -const calendar = __webpack_require__(590); -const chat = __webpack_require__(734); -const civicinfo = __webpack_require__(658); -const classroom = __webpack_require__(829); -const cloudasset = __webpack_require__(318); -const cloudbilling = __webpack_require__(395); -const cloudbuild = __webpack_require__(743); -const clouddebugger = __webpack_require__(458); -const clouderrorreporting = __webpack_require__(190); -const cloudfunctions = __webpack_require__(844); -const cloudidentity = __webpack_require__(51); -const cloudiot = __webpack_require__(28); -const cloudkms = __webpack_require__(615); -const cloudprofiler = __webpack_require__(624); -const cloudresourcemanager = __webpack_require__(107); -const cloudscheduler = __webpack_require__(316); -const cloudsearch = __webpack_require__(43); -const cloudshell = __webpack_require__(83); -const cloudtasks = __webpack_require__(93); -const cloudtrace = __webpack_require__(461); -const composer = __webpack_require__(677); -const compute = __webpack_require__(878); -const container = __webpack_require__(751); -const containeranalysis = __webpack_require__(659); -const content = __webpack_require__(870); -const customsearch = __webpack_require__(119); -const datacatalog = __webpack_require__(648); -const dataflow = __webpack_require__(652); -const datafusion = __webpack_require__(688); -const dataproc = __webpack_require__(82); -const datastore = __webpack_require__(445); -const deploymentmanager = __webpack_require__(735); -const dfareporting = __webpack_require__(510); -const dialogflow = __webpack_require__(392); -const digitalassetlinks = __webpack_require__(832); -const discovery = __webpack_require__(184); -const displayvideo = __webpack_require__(647); -const dlp = __webpack_require__(937); -const dns = __webpack_require__(773); -const docs = __webpack_require__(277); -const domainsrdap = __webpack_require__(693); -const doubleclickbidmanager = __webpack_require__(150); -const doubleclicksearch = __webpack_require__(15); -const drive = __webpack_require__(329); -const driveactivity = __webpack_require__(480); -const factchecktools = __webpack_require__(441); -const fcm = __webpack_require__(120); -const file = __webpack_require__(661); -const firebase = __webpack_require__(294); -const firebasedynamiclinks = __webpack_require__(808); -const firebasehosting = __webpack_require__(148); -const firebaseml = __webpack_require__(279); -const firebaserules = __webpack_require__(821); -const firestore = __webpack_require__(68); -const fitness = __webpack_require__(811); -const games = __webpack_require__(312); -const gamesConfiguration = __webpack_require__(892); -const gamesManagement = __webpack_require__(580); -const gameservices = __webpack_require__(91); -const genomics = __webpack_require__(667); -const gmail = __webpack_require__(935); -const groupsmigration = __webpack_require__(104); -const groupssettings = __webpack_require__(595); -const healthcare = __webpack_require__(518); -const homegraph = __webpack_require__(504); -const iam = __webpack_require__(404); -const iamcredentials = __webpack_require__(46); -const iap = __webpack_require__(181); -const identitytoolkit = __webpack_require__(219); -const indexing = __webpack_require__(865); -const jobs = __webpack_require__(198); -const kgsearch = __webpack_require__(321); -const language = __webpack_require__(578); -const libraryagent = __webpack_require__(452); -const licensing = __webpack_require__(390); -const lifesciences = __webpack_require__(393); -const logging = __webpack_require__(685); -const managedidentities = __webpack_require__(888); -const manufacturers = __webpack_require__(926); -const memcache = __webpack_require__(70); -const ml = __webpack_require__(188); -const monitoring = __webpack_require__(295); -const networkmanagement = __webpack_require__(571); -const oauth2 = __webpack_require__(440); -const osconfig = __webpack_require__(366); -const oslogin = __webpack_require__(532); -const pagespeedonline = __webpack_require__(6); -const people = __webpack_require__(40); -const playcustomapp = __webpack_require__(956); -const plus = __webpack_require__(864); -const policytroubleshooter = __webpack_require__(317); -const poly = __webpack_require__(576); -const prod_tt_sasportal = __webpack_require__(209); -const pubsub = __webpack_require__(144); -const recommender = __webpack_require__(268); -const redis = __webpack_require__(623); -const remotebuildexecution = __webpack_require__(491); -const reseller = __webpack_require__(272); -const run = __webpack_require__(711); -const runtimeconfig = __webpack_require__(399); -const safebrowsing = __webpack_require__(432); -const sasportal = __webpack_require__(925); -const script = __webpack_require__(678); -const searchconsole = __webpack_require__(797); -const secretmanager = __webpack_require__(330); -const securitycenter = __webpack_require__(215); -const serviceconsumermanagement = __webpack_require__(967); -const servicecontrol = __webpack_require__(708); -const servicedirectory = __webpack_require__(522); -const servicemanagement = __webpack_require__(367); -const servicenetworking = __webpack_require__(610); -const serviceusage = __webpack_require__(95); -const sheets = __webpack_require__(887); -const siteVerification = __webpack_require__(960); -const slides = __webpack_require__(874); -const sourcerepo = __webpack_require__(383); -const spanner = __webpack_require__(645); -const speech = __webpack_require__(591); -const sql = __webpack_require__(540); -const storage = __webpack_require__(769); -const storagetransfer = __webpack_require__(325); -const streetviewpublish = __webpack_require__(199); -const tagmanager = __webpack_require__(949); -const tasks = __webpack_require__(495); -const testing = __webpack_require__(681); -const texttospeech = __webpack_require__(569); -const toolresults = __webpack_require__(602); -const tpu = __webpack_require__(766); -const translate = __webpack_require__(971); -const vault = __webpack_require__(574); -const verifiedaccess = __webpack_require__(561); -const videointelligence = __webpack_require__(493); -const vision = __webpack_require__(607); -const webfonts = __webpack_require__(965); -const webmasters = __webpack_require__(706); -const websecurityscanner = __webpack_require__(849); -const youtube = __webpack_require__(557); -const youtubeAnalytics = __webpack_require__(266); -const youtubereporting = __webpack_require__(879); -exports.APIS = { - abusiveexperiencereport: abusiveexperiencereport.VERSIONS, - acceleratedmobilepageurl: acceleratedmobilepageurl.VERSIONS, - accessapproval: accessapproval.VERSIONS, - accesscontextmanager: accesscontextmanager.VERSIONS, - adexchangebuyer: adexchangebuyer.VERSIONS, - adexchangebuyer2: adexchangebuyer2.VERSIONS, - adexperiencereport: adexperiencereport.VERSIONS, - admin: admin.VERSIONS, - admob: admob.VERSIONS, - adsense: adsense.VERSIONS, - adsensehost: adsensehost.VERSIONS, - alertcenter: alertcenter.VERSIONS, - analytics: analytics.VERSIONS, - analyticsreporting: analyticsreporting.VERSIONS, - androiddeviceprovisioning: androiddeviceprovisioning.VERSIONS, - androidenterprise: androidenterprise.VERSIONS, - androidmanagement: androidmanagement.VERSIONS, - androidpublisher: androidpublisher.VERSIONS, - appengine: appengine.VERSIONS, - appsactivity: appsactivity.VERSIONS, - bigquery: bigquery.VERSIONS, - bigqueryconnection: bigqueryconnection.VERSIONS, - bigquerydatatransfer: bigquerydatatransfer.VERSIONS, - bigqueryreservation: bigqueryreservation.VERSIONS, - bigtableadmin: bigtableadmin.VERSIONS, - billingbudgets: billingbudgets.VERSIONS, - binaryauthorization: binaryauthorization.VERSIONS, - blogger: blogger.VERSIONS, - books: books.VERSIONS, - calendar: calendar.VERSIONS, - chat: chat.VERSIONS, - civicinfo: civicinfo.VERSIONS, - classroom: classroom.VERSIONS, - cloudasset: cloudasset.VERSIONS, - cloudbilling: cloudbilling.VERSIONS, - cloudbuild: cloudbuild.VERSIONS, - clouddebugger: clouddebugger.VERSIONS, - clouderrorreporting: clouderrorreporting.VERSIONS, - cloudfunctions: cloudfunctions.VERSIONS, - cloudidentity: cloudidentity.VERSIONS, - cloudiot: cloudiot.VERSIONS, - cloudkms: cloudkms.VERSIONS, - cloudprofiler: cloudprofiler.VERSIONS, - cloudresourcemanager: cloudresourcemanager.VERSIONS, - cloudscheduler: cloudscheduler.VERSIONS, - cloudsearch: cloudsearch.VERSIONS, - cloudshell: cloudshell.VERSIONS, - cloudtasks: cloudtasks.VERSIONS, - cloudtrace: cloudtrace.VERSIONS, - composer: composer.VERSIONS, - compute: compute.VERSIONS, - container: container.VERSIONS, - containeranalysis: containeranalysis.VERSIONS, - content: content.VERSIONS, - customsearch: customsearch.VERSIONS, - datacatalog: datacatalog.VERSIONS, - dataflow: dataflow.VERSIONS, - datafusion: datafusion.VERSIONS, - dataproc: dataproc.VERSIONS, - datastore: datastore.VERSIONS, - deploymentmanager: deploymentmanager.VERSIONS, - dfareporting: dfareporting.VERSIONS, - dialogflow: dialogflow.VERSIONS, - digitalassetlinks: digitalassetlinks.VERSIONS, - discovery: discovery.VERSIONS, - displayvideo: displayvideo.VERSIONS, - dlp: dlp.VERSIONS, - dns: dns.VERSIONS, - docs: docs.VERSIONS, - domainsrdap: domainsrdap.VERSIONS, - doubleclickbidmanager: doubleclickbidmanager.VERSIONS, - doubleclicksearch: doubleclicksearch.VERSIONS, - drive: drive.VERSIONS, - driveactivity: driveactivity.VERSIONS, - factchecktools: factchecktools.VERSIONS, - fcm: fcm.VERSIONS, - file: file.VERSIONS, - firebase: firebase.VERSIONS, - firebasedynamiclinks: firebasedynamiclinks.VERSIONS, - firebasehosting: firebasehosting.VERSIONS, - firebaseml: firebaseml.VERSIONS, - firebaserules: firebaserules.VERSIONS, - firestore: firestore.VERSIONS, - fitness: fitness.VERSIONS, - games: games.VERSIONS, - gamesConfiguration: gamesConfiguration.VERSIONS, - gamesManagement: gamesManagement.VERSIONS, - gameservices: gameservices.VERSIONS, - genomics: genomics.VERSIONS, - gmail: gmail.VERSIONS, - groupsmigration: groupsmigration.VERSIONS, - groupssettings: groupssettings.VERSIONS, - healthcare: healthcare.VERSIONS, - homegraph: homegraph.VERSIONS, - iam: iam.VERSIONS, - iamcredentials: iamcredentials.VERSIONS, - iap: iap.VERSIONS, - identitytoolkit: identitytoolkit.VERSIONS, - indexing: indexing.VERSIONS, - jobs: jobs.VERSIONS, - kgsearch: kgsearch.VERSIONS, - language: language.VERSIONS, - libraryagent: libraryagent.VERSIONS, - licensing: licensing.VERSIONS, - lifesciences: lifesciences.VERSIONS, - logging: logging.VERSIONS, - managedidentities: managedidentities.VERSIONS, - manufacturers: manufacturers.VERSIONS, - memcache: memcache.VERSIONS, - ml: ml.VERSIONS, - monitoring: monitoring.VERSIONS, - networkmanagement: networkmanagement.VERSIONS, - oauth2: oauth2.VERSIONS, - osconfig: osconfig.VERSIONS, - oslogin: oslogin.VERSIONS, - pagespeedonline: pagespeedonline.VERSIONS, - people: people.VERSIONS, - playcustomapp: playcustomapp.VERSIONS, - plus: plus.VERSIONS, - policytroubleshooter: policytroubleshooter.VERSIONS, - poly: poly.VERSIONS, - prod_tt_sasportal: prod_tt_sasportal.VERSIONS, - pubsub: pubsub.VERSIONS, - recommender: recommender.VERSIONS, - redis: redis.VERSIONS, - remotebuildexecution: remotebuildexecution.VERSIONS, - reseller: reseller.VERSIONS, - run: run.VERSIONS, - runtimeconfig: runtimeconfig.VERSIONS, - safebrowsing: safebrowsing.VERSIONS, - sasportal: sasportal.VERSIONS, - script: script.VERSIONS, - searchconsole: searchconsole.VERSIONS, - secretmanager: secretmanager.VERSIONS, - securitycenter: securitycenter.VERSIONS, - serviceconsumermanagement: serviceconsumermanagement.VERSIONS, - servicecontrol: servicecontrol.VERSIONS, - servicedirectory: servicedirectory.VERSIONS, - servicemanagement: servicemanagement.VERSIONS, - servicenetworking: servicenetworking.VERSIONS, - serviceusage: serviceusage.VERSIONS, - sheets: sheets.VERSIONS, - siteVerification: siteVerification.VERSIONS, - slides: slides.VERSIONS, - sourcerepo: sourcerepo.VERSIONS, - spanner: spanner.VERSIONS, - speech: speech.VERSIONS, - sql: sql.VERSIONS, - storage: storage.VERSIONS, - storagetransfer: storagetransfer.VERSIONS, - streetviewpublish: streetviewpublish.VERSIONS, - tagmanager: tagmanager.VERSIONS, - tasks: tasks.VERSIONS, - testing: testing.VERSIONS, - texttospeech: texttospeech.VERSIONS, - toolresults: toolresults.VERSIONS, - tpu: tpu.VERSIONS, - translate: translate.VERSIONS, - vault: vault.VERSIONS, - verifiedaccess: verifiedaccess.VERSIONS, - videointelligence: videointelligence.VERSIONS, - vision: vision.VERSIONS, - webfonts: webfonts.VERSIONS, - webmasters: webmasters.VERSIONS, - websecurityscanner: websecurityscanner.VERSIONS, - youtube: youtube.VERSIONS, - youtubeAnalytics: youtubeAnalytics.VERSIONS, - youtubereporting: youtubereporting.VERSIONS, -}; -class GeneratedAPIs { - constructor() { - this.abusiveexperiencereport = abusiveexperiencereport.abusiveexperiencereport; - this.acceleratedmobilepageurl = acceleratedmobilepageurl.acceleratedmobilepageurl; - this.accessapproval = accessapproval.accessapproval; - this.accesscontextmanager = accesscontextmanager.accesscontextmanager; - this.adexchangebuyer = adexchangebuyer.adexchangebuyer; - this.adexchangebuyer2 = adexchangebuyer2.adexchangebuyer2; - this.adexperiencereport = adexperiencereport.adexperiencereport; - this.admin = admin.admin; - this.admob = admob.admob; - this.adsense = adsense.adsense; - this.adsensehost = adsensehost.adsensehost; - this.alertcenter = alertcenter.alertcenter; - this.analytics = analytics.analytics; - this.analyticsreporting = analyticsreporting.analyticsreporting; - this.androiddeviceprovisioning = androiddeviceprovisioning.androiddeviceprovisioning; - this.androidenterprise = androidenterprise.androidenterprise; - this.androidmanagement = androidmanagement.androidmanagement; - this.androidpublisher = androidpublisher.androidpublisher; - this.appengine = appengine.appengine; - this.appsactivity = appsactivity.appsactivity; - this.bigquery = bigquery.bigquery; - this.bigqueryconnection = bigqueryconnection.bigqueryconnection; - this.bigquerydatatransfer = bigquerydatatransfer.bigquerydatatransfer; - this.bigqueryreservation = bigqueryreservation.bigqueryreservation; - this.bigtableadmin = bigtableadmin.bigtableadmin; - this.billingbudgets = billingbudgets.billingbudgets; - this.binaryauthorization = binaryauthorization.binaryauthorization; - this.blogger = blogger.blogger; - this.books = books.books; - this.calendar = calendar.calendar; - this.chat = chat.chat; - this.civicinfo = civicinfo.civicinfo; - this.classroom = classroom.classroom; - this.cloudasset = cloudasset.cloudasset; - this.cloudbilling = cloudbilling.cloudbilling; - this.cloudbuild = cloudbuild.cloudbuild; - this.clouddebugger = clouddebugger.clouddebugger; - this.clouderrorreporting = clouderrorreporting.clouderrorreporting; - this.cloudfunctions = cloudfunctions.cloudfunctions; - this.cloudidentity = cloudidentity.cloudidentity; - this.cloudiot = cloudiot.cloudiot; - this.cloudkms = cloudkms.cloudkms; - this.cloudprofiler = cloudprofiler.cloudprofiler; - this.cloudresourcemanager = cloudresourcemanager.cloudresourcemanager; - this.cloudscheduler = cloudscheduler.cloudscheduler; - this.cloudsearch = cloudsearch.cloudsearch; - this.cloudshell = cloudshell.cloudshell; - this.cloudtasks = cloudtasks.cloudtasks; - this.cloudtrace = cloudtrace.cloudtrace; - this.composer = composer.composer; - this.compute = compute.compute; - this.container = container.container; - this.containeranalysis = containeranalysis.containeranalysis; - this.content = content.content; - this.customsearch = customsearch.customsearch; - this.datacatalog = datacatalog.datacatalog; - this.dataflow = dataflow.dataflow; - this.datafusion = datafusion.datafusion; - this.dataproc = dataproc.dataproc; - this.datastore = datastore.datastore; - this.deploymentmanager = deploymentmanager.deploymentmanager; - this.dfareporting = dfareporting.dfareporting; - this.dialogflow = dialogflow.dialogflow; - this.digitalassetlinks = digitalassetlinks.digitalassetlinks; - this.discovery = discovery.discovery; - this.displayvideo = displayvideo.displayvideo; - this.dlp = dlp.dlp; - this.dns = dns.dns; - this.docs = docs.docs; - this.domainsrdap = domainsrdap.domainsrdap; - this.doubleclickbidmanager = doubleclickbidmanager.doubleclickbidmanager; - this.doubleclicksearch = doubleclicksearch.doubleclicksearch; - this.drive = drive.drive; - this.driveactivity = driveactivity.driveactivity; - this.factchecktools = factchecktools.factchecktools; - this.fcm = fcm.fcm; - this.file = file.file; - this.firebase = firebase.firebase; - this.firebasedynamiclinks = firebasedynamiclinks.firebasedynamiclinks; - this.firebasehosting = firebasehosting.firebasehosting; - this.firebaseml = firebaseml.firebaseml; - this.firebaserules = firebaserules.firebaserules; - this.firestore = firestore.firestore; - this.fitness = fitness.fitness; - this.games = games.games; - this.gamesConfiguration = gamesConfiguration.gamesConfiguration; - this.gamesManagement = gamesManagement.gamesManagement; - this.gameservices = gameservices.gameservices; - this.genomics = genomics.genomics; - this.gmail = gmail.gmail; - this.groupsmigration = groupsmigration.groupsmigration; - this.groupssettings = groupssettings.groupssettings; - this.healthcare = healthcare.healthcare; - this.homegraph = homegraph.homegraph; - this.iam = iam.iam; - this.iamcredentials = iamcredentials.iamcredentials; - this.iap = iap.iap; - this.identitytoolkit = identitytoolkit.identitytoolkit; - this.indexing = indexing.indexing; - this.jobs = jobs.jobs; - this.kgsearch = kgsearch.kgsearch; - this.language = language.language; - this.libraryagent = libraryagent.libraryagent; - this.licensing = licensing.licensing; - this.lifesciences = lifesciences.lifesciences; - this.logging = logging.logging; - this.managedidentities = managedidentities.managedidentities; - this.manufacturers = manufacturers.manufacturers; - this.memcache = memcache.memcache; - this.ml = ml.ml; - this.monitoring = monitoring.monitoring; - this.networkmanagement = networkmanagement.networkmanagement; - this.oauth2 = oauth2.oauth2; - this.osconfig = osconfig.osconfig; - this.oslogin = oslogin.oslogin; - this.pagespeedonline = pagespeedonline.pagespeedonline; - this.people = people.people; - this.playcustomapp = playcustomapp.playcustomapp; - this.plus = plus.plus; - this.policytroubleshooter = policytroubleshooter.policytroubleshooter; - this.poly = poly.poly; - this.prod_tt_sasportal = prod_tt_sasportal.prod_tt_sasportal; - this.pubsub = pubsub.pubsub; - this.recommender = recommender.recommender; - this.redis = redis.redis; - this.remotebuildexecution = remotebuildexecution.remotebuildexecution; - this.reseller = reseller.reseller; - this.run = run.run; - this.runtimeconfig = runtimeconfig.runtimeconfig; - this.safebrowsing = safebrowsing.safebrowsing; - this.sasportal = sasportal.sasportal; - this.script = script.script; - this.searchconsole = searchconsole.searchconsole; - this.secretmanager = secretmanager.secretmanager; - this.securitycenter = securitycenter.securitycenter; - this.serviceconsumermanagement = serviceconsumermanagement.serviceconsumermanagement; - this.servicecontrol = servicecontrol.servicecontrol; - this.servicedirectory = servicedirectory.servicedirectory; - this.servicemanagement = servicemanagement.servicemanagement; - this.servicenetworking = servicenetworking.servicenetworking; - this.serviceusage = serviceusage.serviceusage; - this.sheets = sheets.sheets; - this.siteVerification = siteVerification.siteVerification; - this.slides = slides.slides; - this.sourcerepo = sourcerepo.sourcerepo; - this.spanner = spanner.spanner; - this.speech = speech.speech; - this.sql = sql.sql; - this.storage = storage.storage; - this.storagetransfer = storagetransfer.storagetransfer; - this.streetviewpublish = streetviewpublish.streetviewpublish; - this.tagmanager = tagmanager.tagmanager; - this.tasks = tasks.tasks; - this.testing = testing.testing; - this.texttospeech = texttospeech.texttospeech; - this.toolresults = toolresults.toolresults; - this.tpu = tpu.tpu; - this.translate = translate.translate; - this.vault = vault.vault; - this.verifiedaccess = verifiedaccess.verifiedaccess; - this.videointelligence = videointelligence.videointelligence; - this.vision = vision.vision; - this.webfonts = webfonts.webfonts; - this.webmasters = webmasters.webmasters; - this.websecurityscanner = websecurityscanner.websecurityscanner; - this.youtube = youtube.youtube; - this.youtubeAnalytics = youtubeAnalytics.youtubeAnalytics; - this.youtubereporting = youtubereporting.youtubereporting; - } -} -exports.GeneratedAPIs = GeneratedAPIs; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 443 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module*/ -var Buffer = __webpack_require__(149).Buffer; -var DataStream = __webpack_require__(736); -var jwa = __webpack_require__(204); -var Stream = __webpack_require__(413); -var toString = __webpack_require__(519); -var util = __webpack_require__(669); -var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; - -function isObject(thing) { - return Object.prototype.toString.call(thing) === '[object Object]'; -} - -function safeJsonParse(thing) { - if (isObject(thing)) - return thing; - try { return JSON.parse(thing); } - catch (e) { return undefined; } -} - -function headerFromJWS(jwsSig) { - var encodedHeader = jwsSig.split('.', 1)[0]; - return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); -} - -function securedInputFromJWS(jwsSig) { - return jwsSig.split('.', 2).join('.'); -} - -function signatureFromJWS(jwsSig) { - return jwsSig.split('.')[2]; -} - -function payloadFromJWS(jwsSig, encoding) { - encoding = encoding || 'utf8'; - var payload = jwsSig.split('.')[1]; - return Buffer.from(payload, 'base64').toString(encoding); -} - -function isValidJws(string) { - return JWS_REGEX.test(string) && !!headerFromJWS(string); -} - -function jwsVerify(jwsSig, algorithm, secretOrKey) { - if (!algorithm) { - var err = new Error("Missing algorithm parameter for jws.verify"); - err.code = "MISSING_ALGORITHM"; - throw err; - } - jwsSig = toString(jwsSig); - var signature = signatureFromJWS(jwsSig); - var securedInput = securedInputFromJWS(jwsSig); - var algo = jwa(algorithm); - return algo.verify(securedInput, signature, secretOrKey); -} - -function jwsDecode(jwsSig, opts) { - opts = opts || {}; - jwsSig = toString(jwsSig); - - if (!isValidJws(jwsSig)) - return null; - - var header = headerFromJWS(jwsSig); - - if (!header) - return null; - - var payload = payloadFromJWS(jwsSig); - if (header.typ === 'JWT' || opts.json) - payload = JSON.parse(payload, opts.encoding); - - return { - header: header, - payload: payload, - signature: signatureFromJWS(jwsSig) - }; -} - -function VerifyStream(opts) { - opts = opts || {}; - var secretOrKey = opts.secret||opts.publicKey||opts.key; - var secretStream = new DataStream(secretOrKey); - this.readable = true; - this.algorithm = opts.algorithm; - this.encoding = opts.encoding; - this.secret = this.publicKey = this.key = secretStream; - this.signature = new DataStream(opts.signature); - this.secret.once('close', function () { - if (!this.signature.writable && this.readable) - this.verify(); - }.bind(this)); - - this.signature.once('close', function () { - if (!this.secret.writable && this.readable) - this.verify(); - }.bind(this)); -} -util.inherits(VerifyStream, Stream); -VerifyStream.prototype.verify = function verify() { - try { - var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); - var obj = jwsDecode(this.signature.buffer, this.encoding); - this.emit('done', valid, obj); - this.emit('data', valid); - this.emit('end'); - this.readable = false; - return valid; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; - -VerifyStream.decode = jwsDecode; -VerifyStream.isValid = isValidJws; -VerifyStream.verify = jwsVerify; - -module.exports = VerifyStream; - - -/***/ }), -/* 444 */, -/* 445 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.datastore = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(618); -const v1beta1_1 = __webpack_require__(234); -const v1beta3_1 = __webpack_require__(502); -exports.VERSIONS = { - v1: v1_1.datastore_v1.Datastore, - v1beta1: v1beta1_1.datastore_v1beta1.Datastore, - v1beta3: v1beta3_1.datastore_v1beta3.Datastore, -}; -function datastore(versionOrOptions) { - return googleapis_common_1.getAPI('datastore', versionOrOptions, exports.VERSIONS, this); -} -exports.datastore = datastore; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 446 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = authenticationRequestError; - -const { RequestError } = __webpack_require__(524); - -function authenticationRequestError(state, error, options) { - if (!error.headers) throw error; - - const otpRequired = /required/.test(error.headers["x-github-otp"] || ""); - // handle "2FA required" error only - if (error.status !== 401 || !otpRequired) { - throw error; - } - - if ( - error.status === 401 && - otpRequired && - error.request && - error.request.headers["x-github-otp"] - ) { - if (state.otp) { - delete state.otp; // no longer valid, request again - } else { - throw new RequestError( - "Invalid one-time password for two-factor authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - } - - if (typeof state.auth.on2fa !== "function") { - throw new RequestError( - "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - - return Promise.resolve() - .then(() => { - return state.auth.on2fa(); - }) - .then(oneTimePassword => { - const newOptions = Object.assign(options, { - headers: Object.assign(options.headers, { - "x-github-otp": oneTimePassword - }) - }); - return state.octokit.request(newOptions).then(response => { - // If OTP still valid, then persist it for following requests - state.otp = oneTimePassword; - return response; - }); - }); -} - - -/***/ }), -/* 447 */, -/* 448 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.script_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 = __webpack_require__(927); -var script_v1; -(function (script_v1) { - /** - * Apps Script API - * - * Manages and executes Google Apps Script projects. - * - * @example - * const {google} = require('googleapis'); - * const script = google.script('v1'); - * - * @namespace script - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Script - */ - class Script { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.processes = new Resource$Processes(this.context); - this.projects = new Resource$Projects(this.context); - this.scripts = new Resource$Scripts(this.context); - } - } - script_v1.Script = Script; - class Resource$Processes { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -155168,25 +144463,25 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/processes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listScriptProcesses(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155199,34 +144494,98 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/processes:listScriptProcesses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - script_v1.Resource$Processes = Resource$Processes; - class Resource$Projects { + compute_v1.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { constructor(context) { this.context = context; - this.deployments = new Resource$Projects$Deployments(this.context); - this.versions = new Resource$Projects$Versions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155237,26 +144596,28 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155267,25 +144628,26 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContent(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155298,25 +144660,26 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155329,25 +144692,25 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateContent(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155360,31 +144723,31 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - script_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Deployments { + compute_v1.Resource$Sslcertificates = Resource$Sslcertificates; + class Resource$Sslpolicies { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155397,22 +144760,22 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -155428,25 +144791,57 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['scriptId', 'deploymentId'], - pathParams: ['deploymentId', 'scriptId'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155459,25 +144854,55 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scriptId', 'deploymentId'], - pathParams: ['deploymentId', 'scriptId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155490,25 +144915,26 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155521,31 +144947,32 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['scriptId', 'deploymentId'], - pathParams: ['deploymentId', 'scriptId'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - script_v1.Resource$Projects$Deployments = Resource$Projects$Deployments; - class Resource$Projects$Versions { + compute_v1.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Subnetworks { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155558,25 +144985,120 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + expandIpCidrRange(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155589,25 +145111,89 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/versions/{versionNumber}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId', 'versionNumber'], - pathParams: ['scriptId', 'versionNumber'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155620,32 +145206,60 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - script_v1.Resource$Projects$Versions = Resource$Projects$Versions; - class Resource$Scripts { - constructor(context) { - this.context = context; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155656,713 +145270,264528 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/scripts/{scriptId}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - script_v1.Resource$Scripts = Resource$Scripts; -})(script_v1 = exports.script_v1 || (exports.script_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 449 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2019 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 }); -const querystring = __webpack_require__(191); -const stream = __webpack_require__(413); -const formatEcdsa = __webpack_require__(815); -const crypto_1 = __webpack_require__(984); -const authclient_1 = __webpack_require__(616); -const loginticket_1 = __webpack_require__(207); -var CodeChallengeMethod; -(function (CodeChallengeMethod) { - CodeChallengeMethod["Plain"] = "plain"; - CodeChallengeMethod["S256"] = "S256"; -})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {})); -var CertificateFormat; -(function (CertificateFormat) { - CertificateFormat["PEM"] = "PEM"; - CertificateFormat["JWK"] = "JWK"; -})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {})); -class OAuth2Client extends authclient_1.AuthClient { - constructor(optionsOrClientId, clientSecret, redirectUri) { - super(); - this.certificateCache = {}; - this.certificateExpiry = null; - this.certificateCacheFormat = CertificateFormat.PEM; - this.refreshTokenPromises = new Map(); - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { clientId: optionsOrClientId, clientSecret, redirectUri }; - this._clientId = opts.clientId; - this._clientSecret = opts.clientSecret; - this.redirectUri = opts.redirectUri; - this.eagerRefreshThresholdMillis = - opts.eagerRefreshThresholdMillis || 5 * 60 * 1000; - this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure; - } - /** - * Generates URL for consent page landing. - * @param opts Options. - * @return URL to consent page. - */ - generateAuthUrl(opts = {}) { - if (opts.code_challenge_method && !opts.code_challenge) { - throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); - } - opts.response_type = opts.response_type || 'code'; - opts.client_id = opts.client_id || this._clientId; - opts.redirect_uri = opts.redirect_uri || this.redirectUri; - // Allow scopes to be passed either as array or a string - if (opts.scope instanceof Array) { - opts.scope = opts.scope.join(' '); - } - const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; - return rootUrl + '?' + querystring.stringify(opts); - } - generateCodeVerifier() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); - } - /** - * Convenience method to automatically generate a code_verifier, and it's - * resulting SHA256. If used, this must be paired with a S256 - * code_challenge_method. - * - * For a full example see: - * https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/oauth2-codeVerifier.js - */ - async generateCodeVerifierAsync() { - // base64 encoding uses 6 bits per character, and we want to generate128 - // characters. 6*128/8 = 96. - const crypto = crypto_1.createCrypto(); - const randomString = crypto.randomBytesBase64(96); - // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ - // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just - // swapping out a few chars. - const codeVerifier = randomString - .replace(/\+/g, '~') - .replace(/=/g, '_') - .replace(/\//g, '-'); - // Generate the base64 encoded SHA256 - const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); - // We need to use base64UrlEncoding instead of standard base64 - const codeChallenge = unencodedCodeChallenge - .split('=')[0] - .replace(/\+/g, '-') - .replace(/\//g, '_'); - return { codeVerifier, codeChallenge }; - } - getToken(codeOrOptions, callback) { - const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; - if (callback) { - this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); - } - else { - return this.getTokenAsync(options); + setPrivateIpGoogleAccess(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - async getTokenAsync(options) { - const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; - const values = { - code: options.code, - client_id: options.client_id || this._clientId, - client_secret: this._clientSecret, - redirect_uri: options.redirect_uri || this.redirectUri, - grant_type: 'authorization_code', - code_verifier: options.codeVerifier, - }; - const res = await this.transporter.request({ - method: 'POST', - url, - data: querystring.stringify(values), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); - const tokens = res.data; - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - this.emit('tokens', tokens); - return { tokens, res }; } - /** - * Refreshes the access token. - * @param refresh_token Existing refresh token. - * @private - */ - async refreshToken(refreshToken) { - if (!refreshToken) { - return this.refreshTokenNoCache(refreshToken); + compute_v1.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targetgrpcproxies { + constructor(context) { + this.context = context; } - // If a request to refresh using the same token has started, - // return the same promise. - if (this.refreshTokenPromises.has(refreshToken)) { - return this.refreshTokenPromises.get(refreshToken); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const p = this.refreshTokenNoCache(refreshToken).then(r => { - this.refreshTokenPromises.delete(refreshToken); - return r; - }, e => { - this.refreshTokenPromises.delete(refreshToken); - throw e; - }); - this.refreshTokenPromises.set(refreshToken, p); - return p; - } - async refreshTokenNoCache(refreshToken) { - if (!refreshToken) { - throw new Error('No refresh token is set.'); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; - const data = { - refresh_token: refreshToken, - client_id: this._clientId, - client_secret: this._clientSecret, - grant_type: 'refresh_token', - }; - // request for new token - const res = await this.transporter.request({ - method: 'POST', - url, - data: querystring.stringify(data), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); - const tokens = res.data; - // TODO: de-duplicate this code from a few spots - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - this.emit('tokens', tokens); - return { tokens, res }; - } - refreshAccessToken(callback) { - if (callback) { - this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.refreshAccessTokenAsync(); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - async refreshAccessTokenAsync() { - const r = await this.refreshToken(this.credentials.refresh_token); - const tokens = r.tokens; - tokens.refresh_token = this.credentials.refresh_token; - this.credentials = tokens; - return { credentials: this.credentials, res: r.res }; - } - getAccessToken(callback) { - if (callback) { - this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); - } - else { - return this.getAccessTokenAsync(); + compute_v1.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; } - } - async getAccessTokenAsync() { - const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); - if (shouldRefresh) { - if (!this.credentials.refresh_token) { - throw new Error('No refresh token is set.'); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - const r = await this.refreshAccessTokenAsync(); - if (!r.credentials || (r.credentials && !r.credentials.access_token)) { - throw new Error('Could not refresh access token.'); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - return { token: r.credentials.access_token, res: r.res }; } - else { - return { token: this.credentials.access_token }; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * In OAuth2Client, the result has the form: - * { Authorization: 'Bearer ' } - * @param url The optional url being authorized - */ - async getRequestHeaders(url) { - const headers = (await this.getRequestMetadataAsync(url)).headers; - return headers; - } - async getRequestMetadataAsync(url) { - const thisCreds = this.credentials; - if (!thisCreds.access_token && !thisCreds.refresh_token && !this.apiKey) { - throw new Error('No access, refresh token or API key is set.'); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (thisCreds.access_token && !this.isTokenExpiring()) { - thisCreds.token_type = thisCreds.token_type || 'Bearer'; - const headers = { - Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - return { headers }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (this.apiKey) { - return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - let r = null; - let tokens = null; - try { - r = await this.refreshToken(thisCreds.refresh_token); - tokens = r.tokens; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - catch (err) { - const e = err; - if (e.response && - (e.response.status === 403 || e.response.status === 404)) { - e.message = `Could not refresh access token: ${e.message}`; + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - throw e; } - const credentials = this.credentials; - credentials.token_type = credentials.token_type || 'Bearer'; - tokens.refresh_token = credentials.refresh_token; - this.credentials = tokens; - const headers = { - Authorization: credentials.token_type + ' ' + tokens.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; - } - /** - * Generates an URL to revoke the given token. - * @param token The existing token to be revoked. - */ - static getRevokeTokenUrl(token) { - const parameters = querystring.stringify({ token }); - return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`; } - revokeToken(token, callback) { - const opts = { - url: OAuth2Client.getRevokeTokenUrl(token), - method: 'POST', - }; - if (callback) { - this.transporter - .request(opts) - .then(r => callback(null, r), callback); - } - else { - return this.transporter.request(opts); + compute_v1.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; } - } - revokeCredentials(callback) { - if (callback) { - this.revokeCredentialsAsync().then(res => callback(null, res), callback); + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.revokeCredentialsAsync(); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - async revokeCredentialsAsync() { - const token = this.credentials.access_token; - this.credentials = {}; - if (token) { - return this.revokeToken(token); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - throw new Error('No access token to revoke.'); + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.requestAsync(opts); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - async requestAsync(opts, retry = false) { - let r2; - try { - const r = await this.getRequestMetadataAsync(opts.url); - opts.headers = opts.headers || {}; - if (r.headers && r.headers['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - if (r.headers && r.headers.Authorization) { - opts.headers.Authorization = r.headers.Authorization; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - if (this.apiKey) { - opts.headers['X-Goog-Api-Key'] = this.apiKey; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - r2 = await this.transporter.request(opts); } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - An access_token and refresh_token were available, but either no - // expiry_date was available or the forceRefreshOnFailure flag is set. - // The absent expiry_date case can happen when developers stash the - // access_token and refresh_token for later use, but the access_token - // fails on the first try because it's expired. Some developers may - // choose to enable forceRefreshOnFailure to mitigate time-related - // errors. - const mayRequireRefresh = this.credentials && - this.credentials.access_token && - this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure); - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) { - await this.refreshAccessTokenAsync(); - return this.requestAsync(opts, true); - } + setQuicOverride(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - throw e; } - return r2; - } - verifyIdToken(options, callback) { - // This function used to accept two arguments instead of an options object. - // Check the types to help users upgrade with less pain. - // This check can be removed after a 2.0 release. - if (callback && typeof callback !== 'function') { - throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); + setSslCertificates(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (callback) { - this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); + setSslPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.verifyIdTokenAsync(options); + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - async verifyIdTokenAsync(options) { - if (!options.idToken) { - throw new Error('The verifyIdToken method requires an ID Token'); + compute_v1.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; } - const response = await this.getFederatedSignonCertsAsync(); - const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry); - return login; - } - /** - * Obtains information about the provisioned access token. Especially useful - * if you want to check the scopes that were provisioned to a given token. - * - * @param accessToken Required. The Access Token for which you want to get - * user info. - */ - async getTokenInfo(accessToken) { - const { data } = await this.transporter.request({ - method: 'GET', - url: OAuth2Client.GOOGLE_TOKEN_INFO_URL, - params: { access_token: accessToken }, - }); - const info = Object.assign({ - expiry_date: new Date().getTime() + data.expires_in * 1000, - scopes: data.scope.split(' '), - }, data); - delete info.expires_in; - delete info.scope; - return info; - } - getFederatedSignonCerts(callback) { - if (callback) { - this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.getFederatedSignonCertsAsync(); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - async getFederatedSignonCertsAsync() { - const nowTime = new Date().getTime(); - const format = crypto_1.hasBrowserCrypto() - ? CertificateFormat.JWK - : CertificateFormat.PEM; - if (this.certificateExpiry && - nowTime < this.certificateExpiry.getTime() && - this.certificateCacheFormat === format) { - return { certs: this.certificateCache, format }; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - let res; - let url; - switch (format) { - case CertificateFormat.PEM: - url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_; - break; - case CertificateFormat.JWK: - url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_; - break; - default: - throw new Error(`Unsupported certificate format ${format}`); + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - try { - res = await this.transporter.request({ url }); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - catch (e) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - throw e; + } + compute_v1.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; } - const cacheControl = res ? res.headers['cache-control'] : undefined; - let cacheAge = -1; - if (cacheControl) { - const pattern = new RegExp('max-age=([0-9]*)'); - const regexResult = pattern.exec(cacheControl); - if (regexResult && regexResult.length === 2) { - // Cache results with max-age (in seconds) - cacheAge = Number(regexResult[1]) * 1000; // milliseconds + addHealthCheck(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - let certificates = {}; - switch (format) { - case CertificateFormat.PEM: - certificates = res.data; - break; - case CertificateFormat.JWK: - for (const key of res.data.keys) { - certificates[key.kid] = key; - } - break; - default: - throw new Error(`Unsupported certificate format ${format}`); + addInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const now = new Date(); - this.certificateExpiry = - cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); - this.certificateCache = certificates; - this.certificateCacheFormat = format; - return { certs: certificates, format, res }; - } - getIapPublicKeys(callback) { - if (callback) { - this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.getIapPublicKeysAsync(); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - async getIapPublicKeysAsync() { - const nowTime = new Date().getTime(); - let res; - const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_; - try { - res = await this.transporter.request({ url }); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - catch (e) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - throw e; + getHealth(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - return { pubkeys: res.data, res }; - } - verifySignedJwtWithCerts() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); - } - /** - * Verify the id token is signed with the correct certificate - * and is from the correct audience. - * @param jwt The jwt to verify (The ID Token in this case). - * @param certs The array of certs to test the jwt against. - * @param requiredAudience The audience to test the jwt against. - * @param issuers The allowed issuers of the jwt (Optional). - * @param maxExpiry The max expiry the certificate can be (Optional). - * @return Returns a promise resolving to LoginTicket on verification. - */ - async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { - const crypto = crypto_1.createCrypto(); - if (!maxExpiry) { - maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_; + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const segments = jwt.split('.'); - if (segments.length !== 3) { - throw new Error('Wrong number of segments in token: ' + jwt); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const signed = segments[0] + '.' + segments[1]; - let signature = segments[2]; - let envelope; - let payload; - try { - envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); + removeHealthCheck(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - catch (err) { - err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; - throw err; + removeInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (!envelope) { - throw new Error("Can't parse token envelope: " + segments[0]); + setBackup(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - try { - payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); + } + compute_v1.Resource$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + constructor(context) { + this.context = context; } - catch (err) { - err.message = `Can't parse token payload '${segments[0]}`; - throw err; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (!payload) { - throw new Error("Can't parse token payload: " + segments[1]); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { - // If this is not present, then there's no reason to attempt verification - throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const cert = certs[envelope.kid]; - if (envelope.alg === 'ES256') { - signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const verified = await crypto.verify(cert, signed, signature); - if (!verified) { - throw new Error('Invalid token signature: ' + jwt); + setBackendService(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (!payload.iat) { - throw new Error('No issue time in token: ' + JSON.stringify(payload)); + setCertificateMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (!payload.exp) { - throw new Error('No expiration time in token: ' + JSON.stringify(payload)); + setProxyHeader(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const iat = Number(payload.iat); - if (isNaN(iat)) - throw new Error('iat field using invalid format'); - const exp = Number(payload.exp); - if (isNaN(exp)) - throw new Error('exp field using invalid format'); - const now = new Date().getTime() / 1000; - if (exp >= now + maxExpiry) { - throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); + setSslCertificates(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; - const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; - if (now < earliest) { - throw new Error('Token used too early, ' + - now + - ' < ' + - earliest + - ': ' + - JSON.stringify(payload)); + setSslPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (now > latest) { - throw new Error('Token used too late, ' + - now + - ' > ' + - latest + - ': ' + - JSON.stringify(payload)); + } + compute_v1.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; } - if (issuers && issuers.indexOf(payload.iss) < 0) { - throw new Error('Invalid issuer, expected one of [' + - issuers + - '], but got ' + - payload.iss); + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - // Check the audience matches if we have one - if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { - const aud = payload.aud; - let audVerified = false; - // If the requiredAudience is an array, check if it contains token - // audience - if (requiredAudience.constructor === Array) { - audVerified = requiredAudience.indexOf(aud) > -1; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - audVerified = aud === requiredAudience; + return (0, googleapis_common_1.createAPIRequest)(parameters); } - if (!audVerified) { - throw new Error('Wrong recipient, payload audience != requiredAudience'); + } + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - return new loginticket_1.LoginTicket(envelope, payload); - } - /** - * Returns true if a token is expired or will expire within - * eagerRefreshThresholdMillismilliseconds. - * If there is no expiry time, assumes the token is not expired or expiring. - */ - isTokenExpiring() { - const expiryDate = this.credentials.expiry_date; - return expiryDate - ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis - : false; - } -} -exports.OAuth2Client = OAuth2Client; -OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; -/** - * The base URL for auth endpoints. - */ -OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth'; -/** - * The base endpoint for token retrieval. - */ -OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token'; -/** - * The base endpoint to revoke tokens. - */ -OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke'; -/** - * Google Sign on certificates in PEM format. - */ -OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs'; -/** - * Google Sign on certificates in JWK format. + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackendService(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setProxyHeader(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getStatus(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneoperations { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zones { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_v1.Resource$Zones = Resource$Zones; +})(compute_v1 = exports.compute_v1 || (exports.compute_v1 = {})); + + +/***/ }), + +/***/ 1643: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.forms_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var forms_v1; +(function (forms_v1) { + /** + * Google Forms API + * + * Reads and writes Google Forms and responses. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const forms = google.forms('v1'); + * ``` + */ + class Forms { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.forms = new Resource$Forms(this.context); + } + } + forms_v1.Forms = Forms; + class Resource$Forms { + constructor(context) { + this.context = context; + this.responses = new Resource$Forms$Responses(this.context); + this.watches = new Resource$Forms$Watches(this.context); + } + batchUpdate(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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['formId'], + pathParams: ['formId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['formId'], + pathParams: ['formId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + forms_v1.Resource$Forms = Resource$Forms; + class Resource$Forms$Responses { + 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}/responses/{responseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['formId', 'responseId'], + pathParams: ['formId', 'responseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}/responses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['formId'], + pathParams: ['formId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + forms_v1.Resource$Forms$Responses = Resource$Forms$Responses; + class Resource$Forms$Watches { + 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}/watches').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['formId'], + pathParams: ['formId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}/watches/{watchId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['formId', 'watchId'], + pathParams: ['formId', 'watchId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}/watches').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['formId'], + pathParams: ['formId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + renew(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://forms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/forms/{formId}/watches/{watchId}:renew').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['formId', 'watchId'], + pathParams: ['formId', 'watchId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + forms_v1.Resource$Forms$Watches = Resource$Forms$Watches; +})(forms_v1 = exports.forms_v1 || (exports.forms_v1 = {})); + + +/***/ }), + +/***/ 1647: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebasehosting_v1beta1 = exports.firebasehosting_v1 = exports.auth = exports.firebasehosting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4843); +Object.defineProperty(exports, "firebasehosting_v1", { enumerable: true, get: function () { return v1_1.firebasehosting_v1; } }); +const v1beta1_1 = __webpack_require__(2202); +Object.defineProperty(exports, "firebasehosting_v1beta1", { enumerable: true, get: function () { return v1beta1_1.firebasehosting_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.firebasehosting_v1.Firebasehosting, + v1beta1: v1beta1_1.firebasehosting_v1beta1.Firebasehosting, +}; +function firebasehosting(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebasehosting', versionOrOptions, exports.VERSIONS, this); +} +exports.firebasehosting = firebasehosting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1657: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebaseappcheck_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebaseappcheck_v1beta; +(function (firebaseappcheck_v1beta) { + /** + * Firebase App Check API + * + * Firebase App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebaseappcheck = google.firebaseappcheck('v1beta'); + * ``` + */ + class Firebaseappcheck { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.jwks = new Resource$Jwks(this.context); + this.projects = new Resource$Projects(this.context); + } + } + firebaseappcheck_v1beta.Firebaseappcheck = Firebaseappcheck; + class Resource$Jwks { + 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Jwks = Resource$Jwks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.apps = new Resource$Projects$Apps(this.context); + this.services = new Resource$Projects$Services(this.context); + } + } + firebaseappcheck_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Apps { + constructor(context) { + this.context = context; + this.appAttestConfig = new Resource$Projects$Apps$Appattestconfig(this.context); + this.debugTokens = new Resource$Projects$Apps$Debugtokens(this.context); + this.deviceCheckConfig = new Resource$Projects$Apps$Devicecheckconfig(this.context); + this.playIntegrityConfig = new Resource$Projects$Apps$Playintegrityconfig(this.context); + this.recaptchaConfig = new Resource$Projects$Apps$Recaptchaconfig(this.context); + this.recaptchaEnterpriseConfig = + new Resource$Projects$Apps$Recaptchaenterpriseconfig(this.context); + this.recaptchaV3Config = new Resource$Projects$Apps$Recaptchav3config(this.context); + this.safetyNetConfig = new Resource$Projects$Apps$Safetynetconfig(this.context); + } + exchangeAppAttestAssertion(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeAppAttestAssertion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeAppAttestAttestation(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeAppAttestAttestation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeCustomToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeCustomToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeDebugToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeDebugToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeDeviceCheckToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeDeviceCheckToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangePlayIntegrityToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangePlayIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeRecaptchaEnterpriseToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaEnterpriseToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeRecaptchaToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeRecaptchaV3Token(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaV3Token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeSafetyNetToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:exchangeSafetyNetToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateAppAttestChallenge(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:generateAppAttestChallenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generatePlayIntegrityChallenge(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+app}:generatePlayIntegrityChallenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps = Resource$Projects$Apps; + class Resource$Projects$Apps$Appattestconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps/-/appAttestConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Appattestconfig = Resource$Projects$Apps$Appattestconfig; + class Resource$Projects$Apps$Debugtokens { + 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Debugtokens = Resource$Projects$Apps$Debugtokens; + class Resource$Projects$Apps$Devicecheckconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps/-/deviceCheckConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Devicecheckconfig = Resource$Projects$Apps$Devicecheckconfig; + class Resource$Projects$Apps$Playintegrityconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps/-/playIntegrityConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Playintegrityconfig = Resource$Projects$Apps$Playintegrityconfig; + class Resource$Projects$Apps$Recaptchaconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchaconfig = Resource$Projects$Apps$Recaptchaconfig; + class Resource$Projects$Apps$Recaptchaenterpriseconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchaenterpriseconfig = Resource$Projects$Apps$Recaptchaenterpriseconfig; + class Resource$Projects$Apps$Recaptchav3config { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchav3config = Resource$Projects$Apps$Recaptchav3config; + class Resource$Projects$Apps$Safetynetconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apps/-/safetyNetConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Apps$Safetynetconfig = Resource$Projects$Apps$Safetynetconfig; + class Resource$Projects$Services { + constructor(context) { + this.context = context; + } + batchUpdate(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/services:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1beta.Resource$Projects$Services = Resource$Projects$Services; +})(firebaseappcheck_v1beta = exports.firebaseappcheck_v1beta || (exports.firebaseappcheck_v1beta = {})); + + +/***/ }), + +/***/ 1669: +/***/ (function(module) { + +module.exports = require("util"); + +/***/ }), + +/***/ 1675: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.homegraph_v1 = exports.auth = exports.homegraph = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1114); +Object.defineProperty(exports, "homegraph_v1", { enumerable: true, get: function () { return v1_1.homegraph_v1; } }); +exports.VERSIONS = { + v1: v1_1.homegraph_v1.Homegraph, +}; +function homegraph(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('homegraph', versionOrOptions, exports.VERSIONS, this); +} +exports.homegraph = homegraph; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1679: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Secure Hash Algorithm with a 1024-bit block size implementation. + * + * This includes: SHA-512, SHA-384, SHA-512/224, and SHA-512/256. For + * SHA-256 (block size 512 bits), see sha256.js. + * + * See FIPS 180-4 for details. + * + * @author Dave Longley + * + * Copyright (c) 2014-2015 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(1220); +__webpack_require__(7152); + +var sha512 = module.exports = forge.sha512 = forge.sha512 || {}; + +// SHA-512 +forge.md.sha512 = forge.md.algorithms.sha512 = sha512; + +// SHA-384 +var sha384 = forge.sha384 = forge.sha512.sha384 = forge.sha512.sha384 || {}; +sha384.create = function() { + return sha512.create('SHA-384'); +}; +forge.md.sha384 = forge.md.algorithms.sha384 = sha384; + +// SHA-512/256 +forge.sha512.sha256 = forge.sha512.sha256 || { + create: function() { + return sha512.create('SHA-512/256'); + } +}; +forge.md['sha512/256'] = forge.md.algorithms['sha512/256'] = + forge.sha512.sha256; + +// SHA-512/224 +forge.sha512.sha224 = forge.sha512.sha224 || { + create: function() { + return sha512.create('SHA-512/224'); + } +}; +forge.md['sha512/224'] = forge.md.algorithms['sha512/224'] = + forge.sha512.sha224; + +/** + * Creates a SHA-2 message digest object. + * + * @param algorithm the algorithm to use (SHA-512, SHA-384, SHA-512/224, + * SHA-512/256). + * + * @return a message digest object. + */ +sha512.create = function(algorithm) { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + if(typeof algorithm === 'undefined') { + algorithm = 'SHA-512'; + } + + if(!(algorithm in _states)) { + throw new Error('Invalid SHA-512 algorithm: ' + algorithm); + } + + // SHA-512 state contains eight 64-bit integers (each as two 32-bit ints) + var _state = _states[algorithm]; + var _h = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for 64-bit word storage + var _w = new Array(80); + for(var wi = 0; wi < 80; ++wi) { + _w[wi] = new Array(2); + } + + // determine digest length by algorithm name (default) + var digestLength = 64; + switch(algorithm) { + case 'SHA-384': + digestLength = 48; + break; + case 'SHA-512/256': + digestLength = 32; + break; + case 'SHA-512/224': + digestLength = 28; + break; + } + + // message digest object + var md = { + // SHA-512 => sha512 + algorithm: algorithm.replace('-', '').toLowerCase(), + blockLength: 128, + digestLength: digestLength, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 16 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength128 for backwards-compatibility) + md.fullMessageLength = md.messageLength128 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _h = new Array(_state.length); + for(var i = 0; i < _state.length; ++i) { + _h[i] = _state[i].slice(0); + } + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_h, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-512 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 896 mod 1024. In other words, + the data to be digested must be a multiple of 1024 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 16 bytes (128 + bits), that means that the last segment of the data must have 112 bytes + (896 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 896 mod 1024 because + 1024 - 128 = 896. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 896 mod 1024, then 1024 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); + + var h = new Array(_h.length); + for(var i = 0; i < _h.length; ++i) { + h[i] = _h[i].slice(0); + } + _update(h, _w, finalBlock); + var rval = forge.util.createBuffer(); + var hlen; + if(algorithm === 'SHA-512') { + hlen = h.length; + } else if(algorithm === 'SHA-384') { + hlen = h.length - 2; + } else { + hlen = h.length - 4; + } + for(var i = 0; i < hlen; ++i) { + rval.putInt32(h[i][0]); + if(i !== hlen - 1 || algorithm !== 'SHA-512/224') { + rval.putInt32(h[i][1]); + } + } + return rval; + }; + + return md; +}; + +// sha-512 padding bytes not initialized yet +var _padding = null; +var _initialized = false; + +// table of constants +var _k = null; + +// initial hash states +var _states = null; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 128); + + // create K table for SHA-512 + _k = [ + [0x428a2f98, 0xd728ae22], [0x71374491, 0x23ef65cd], + [0xb5c0fbcf, 0xec4d3b2f], [0xe9b5dba5, 0x8189dbbc], + [0x3956c25b, 0xf348b538], [0x59f111f1, 0xb605d019], + [0x923f82a4, 0xaf194f9b], [0xab1c5ed5, 0xda6d8118], + [0xd807aa98, 0xa3030242], [0x12835b01, 0x45706fbe], + [0x243185be, 0x4ee4b28c], [0x550c7dc3, 0xd5ffb4e2], + [0x72be5d74, 0xf27b896f], [0x80deb1fe, 0x3b1696b1], + [0x9bdc06a7, 0x25c71235], [0xc19bf174, 0xcf692694], + [0xe49b69c1, 0x9ef14ad2], [0xefbe4786, 0x384f25e3], + [0x0fc19dc6, 0x8b8cd5b5], [0x240ca1cc, 0x77ac9c65], + [0x2de92c6f, 0x592b0275], [0x4a7484aa, 0x6ea6e483], + [0x5cb0a9dc, 0xbd41fbd4], [0x76f988da, 0x831153b5], + [0x983e5152, 0xee66dfab], [0xa831c66d, 0x2db43210], + [0xb00327c8, 0x98fb213f], [0xbf597fc7, 0xbeef0ee4], + [0xc6e00bf3, 0x3da88fc2], [0xd5a79147, 0x930aa725], + [0x06ca6351, 0xe003826f], [0x14292967, 0x0a0e6e70], + [0x27b70a85, 0x46d22ffc], [0x2e1b2138, 0x5c26c926], + [0x4d2c6dfc, 0x5ac42aed], [0x53380d13, 0x9d95b3df], + [0x650a7354, 0x8baf63de], [0x766a0abb, 0x3c77b2a8], + [0x81c2c92e, 0x47edaee6], [0x92722c85, 0x1482353b], + [0xa2bfe8a1, 0x4cf10364], [0xa81a664b, 0xbc423001], + [0xc24b8b70, 0xd0f89791], [0xc76c51a3, 0x0654be30], + [0xd192e819, 0xd6ef5218], [0xd6990624, 0x5565a910], + [0xf40e3585, 0x5771202a], [0x106aa070, 0x32bbd1b8], + [0x19a4c116, 0xb8d2d0c8], [0x1e376c08, 0x5141ab53], + [0x2748774c, 0xdf8eeb99], [0x34b0bcb5, 0xe19b48a8], + [0x391c0cb3, 0xc5c95a63], [0x4ed8aa4a, 0xe3418acb], + [0x5b9cca4f, 0x7763e373], [0x682e6ff3, 0xd6b2b8a3], + [0x748f82ee, 0x5defb2fc], [0x78a5636f, 0x43172f60], + [0x84c87814, 0xa1f0ab72], [0x8cc70208, 0x1a6439ec], + [0x90befffa, 0x23631e28], [0xa4506ceb, 0xde82bde9], + [0xbef9a3f7, 0xb2c67915], [0xc67178f2, 0xe372532b], + [0xca273ece, 0xea26619c], [0xd186b8c7, 0x21c0c207], + [0xeada7dd6, 0xcde0eb1e], [0xf57d4f7f, 0xee6ed178], + [0x06f067aa, 0x72176fba], [0x0a637dc5, 0xa2c898a6], + [0x113f9804, 0xbef90dae], [0x1b710b35, 0x131c471b], + [0x28db77f5, 0x23047d84], [0x32caab7b, 0x40c72493], + [0x3c9ebe0a, 0x15c9bebc], [0x431d67c4, 0x9c100d4c], + [0x4cc5d4be, 0xcb3e42b6], [0x597f299c, 0xfc657e2a], + [0x5fcb6fab, 0x3ad6faec], [0x6c44198c, 0x4a475817] + ]; + + // initial hash states + _states = {}; + _states['SHA-512'] = [ + [0x6a09e667, 0xf3bcc908], + [0xbb67ae85, 0x84caa73b], + [0x3c6ef372, 0xfe94f82b], + [0xa54ff53a, 0x5f1d36f1], + [0x510e527f, 0xade682d1], + [0x9b05688c, 0x2b3e6c1f], + [0x1f83d9ab, 0xfb41bd6b], + [0x5be0cd19, 0x137e2179] + ]; + _states['SHA-384'] = [ + [0xcbbb9d5d, 0xc1059ed8], + [0x629a292a, 0x367cd507], + [0x9159015a, 0x3070dd17], + [0x152fecd8, 0xf70e5939], + [0x67332667, 0xffc00b31], + [0x8eb44a87, 0x68581511], + [0xdb0c2e0d, 0x64f98fa7], + [0x47b5481d, 0xbefa4fa4] + ]; + _states['SHA-512/256'] = [ + [0x22312194, 0xFC2BF72C], + [0x9F555FA3, 0xC84C64C2], + [0x2393B86B, 0x6F53B151], + [0x96387719, 0x5940EABD], + [0x96283EE2, 0xA88EFFE3], + [0xBE5E1E25, 0x53863992], + [0x2B0199FC, 0x2C85B8AA], + [0x0EB72DDC, 0x81C52CA2] + ]; + _states['SHA-512/224'] = [ + [0x8C3D37C8, 0x19544DA2], + [0x73E19966, 0x89DCD4D6], + [0x1DFAB7AE, 0x32FF9C82], + [0x679DD514, 0x582F9FCF], + [0x0F6D2B69, 0x7BD44DA8], + [0x77E36F73, 0x04C48942], + [0x3F9D85A8, 0x6A1D36C8], + [0x1112E6AD, 0x91D692A1] + ]; + + // now initialized + _initialized = true; +} + +/** + * Updates a SHA-512 state with the given byte buffer. + * + * @param s the SHA-512 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (128 byte) chunks + var t1_hi, t1_lo; + var t2_hi, t2_lo; + var s0_hi, s0_lo; + var s1_hi, s1_lo; + var ch_hi, ch_lo; + var maj_hi, maj_lo; + var a_hi, a_lo; + var b_hi, b_lo; + var c_hi, c_lo; + var d_hi, d_lo; + var e_hi, e_lo; + var f_hi, f_lo; + var g_hi, g_lo; + var h_hi, h_lo; + var i, hi, lo, w2, w7, w15, w16; + var len = bytes.length(); + while(len >= 128) { + // the w array will be populated with sixteen 64-bit big-endian words + // and then extended into 64 64-bit words according to SHA-512 + for(i = 0; i < 16; ++i) { + w[i][0] = bytes.getInt32() >>> 0; + w[i][1] = bytes.getInt32() >>> 0; + } + for(; i < 80; ++i) { + // for word 2 words ago: ROTR 19(x) ^ ROTR 61(x) ^ SHR 6(x) + w2 = w[i - 2]; + hi = w2[0]; + lo = w2[1]; + + // high bits + t1_hi = ( + ((hi >>> 19) | (lo << 13)) ^ // ROTR 19 + ((lo >>> 29) | (hi << 3)) ^ // ROTR 61/(swap + ROTR 29) + (hi >>> 6)) >>> 0; // SHR 6 + // low bits + t1_lo = ( + ((hi << 13) | (lo >>> 19)) ^ // ROTR 19 + ((lo << 3) | (hi >>> 29)) ^ // ROTR 61/(swap + ROTR 29) + ((hi << 26) | (lo >>> 6))) >>> 0; // SHR 6 + + // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x) + w15 = w[i - 15]; + hi = w15[0]; + lo = w15[1]; + + // high bits + t2_hi = ( + ((hi >>> 1) | (lo << 31)) ^ // ROTR 1 + ((hi >>> 8) | (lo << 24)) ^ // ROTR 8 + (hi >>> 7)) >>> 0; // SHR 7 + // low bits + t2_lo = ( + ((hi << 31) | (lo >>> 1)) ^ // ROTR 1 + ((hi << 24) | (lo >>> 8)) ^ // ROTR 8 + ((hi << 25) | (lo >>> 7))) >>> 0; // SHR 7 + + // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow) + w7 = w[i - 7]; + w16 = w[i - 16]; + lo = (t1_lo + w7[1] + t2_lo + w16[1]); + w[i][0] = (t1_hi + w7[0] + t2_hi + w16[0] + + ((lo / 0x100000000) >>> 0)) >>> 0; + w[i][1] = lo >>> 0; + } + + // initialize hash value for this chunk + a_hi = s[0][0]; + a_lo = s[0][1]; + b_hi = s[1][0]; + b_lo = s[1][1]; + c_hi = s[2][0]; + c_lo = s[2][1]; + d_hi = s[3][0]; + d_lo = s[3][1]; + e_hi = s[4][0]; + e_lo = s[4][1]; + f_hi = s[5][0]; + f_lo = s[5][1]; + g_hi = s[6][0]; + g_lo = s[6][1]; + h_hi = s[7][0]; + h_lo = s[7][1]; + + // round function + for(i = 0; i < 80; ++i) { + // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e) + s1_hi = ( + ((e_hi >>> 14) | (e_lo << 18)) ^ // ROTR 14 + ((e_hi >>> 18) | (e_lo << 14)) ^ // ROTR 18 + ((e_lo >>> 9) | (e_hi << 23))) >>> 0; // ROTR 41/(swap + ROTR 9) + s1_lo = ( + ((e_hi << 18) | (e_lo >>> 14)) ^ // ROTR 14 + ((e_hi << 14) | (e_lo >>> 18)) ^ // ROTR 18 + ((e_lo << 23) | (e_hi >>> 9))) >>> 0; // ROTR 41/(swap + ROTR 9) + + // Ch(e, f, g) (optimized the same way as SHA-1) + ch_hi = (g_hi ^ (e_hi & (f_hi ^ g_hi))) >>> 0; + ch_lo = (g_lo ^ (e_lo & (f_lo ^ g_lo))) >>> 0; + + // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a) + s0_hi = ( + ((a_hi >>> 28) | (a_lo << 4)) ^ // ROTR 28 + ((a_lo >>> 2) | (a_hi << 30)) ^ // ROTR 34/(swap + ROTR 2) + ((a_lo >>> 7) | (a_hi << 25))) >>> 0; // ROTR 39/(swap + ROTR 7) + s0_lo = ( + ((a_hi << 4) | (a_lo >>> 28)) ^ // ROTR 28 + ((a_lo << 30) | (a_hi >>> 2)) ^ // ROTR 34/(swap + ROTR 2) + ((a_lo << 25) | (a_hi >>> 7))) >>> 0; // ROTR 39/(swap + ROTR 7) + + // Maj(a, b, c) (optimized the same way as SHA-1) + maj_hi = ((a_hi & b_hi) | (c_hi & (a_hi ^ b_hi))) >>> 0; + maj_lo = ((a_lo & b_lo) | (c_lo & (a_lo ^ b_lo))) >>> 0; + + // main algorithm + // t1 = (h + s1 + ch + _k[i] + _w[i]) modulo 2^64 (carry lo overflow) + lo = (h_lo + s1_lo + ch_lo + _k[i][1] + w[i][1]); + t1_hi = (h_hi + s1_hi + ch_hi + _k[i][0] + w[i][0] + + ((lo / 0x100000000) >>> 0)) >>> 0; + t1_lo = lo >>> 0; + + // t2 = s0 + maj modulo 2^64 (carry lo overflow) + lo = s0_lo + maj_lo; + t2_hi = (s0_hi + maj_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + t2_lo = lo >>> 0; + + h_hi = g_hi; + h_lo = g_lo; + + g_hi = f_hi; + g_lo = f_lo; + + f_hi = e_hi; + f_lo = e_lo; + + // e = (d + t1) modulo 2^64 (carry lo overflow) + lo = d_lo + t1_lo; + e_hi = (d_hi + t1_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + e_lo = lo >>> 0; + + d_hi = c_hi; + d_lo = c_lo; + + c_hi = b_hi; + c_lo = b_lo; + + b_hi = a_hi; + b_lo = a_lo; + + // a = (t1 + t2) modulo 2^64 (carry lo overflow) + lo = t1_lo + t2_lo; + a_hi = (t1_hi + t2_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + a_lo = lo >>> 0; + } + + // update hash state (additional modulo 2^64) + lo = s[0][1] + a_lo; + s[0][0] = (s[0][0] + a_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[0][1] = lo >>> 0; + + lo = s[1][1] + b_lo; + s[1][0] = (s[1][0] + b_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[1][1] = lo >>> 0; + + lo = s[2][1] + c_lo; + s[2][0] = (s[2][0] + c_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[2][1] = lo >>> 0; + + lo = s[3][1] + d_lo; + s[3][0] = (s[3][0] + d_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[3][1] = lo >>> 0; + + lo = s[4][1] + e_lo; + s[4][0] = (s[4][0] + e_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[4][1] = lo >>> 0; + + lo = s[5][1] + f_lo; + s[5][0] = (s[5][0] + f_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[5][1] = lo >>> 0; + + lo = s[6][1] + g_lo; + s[6][0] = (s[6][0] + g_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[6][1] = lo >>> 0; + + lo = s[7][1] + h_lo; + s[7][0] = (s[7][0] + h_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[7][1] = lo >>> 0; + + len -= 128; + } +} + + +/***/ }), + +/***/ 1691: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.domains_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var domains_v1alpha2; +(function (domains_v1alpha2) { + /** + * Cloud Domains API + * + * Enables management and configuration of domain names. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const domains = google.domains('v1alpha2'); + * ``` + */ + class Domains { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + domains_v1alpha2.Domains = Domains; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + domains_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.registrations = new Resource$Projects$Locations$Registrations(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domains_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domains_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Registrations { + constructor(context) { + this.context = context; + } + configureContactSettings(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + configureDnsSettings(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + configureManagementSettings(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAuthorizationCode(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveAuthorizationCode(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveImportableDomains(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha2/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveRegisterParameters(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha2/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveTransferParameters(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha2/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchDomains(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + transfer(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domains_v1alpha2.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; +})(domains_v1alpha2 = exports.domains_v1alpha2 || (exports.domains_v1alpha2 = {})); + + +/***/ }), + +/***/ 1693: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.domainsrdap_v1 = exports.auth = exports.domainsrdap = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4937); +Object.defineProperty(exports, "domainsrdap_v1", { enumerable: true, get: function () { return v1_1.domainsrdap_v1; } }); +exports.VERSIONS = { + v1: v1_1.domainsrdap_v1.Domainsrdap, +}; +function domainsrdap(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('domainsrdap', versionOrOptions, exports.VERSIONS, this); +} +exports.domainsrdap = domainsrdap; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1735: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.sql_v1beta4 = exports.auth = exports.sql = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta4_1 = __webpack_require__(3475); +Object.defineProperty(exports, "sql_v1beta4", { enumerable: true, get: function () { return v1beta4_1.sql_v1beta4; } }); +exports.VERSIONS = { + v1beta4: v1beta4_1.sql_v1beta4.Sql, +}; +function sql(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sql', versionOrOptions, exports.VERSIONS, this); +} +exports.sql = sql; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1752: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.networkservices_v1beta1 = exports.networkservices_v1 = exports.auth = exports.networkservices = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7981); +Object.defineProperty(exports, "networkservices_v1", { enumerable: true, get: function () { return v1_1.networkservices_v1; } }); +const v1beta1_1 = __webpack_require__(8228); +Object.defineProperty(exports, "networkservices_v1beta1", { enumerable: true, get: function () { return v1beta1_1.networkservices_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.networkservices_v1.Networkservices, + v1beta1: v1beta1_1.networkservices_v1beta1.Networkservices, +}; +function networkservices(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('networkservices', versionOrOptions, exports.VERSIONS, this); +} +exports.networkservices = networkservices; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1753: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var endpoint = __webpack_require__(9385); +var universalUserAgent = __webpack_require__(6796); +var isPlainObject = __webpack_require__(5356); +var nodeFetch = _interopDefault(__webpack_require__(4454)); +var requestError = __webpack_require__(7463); + +const VERSION = "5.6.3"; + +function getBufferResponse(response) { + return response.arrayBuffer(); +} + +function fetchWrapper(requestOptions) { + const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console; + + if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + + let headers = {}; + let status; + let url; + const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect + }, // `requestOptions.request.agent` type is incompatible + // see https://github.com/octokit/types.ts/pull/264 + requestOptions.request)).then(async response => { + url = response.url; + status = response.status; + + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + + if ("deprecation" in headers) { + const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/); + const deprecationLink = matches && matches.pop(); + log.warn(`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`); + } + + if (status === 204 || status === 205) { + return; + } // GitHub API returns 200 for HEAD requests + + + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + + throw new requestError.RequestError(response.statusText, status, { + response: { + url, + status, + headers, + data: undefined + }, + request: requestOptions + }); + } + + if (status === 304) { + throw new requestError.RequestError("Not modified", status, { + response: { + url, + status, + headers, + data: await getResponseData(response) + }, + request: requestOptions + }); + } + + if (status >= 400) { + const data = await getResponseData(response); + const error = new requestError.RequestError(toErrorMessage(data), status, { + response: { + url, + status, + headers, + data + }, + request: requestOptions + }); + throw error; + } + + return getResponseData(response); + }).then(data => { + return { + status, + url, + headers, + data + }; + }).catch(error => { + if (error instanceof requestError.RequestError) throw error; + throw new requestError.RequestError(error.message, 500, { + request: requestOptions + }); + }); +} + +async function getResponseData(response) { + const contentType = response.headers.get("content-type"); + + if (/application\/json/.test(contentType)) { + return response.json(); + } + + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + + return getBufferResponse(response); +} + +function toErrorMessage(data) { + if (typeof data === "string") return data; // istanbul ignore else - just in case + + if ("message" in data) { + if (Array.isArray(data.errors)) { + return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`; + } + + return data.message; + } // istanbul ignore next - just in case + + + return `Unknown error: ${JSON.stringify(data)}`; +} + +function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint) + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint) + }); +} + +const request = withDefaults(endpoint.endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}` + } +}); + +exports.request = request; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 1761: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.tpu_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var tpu_v2; +(function (tpu_v2) { + /** + * Cloud TPU API + * + * TPU API provides customers with access to Google TPU technology. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tpu = google.tpu('v2'); + * ``` + */ + class Tpu { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + tpu_v2.Tpu = Tpu; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + tpu_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); + this.nodes = new Resource$Projects$Locations$Nodes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimeVersions = new Resource$Projects$Locations$Runtimeversions(this.context); + } + generateServiceIdentity(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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Acceleratortypes { + 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v2.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; + class Resource$Projects$Locations$Nodes { + 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getGuestAttributes(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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v2.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; + 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimeversions { + 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://tpu.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/runtimeVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v2.Resource$Projects$Locations$Runtimeversions = Resource$Projects$Locations$Runtimeversions; +})(tpu_v2 = exports.tpu_v2 || (exports.tpu_v2 = {})); + + +/***/ }), + +/***/ 1765: +/***/ (function(module) { + +module.exports = require("process"); + +/***/ }), + +/***/ 1769: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.kmsinventory_v1 = exports.auth = exports.kmsinventory = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5554); +Object.defineProperty(exports, "kmsinventory_v1", { enumerable: true, get: function () { return v1_1.kmsinventory_v1; } }); +exports.VERSIONS = { + v1: v1_1.kmsinventory_v1.Kmsinventory, +}; +function kmsinventory(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('kmsinventory', versionOrOptions, exports.VERSIONS, this); +} +exports.kmsinventory = kmsinventory; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1797: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.searchconsole_v1 = exports.auth = exports.searchconsole = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8027); +Object.defineProperty(exports, "searchconsole_v1", { enumerable: true, get: function () { return v1_1.searchconsole_v1; } }); +exports.VERSIONS = { + v1: v1_1.searchconsole_v1.Searchconsole, +}; +function searchconsole(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('searchconsole', versionOrOptions, exports.VERSIONS, this); +} +exports.searchconsole = searchconsole; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1808: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebasedynamiclinks_v1 = exports.auth = exports.firebasedynamiclinks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5907); +Object.defineProperty(exports, "firebasedynamiclinks_v1", { enumerable: true, get: function () { return v1_1.firebasedynamiclinks_v1; } }); +exports.VERSIONS = { + v1: v1_1.firebasedynamiclinks_v1.Firebasedynamiclinks, +}; +function firebasedynamiclinks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebasedynamiclinks', versionOrOptions, exports.VERSIONS, this); +} +exports.firebasedynamiclinks = firebasedynamiclinks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1813: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.androidpublisher_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 = __webpack_require__(927); +var androidpublisher_v2; +(function (androidpublisher_v2) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v2'); + * + * @namespace androidpublisher + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.purchases = new Resource$Purchases(this.context); + } + } + androidpublisher_v2.Androidpublisher = Androidpublisher; + class Resource$Purchases { + constructor(context) { + this.context = context; + this.products = new Resource$Purchases$Products(this.context); + this.voidedpurchases = new Resource$Purchases$Voidedpurchases(this.context); + } + } + androidpublisher_v2.Resource$Purchases = Resource$Purchases; + class Resource$Purchases$Products { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v2/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v2.Resource$Purchases$Products = Resource$Purchases$Products; + class Resource$Purchases$Voidedpurchases { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v2/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v2.Resource$Purchases$Voidedpurchases = Resource$Purchases$Voidedpurchases; +})(androidpublisher_v2 = exports.androidpublisher_v2 || (exports.androidpublisher_v2 = {})); + + +/***/ }), + +/***/ 1818: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = isexe +isexe.sync = sync + +var fs = __webpack_require__(5747) + +function checkPathExt (path, options) { + var pathext = options.pathExt !== undefined ? + options.pathExt : process.env.PATHEXT + + if (!pathext) { + return true + } + + pathext = pathext.split(';') + if (pathext.indexOf('') !== -1) { + return true + } + for (var i = 0; i < pathext.length; i++) { + var p = pathext[i].toLowerCase() + if (p && path.substr(-p.length).toLowerCase() === p) { + return true + } + } + return false +} + +function checkStat (stat, path, options) { + if (!stat.isSymbolicLink() && !stat.isFile()) { + return false + } + return checkPathExt(path, options) +} + +function isexe (path, options, cb) { + fs.stat(path, function (er, stat) { + cb(er, er ? false : checkStat(stat, path, options)) + }) +} + +function sync (path, options) { + return checkStat(fs.statSync(path), path, options) +} + + +/***/ }), + +/***/ 1833: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vision_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vision_v1; +(function (vision_v1) { + /** + * Cloud Vision API + * + * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vision = google.vision('v1'); + * ``` + */ + class Vision { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.locations = new Resource$Locations(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + vision_v1.Vision = Vision; + class Resource$Files { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Files = Resource$Files; + class Resource$Images { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Images = Resource$Images; + class Resource$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Locations$Operations(this.context); + } + } + vision_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Locations$Operations = Resource$Locations$Operations; + class Resource$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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Files(this.context); + this.images = new Resource$Projects$Images(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + vision_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Files { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Files = Resource$Projects$Files; + class Resource$Projects$Images { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Images = Resource$Projects$Images; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Files(this.context); + this.images = new Resource$Projects$Locations$Images(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.products = new Resource$Projects$Locations$Products(this.context); + this.productSets = new Resource$Projects$Locations$Productsets(this.context); + } + } + vision_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Files { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; + class Resource$Projects$Locations$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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Products { + constructor(context) { + this.context = context; + this.referenceImages = + new Resource$Projects$Locations$Products$Referenceimages(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + purge(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Products = Resource$Projects$Locations$Products; + class Resource$Projects$Locations$Products$Referenceimages { + 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Products$Referenceimages = Resource$Projects$Locations$Products$Referenceimages; + class Resource$Projects$Locations$Productsets { + constructor(context) { + this.context = context; + this.products = new Resource$Projects$Locations$Productsets$Products(this.context); + } + addProduct(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:addProduct').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/productSets:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeProduct(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:removeProduct').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Productsets = Resource$Projects$Locations$Productsets; + class Resource$Projects$Locations$Productsets$Products { + 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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Productsets$Products = Resource$Projects$Locations$Productsets$Products; + class Resource$Projects$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://vision.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(vision_v1 = exports.vision_v1 || (exports.vision_v1 = {})); + + +/***/ }), + +/***/ 1850: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Prime number generation API. + * + * @author Dave Longley + * + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); +__webpack_require__(7349); +__webpack_require__(5707); + +(function() { + +// forge.prime already defined +if(forge.prime) { + module.exports = forge.prime; + return; +} + +/* PRIME API */ +var prime = module.exports = forge.prime = forge.prime || {}; + +var BigInteger = forge.jsbn.BigInteger; + +// primes are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 +var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; +var THIRTY = new BigInteger(null); +THIRTY.fromInt(30); +var op_or = function(x, y) {return x|y;}; + +/** + * Generates a random probable prime with the given number of bits. + * + * Alternative algorithms can be specified by name as a string or as an + * object with custom options like so: + * + * { + * name: 'PRIMEINC', + * options: { + * maxBlockTime: , + * millerRabinTests: , + * workerScript: , + * workers: . + * workLoad: the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * } + * } + * + * @param bits the number of bits for the prime number. + * @param options the options to use. + * [algorithm] the algorithm to use (default: 'PRIMEINC'). + * [prng] a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + * + * @return callback(err, num) called once the operation completes. + */ +prime.generateProbablePrime = function(bits, options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + + // default to PRIMEINC algorithm + var algorithm = options.algorithm || 'PRIMEINC'; + if(typeof algorithm === 'string') { + algorithm = {name: algorithm}; + } + algorithm.options = algorithm.options || {}; + + // create prng with api that matches BigInteger secure random + var prng = options.prng || forge.random; + var rng = { + // x is an array to fill with bytes + nextBytes: function(x) { + var b = prng.getBytesSync(x.length); + for(var i = 0; i < x.length; ++i) { + x[i] = b.charCodeAt(i); + } + } + }; + + if(algorithm.name === 'PRIMEINC') { + return primeincFindPrime(bits, rng, algorithm.options, callback); + } + + throw new Error('Invalid prime generation algorithm: ' + algorithm.name); +}; + +function primeincFindPrime(bits, rng, options, callback) { + if('workers' in options) { + return primeincFindPrimeWithWorkers(bits, rng, options, callback); + } + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); +} + +function primeincFindPrimeWithoutWorkers(bits, rng, options, callback) { + // initialize random number + var num = generateRandom(bits, rng); + + /* Note: All primes are of the form 30k+i for i < 30 and gcd(30, i)=1. The + number we are given is always aligned at 30k + 1. Each time the number is + determined not to be prime we add to get to the next 'i', eg: if the number + was at 30k + 1 we add 6. */ + var deltaIdx = 0; + + // get required number of MR tests + var mrTests = getMillerRabinTests(num.bitLength()); + if('millerRabinTests' in options) { + mrTests = options.millerRabinTests; + } + + // find prime nearest to 'num' for maxBlockTime ms + // 10 ms gives 5ms of leeway for other calculations before dropping + // below 60fps (1000/60 == 16.67), but in reality, the number will + // likely be higher due to an 'atomic' big int modPow + var maxBlockTime = 10; + if('maxBlockTime' in options) { + maxBlockTime = options.maxBlockTime; + } + + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); +} + +function _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback) { + var start = +new Date(); + do { + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } + // do primality test + if(num.isProbablePrime(mrTests)) { + return callback(null, num); + } + // get next potential prime + num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); + } while(maxBlockTime < 0 || (+new Date() - start < maxBlockTime)); + + // keep trying later + forge.util.setImmediate(function() { + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); + }); +} + +// NOTE: This algorithm is indeterminate in nature because workers +// run in parallel looking at different segments of numbers. Even if this +// algorithm is run twice with the same input from a predictable RNG, it +// may produce different outputs. +function primeincFindPrimeWithWorkers(bits, rng, options, callback) { + // web workers unavailable + if(typeof Worker === 'undefined') { + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); + } + + // initialize random number + var num = generateRandom(bits, rng); + + // use web workers to generate keys + var numWorkers = options.workers; + var workLoad = options.workLoad || 100; + var range = workLoad * 30 / 8; + var workerScript = options.workerScript || 'forge/prime.worker.js'; + if(numWorkers === -1) { + return forge.util.estimateCores(function(err, cores) { + if(err) { + // default to 2 + cores = 2; + } + numWorkers = cores - 1; + generate(); + }); + } + generate(); + + function generate() { + // require at least 1 worker + numWorkers = Math.max(1, numWorkers); + + // TODO: consider optimizing by starting workers outside getPrime() ... + // note that in order to clean up they will have to be made internally + // asynchronous which may actually be slower + + // start workers immediately + var workers = []; + for(var i = 0; i < numWorkers; ++i) { + // FIXME: fix path or use blob URLs + workers[i] = new Worker(workerScript); + } + var running = numWorkers; + + // listen for requests from workers and assign ranges to find prime + for(var i = 0; i < numWorkers; ++i) { + workers[i].addEventListener('message', workerMessage); + } + + /* Note: The distribution of random numbers is unknown. Therefore, each + web worker is continuously allocated a range of numbers to check for a + random number until one is found. + + Every 30 numbers will be checked just 8 times, because prime numbers + have the form: + + 30k+i, for i < 30 and gcd(30, i)=1 (there are 8 values of i for this) + + Therefore, if we want a web worker to run N checks before asking for + a new range of numbers, each range must contain N*30/8 numbers. + + For 100 checks (workLoad), this is a range of 375. */ + + var found = false; + function workerMessage(e) { + // ignore message, prime already found + if(found) { + return; + } + + --running; + var data = e.data; + if(data.found) { + // terminate all workers + for(var i = 0; i < workers.length; ++i) { + workers[i].terminate(); + } + found = true; + return callback(null, new BigInteger(data.prime, 16)); + } + + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } + + // assign new range to check + var hex = num.toString(16); + + // start prime search + e.target.postMessage({ + hex: hex, + workLoad: workLoad + }); + + num.dAddOffset(range, 0); + } + } +} + +/** + * Generates a random number using the given number of bits and RNG. + * + * @param bits the number of bits for the number. + * @param rng the random number generator to use. + * + * @return the random number. + */ +function generateRandom(bits, rng) { + var num = new BigInteger(bits, rng); + // force MSB set + var bits1 = bits - 1; + if(!num.testBit(bits1)) { + num.bitwiseTo(BigInteger.ONE.shiftLeft(bits1), op_or, num); + } + // align number on 30k+1 boundary + num.dAddOffset(31 - num.mod(THIRTY).byteValue(), 0); + return num; +} + +/** + * Returns the required number of Miller-Rabin tests to generate a + * prime with an error probability of (1/2)^80. + * + * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * + * @param bits the bit size. + * + * @return the required number of iterations. + */ +function getMillerRabinTests(bits) { + if(bits <= 100) return 27; + if(bits <= 150) return 18; + if(bits <= 200) return 15; + if(bits <= 250) return 12; + if(bits <= 300) return 9; + if(bits <= 350) return 8; + if(bits <= 400) return 7; + if(bits <= 500) return 6; + if(bits <= 600) return 5; + if(bits <= 800) return 4; + if(bits <= 1250) return 3; + return 2; +} + +})(); + + +/***/ }), + +/***/ 1855: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = registerPlugin; + +const factory = __webpack_require__(9047); + +function registerPlugin(plugins, pluginFunction) { + return factory( + plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction) + ); +} + + +/***/ }), + +/***/ 1892: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.datalabeling_v1beta1 = exports.auth = exports.datalabeling = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(1567); +Object.defineProperty(exports, "datalabeling_v1beta1", { enumerable: true, get: function () { return v1beta1_1.datalabeling_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.datalabeling_v1beta1.Datalabeling, +}; +function datalabeling(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datalabeling', versionOrOptions, exports.VERSIONS, this); +} +exports.datalabeling = datalabeling; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1897: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.securitycenter_v1p1beta1 = 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 = __webpack_require__(927); +var securitycenter_v1p1beta1; +(function (securitycenter_v1p1beta1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1p1beta1'); + * + * @namespace securitycenter + * @type {Function} + * @version v1p1beta1 + * @variation v1p1beta1 + * @param {object=} options Options for Securitycenter + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1p1beta1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.assets = new Resource$Organizations$Assets(this.context); + this.notificationConfigs = new Resource$Organizations$Notificationconfigs(this.context); + this.operations = new Resource$Organizations$Operations(this.context); + this.sources = new Resource$Organizations$Sources(this.context); + } + getOrganizationSettings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateOrganizationSettings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Assets { + constructor(context) { + this.context = context; + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runDiscovery(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Notificationconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; + class Resource$Organizations$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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Organizations$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Organizations$Sources$Findings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Sources = Resource$Organizations$Sources; + class Resource$Organizations$Sources$Findings { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setState(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1p1beta1 = exports.securitycenter_v1p1beta1 || (exports.securitycenter_v1p1beta1 = {})); + + +/***/ }), + +/***/ 1901: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.androidmanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var androidmanagement_v1; +(function (androidmanagement_v1) { + /** + * Android Management API + * + * The Android Management API provides remote enterprise management of Android devices and apps. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const androidmanagement = google.androidmanagement('v1'); + * ``` + */ + class Androidmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.enterprises = new Resource$Enterprises(this.context); + this.signupUrls = new Resource$Signupurls(this.context); + } + } + androidmanagement_v1.Androidmanagement = Androidmanagement; + class Resource$Enterprises { + constructor(context) { + this.context = context; + this.applications = new Resource$Enterprises$Applications(this.context); + this.devices = new Resource$Enterprises$Devices(this.context); + this.enrollmentTokens = new Resource$Enterprises$Enrollmenttokens(this.context); + this.policies = new Resource$Enterprises$Policies(this.context); + this.webApps = new Resource$Enterprises$Webapps(this.context); + this.webTokens = new Resource$Enterprises$Webtokens(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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises = Resource$Enterprises; + class Resource$Enterprises$Applications { + 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Applications = Resource$Enterprises$Applications; + class Resource$Enterprises$Devices { + constructor(context) { + this.context = context; + this.operations = new Resource$Enterprises$Devices$Operations(this.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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + issueCommand(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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:issueCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Devices = Resource$Enterprises$Devices; + class Resource$Enterprises$Devices$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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Devices$Operations = Resource$Enterprises$Devices$Operations; + class Resource$Enterprises$Enrollmenttokens { + 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Enrollmenttokens = Resource$Enterprises$Enrollmenttokens; + class Resource$Enterprises$Policies { + 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Policies = Resource$Enterprises$Policies; + class Resource$Enterprises$Webapps { + 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Webapps = Resource$Enterprises$Webapps; + class Resource$Enterprises$Webtokens { + 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/webTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Webtokens = Resource$Enterprises$Webtokens; + class Resource$Signupurls { + 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://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/signupUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidmanagement_v1.Resource$Signupurls = Resource$Signupurls; +})(androidmanagement_v1 = exports.androidmanagement_v1 || (exports.androidmanagement_v1 = {})); + + +/***/ }), + +/***/ 1903: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(__webpack_require__(6417)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var _default = { + randomUUID: _crypto.default.randomUUID +}; +exports.default = _default; + +/***/ }), + +/***/ 1919: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.doubleclicksearch_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var doubleclicksearch_v2; +(function (doubleclicksearch_v2) { + /** + * Search Ads 360 API + * + * The Search Ads 360 API allows developers to automate uploading conversions and downloading reports from Search Ads 360. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const doubleclicksearch = google.doubleclicksearch('v2'); + * ``` + */ + class Doubleclicksearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.conversion = new Resource$Conversion(this.context); + this.reports = new Resource$Reports(this.context); + this.savedColumns = new Resource$Savedcolumns(this.context); + } + } + doubleclicksearch_v2.Doubleclicksearch = Doubleclicksearch; + class Resource$Conversion { + 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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'agencyId', + 'advertiserId', + 'engineAccountId', + 'endDate', + 'rowCount', + 'startDate', + 'startRow', + ], + pathParams: ['advertiserId', 'agencyId', 'engineAccountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getByCustomerId(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/customer/{customerId}/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'customerId', + 'endDate', + 'rowCount', + 'startDate', + 'startRow', + ], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAvailability(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/conversion/updateAvailability').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclicksearch_v2.Resource$Conversion = Resource$Conversion; + class Resource$Reports { + constructor(context) { + this.context = context; + } + generate(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/reports/generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId'], + pathParams: ['reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFile(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId', 'reportFragment'], + pathParams: ['reportFragment', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIdMappingFile(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/idmapping').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['agencyId', 'advertiserId'], + pathParams: ['advertiserId', 'agencyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + request(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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclicksearch_v2.Resource$Reports = Resource$Reports; + class Resource$Savedcolumns { + 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://doubleclicksearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['agencyId', 'advertiserId'], + pathParams: ['advertiserId', 'agencyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclicksearch_v2.Resource$Savedcolumns = Resource$Savedcolumns; +})(doubleclicksearch_v2 = exports.doubleclicksearch_v2 || (exports.doubleclicksearch_v2 = {})); + + +/***/ }), + +/***/ 1922: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datamigration_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datamigration_v1; +(function (datamigration_v1) { + /** + * Database Migration API + * + * Manage Cloud Database Migration Service resources on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datamigration = google.datamigration('v1'); + * ``` + */ + class Datamigration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datamigration_v1.Datamigration = Datamigration; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datamigration_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connectionProfiles = + new Resource$Projects$Locations$Connectionprofiles(this.context); + this.conversionWorkspaces = + new Resource$Projects$Locations$Conversionworkspaces(this.context); + this.migrationJobs = new Resource$Projects$Locations$Migrationjobs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.privateConnections = + new Resource$Projects$Locations$Privateconnections(this.context); + } + fetchStaticIps(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectionprofiles { + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; + class Resource$Projects$Locations$Conversionworkspaces { + constructor(context) { + this.context = context; + this.mappingRules = + new Resource$Projects$Locations$Conversionworkspaces$Mappingrules(this.context); + } + apply(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:apply').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + commit(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + convert(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:convert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversionWorkspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + describeConversionWorkspaceRevisions(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['conversionWorkspace'], + pathParams: ['conversionWorkspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + describeDatabaseEntities(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+conversionWorkspace}:describeDatabaseEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['conversionWorkspace'], + pathParams: ['conversionWorkspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversionWorkspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchBackgroundJobs(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+conversionWorkspace}:searchBackgroundJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['conversionWorkspace'], + pathParams: ['conversionWorkspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + seed(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:seed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations$Conversionworkspaces = Resource$Projects$Locations$Conversionworkspaces; + class Resource$Projects$Locations$Conversionworkspaces$Mappingrules { + constructor(context) { + this.context = context; + } + import(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/mappingRules:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations$Conversionworkspaces$Mappingrules = Resource$Projects$Locations$Conversionworkspaces$Mappingrules; + class Resource$Projects$Locations$Migrationjobs { + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateSshScript(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+migrationJob}:generateSshScript').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['migrationJob'], + pathParams: ['migrationJob'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promote(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verify(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations$Migrationjobs = Resource$Projects$Locations$Migrationjobs; + 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Privateconnections { + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1.Resource$Projects$Locations$Privateconnections = Resource$Projects$Locations$Privateconnections; +})(datamigration_v1 = exports.datamigration_v1 || (exports.datamigration_v1 = {})); + + +/***/ }), + +/***/ 1947: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.sts_v1beta = exports.sts_v1 = exports.auth = exports.sts = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6502); +Object.defineProperty(exports, "sts_v1", { enumerable: true, get: function () { return v1_1.sts_v1; } }); +const v1beta_1 = __webpack_require__(9425); +Object.defineProperty(exports, "sts_v1beta", { enumerable: true, get: function () { return v1beta_1.sts_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.sts_v1.Sts, + v1beta: v1beta_1.sts_v1beta.Sts, +}; +function sts(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sts', versionOrOptions, exports.VERSIONS, this); +} +exports.sts = sts; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1962: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.pubsub_v1beta2 = exports.pubsub_v1beta1a = exports.pubsub_v1 = exports.auth = exports.pubsub = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3077); +Object.defineProperty(exports, "pubsub_v1", { enumerable: true, get: function () { return v1_1.pubsub_v1; } }); +const v1beta1a_1 = __webpack_require__(7578); +Object.defineProperty(exports, "pubsub_v1beta1a", { enumerable: true, get: function () { return v1beta1a_1.pubsub_v1beta1a; } }); +const v1beta2_1 = __webpack_require__(7431); +Object.defineProperty(exports, "pubsub_v1beta2", { enumerable: true, get: function () { return v1beta2_1.pubsub_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.pubsub_v1.Pubsub, + v1beta1a: v1beta1a_1.pubsub_v1beta1a.Pubsub, + v1beta2: v1beta2_1.pubsub_v1beta2.Pubsub, +}; +function pubsub(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('pubsub', versionOrOptions, exports.VERSIONS, this); +} +exports.pubsub = pubsub; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1973: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkebackup_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkebackup_v1; +(function (gkebackup_v1) { + /** + * Backup for GKE API + * + * Backup for GKE is a managed Kubernetes workload backup and restore service for GKE clusters. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkebackup = google.gkebackup('v1'); + * ``` + */ + class Gkebackup { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gkebackup_v1.Gkebackup = Gkebackup; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gkebackup_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backupPlans = new Resource$Projects$Locations$Backupplans(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.restorePlans = new Resource$Projects$Locations$Restoreplans(this.context); + } + deleteOperations(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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backupplans { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Backupplans$Backups(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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Backupplans = Resource$Projects$Locations$Backupplans; + class Resource$Projects$Locations$Backupplans$Backups { + constructor(context) { + this.context = context; + this.volumeBackups = + new Resource$Projects$Locations$Backupplans$Backups$Volumebackups(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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Backupplans$Backups = Resource$Projects$Locations$Backupplans$Backups; + class Resource$Projects$Locations$Backupplans$Backups$Volumebackups { + 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/volumeBackups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Backupplans$Backups$Volumebackups = Resource$Projects$Locations$Backupplans$Backups$Volumebackups; + 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Restoreplans { + constructor(context) { + this.context = context; + this.restores = new Resource$Projects$Locations$Restoreplans$Restores(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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/restorePlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/restorePlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Restoreplans = Resource$Projects$Locations$Restoreplans; + class Resource$Projects$Locations$Restoreplans$Restores { + constructor(context) { + this.context = context; + this.volumeRestores = + new Resource$Projects$Locations$Restoreplans$Restores$Volumerestores(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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/restores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/restores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Restoreplans$Restores = Resource$Projects$Locations$Restoreplans$Restores; + class Resource$Projects$Locations$Restoreplans$Restores$Volumerestores { + 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/volumeRestores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkebackup.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkebackup_v1.Resource$Projects$Locations$Restoreplans$Restores$Volumerestores = Resource$Projects$Locations$Restoreplans$Restores$Volumerestores; +})(gkebackup_v1 = exports.gkebackup_v1 || (exports.gkebackup_v1 = {})); + + +/***/ }), + +/***/ 1979: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.datapipelines_v1 = exports.auth = exports.datapipelines = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5216); +Object.defineProperty(exports, "datapipelines_v1", { enumerable: true, get: function () { return v1_1.datapipelines_v1; } }); +exports.VERSIONS = { + v1: v1_1.datapipelines_v1.Datapipelines, +}; +function datapipelines(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datapipelines', versionOrOptions, exports.VERSIONS, this); +} +exports.datapipelines = datapipelines; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1988: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Object IDs for ASN.1. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); + +forge.pki = forge.pki || {}; +var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {}; + +// set id to name mapping and name to id mapping +function _IN(id, name) { + oids[id] = name; + oids[name] = id; +} +// set id to name mapping only +function _I_(id, name) { + oids[id] = name; +} + +// algorithm OIDs +_IN('1.2.840.113549.1.1.1', 'rsaEncryption'); +// Note: md2 & md4 not implemented +//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption'); +//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption'); +_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption'); +_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption'); +_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP'); +_IN('1.2.840.113549.1.1.8', 'mgf1'); +_IN('1.2.840.113549.1.1.9', 'pSpecified'); +_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS'); +_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption'); +_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption'); +_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption'); +// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519 +_IN('1.3.101.112', 'EdDSA25519'); + +_IN('1.2.840.10040.4.3', 'dsa-with-sha1'); + +_IN('1.3.14.3.2.7', 'desCBC'); + +_IN('1.3.14.3.2.26', 'sha1'); +// Deprecated equivalent of sha1WithRSAEncryption +_IN('1.3.14.3.2.29', 'sha1WithRSASignature'); +_IN('2.16.840.1.101.3.4.2.1', 'sha256'); +_IN('2.16.840.1.101.3.4.2.2', 'sha384'); +_IN('2.16.840.1.101.3.4.2.3', 'sha512'); +_IN('2.16.840.1.101.3.4.2.4', 'sha224'); +_IN('2.16.840.1.101.3.4.2.5', 'sha512-224'); +_IN('2.16.840.1.101.3.4.2.6', 'sha512-256'); +_IN('1.2.840.113549.2.2', 'md2'); +_IN('1.2.840.113549.2.5', 'md5'); + +// pkcs#7 content types +_IN('1.2.840.113549.1.7.1', 'data'); +_IN('1.2.840.113549.1.7.2', 'signedData'); +_IN('1.2.840.113549.1.7.3', 'envelopedData'); +_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData'); +_IN('1.2.840.113549.1.7.5', 'digestedData'); +_IN('1.2.840.113549.1.7.6', 'encryptedData'); + +// pkcs#9 oids +_IN('1.2.840.113549.1.9.1', 'emailAddress'); +_IN('1.2.840.113549.1.9.2', 'unstructuredName'); +_IN('1.2.840.113549.1.9.3', 'contentType'); +_IN('1.2.840.113549.1.9.4', 'messageDigest'); +_IN('1.2.840.113549.1.9.5', 'signingTime'); +_IN('1.2.840.113549.1.9.6', 'counterSignature'); +_IN('1.2.840.113549.1.9.7', 'challengePassword'); +_IN('1.2.840.113549.1.9.8', 'unstructuredAddress'); +_IN('1.2.840.113549.1.9.14', 'extensionRequest'); + +_IN('1.2.840.113549.1.9.20', 'friendlyName'); +_IN('1.2.840.113549.1.9.21', 'localKeyId'); +_IN('1.2.840.113549.1.9.22.1', 'x509Certificate'); + +// pkcs#12 safe bags +_IN('1.2.840.113549.1.12.10.1.1', 'keyBag'); +_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag'); +_IN('1.2.840.113549.1.12.10.1.3', 'certBag'); +_IN('1.2.840.113549.1.12.10.1.4', 'crlBag'); +_IN('1.2.840.113549.1.12.10.1.5', 'secretBag'); +_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag'); + +// password-based-encryption for pkcs#12 +_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2'); +_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2'); + +_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4'); +_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4'); +_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC'); +_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC'); +_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC'); +_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC'); + +// hmac OIDs +_IN('1.2.840.113549.2.7', 'hmacWithSHA1'); +_IN('1.2.840.113549.2.8', 'hmacWithSHA224'); +_IN('1.2.840.113549.2.9', 'hmacWithSHA256'); +_IN('1.2.840.113549.2.10', 'hmacWithSHA384'); +_IN('1.2.840.113549.2.11', 'hmacWithSHA512'); + +// symmetric key algorithm oids +_IN('1.2.840.113549.3.7', 'des-EDE3-CBC'); +_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC'); +_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC'); +_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC'); + +// certificate issuer/subject OIDs +_IN('2.5.4.3', 'commonName'); +_IN('2.5.4.4', 'surname'); +_IN('2.5.4.5', 'serialNumber'); +_IN('2.5.4.6', 'countryName'); +_IN('2.5.4.7', 'localityName'); +_IN('2.5.4.8', 'stateOrProvinceName'); +_IN('2.5.4.9', 'streetAddress'); +_IN('2.5.4.10', 'organizationName'); +_IN('2.5.4.11', 'organizationalUnitName'); +_IN('2.5.4.12', 'title'); +_IN('2.5.4.13', 'description'); +_IN('2.5.4.15', 'businessCategory'); +_IN('2.5.4.17', 'postalCode'); +_IN('2.5.4.42', 'givenName'); +_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName'); +_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName'); + +// X.509 extension OIDs +_IN('2.16.840.1.113730.1.1', 'nsCertType'); +_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used +_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35 +_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15 +_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32 +_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15 +_I_('2.5.29.5', 'policyMapping'); // deprecated use .33 +_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30 +_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17 +_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18 +_I_('2.5.29.9', 'subjectDirectoryAttributes'); +_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19 +_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30 +_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36 +_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19 +_IN('2.5.29.14', 'subjectKeyIdentifier'); +_IN('2.5.29.15', 'keyUsage'); +_I_('2.5.29.16', 'privateKeyUsagePeriod'); +_IN('2.5.29.17', 'subjectAltName'); +_IN('2.5.29.18', 'issuerAltName'); +_IN('2.5.29.19', 'basicConstraints'); +_I_('2.5.29.20', 'cRLNumber'); +_I_('2.5.29.21', 'cRLReason'); +_I_('2.5.29.22', 'expirationDate'); +_I_('2.5.29.23', 'instructionCode'); +_I_('2.5.29.24', 'invalidityDate'); +_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31 +_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28 +_I_('2.5.29.27', 'deltaCRLIndicator'); +_I_('2.5.29.28', 'issuingDistributionPoint'); +_I_('2.5.29.29', 'certificateIssuer'); +_I_('2.5.29.30', 'nameConstraints'); +_IN('2.5.29.31', 'cRLDistributionPoints'); +_IN('2.5.29.32', 'certificatePolicies'); +_I_('2.5.29.33', 'policyMappings'); +_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36 +_IN('2.5.29.35', 'authorityKeyIdentifier'); +_I_('2.5.29.36', 'policyConstraints'); +_IN('2.5.29.37', 'extKeyUsage'); +_I_('2.5.29.46', 'freshestCRL'); +_I_('2.5.29.54', 'inhibitAnyPolicy'); + +// extKeyUsage purposes +_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList'); +_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess'); +_IN('1.3.6.1.5.5.7.3.1', 'serverAuth'); +_IN('1.3.6.1.5.5.7.3.2', 'clientAuth'); +_IN('1.3.6.1.5.5.7.3.3', 'codeSigning'); +_IN('1.3.6.1.5.5.7.3.4', 'emailProtection'); +_IN('1.3.6.1.5.5.7.3.8', 'timeStamping'); + + +/***/ }), + +/***/ 1989: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.analytics_v3 = exports.auth = exports.analytics = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_1 = __webpack_require__(2278); +Object.defineProperty(exports, "analytics_v3", { enumerable: true, get: function () { return v3_1.analytics_v3; } }); +exports.VERSIONS = { + v3: v3_1.analytics_v3.Analytics, +}; +function analytics(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('analytics', versionOrOptions, exports.VERSIONS, this); +} +exports.analytics = analytics; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 1996: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.youtube_v3 = exports.auth = exports.youtube = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_1 = __webpack_require__(2261); +Object.defineProperty(exports, "youtube_v3", { enumerable: true, get: function () { return v3_1.youtube_v3; } }); +exports.VERSIONS = { + v3: v3_1.youtube_v3.Youtube, +}; +function youtube(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('youtube', versionOrOptions, exports.VERSIONS, this); +} +exports.youtube = youtube; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2015: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.artifactregistry_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var artifactregistry_v1; +(function (artifactregistry_v1) { + /** + * Artifact Registry API + * + * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const artifactregistry = google.artifactregistry('v1'); + * ``` + */ + class Artifactregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + artifactregistry_v1.Artifactregistry = Artifactregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + getProjectSettings(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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateProjectSettings(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.repositories = new Resource$Projects$Locations$Repositories(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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getVpcscConfig(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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateVpcscConfig(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Repositories { + constructor(context) { + this.context = context; + this.aptArtifacts = + new Resource$Projects$Locations$Repositories$Aptartifacts(this.context); + this.dockerImages = + new Resource$Projects$Locations$Repositories$Dockerimages(this.context); + this.files = new Resource$Projects$Locations$Repositories$Files(this.context); + this.kfpArtifacts = + new Resource$Projects$Locations$Repositories$Kfpartifacts(this.context); + this.mavenArtifacts = + new Resource$Projects$Locations$Repositories$Mavenartifacts(this.context); + this.npmPackages = + new Resource$Projects$Locations$Repositories$Npmpackages(this.context); + this.packages = new Resource$Projects$Locations$Repositories$Packages(this.context); + this.pythonPackages = + new Resource$Projects$Locations$Repositories$Pythonpackages(this.context); + this.yumArtifacts = + new Resource$Projects$Locations$Repositories$Yumartifacts(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Aptartifacts { + constructor(context) { + this.context = context; + } + import(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Aptartifacts = Resource$Projects$Locations$Repositories$Aptartifacts; + class Resource$Projects$Locations$Repositories$Dockerimages { + 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dockerImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Dockerimages = Resource$Projects$Locations$Repositories$Dockerimages; + class Resource$Projects$Locations$Repositories$Files { + 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Files = Resource$Projects$Locations$Repositories$Files; + class Resource$Projects$Locations$Repositories$Kfpartifacts { + constructor(context) { + this.context = context; + } + upload(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Kfpartifacts = Resource$Projects$Locations$Repositories$Kfpartifacts; + class Resource$Projects$Locations$Repositories$Mavenartifacts { + 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/mavenArtifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Mavenartifacts = Resource$Projects$Locations$Repositories$Mavenartifacts; + class Resource$Projects$Locations$Repositories$Npmpackages { + 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/npmPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Npmpackages = Resource$Projects$Locations$Repositories$Npmpackages; + class Resource$Projects$Locations$Repositories$Packages { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Repositories$Packages$Tags(this.context); + this.versions = + new Resource$Projects$Locations$Repositories$Packages$Versions(this.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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; + class Resource$Projects$Locations$Repositories$Packages$Tags { + 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages$Tags = Resource$Projects$Locations$Repositories$Packages$Tags; + class Resource$Projects$Locations$Repositories$Packages$Versions { + 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; + class Resource$Projects$Locations$Repositories$Pythonpackages { + 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://artifactregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pythonPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Pythonpackages = Resource$Projects$Locations$Repositories$Pythonpackages; + class Resource$Projects$Locations$Repositories$Yumartifacts { + constructor(context) { + this.context = context; + } + import(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1.Resource$Projects$Locations$Repositories$Yumartifacts = Resource$Projects$Locations$Repositories$Yumartifacts; +})(artifactregistry_v1 = exports.artifactregistry_v1 || (exports.artifactregistry_v1 = {})); + + +/***/ }), + +/***/ 2037: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.videointelligence_v1p3beta1 = exports.videointelligence_v1p2beta1 = exports.videointelligence_v1p1beta1 = exports.videointelligence_v1beta2 = exports.videointelligence_v1 = exports.auth = exports.videointelligence = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9463); +Object.defineProperty(exports, "videointelligence_v1", { enumerable: true, get: function () { return v1_1.videointelligence_v1; } }); +const v1beta2_1 = __webpack_require__(3489); +Object.defineProperty(exports, "videointelligence_v1beta2", { enumerable: true, get: function () { return v1beta2_1.videointelligence_v1beta2; } }); +const v1p1beta1_1 = __webpack_require__(4541); +Object.defineProperty(exports, "videointelligence_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.videointelligence_v1p1beta1; } }); +const v1p2beta1_1 = __webpack_require__(8039); +Object.defineProperty(exports, "videointelligence_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } }); +const v1p3beta1_1 = __webpack_require__(6184); +Object.defineProperty(exports, "videointelligence_v1p3beta1", { enumerable: true, get: function () { return v1p3beta1_1.videointelligence_v1p3beta1; } }); +exports.VERSIONS = { + v1: v1_1.videointelligence_v1.Videointelligence, + v1beta2: v1beta2_1.videointelligence_v1beta2.Videointelligence, + v1p1beta1: v1p1beta1_1.videointelligence_v1p1beta1.Videointelligence, + v1p2beta1: v1p2beta1_1.videointelligence_v1p2beta1.Videointelligence, + v1p3beta1: v1p3beta1_1.videointelligence_v1p3beta1.Videointelligence, +}; +function videointelligence(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('videointelligence', versionOrOptions, exports.VERSIONS, this); +} +exports.videointelligence = videointelligence; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2040: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const net_1 = __importDefault(__webpack_require__(1631)); +const tls_1 = __importDefault(__webpack_require__(4016)); +const url_1 = __importDefault(__webpack_require__(8835)); +const assert_1 = __importDefault(__webpack_require__(2357)); +const debug_1 = __importDefault(__webpack_require__(4784)); +const agent_base_1 = __webpack_require__(4443); +const parse_proxy_response_1 = __importDefault(__webpack_require__(428)); +const debug = debug_1.default('https-proxy-agent:agent'); +/** + * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to + * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. + * + * Outgoing HTTP requests are first tunneled through the proxy server using the + * `CONNECT` HTTP request method to establish a connection to the proxy server, + * and then the proxy server connects to the destination target and issues the + * HTTP request from the proxy server. + * + * `https:` requests have their socket connection upgraded to TLS once + * the connection to the proxy server has been established. + * + * @api public + */ +class HttpsProxyAgent extends agent_base_1.Agent { + constructor(_opts) { + let opts; + if (typeof _opts === 'string') { + opts = url_1.default.parse(_opts); + } + else { + opts = _opts; + } + if (!opts) { + throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); + } + debug('creating new HttpsProxyAgent instance: %o', opts); + super(opts); + const proxy = Object.assign({}, opts); + // If `true`, then connect to the proxy server over TLS. + // Defaults to `false`. + this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); + // Prefer `hostname` over `host`, and set the `port` if needed. + proxy.host = proxy.hostname || proxy.host; + if (typeof proxy.port === 'string') { + proxy.port = parseInt(proxy.port, 10); + } + if (!proxy.port && proxy.host) { + proxy.port = this.secureProxy ? 443 : 80; + } + // ALPN is supported by Node.js >= v5. + // attempt to negotiate http/1.1 for proxy servers that support http/2 + if (this.secureProxy && !('ALPNProtocols' in proxy)) { + proxy.ALPNProtocols = ['http 1.1']; + } + if (proxy.host && proxy.path) { + // If both a `host` and `path` are specified then it's most likely + // the result of a `url.parse()` call... we need to remove the + // `path` portion so that `net.connect()` doesn't attempt to open + // that as a Unix socket file. + delete proxy.path; + delete proxy.pathname; + } + this.proxy = proxy; + } + /** + * Called when the node-core HTTP client library is creating a + * new HTTP request. + * + * @api protected + */ + callback(req, opts) { + return __awaiter(this, void 0, void 0, function* () { + const { proxy, secureProxy } = this; + // Create a socket connection to the proxy server. + let socket; + if (secureProxy) { + debug('Creating `tls.Socket`: %o', proxy); + socket = tls_1.default.connect(proxy); + } + else { + debug('Creating `net.Socket`: %o', proxy); + socket = net_1.default.connect(proxy); + } + const headers = Object.assign({}, proxy.headers); + const hostname = `${opts.host}:${opts.port}`; + let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; + // Inject the `Proxy-Authorization` header if necessary. + if (proxy.auth) { + headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; + } + // The `Host` header should only include the port + // number when it is not the default port. + let { host, port, secureEndpoint } = opts; + if (!isDefaultPort(port, secureEndpoint)) { + host += `:${port}`; + } + headers.Host = host; + headers.Connection = 'close'; + for (const name of Object.keys(headers)) { + payload += `${name}: ${headers[name]}\r\n`; + } + const proxyResponsePromise = parse_proxy_response_1.default(socket); + socket.write(`${payload}\r\n`); + const { statusCode, buffered } = yield proxyResponsePromise; + if (statusCode === 200) { + req.once('socket', resume); + if (opts.secureEndpoint) { + // The proxy is connecting to a TLS server, so upgrade + // this socket connection to a TLS connection. + debug('Upgrading socket connection to TLS'); + const servername = opts.servername || opts.host; + return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, + servername })); + } + return socket; + } + // Some other status code that's not 200... need to re-play the HTTP + // header "data" events onto the socket once the HTTP machinery is + // attached so that the node core `http` can parse and handle the + // error status code. + // Close the original socket, and a new "fake" socket is returned + // instead, so that the proxy doesn't get the HTTP request + // written to it (which may contain `Authorization` headers or other + // sensitive data). + // + // See: https://hackerone.com/reports/541502 + socket.destroy(); + const fakeSocket = new net_1.default.Socket({ writable: false }); + fakeSocket.readable = true; + // Need to wait for the "socket" event to re-play the "data" events. + req.once('socket', (s) => { + debug('replaying proxy buffer for failed request'); + assert_1.default(s.listenerCount('data') > 0); + // Replay the "buffered" Buffer onto the fake `socket`, since at + // this point the HTTP module machinery has been hooked up for + // the user. + s.push(buffered); + s.push(null); + }); + return fakeSocket; + }); + } +} +exports.default = HttpsProxyAgent; +function resume(socket) { + socket.resume(); +} +function isDefaultPort(port, secure) { + return Boolean((!secure && port === 80) || (secure && port === 443)); +} +function isHTTPS(protocol) { + return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; +} +function omit(obj, ...keys) { + const ret = {}; + let key; + for (key in obj) { + if (!keys.includes(key)) { + ret[key] = obj[key]; + } + } + return ret; +} +//# sourceMappingURL=agent.js.map + +/***/ }), + +/***/ 2044: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.contactcenterinsights_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var contactcenterinsights_v1; +(function (contactcenterinsights_v1) { + /** + * Contact Center AI Insights API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const contactcenterinsights = google.contactcenterinsights('v1'); + * ``` + */ + class Contactcenterinsights { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + contactcenterinsights_v1.Contactcenterinsights = Contactcenterinsights; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + contactcenterinsights_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.conversations = new Resource$Projects$Locations$Conversations(this.context); + this.insightsdata = new Resource$Projects$Locations$Insightsdata(this.context); + this.issueModels = new Resource$Projects$Locations$Issuemodels(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.phraseMatchers = new Resource$Projects$Locations$Phrasematchers(this.context); + this.views = new Resource$Projects$Locations$Views(this.context); + } + 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Conversations { + constructor(context) { + this.context = context; + this.analyses = new Resource$Projects$Locations$Conversations$Analyses(this.context); + } + bulkAnalyze(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversations:bulkAnalyze').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + calculateStats(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/conversations:calculateStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + ingest(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversations:ingest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/conversations:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Conversations = Resource$Projects$Locations$Conversations; + class Resource$Projects$Locations$Conversations$Analyses { + 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/analyses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/analyses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Conversations$Analyses = Resource$Projects$Locations$Conversations$Analyses; + class Resource$Projects$Locations$Insightsdata { + constructor(context) { + this.context = context; + } + export(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/insightsdata:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Insightsdata = Resource$Projects$Locations$Insightsdata; + class Resource$Projects$Locations$Issuemodels { + constructor(context) { + this.context = context; + this.issues = new Resource$Projects$Locations$Issuemodels$Issues(this.context); + } + calculateIssueModelStats(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+issueModel}:calculateIssueModelStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['issueModel'], + pathParams: ['issueModel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/issueModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deploy(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/issueModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeploy(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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Issuemodels = Resource$Projects$Locations$Issuemodels; + class Resource$Projects$Locations$Issuemodels$Issues { + 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/issues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Issuemodels$Issues = Resource$Projects$Locations$Issuemodels$Issues; + 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Phrasematchers { + 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/phraseMatchers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/phraseMatchers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Phrasematchers = Resource$Projects$Locations$Phrasematchers; + class Resource$Projects$Locations$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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenterinsights.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contactcenterinsights_v1.Resource$Projects$Locations$Views = Resource$Projects$Locations$Views; +})(contactcenterinsights_v1 = exports.contactcenterinsights_v1 || (exports.contactcenterinsights_v1 = {})); + + +/***/ }), + +/***/ 2062: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "v1", { + enumerable: true, + get: function () { + return _v.default; + } +}); +Object.defineProperty(exports, "v3", { + enumerable: true, + get: function () { + return _v2.default; + } +}); +Object.defineProperty(exports, "v4", { + enumerable: true, + get: function () { + return _v3.default; + } +}); +Object.defineProperty(exports, "v5", { + enumerable: true, + get: function () { + return _v4.default; + } +}); +Object.defineProperty(exports, "NIL", { + enumerable: true, + get: function () { + return _nil.default; + } +}); +Object.defineProperty(exports, "version", { + enumerable: true, + get: function () { + return _version.default; + } +}); +Object.defineProperty(exports, "validate", { + enumerable: true, + get: function () { + return _validate.default; + } +}); +Object.defineProperty(exports, "stringify", { + enumerable: true, + get: function () { + return _stringify.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function () { + return _parse.default; + } +}); + +var _v = _interopRequireDefault(__webpack_require__(9893)); + +var _v2 = _interopRequireDefault(__webpack_require__(5209)); + +var _v3 = _interopRequireDefault(__webpack_require__(733)); + +var _v4 = _interopRequireDefault(__webpack_require__(8384)); + +var _nil = _interopRequireDefault(__webpack_require__(3327)); + +var _version = _interopRequireDefault(__webpack_require__(9695)); + +var _validate = _interopRequireDefault(__webpack_require__(8078)); + +var _stringify = _interopRequireDefault(__webpack_require__(3411)); + +var _parse = _interopRequireDefault(__webpack_require__(22)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/***/ }), + +/***/ 2065: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Partial implementation of PKCS#1 v2.2: RSA-OEAP + * + * Modified but based on the following MIT and BSD licensed code: + * + * https://github.com/kjur/jsjws/blob/master/rsa.js: + * + * The 'jsjws'(JSON Web Signature JavaScript Library) License + * + * Copyright (c) 2012 Kenji Urushima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * http://webrsa.cvs.sourceforge.net/viewvc/webrsa/Client/RSAES-OAEP.js?content-type=text%2Fplain: + * + * RSAES-OAEP.js + * $Id: RSAES-OAEP.js,v 1.1.1.1 2003/03/19 15:37:20 ellispritchard Exp $ + * JavaScript Implementation of PKCS #1 v2.1 RSA CRYPTOGRAPHY STANDARD (RSA Laboratories, June 14, 2002) + * Copyright (C) Ellis Pritchard, Guardian Unlimited 2003. + * Contact: ellis@nukinetics.com + * Distributed under the BSD License. + * + * Official documentation: http://www.rsa.com/rsalabs/node.asp?id=2125 + * + * @author Evan Jones (http://evanjones.ca/) + * @author Dave Longley + * + * Copyright (c) 2013-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); +__webpack_require__(5707); +__webpack_require__(2707); + +// shortcut for PKCS#1 API +var pkcs1 = module.exports = forge.pkcs1 = forge.pkcs1 || {}; + +/** + * Encode the given RSAES-OAEP message (M) using key, with optional label (L) + * and seed. + * + * This method does not perform RSA encryption, it only encodes the message + * using RSAES-OAEP. + * + * @param key the RSA key to use. + * @param message the message to encode. + * @param options the options to use: + * label an optional label to use. + * seed the seed to use. + * md the message digest object to use, undefined for SHA-1. + * mgf1 optional mgf1 parameters: + * md the message digest object to use for MGF1. + * + * @return the encoded message bytes. + */ +pkcs1.encode_rsa_oaep = function(key, message, options) { + // parse arguments + var label; + var seed; + var md; + var mgf1Md; + // legacy args (label, seed, md) + if(typeof options === 'string') { + label = options; + seed = arguments[3] || undefined; + md = arguments[4] || undefined; + } else if(options) { + label = options.label || undefined; + seed = options.seed || undefined; + md = options.md || undefined; + if(options.mgf1 && options.mgf1.md) { + mgf1Md = options.mgf1.md; + } + } + + // default OAEP to SHA-1 message digest + if(!md) { + md = forge.md.sha1.create(); + } else { + md.start(); + } + + // default MGF-1 to same as OAEP + if(!mgf1Md) { + mgf1Md = md; + } + + // compute length in bytes and check output + var keyLength = Math.ceil(key.n.bitLength() / 8); + var maxLength = keyLength - 2 * md.digestLength - 2; + if(message.length > maxLength) { + var error = new Error('RSAES-OAEP input message length is too long.'); + error.length = message.length; + error.maxLength = maxLength; + throw error; + } + + if(!label) { + label = ''; + } + md.update(label, 'raw'); + var lHash = md.digest(); + + var PS = ''; + var PS_length = maxLength - message.length; + for(var i = 0; i < PS_length; i++) { + PS += '\x00'; + } + + var DB = lHash.getBytes() + PS + '\x01' + message; + + if(!seed) { + seed = forge.random.getBytes(md.digestLength); + } else if(seed.length !== md.digestLength) { + var error = new Error('Invalid RSAES-OAEP seed. The seed length must ' + + 'match the digest length.'); + error.seedLength = seed.length; + error.digestLength = md.digestLength; + throw error; + } + + var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); + var maskedDB = forge.util.xorBytes(DB, dbMask, DB.length); + + var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); + var maskedSeed = forge.util.xorBytes(seed, seedMask, seed.length); + + // return encoded message + return '\x00' + maskedSeed + maskedDB; +}; + +/** + * Decode the given RSAES-OAEP encoded message (EM) using key, with optional + * label (L). + * + * This method does not perform RSA decryption, it only decodes the message + * using RSAES-OAEP. + * + * @param key the RSA key to use. + * @param em the encoded message to decode. + * @param options the options to use: + * label an optional label to use. + * md the message digest object to use for OAEP, undefined for SHA-1. + * mgf1 optional mgf1 parameters: + * md the message digest object to use for MGF1. + * + * @return the decoded message bytes. + */ +pkcs1.decode_rsa_oaep = function(key, em, options) { + // parse args + var label; + var md; + var mgf1Md; + // legacy args + if(typeof options === 'string') { + label = options; + md = arguments[3] || undefined; + } else if(options) { + label = options.label || undefined; + md = options.md || undefined; + if(options.mgf1 && options.mgf1.md) { + mgf1Md = options.mgf1.md; + } + } + + // compute length in bytes + var keyLength = Math.ceil(key.n.bitLength() / 8); + + if(em.length !== keyLength) { + var error = new Error('RSAES-OAEP encoded message length is invalid.'); + error.length = em.length; + error.expectedLength = keyLength; + throw error; + } + + // default OAEP to SHA-1 message digest + if(md === undefined) { + md = forge.md.sha1.create(); + } else { + md.start(); + } + + // default MGF-1 to same as OAEP + if(!mgf1Md) { + mgf1Md = md; + } + + if(keyLength < 2 * md.digestLength + 2) { + throw new Error('RSAES-OAEP key is too short for the hash function.'); + } + + if(!label) { + label = ''; + } + md.update(label, 'raw'); + var lHash = md.digest().getBytes(); + + // split the message into its parts + var y = em.charAt(0); + var maskedSeed = em.substring(1, md.digestLength + 1); + var maskedDB = em.substring(1 + md.digestLength); + + var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); + var seed = forge.util.xorBytes(maskedSeed, seedMask, maskedSeed.length); + + var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); + var db = forge.util.xorBytes(maskedDB, dbMask, maskedDB.length); + + var lHashPrime = db.substring(0, md.digestLength); + + // constant time check that all values match what is expected + var error = (y !== '\x00'); + + // constant time check lHash vs lHashPrime + for(var i = 0; i < md.digestLength; ++i) { + error |= (lHash.charAt(i) !== lHashPrime.charAt(i)); + } + + // "constant time" find the 0x1 byte separating the padding (zeros) from the + // message + // TODO: It must be possible to do this in a better/smarter way? + var in_ps = 1; + var index = md.digestLength; + for(var j = md.digestLength; j < db.length; j++) { + var code = db.charCodeAt(j); + + var is_0 = (code & 0x1) ^ 0x1; + + // non-zero if not 0 or 1 in the ps section + var error_mask = in_ps ? 0xfffe : 0x0000; + error |= (code & error_mask); + + // latch in_ps to zero after we find 0x1 + in_ps = in_ps & is_0; + index += in_ps; + } + + if(error || db.charCodeAt(index) !== 0x1) { + throw new Error('Invalid RSAES-OAEP padding.'); + } + + return db.substring(index + 1); +}; + +function rsa_mgf1(seed, maskLength, hash) { + // default to SHA-1 message digest + if(!hash) { + hash = forge.md.sha1.create(); + } + var t = ''; + var count = Math.ceil(maskLength / hash.digestLength); + for(var i = 0; i < count; ++i) { + var c = String.fromCharCode( + (i >> 24) & 0xFF, (i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF); + hash.start(); + hash.update(seed + c); + t += hash.digest().getBytes(); + } + return t.substring(0, maskLength); +} + + +/***/ }), + +/***/ 2068: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firestore_v1beta2 = exports.firestore_v1beta1 = exports.firestore_v1 = exports.auth = exports.firestore = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9870); +Object.defineProperty(exports, "firestore_v1", { enumerable: true, get: function () { return v1_1.firestore_v1; } }); +const v1beta1_1 = __webpack_require__(7494); +Object.defineProperty(exports, "firestore_v1beta1", { enumerable: true, get: function () { return v1beta1_1.firestore_v1beta1; } }); +const v1beta2_1 = __webpack_require__(3485); +Object.defineProperty(exports, "firestore_v1beta2", { enumerable: true, get: function () { return v1beta2_1.firestore_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.firestore_v1.Firestore, + v1beta1: v1beta1_1.firestore_v1beta1.Firestore, + v1beta2: v1beta2_1.firestore_v1beta2.Firestore, +}; +function firestore(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firestore', versionOrOptions, exports.VERSIONS, this); +} +exports.firestore = firestore; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2071: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudasset_v1p5beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudasset_v1p5beta1; +(function (cloudasset_v1p5beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p5beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assets = new Resource$Assets(this.context); + } + } + cloudasset_v1p5beta1.Cloudasset = Cloudasset; + class Resource$Assets { + 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p5beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p5beta1.Resource$Assets = Resource$Assets; +})(cloudasset_v1p5beta1 = exports.cloudasset_v1p5beta1 || (exports.cloudasset_v1p5beta1 = {})); + + +/***/ }), + +/***/ 2087: +/***/ (function(module) { + +module.exports = require("os"); + +/***/ }), + +/***/ 2102: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// For internal use, subject to change. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(__webpack_require__(5747)); +const os = __importStar(__webpack_require__(2087)); +const uuid_1 = __webpack_require__(2062); +const utils_1 = __webpack_require__(5082); +function issueFileCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueFileCommand = issueFileCommand; +function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); + // These should realistically never happen, but just in case someone finds a + // way to exploit uuid generation let's not allow keys or values that contain + // the delimiter. + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; +} +exports.prepareKeyValueMessage = prepareKeyValueMessage; +//# sourceMappingURL=file-command.js.map + +/***/ }), + +/***/ 2107: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.lifesciences_v2beta = exports.auth = exports.lifesciences = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2beta_1 = __webpack_require__(1048); +Object.defineProperty(exports, "lifesciences_v2beta", { enumerable: true, get: function () { return v2beta_1.lifesciences_v2beta; } }); +exports.VERSIONS = { + v2beta: v2beta_1.lifesciences_v2beta.Lifesciences, +}; +function lifesciences(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('lifesciences', versionOrOptions, exports.VERSIONS, this); +} +exports.lifesciences = lifesciences; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2141: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudasset_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudasset_v1p1beta1; +(function (cloudasset_v1p1beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p1beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iamPolicies = new Resource$Iampolicies(this.context); + this.resources = new Resource$Resources(this.context); + } + } + cloudasset_v1p1beta1.Cloudasset = Cloudasset; + class Resource$Iampolicies { + constructor(context) { + this.context = context; + } + searchAll(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+scope}/iamPolicies:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p1beta1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Resources { + constructor(context) { + this.context = context; + } + searchAll(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+scope}/resources:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p1beta1.Resource$Resources = Resource$Resources; +})(cloudasset_v1p1beta1 = exports.cloudasset_v1p1beta1 || (exports.cloudasset_v1p1beta1 = {})); + + +/***/ }), + +/***/ 2143: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of RSA-KEM. + * + * @author Lautaro Cozzani Rodriguez + * @author Dave Longley + * + * Copyright (c) 2014 Lautaro Cozzani + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); +__webpack_require__(5707); +__webpack_require__(7349); + +module.exports = forge.kem = forge.kem || {}; + +var BigInteger = forge.jsbn.BigInteger; + +/** + * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. + */ +forge.kem.rsa = {}; + +/** + * Creates an RSA KEM API object for generating a secret asymmetric key. + * + * The symmetric key may be generated via a call to 'encrypt', which will + * produce a ciphertext to be transmitted to the recipient and a key to be + * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which + * will produce the same secret key for the recipient to use to decrypt a + * message that was encrypted with the secret key. + * + * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). + * @param options the options to use. + * [prng] a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + */ +forge.kem.rsa.create = function(kdf, options) { + options = options || {}; + var prng = options.prng || forge.random; + + var kem = {}; + + /** + * Generates a secret key and its encapsulation. + * + * @param publicKey the RSA public key to encrypt with. + * @param keyLength the length, in bytes, of the secret key to generate. + * + * @return an object with: + * encapsulation: the ciphertext for generating the secret key, as a + * binary-encoded string of bytes. + * key: the secret key to use for encrypting a message. + */ + kem.encrypt = function(publicKey, keyLength) { + // generate a random r where 1 < r < n + var byteLength = Math.ceil(publicKey.n.bitLength() / 8); + var r; + do { + r = new BigInteger( + forge.util.bytesToHex(prng.getBytesSync(byteLength)), + 16).mod(publicKey.n); + } while(r.compareTo(BigInteger.ONE) <= 0); + + // prepend r with zeros + r = forge.util.hexToBytes(r.toString(16)); + var zeros = byteLength - r.length; + if(zeros > 0) { + r = forge.util.fillString(String.fromCharCode(0), zeros) + r; + } + + // encrypt the random + var encapsulation = publicKey.encrypt(r, 'NONE'); + + // generate the secret key + var key = kdf.generate(r, keyLength); + + return {encapsulation: encapsulation, key: key}; + }; + + /** + * Decrypts an encapsulated secret key. + * + * @param privateKey the RSA private key to decrypt with. + * @param encapsulation the ciphertext for generating the secret key, as + * a binary-encoded string of bytes. + * @param keyLength the length, in bytes, of the secret key to generate. + * + * @return the secret key as a binary-encoded string of bytes. + */ + kem.decrypt = function(privateKey, encapsulation, keyLength) { + // decrypt the encapsulation and generate the secret key + var r = privateKey.decrypt(encapsulation, 'NONE'); + return kdf.generate(r, keyLength); + }; + + return kem; +}; + +// TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? + +/** + * Creates a key derivation API object that implements KDF1 per ISO 18033-2. + * + * @param md the hash API to use. + * @param [digestLength] an optional digest length that must be positive and + * less than or equal to md.digestLength. + * + * @return a KDF1 API object. + */ +forge.kem.kdf1 = function(md, digestLength) { + _createKDF(this, md, 0, digestLength || md.digestLength); +}; + +/** + * Creates a key derivation API object that implements KDF2 per ISO 18033-2. + * + * @param md the hash API to use. + * @param [digestLength] an optional digest length that must be positive and + * less than or equal to md.digestLength. + * + * @return a KDF2 API object. + */ +forge.kem.kdf2 = function(md, digestLength) { + _createKDF(this, md, 1, digestLength || md.digestLength); +}; + +/** + * Creates a KDF1 or KDF2 API object. + * + * @param md the hash API to use. + * @param counterStart the starting index for the counter. + * @param digestLength the digest length to use. + * + * @return the KDF API object. + */ +function _createKDF(kdf, md, counterStart, digestLength) { + /** + * Generate a key of the specified length. + * + * @param x the binary-encoded byte string to generate a key from. + * @param length the number of bytes to generate (the size of the key). + * + * @return the key as a binary-encoded string. + */ + kdf.generate = function(x, length) { + var key = new forge.util.ByteBuffer(); + + // run counter from counterStart to ceil(length / Hash.len) + var k = Math.ceil(length / digestLength) + counterStart; + + var c = new forge.util.ByteBuffer(); + for(var i = counterStart; i < k; ++i) { + // I2OSP(i, 4): convert counter to an octet string of 4 octets + c.putInt32(i); + + // digest 'x' and the counter and add the result to the key + md.start(); + md.update(x + c.getBytes()); + var hash = md.digest(); + key.putBytes(hash.getBytes(digestLength)); + } + + // truncate to the correct key length + key.truncate(key.length() - length); + return key.getBytes(); + }; +} + + +/***/ }), + +/***/ 2155: +/***/ (function(module) { + +"use strict"; + + +const arrify = value => { + if (value === null || value === undefined) { + return []; + } + + if (Array.isArray(value)) { + return value; + } + + if (typeof value === 'string') { + return [value]; + } + + if (typeof value[Symbol.iterator] === 'function') { + return [...value]; + } + + return [value]; +}; + +module.exports = arrify; + + +/***/ }), + +/***/ 2171: +/***/ (function(module) { + +"use strict"; + +module.exports = /^#!.*/; + + +/***/ }), + +/***/ 2182: +/***/ (function(module) { + +/** + * Base-N/Base-X encoding/decoding functions. + * + * Original implementation from base-x: + * https://github.com/cryptocoinjs/base-x + * + * Which is MIT licensed: + * + * The MIT License (MIT) + * + * Copyright base-x contributors (c) 2016 + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ +var api = {}; +module.exports = api; + +// baseN alphabet indexes +var _reverseAlphabets = {}; + +/** + * BaseN-encodes a Uint8Array using the given alphabet. + * + * @param input the Uint8Array to encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the baseN-encoded output string. + */ +api.encode = function(input, alphabet, maxline) { + if(typeof alphabet !== 'string') { + throw new TypeError('"alphabet" must be a string.'); + } + if(maxline !== undefined && typeof maxline !== 'number') { + throw new TypeError('"maxline" must be a number.'); + } + + var output = ''; + + if(!(input instanceof Uint8Array)) { + // assume forge byte buffer + output = _encodeWithByteBuffer(input, alphabet); + } else { + var i = 0; + var base = alphabet.length; + var first = alphabet.charAt(0); + var digits = [0]; + for(i = 0; i < input.length; ++i) { + for(var j = 0, carry = input[i]; j < digits.length; ++j) { + carry += digits[j] << 8; + digits[j] = carry % base; + carry = (carry / base) | 0; + } + + while(carry > 0) { + digits.push(carry % base); + carry = (carry / base) | 0; + } + } + + // deal with leading zeros + for(i = 0; input[i] === 0 && i < input.length - 1; ++i) { + output += first; + } + // convert digits to a string + for(i = digits.length - 1; i >= 0; --i) { + output += alphabet[digits[i]]; + } + } + + if(maxline) { + var regex = new RegExp('.{1,' + maxline + '}', 'g'); + output = output.match(regex).join('\r\n'); + } + + return output; +}; + +/** + * Decodes a baseN-encoded (using the given alphabet) string to a + * Uint8Array. + * + * @param input the baseN-encoded input string. + * + * @return the Uint8Array. + */ +api.decode = function(input, alphabet) { + if(typeof input !== 'string') { + throw new TypeError('"input" must be a string.'); + } + if(typeof alphabet !== 'string') { + throw new TypeError('"alphabet" must be a string.'); + } + + var table = _reverseAlphabets[alphabet]; + if(!table) { + // compute reverse alphabet + table = _reverseAlphabets[alphabet] = []; + for(var i = 0; i < alphabet.length; ++i) { + table[alphabet.charCodeAt(i)] = i; + } + } + + // remove whitespace characters + input = input.replace(/\s/g, ''); + + var base = alphabet.length; + var first = alphabet.charAt(0); + var bytes = [0]; + for(var i = 0; i < input.length; i++) { + var value = table[input.charCodeAt(i)]; + if(value === undefined) { + return; + } + + for(var j = 0, carry = value; j < bytes.length; ++j) { + carry += bytes[j] * base; + bytes[j] = carry & 0xff; + carry >>= 8; + } + + while(carry > 0) { + bytes.push(carry & 0xff); + carry >>= 8; + } + } + + // deal with leading zeros + for(var k = 0; input[k] === first && k < input.length - 1; ++k) { + bytes.push(0); + } + + if(typeof Buffer !== 'undefined') { + return Buffer.from(bytes.reverse()); + } + + return new Uint8Array(bytes.reverse()); +}; + +function _encodeWithByteBuffer(input, alphabet) { + var i = 0; + var base = alphabet.length; + var first = alphabet.charAt(0); + var digits = [0]; + for(i = 0; i < input.length(); ++i) { + for(var j = 0, carry = input.at(i); j < digits.length; ++j) { + carry += digits[j] << 8; + digits[j] = carry % base; + carry = (carry / base) | 0; + } + + while(carry > 0) { + digits.push(carry % base); + carry = (carry / base) | 0; + } + } + + var output = ''; + + // deal with leading zeros + for(i = 0; input.at(i) === 0 && i < input.length() - 1; ++i) { + output += first; + } + // convert digits to a string + for(i = digits.length - 1; i >= 0; --i) { + output += alphabet[digits[i]]; + } + + return output; +} + + +/***/ }), + +/***/ 2202: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebasehosting_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebasehosting_v1beta1; +(function (firebasehosting_v1beta1) { + /** + * Firebase Hosting API + * + * The Firebase Hosting REST API enables programmatic and customizable management and deployments to your Firebase-hosted sites. Use this REST API to create and manage channels and sites as well as to deploy new or updated hosting configurations and content files. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebasehosting = google.firebasehosting('v1beta1'); + * ``` + */ + class Firebasehosting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.sites = new Resource$Sites(this.context); + } + } + firebasehosting_v1beta1.Firebasehosting = Firebasehosting; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + this.sites = new Resource$Projects$Sites(this.context); + } + } + firebasehosting_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Sites { + constructor(context) { + this.context = context; + this.channels = new Resource$Projects$Sites$Channels(this.context); + this.domains = new Resource$Projects$Sites$Domains(this.context); + this.releases = new Resource$Projects$Sites$Releases(this.context); + this.versions = new Resource$Projects$Sites$Versions(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConfig(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites = Resource$Projects$Sites; + class Resource$Projects$Sites$Channels { + constructor(context) { + this.context = context; + this.releases = new Resource$Projects$Sites$Channels$Releases(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Channels = Resource$Projects$Sites$Channels; + class Resource$Projects$Sites$Channels$Releases { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Channels$Releases = Resource$Projects$Sites$Channels$Releases; + class Resource$Projects$Sites$Domains { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Domains = Resource$Projects$Sites$Domains; + class Resource$Projects$Sites$Releases { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Releases = Resource$Projects$Sites$Releases; + class Resource$Projects$Sites$Versions { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Sites$Versions$Files(this.context); + } + clone(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions:clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + populateFiles(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Versions = Resource$Projects$Sites$Versions; + class Resource$Projects$Sites$Versions$Files { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Versions$Files = Resource$Projects$Sites$Versions$Files; + class Resource$Sites { + constructor(context) { + this.context = context; + this.channels = new Resource$Sites$Channels(this.context); + this.domains = new Resource$Sites$Domains(this.context); + this.releases = new Resource$Sites$Releases(this.context); + this.versions = new Resource$Sites$Versions(this.context); + } + getConfig(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites = Resource$Sites; + class Resource$Sites$Channels { + constructor(context) { + this.context = context; + this.releases = new Resource$Sites$Channels$Releases(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Channels = Resource$Sites$Channels; + class Resource$Sites$Channels$Releases { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Channels$Releases = Resource$Sites$Channels$Releases; + class Resource$Sites$Domains { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Domains = Resource$Sites$Domains; + class Resource$Sites$Releases { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Releases = Resource$Sites$Releases; + class Resource$Sites$Versions { + constructor(context) { + this.context = context; + this.files = new Resource$Sites$Versions$Files(this.context); + } + clone(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions:clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + populateFiles(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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Versions = Resource$Sites$Versions; + class Resource$Sites$Versions$Files { + 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://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Versions$Files = Resource$Sites$Versions$Files; +})(firebasehosting_v1beta1 = exports.firebasehosting_v1beta1 || (exports.firebasehosting_v1beta1 = {})); + + +/***/ }), + +/***/ 2206: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudiot_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudiot_v1; +(function (cloudiot_v1) { + /** + * Cloud IoT API + * + * Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudiot = google.cloudiot('v1'); + * ``` + */ + class Cloudiot { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudiot_v1.Cloudiot = Cloudiot; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudiot_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.registries = new Resource$Projects$Locations$Registries(this.context); + } + } + cloudiot_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Registries { + constructor(context) { + this.context = context; + this.devices = new Resource$Projects$Locations$Registries$Devices(this.context); + this.groups = new Resource$Projects$Locations$Registries$Groups(this.context); + } + bindDeviceToGateway(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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:bindDeviceToGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unbindDeviceFromGateway(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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:unbindDeviceFromGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries = Resource$Projects$Locations$Registries; + class Resource$Projects$Locations$Registries$Devices { + constructor(context) { + this.context = context; + this.configVersions = + new Resource$Projects$Locations$Registries$Devices$Configversions(this.context); + this.states = new Resource$Projects$Locations$Registries$Devices$States(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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyCloudToDeviceConfig(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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendCommandToDevice(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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:sendCommandToDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices = Resource$Projects$Locations$Registries$Devices; + class Resource$Projects$Locations$Registries$Devices$Configversions { + 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/configVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices$Configversions = Resource$Projects$Locations$Registries$Devices$Configversions; + class Resource$Projects$Locations$Registries$Devices$States { + 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/states').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices$States = Resource$Projects$Locations$Registries$Devices$States; + class Resource$Projects$Locations$Registries$Groups { + constructor(context) { + this.context = context; + this.devices = new Resource$Projects$Locations$Registries$Groups$Devices(this.context); + } + 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudiot.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Groups = Resource$Projects$Locations$Registries$Groups; + class Resource$Projects$Locations$Registries$Groups$Devices { + 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://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Groups$Devices = Resource$Projects$Locations$Registries$Groups$Devices; +})(cloudiot_v1 = exports.cloudiot_v1 || (exports.cloudiot_v1 = {})); + + +/***/ }), + +/***/ 2207: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// Copyright 2014 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.LoginTicket = void 0; +class LoginTicket { + /** + * Create a simple class to extract user ID from an ID Token + * + * @param {string} env Envelope of the jwt + * @param {TokenPayload} pay Payload of the jwt + * @constructor + */ + constructor(env, pay) { + this.envelope = env; + this.payload = pay; + } + getEnvelope() { + return this.envelope; + } + getPayload() { + return this.payload; + } + /** + * Create a simple class to extract user ID from an ID Token + * + * @return The user ID + */ + getUserId() { + const payload = this.getPayload(); + if (payload && payload.sub) { + return payload.sub; + } + return null; + } + /** + * Returns attributes from the login ticket. This can contain + * various information about the user session. + * + * @return The envelope and payload + */ + getAttributes() { + return { envelope: this.getEnvelope(), payload: this.getPayload() }; + } +} +exports.LoginTicket = LoginTicket; +//# sourceMappingURL=loginticket.js.map + +/***/ }), + +/***/ 2210: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.identitytoolkit_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var identitytoolkit_v3; +(function (identitytoolkit_v3) { + /** + * Google Identity Toolkit API + * + * Help the third party sites to implement federated login. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const identitytoolkit = google.identitytoolkit('v3'); + * ``` + */ + class Identitytoolkit { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.relyingparty = new Resource$Relyingparty(this.context); + } + } + identitytoolkit_v3.Identitytoolkit = Identitytoolkit; + class Resource$Relyingparty { + constructor(context) { + this.context = context; + } + createAuthUri(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/createAuthUri').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteAccount(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/deleteAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + downloadAccount(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/downloadAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + emailLinkSignin(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/emailLinkSignin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAccountInfo(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getOobConfirmationCode(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/identitytoolkit/v3/relyingparty/getOobConfirmationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getProjectConfig(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPublicKeys(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRecaptchaParam(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getRecaptchaParam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetPassword(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/resetPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendVerificationCode(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAccountInfo(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/setAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setProjectConfig(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/setProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signOutUser(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/signOutUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signupNewUser(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/signupNewUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + uploadAccount(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/uploadAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyAssertion(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyAssertion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyCustomToken(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyCustomToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyPassword(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyPhoneNumber(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPhoneNumber').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + identitytoolkit_v3.Resource$Relyingparty = Resource$Relyingparty; +})(identitytoolkit_v3 = exports.identitytoolkit_v3 || (exports.identitytoolkit_v3 = {})); + + +/***/ }), + +/***/ 2222: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.youtubereporting_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var youtubereporting_v1; +(function (youtubereporting_v1) { + /** + * YouTube Reporting API + * + * Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const youtubereporting = google.youtubereporting('v1'); + * ``` + */ + class Youtubereporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.jobs = new Resource$Jobs(this.context); + this.media = new Resource$Media(this.context); + this.reportTypes = new Resource$Reporttypes(this.context); + } + } + youtubereporting_v1.Youtubereporting = Youtubereporting; + class Resource$Jobs { + constructor(context) { + this.context = context; + this.reports = new Resource$Jobs$Reports(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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['jobId'], + pathParams: ['jobId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobId'], + pathParams: ['jobId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubereporting_v1.Resource$Jobs = Resource$Jobs; + class Resource$Jobs$Reports { + 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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobId', 'reportId'], + pathParams: ['jobId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobId'], + pathParams: ['jobId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubereporting_v1.Resource$Jobs$Reports = Resource$Jobs$Reports; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubereporting_v1.Resource$Media = Resource$Media; + class Resource$Reporttypes { + 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://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/reportTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubereporting_v1.Resource$Reporttypes = Resource$Reporttypes; +})(youtubereporting_v1 = exports.youtubereporting_v1 || (exports.youtubereporting_v1 = {})); + + +/***/ }), + +/***/ 2239: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.servicemanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var servicemanagement_v1; +(function (servicemanagement_v1) { + /** + * Service Management API + * + * Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicemanagement = google.servicemanagement('v1'); + * ``` + */ + class Servicemanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + servicemanagement_v1.Servicemanagement = Servicemanagement; + class Resource$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://servicemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + servicemanagement_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.configs = new Resource$Services$Configs(this.context); + this.consumers = new Resource$Services$Consumers(this.context); + this.rollouts = new Resource$Services$Rollouts(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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateConfigReport(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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services:generateConfigReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConfig(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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + servicemanagement_v1.Resource$Services = Resource$Services; + class Resource$Services$Configs { + 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName', 'configId'], + pathParams: ['configId', 'serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + submit(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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + servicemanagement_v1.Resource$Services$Configs = Resource$Services$Configs; + class Resource$Services$Consumers { + constructor(context) { + this.context = context; + } + 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + servicemanagement_v1.Resource$Services$Consumers = Resource$Services$Consumers; + class Resource$Services$Rollouts { + 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/rollouts/{rolloutId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName', 'rolloutId'], + pathParams: ['rolloutId', 'serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + servicemanagement_v1.Resource$Services$Rollouts = Resource$Services$Rollouts; +})(servicemanagement_v1 = exports.servicemanagement_v1 || (exports.servicemanagement_v1 = {})); + + +/***/ }), + +/***/ 2247: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.contentwarehouse_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var contentwarehouse_v1; +(function (contentwarehouse_v1) { + /** + * Document AI Warehouse API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const contentwarehouse = google.contentwarehouse('v1'); + * ``` + */ + class Contentwarehouse { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + contentwarehouse_v1.Contentwarehouse = Contentwarehouse; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + fetchAcl(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:fetchAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAcl(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Locations$Documents(this.context); + this.documentSchemas = new Resource$Projects$Locations$Documentschemas(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.ruleSets = new Resource$Projects$Locations$Rulesets(this.context); + this.synonymSets = new Resource$Projects$Locations$Synonymsets(this.context); + } + initialize(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}:initialize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Documents { + constructor(context) { + this.context = context; + this.documentLinks = + new Resource$Projects$Locations$Documents$Documentlinks(this.context); + this.referenceId = new Resource$Projects$Locations$Documents$Referenceid(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchAcl(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:fetchAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + linkedSources(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/linkedSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + linkedTargets(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/linkedTargets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lock(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:lock').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/documents:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAcl(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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Documents = Resource$Projects$Locations$Documents; + class Resource$Projects$Locations$Documents$Documentlinks { + 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/documentLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Documents$Documentlinks = Resource$Projects$Locations$Documents$Documentlinks; + class Resource$Projects$Locations$Documents$Referenceid { + 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Documents$Referenceid = Resource$Projects$Locations$Documents$Referenceid; + class Resource$Projects$Locations$Documentschemas { + 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/documentSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/documentSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Documentschemas = Resource$Projects$Locations$Documentschemas; + class Resource$Projects$Locations$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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Rulesets { + 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/ruleSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/ruleSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Rulesets = Resource$Projects$Locations$Rulesets; + class Resource$Projects$Locations$Synonymsets { + 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/synonymSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/synonymSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contentwarehouse.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + contentwarehouse_v1.Resource$Projects$Locations$Synonymsets = Resource$Projects$Locations$Synonymsets; +})(contentwarehouse_v1 = exports.contentwarehouse_v1 || (exports.contentwarehouse_v1 = {})); + + +/***/ }), + +/***/ 2249: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of X.509 and related components (such as + * Certification Signing Requests) of a Public Key Infrastructure. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * + * The ASN.1 representation of an X.509v3 certificate is as follows + * (see RFC 2459): + * + * Certificate ::= SEQUENCE { + * tbsCertificate TBSCertificate, + * signatureAlgorithm AlgorithmIdentifier, + * signatureValue BIT STRING + * } + * + * TBSCertificate ::= SEQUENCE { + * version [0] EXPLICIT Version DEFAULT v1, + * serialNumber CertificateSerialNumber, + * signature AlgorithmIdentifier, + * issuer Name, + * validity Validity, + * subject Name, + * subjectPublicKeyInfo SubjectPublicKeyInfo, + * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, + * -- If present, version shall be v2 or v3 + * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, + * -- If present, version shall be v2 or v3 + * extensions [3] EXPLICIT Extensions OPTIONAL + * -- If present, version shall be v3 + * } + * + * Version ::= INTEGER { v1(0), v2(1), v3(2) } + * + * CertificateSerialNumber ::= INTEGER + * + * Name ::= CHOICE { + * // only one possible choice for now + * RDNSequence + * } + * + * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName + * + * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue + * + * AttributeTypeAndValue ::= SEQUENCE { + * type AttributeType, + * value AttributeValue + * } + * AttributeType ::= OBJECT IDENTIFIER + * AttributeValue ::= ANY DEFINED BY AttributeType + * + * Validity ::= SEQUENCE { + * notBefore Time, + * notAfter Time + * } + * + * Time ::= CHOICE { + * utcTime UTCTime, + * generalTime GeneralizedTime + * } + * + * UniqueIdentifier ::= BIT STRING + * + * SubjectPublicKeyInfo ::= SEQUENCE { + * algorithm AlgorithmIdentifier, + * subjectPublicKey BIT STRING + * } + * + * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension + * + * Extension ::= SEQUENCE { + * extnID OBJECT IDENTIFIER, + * critical BOOLEAN DEFAULT FALSE, + * extnValue OCTET STRING + * } + * + * The only key algorithm currently supported for PKI is RSA. + * + * RSASSA-PSS signatures are described in RFC 3447 and RFC 4055. + * + * PKCS#10 v1.7 describes certificate signing requests: + * + * CertificationRequestInfo: + * + * CertificationRequestInfo ::= SEQUENCE { + * version INTEGER { v1(0) } (v1,...), + * subject Name, + * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, + * attributes [0] Attributes{{ CRIAttributes }} + * } + * + * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} + * + * CRIAttributes ATTRIBUTE ::= { + * ... -- add any locally defined attributes here -- } + * + * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { + * type ATTRIBUTE.&id({IOSet}), + * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) + * } + * + * CertificationRequest ::= SEQUENCE { + * certificationRequestInfo CertificationRequestInfo, + * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, + * signature BIT STRING + * } + */ +var forge = __webpack_require__(239); +__webpack_require__(828); +__webpack_require__(1431); +__webpack_require__(6155); +__webpack_require__(1220); +__webpack_require__(8185); +__webpack_require__(1988); +__webpack_require__(4076); +__webpack_require__(2705); +__webpack_require__(1526); +__webpack_require__(7152); + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; +var oids = pki.oids; + +// short name OID mappings +var _shortNames = {}; +_shortNames['CN'] = oids['commonName']; +_shortNames['commonName'] = 'CN'; +_shortNames['C'] = oids['countryName']; +_shortNames['countryName'] = 'C'; +_shortNames['L'] = oids['localityName']; +_shortNames['localityName'] = 'L'; +_shortNames['ST'] = oids['stateOrProvinceName']; +_shortNames['stateOrProvinceName'] = 'ST'; +_shortNames['O'] = oids['organizationName']; +_shortNames['organizationName'] = 'O'; +_shortNames['OU'] = oids['organizationalUnitName']; +_shortNames['organizationalUnitName'] = 'OU'; +_shortNames['E'] = oids['emailAddress']; +_shortNames['emailAddress'] = 'E'; + +// validator for an SubjectPublicKeyInfo structure +// Note: Currently only works with an RSA public key +var publicKeyValidator = forge.pki.rsa.publicKeyValidator; + +// validator for an X.509v3 certificate +var x509CertificateValidator = { + name: 'Certificate', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Certificate.TBSCertificate', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'tbsCertificate', + value: [{ + name: 'Certificate.TBSCertificate.version', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.version.integer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certVersion' + }] + }, { + name: 'Certificate.TBSCertificate.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certSerialNumber' + }, { + name: 'Certificate.TBSCertificate.signature', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Certificate.TBSCertificate.signature.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certinfoSignatureOid' + }, { + name: 'Certificate.TBSCertificate.signature.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'certinfoSignatureParams' + }] + }, { + name: 'Certificate.TBSCertificate.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certIssuer' + }, { + name: 'Certificate.TBSCertificate.validity', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + // Note: UTC and generalized times may both appear so the capture + // names are based on their detected order, the names used below + // are only for the common case, which validity time really means + // "notBefore" and which means "notAfter" will be determined by order + value: [{ + // notBefore (Time) (UTC time case) + name: 'Certificate.TBSCertificate.validity.notBefore (utc)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.UTCTIME, + constructed: false, + optional: true, + capture: 'certValidity1UTCTime' + }, { + // notBefore (Time) (generalized time case) + name: 'Certificate.TBSCertificate.validity.notBefore (generalized)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.GENERALIZEDTIME, + constructed: false, + optional: true, + capture: 'certValidity2GeneralizedTime' + }, { + // notAfter (Time) (only UTC time is supported) + name: 'Certificate.TBSCertificate.validity.notAfter (utc)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.UTCTIME, + constructed: false, + optional: true, + capture: 'certValidity3UTCTime' + }, { + // notAfter (Time) (only UTC time is supported) + name: 'Certificate.TBSCertificate.validity.notAfter (generalized)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.GENERALIZEDTIME, + constructed: false, + optional: true, + capture: 'certValidity4GeneralizedTime' + }] + }, { + // Name (subject) (RDNSequence) + name: 'Certificate.TBSCertificate.subject', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certSubject' + }, + // SubjectPublicKeyInfo + publicKeyValidator, + { + // issuerUniqueID (optional) + name: 'Certificate.TBSCertificate.issuerUniqueID', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.issuerUniqueID.id', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + // TODO: support arbitrary bit length ids + captureBitStringValue: 'certIssuerUniqueId' + }] + }, { + // subjectUniqueID (optional) + name: 'Certificate.TBSCertificate.subjectUniqueID', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 2, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.subjectUniqueID.id', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + // TODO: support arbitrary bit length ids + captureBitStringValue: 'certSubjectUniqueId' + }] + }, { + // Extensions (optional) + name: 'Certificate.TBSCertificate.extensions', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 3, + constructed: true, + captureAsn1: 'certExtensions', + optional: true + }] + }, { + // AlgorithmIdentifier (signature algorithm) + name: 'Certificate.signatureAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // algorithm + name: 'Certificate.signatureAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certSignatureOid' + }, { + name: 'Certificate.TBSCertificate.signature.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'certSignatureParams' + }] + }, { + // SignatureValue + name: 'Certificate.signatureValue', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + captureBitStringValue: 'certSignature' + }] +}; + +var rsassaPssParameterValidator = { + name: 'rsapss', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'rsapss.hashAlgorithm', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + value: [{ + name: 'rsapss.hashAlgorithm.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'hashOid' + /* parameter block omitted, for SHA1 NULL anyhow. */ + }] + }] + }, { + name: 'rsapss.maskGenAlgorithm', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'maskGenOid' + }, { + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'maskGenHashOid' + /* parameter block omitted, for SHA1 NULL anyhow. */ + }] + }] + }] + }, { + name: 'rsapss.saltLength', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 2, + optional: true, + value: [{ + name: 'rsapss.saltLength.saltLength', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.INTEGER, + constructed: false, + capture: 'saltLength' + }] + }, { + name: 'rsapss.trailerField', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 3, + optional: true, + value: [{ + name: 'rsapss.trailer.trailer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.INTEGER, + constructed: false, + capture: 'trailer' + }] + }] +}; + +// validator for a CertificationRequestInfo structure +var certificationRequestInfoValidator = { + name: 'CertificationRequestInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certificationRequestInfo', + value: [{ + name: 'CertificationRequestInfo.integer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certificationRequestInfoVersion' + }, { + // Name (subject) (RDNSequence) + name: 'CertificationRequestInfo.subject', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certificationRequestInfoSubject' + }, + // SubjectPublicKeyInfo + publicKeyValidator, + { + name: 'CertificationRequestInfo.attributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + capture: 'certificationRequestInfoAttributes', + value: [{ + name: 'CertificationRequestInfo.attributes', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'CertificationRequestInfo.attributes.type', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false + }, { + name: 'CertificationRequestInfo.attributes.value', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true + }] + }] + }] +}; + +// validator for a CertificationRequest structure +var certificationRequestValidator = { + name: 'CertificationRequest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'csr', + value: [ + certificationRequestInfoValidator, { + // AlgorithmIdentifier (signature algorithm) + name: 'CertificationRequest.signatureAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // algorithm + name: 'CertificationRequest.signatureAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'csrSignatureOid' + }, { + name: 'CertificationRequest.signatureAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'csrSignatureParams' + }] + }, { + // signature + name: 'CertificationRequest.signature', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + captureBitStringValue: 'csrSignature' + } + ] +}; + +/** + * Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName + * sets into an array with objects that have type and value properties. + * + * @param rdn the RDNSequence to convert. + * @param md a message digest to append type and value to if provided. + */ +pki.RDNAttributesAsArray = function(rdn, md) { + var rval = []; + + // each value in 'rdn' in is a SET of RelativeDistinguishedName + var set, attr, obj; + for(var si = 0; si < rdn.value.length; ++si) { + // get the RelativeDistinguishedName set + set = rdn.value[si]; + + // each value in the SET is an AttributeTypeAndValue sequence + // containing first a type (an OID) and second a value (defined by + // the OID) + for(var i = 0; i < set.value.length; ++i) { + obj = {}; + attr = set.value[i]; + obj.type = asn1.derToOid(attr.value[0].value); + obj.value = attr.value[1].value; + obj.valueTagClass = attr.value[1].type; + // if the OID is known, get its name and short name + if(obj.type in oids) { + obj.name = oids[obj.type]; + if(obj.name in _shortNames) { + obj.shortName = _shortNames[obj.name]; + } + } + if(md) { + md.update(obj.type); + md.update(obj.value); + } + rval.push(obj); + } + } + + return rval; +}; + +/** + * Converts ASN.1 CRIAttributes into an array with objects that have type and + * value properties. + * + * @param attributes the CRIAttributes to convert. + */ +pki.CRIAttributesAsArray = function(attributes) { + var rval = []; + + // each value in 'attributes' in is a SEQUENCE with an OID and a SET + for(var si = 0; si < attributes.length; ++si) { + // get the attribute sequence + var seq = attributes[si]; + + // each value in the SEQUENCE containing first a type (an OID) and + // second a set of values (defined by the OID) + var type = asn1.derToOid(seq.value[0].value); + var values = seq.value[1].value; + for(var vi = 0; vi < values.length; ++vi) { + var obj = {}; + obj.type = type; + obj.value = values[vi].value; + obj.valueTagClass = values[vi].type; + // if the OID is known, get its name and short name + if(obj.type in oids) { + obj.name = oids[obj.type]; + if(obj.name in _shortNames) { + obj.shortName = _shortNames[obj.name]; + } + } + // parse extensions + if(obj.type === oids.extensionRequest) { + obj.extensions = []; + for(var ei = 0; ei < obj.value.length; ++ei) { + obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei])); + } + } + rval.push(obj); + } + } + + return rval; +}; + +/** + * Gets an issuer or subject attribute from its name, type, or short name. + * + * @param obj the issuer or subject object. + * @param options a short name string or an object with: + * shortName the short name for the attribute. + * name the name for the attribute. + * type the type for the attribute. + * + * @return the attribute. + */ +function _getAttribute(obj, options) { + if(typeof options === 'string') { + options = {shortName: options}; + } + + var rval = null; + var attr; + for(var i = 0; rval === null && i < obj.attributes.length; ++i) { + attr = obj.attributes[i]; + if(options.type && options.type === attr.type) { + rval = attr; + } else if(options.name && options.name === attr.name) { + rval = attr; + } else if(options.shortName && options.shortName === attr.shortName) { + rval = attr; + } + } + return rval; +} + +/** + * Converts signature parameters from ASN.1 structure. + * + * Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had + * no parameters. + * + * RSASSA-PSS-params ::= SEQUENCE { + * hashAlgorithm [0] HashAlgorithm DEFAULT + * sha1Identifier, + * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT + * mgf1SHA1Identifier, + * saltLength [2] INTEGER DEFAULT 20, + * trailerField [3] INTEGER DEFAULT 1 + * } + * + * HashAlgorithm ::= AlgorithmIdentifier + * + * MaskGenAlgorithm ::= AlgorithmIdentifier + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * @param oid The OID specifying the signature algorithm + * @param obj The ASN.1 structure holding the parameters + * @param fillDefaults Whether to use return default values where omitted + * @return signature parameter object + */ +var _readSignatureParameters = function(oid, obj, fillDefaults) { + var params = {}; + + if(oid !== oids['RSASSA-PSS']) { + return params; + } + + if(fillDefaults) { + params = { + hash: { + algorithmOid: oids['sha1'] + }, + mgf: { + algorithmOid: oids['mgf1'], + hash: { + algorithmOid: oids['sha1'] + } + }, + saltLength: 20 + }; + } + + var capture = {}; + var errors = []; + if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) { + var error = new Error('Cannot read RSASSA-PSS parameter block.'); + error.errors = errors; + throw error; + } + + if(capture.hashOid !== undefined) { + params.hash = params.hash || {}; + params.hash.algorithmOid = asn1.derToOid(capture.hashOid); + } + + if(capture.maskGenOid !== undefined) { + params.mgf = params.mgf || {}; + params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid); + params.mgf.hash = params.mgf.hash || {}; + params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid); + } + + if(capture.saltLength !== undefined) { + params.saltLength = capture.saltLength.charCodeAt(0); + } + + return params; +}; + +/** + * Create signature digest for OID. + * + * @param options + * signatureOid: the OID specifying the signature algorithm. + * type: a human readable type for error messages + * @return a created md instance. throws if unknown oid. + */ +var _createSignatureDigest = function(options) { + switch(oids[options.signatureOid]) { + case 'sha1WithRSAEncryption': + // deprecated alias + case 'sha1WithRSASignature': + return forge.md.sha1.create(); + case 'md5WithRSAEncryption': + return forge.md.md5.create(); + case 'sha256WithRSAEncryption': + return forge.md.sha256.create(); + case 'sha384WithRSAEncryption': + return forge.md.sha384.create(); + case 'sha512WithRSAEncryption': + return forge.md.sha512.create(); + case 'RSASSA-PSS': + return forge.md.sha256.create(); + default: + var error = new Error( + 'Could not compute ' + options.type + ' digest. ' + + 'Unknown signature OID.'); + error.signatureOid = options.signatureOid; + throw error; + } +}; + +/** + * Verify signature on certificate or CSR. + * + * @param options: + * certificate the certificate or CSR to verify. + * md the signature digest. + * signature the signature + * @return a created md instance. throws if unknown oid. + */ +var _verifySignature = function(options) { + var cert = options.certificate; + var scheme; + + switch(cert.signatureOid) { + case oids.sha1WithRSAEncryption: + // deprecated alias + case oids.sha1WithRSASignature: + /* use PKCS#1 v1.5 padding scheme */ + break; + case oids['RSASSA-PSS']: + var hash, mgf; + + /* initialize mgf */ + hash = oids[cert.signatureParameters.mgf.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported MGF hash function.'); + error.oid = cert.signatureParameters.mgf.hash.algorithmOid; + error.name = hash; + throw error; + } + + mgf = oids[cert.signatureParameters.mgf.algorithmOid]; + if(mgf === undefined || forge.mgf[mgf] === undefined) { + var error = new Error('Unsupported MGF function.'); + error.oid = cert.signatureParameters.mgf.algorithmOid; + error.name = mgf; + throw error; + } + + mgf = forge.mgf[mgf].create(forge.md[hash].create()); + + /* initialize hash function */ + hash = oids[cert.signatureParameters.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported RSASSA-PSS hash function.'); + error.oid = cert.signatureParameters.hash.algorithmOid; + error.name = hash; + throw error; + } + + scheme = forge.pss.create( + forge.md[hash].create(), mgf, cert.signatureParameters.saltLength + ); + break; + } + + // verify signature on cert using public key + return cert.publicKey.verify( + options.md.digest().getBytes(), options.signature, scheme + ); +}; + +/** + * Converts an X.509 certificate from PEM format. + * + * Note: If the certificate is to be verified then compute hash should + * be set to true. This will scan the TBSCertificate part of the ASN.1 + * object while it is converted so it doesn't need to be converted back + * to ASN.1-DER-encoding later. + * + * @param pem the PEM-formatted certificate. + * @param computeHash true to compute the hash for verification. + * @param strict true to be strict when checking ASN.1 value lengths, false to + * allow truncated values (default: true). + * + * @return the certificate. + */ +pki.certificateFromPem = function(pem, computeHash, strict) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'CERTIFICATE' && + msg.type !== 'X509 CERTIFICATE' && + msg.type !== 'TRUSTED CERTIFICATE') { + var error = new Error( + 'Could not convert certificate from PEM; PEM header type ' + + 'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error( + 'Could not convert certificate from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body, strict); + + return pki.certificateFromAsn1(obj, computeHash); +}; + +/** + * Converts an X.509 certificate to PEM format. + * + * @param cert the certificate. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted certificate. + */ +pki.certificateToPem = function(cert, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'CERTIFICATE', + body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts an RSA public key from PEM format. + * + * @param pem the PEM-formatted public key. + * + * @return the public key. + */ +pki.publicKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') { + var error = new Error('Could not convert public key from PEM; PEM header ' + + 'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert public key from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return pki.publicKeyFromAsn1(obj); +}; + +/** + * Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo). + * + * @param key the public key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted public key. + */ +pki.publicKeyToPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'PUBLIC KEY', + body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts an RSA public key to PEM format (using an RSAPublicKey). + * + * @param key the public key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted public key. + */ +pki.publicKeyToRSAPublicKeyPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'RSA PUBLIC KEY', + body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Gets a fingerprint for the given public key. + * + * @param options the options to use. + * [md] the message digest object to use (defaults to forge.md.sha1). + * [type] the type of fingerprint, such as 'RSAPublicKey', + * 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey'). + * [encoding] an alternative output encoding, such as 'hex' + * (defaults to none, outputs a byte buffer). + * [delimiter] the delimiter to use between bytes for 'hex' encoded + * output, eg: ':' (defaults to none). + * + * @return the fingerprint as a byte buffer or other encoding based on options. + */ +pki.getPublicKeyFingerprint = function(key, options) { + options = options || {}; + var md = options.md || forge.md.sha1.create(); + var type = options.type || 'RSAPublicKey'; + + var bytes; + switch(type) { + case 'RSAPublicKey': + bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes(); + break; + case 'SubjectPublicKeyInfo': + bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes(); + break; + default: + throw new Error('Unknown fingerprint type "' + options.type + '".'); + } + + // hash public key bytes + md.start(); + md.update(bytes); + var digest = md.digest(); + if(options.encoding === 'hex') { + var hex = digest.toHex(); + if(options.delimiter) { + return hex.match(/.{2}/g).join(options.delimiter); + } + return hex; + } else if(options.encoding === 'binary') { + return digest.getBytes(); + } else if(options.encoding) { + throw new Error('Unknown encoding "' + options.encoding + '".'); + } + return digest; +}; + +/** + * Converts a PKCS#10 certification request (CSR) from PEM format. + * + * Note: If the certification request is to be verified then compute hash + * should be set to true. This will scan the CertificationRequestInfo part of + * the ASN.1 object while it is converted so it doesn't need to be converted + * back to ASN.1-DER-encoding later. + * + * @param pem the PEM-formatted certificate. + * @param computeHash true to compute the hash for verification. + * @param strict true to be strict when checking ASN.1 value lengths, false to + * allow truncated values (default: true). + * + * @return the certification request (CSR). + */ +pki.certificationRequestFromPem = function(pem, computeHash, strict) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'CERTIFICATE REQUEST') { + var error = new Error('Could not convert certification request from PEM; ' + + 'PEM header type is not "CERTIFICATE REQUEST".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certification request from PEM; ' + + 'PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body, strict); + + return pki.certificationRequestFromAsn1(obj, computeHash); +}; + +/** + * Converts a PKCS#10 certification request (CSR) to PEM format. + * + * @param csr the certification request. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted certification request. + */ +pki.certificationRequestToPem = function(csr, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'CERTIFICATE REQUEST', + body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Creates an empty X.509v3 RSA certificate. + * + * @return the certificate. + */ +pki.createCertificate = function() { + var cert = {}; + cert.version = 0x02; + cert.serialNumber = '00'; + cert.signatureOid = null; + cert.signature = null; + cert.siginfo = {}; + cert.siginfo.algorithmOid = null; + cert.validity = {}; + cert.validity.notBefore = new Date(); + cert.validity.notAfter = new Date(); + + cert.issuer = {}; + cert.issuer.getField = function(sn) { + return _getAttribute(cert.issuer, sn); + }; + cert.issuer.addField = function(attr) { + _fillMissingFields([attr]); + cert.issuer.attributes.push(attr); + }; + cert.issuer.attributes = []; + cert.issuer.hash = null; + + cert.subject = {}; + cert.subject.getField = function(sn) { + return _getAttribute(cert.subject, sn); + }; + cert.subject.addField = function(attr) { + _fillMissingFields([attr]); + cert.subject.attributes.push(attr); + }; + cert.subject.attributes = []; + cert.subject.hash = null; + + cert.extensions = []; + cert.publicKey = null; + cert.md = null; + + /** + * Sets the subject of this certificate. + * + * @param attrs the array of subject attributes to use. + * @param uniqueId an optional a unique ID to use. + */ + cert.setSubject = function(attrs, uniqueId) { + // set new attributes, clear hash + _fillMissingFields(attrs); + cert.subject.attributes = attrs; + delete cert.subject.uniqueId; + if(uniqueId) { + // TODO: support arbitrary bit length ids + cert.subject.uniqueId = uniqueId; + } + cert.subject.hash = null; + }; + + /** + * Sets the issuer of this certificate. + * + * @param attrs the array of issuer attributes to use. + * @param uniqueId an optional a unique ID to use. + */ + cert.setIssuer = function(attrs, uniqueId) { + // set new attributes, clear hash + _fillMissingFields(attrs); + cert.issuer.attributes = attrs; + delete cert.issuer.uniqueId; + if(uniqueId) { + // TODO: support arbitrary bit length ids + cert.issuer.uniqueId = uniqueId; + } + cert.issuer.hash = null; + }; + + /** + * Sets the extensions of this certificate. + * + * @param exts the array of extensions to use. + */ + cert.setExtensions = function(exts) { + for(var i = 0; i < exts.length; ++i) { + _fillMissingExtensionFields(exts[i], {cert: cert}); + } + // set new extensions + cert.extensions = exts; + }; + + /** + * Gets an extension by its name or id. + * + * @param options the name to use or an object with: + * name the name to use. + * id the id to use. + * + * @return the extension or null if not found. + */ + cert.getExtension = function(options) { + if(typeof options === 'string') { + options = {name: options}; + } + + var rval = null; + var ext; + for(var i = 0; rval === null && i < cert.extensions.length; ++i) { + ext = cert.extensions[i]; + if(options.id && ext.id === options.id) { + rval = ext; + } else if(options.name && ext.name === options.name) { + rval = ext; + } + } + return rval; + }; + + /** + * Signs this certificate using the given private key. + * + * @param key the private key to sign with. + * @param md the message digest object to use (defaults to forge.md.sha1). + */ + cert.sign = function(key, md) { + // TODO: get signature OID from private key + cert.md = md || forge.md.sha1.create(); + var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption']; + if(!algorithmOid) { + var error = new Error('Could not compute certificate digest. ' + + 'Unknown message digest algorithm OID.'); + error.algorithm = cert.md.algorithm; + throw error; + } + cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid; + + // get TBSCertificate, convert to DER + cert.tbsCertificate = pki.getTBSCertificate(cert); + var bytes = asn1.toDer(cert.tbsCertificate); + + // digest and sign + cert.md.update(bytes.getBytes()); + cert.signature = key.sign(cert.md); + }; + + /** + * Attempts verify the signature on the passed certificate using this + * certificate's public key. + * + * @param child the certificate to verify. + * + * @return true if verified, false if not. + */ + cert.verify = function(child) { + var rval = false; + + if(!cert.issued(child)) { + var issuer = child.issuer; + var subject = cert.subject; + var error = new Error( + 'The parent certificate did not issue the given child ' + + 'certificate; the child certificate\'s issuer does not match the ' + + 'parent\'s subject.'); + error.expectedIssuer = subject.attributes; + error.actualIssuer = issuer.attributes; + throw error; + } + + var md = child.md; + if(md === null) { + // create digest for OID signature types + md = _createSignatureDigest({ + signatureOid: child.signatureOid, + type: 'certificate' + }); + + // produce DER formatted TBSCertificate and digest it + var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child); + var bytes = asn1.toDer(tbsCertificate); + md.update(bytes.getBytes()); + } + + if(md !== null) { + rval = _verifySignature({ + certificate: cert, md: md, signature: child.signature + }); + } + + return rval; + }; + + /** + * Returns true if this certificate's issuer matches the passed + * certificate's subject. Note that no signature check is performed. + * + * @param parent the certificate to check. + * + * @return true if this certificate's issuer matches the passed certificate's + * subject. + */ + cert.isIssuer = function(parent) { + var rval = false; + + var i = cert.issuer; + var s = parent.subject; + + // compare hashes if present + if(i.hash && s.hash) { + rval = (i.hash === s.hash); + } else if(i.attributes.length === s.attributes.length) { + // all attributes are the same so issuer matches subject + rval = true; + var iattr, sattr; + for(var n = 0; rval && n < i.attributes.length; ++n) { + iattr = i.attributes[n]; + sattr = s.attributes[n]; + if(iattr.type !== sattr.type || iattr.value !== sattr.value) { + // attribute mismatch + rval = false; + } + } + } + + return rval; + }; + + /** + * Returns true if this certificate's subject matches the issuer of the + * given certificate). Note that not signature check is performed. + * + * @param child the certificate to check. + * + * @return true if this certificate's subject matches the passed + * certificate's issuer. + */ + cert.issued = function(child) { + return child.isIssuer(cert); + }; + + /** + * Generates the subjectKeyIdentifier for this certificate as byte buffer. + * + * @return the subjectKeyIdentifier for this certificate as byte buffer. + */ + cert.generateSubjectKeyIdentifier = function() { + /* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either: + + (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the + value of the BIT STRING subjectPublicKey (excluding the tag, + length, and number of unused bits). + + (2) The keyIdentifier is composed of a four bit type field with + the value 0100 followed by the least significant 60 bits of the + SHA-1 hash of the value of the BIT STRING subjectPublicKey + (excluding the tag, length, and number of unused bit string bits). + */ + + // skipping the tag, length, and number of unused bits is the same + // as just using the RSAPublicKey (for RSA keys, which are the + // only ones supported) + return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'}); + }; + + /** + * Verifies the subjectKeyIdentifier extension value for this certificate + * against its public key. If no extension is found, false will be + * returned. + * + * @return true if verified, false if not. + */ + cert.verifySubjectKeyIdentifier = function() { + var oid = oids['subjectKeyIdentifier']; + for(var i = 0; i < cert.extensions.length; ++i) { + var ext = cert.extensions[i]; + if(ext.id === oid) { + var ski = cert.generateSubjectKeyIdentifier().getBytes(); + return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski); + } + } + return false; + }; + + return cert; +}; + +/** + * Converts an X.509v3 RSA certificate from an ASN.1 object. + * + * Note: If the certificate is to be verified then compute hash should + * be set to true. There is currently no implementation for converting + * a certificate back to ASN.1 so the TBSCertificate part of the ASN.1 + * object needs to be scanned before the cert object is created. + * + * @param obj the asn1 representation of an X.509v3 RSA certificate. + * @param computeHash true to compute the hash for verification. + * + * @return the certificate. + */ +pki.certificateFromAsn1 = function(obj, computeHash) { + // validate certificate and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) { + var error = new Error('Cannot read X.509 certificate. ' + + 'ASN.1 object is not an X509v3 Certificate.'); + error.errors = errors; + throw error; + } + + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); + } + + // create certificate + var cert = pki.createCertificate(); + cert.version = capture.certVersion ? + capture.certVersion.charCodeAt(0) : 0; + var serial = forge.util.createBuffer(capture.certSerialNumber); + cert.serialNumber = serial.toHex(); + cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid); + cert.signatureParameters = _readSignatureParameters( + cert.signatureOid, capture.certSignatureParams, true); + cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid); + cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid, + capture.certinfoSignatureParams, false); + cert.signature = capture.certSignature; + + var validity = []; + if(capture.certValidity1UTCTime !== undefined) { + validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime)); + } + if(capture.certValidity2GeneralizedTime !== undefined) { + validity.push(asn1.generalizedTimeToDate( + capture.certValidity2GeneralizedTime)); + } + if(capture.certValidity3UTCTime !== undefined) { + validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime)); + } + if(capture.certValidity4GeneralizedTime !== undefined) { + validity.push(asn1.generalizedTimeToDate( + capture.certValidity4GeneralizedTime)); + } + if(validity.length > 2) { + throw new Error('Cannot read notBefore/notAfter validity times; more ' + + 'than two times were provided in the certificate.'); + } + if(validity.length < 2) { + throw new Error('Cannot read notBefore/notAfter validity times; they ' + + 'were not provided as either UTCTime or GeneralizedTime.'); + } + cert.validity.notBefore = validity[0]; + cert.validity.notAfter = validity[1]; + + // keep TBSCertificate to preserve signature when exporting + cert.tbsCertificate = capture.tbsCertificate; + + if(computeHash) { + // create digest for OID signature type + cert.md = _createSignatureDigest({ + signatureOid: cert.signatureOid, + type: 'certificate' + }); + + // produce DER formatted TBSCertificate and digest it + var bytes = asn1.toDer(cert.tbsCertificate); + cert.md.update(bytes.getBytes()); + } + + // handle issuer, build issuer message digest + var imd = forge.md.sha1.create(); + var ibytes = asn1.toDer(capture.certIssuer); + imd.update(ibytes.getBytes()); + cert.issuer.getField = function(sn) { + return _getAttribute(cert.issuer, sn); + }; + cert.issuer.addField = function(attr) { + _fillMissingFields([attr]); + cert.issuer.attributes.push(attr); + }; + cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer); + if(capture.certIssuerUniqueId) { + cert.issuer.uniqueId = capture.certIssuerUniqueId; + } + cert.issuer.hash = imd.digest().toHex(); + + // handle subject, build subject message digest + var smd = forge.md.sha1.create(); + var sbytes = asn1.toDer(capture.certSubject); + smd.update(sbytes.getBytes()); + cert.subject.getField = function(sn) { + return _getAttribute(cert.subject, sn); + }; + cert.subject.addField = function(attr) { + _fillMissingFields([attr]); + cert.subject.attributes.push(attr); + }; + cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject); + if(capture.certSubjectUniqueId) { + cert.subject.uniqueId = capture.certSubjectUniqueId; + } + cert.subject.hash = smd.digest().toHex(); + + // handle extensions + if(capture.certExtensions) { + cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions); + } else { + cert.extensions = []; + } + + // convert RSA public key from ASN.1 + cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); + + return cert; +}; + +/** + * Converts an ASN.1 extensions object (with extension sequences as its + * values) into an array of extension objects with types and values. + * + * Supported extensions: + * + * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } + * KeyUsage ::= BIT STRING { + * digitalSignature (0), + * nonRepudiation (1), + * keyEncipherment (2), + * dataEncipherment (3), + * keyAgreement (4), + * keyCertSign (5), + * cRLSign (6), + * encipherOnly (7), + * decipherOnly (8) + * } + * + * id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } + * BasicConstraints ::= SEQUENCE { + * cA BOOLEAN DEFAULT FALSE, + * pathLenConstraint INTEGER (0..MAX) OPTIONAL + * } + * + * subjectAltName EXTENSION ::= { + * SYNTAX GeneralNames + * IDENTIFIED BY id-ce-subjectAltName + * } + * + * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName + * + * GeneralName ::= CHOICE { + * otherName [0] INSTANCE OF OTHER-NAME, + * rfc822Name [1] IA5String, + * dNSName [2] IA5String, + * x400Address [3] ORAddress, + * directoryName [4] Name, + * ediPartyName [5] EDIPartyName, + * uniformResourceIdentifier [6] IA5String, + * IPAddress [7] OCTET STRING, + * registeredID [8] OBJECT IDENTIFIER + * } + * + * OTHER-NAME ::= TYPE-IDENTIFIER + * + * EDIPartyName ::= SEQUENCE { + * nameAssigner [0] DirectoryString {ub-name} OPTIONAL, + * partyName [1] DirectoryString {ub-name} + * } + * + * @param exts the extensions ASN.1 with extension sequences to parse. + * + * @return the array. + */ +pki.certificateExtensionsFromAsn1 = function(exts) { + var rval = []; + for(var i = 0; i < exts.value.length; ++i) { + // get extension sequence + var extseq = exts.value[i]; + for(var ei = 0; ei < extseq.value.length; ++ei) { + rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei])); + } + } + + return rval; +}; + +/** + * Parses a single certificate extension from ASN.1. + * + * @param ext the extension in ASN.1 format. + * + * @return the parsed extension as an object. + */ +pki.certificateExtensionFromAsn1 = function(ext) { + // an extension has: + // [0] extnID OBJECT IDENTIFIER + // [1] critical BOOLEAN DEFAULT FALSE + // [2] extnValue OCTET STRING + var e = {}; + e.id = asn1.derToOid(ext.value[0].value); + e.critical = false; + if(ext.value[1].type === asn1.Type.BOOLEAN) { + e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00); + e.value = ext.value[2].value; + } else { + e.value = ext.value[1].value; + } + // if the oid is known, get its name + if(e.id in oids) { + e.name = oids[e.id]; + + // handle key usage + if(e.name === 'keyUsage') { + // get value as BIT STRING + var ev = asn1.fromDer(e.value); + var b2 = 0x00; + var b3 = 0x00; + if(ev.value.length > 1) { + // skip first byte, just indicates unused bits which + // will be padded with 0s anyway + // get bytes with flag bits + b2 = ev.value.charCodeAt(1); + b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0; + } + // set flags + e.digitalSignature = (b2 & 0x80) === 0x80; + e.nonRepudiation = (b2 & 0x40) === 0x40; + e.keyEncipherment = (b2 & 0x20) === 0x20; + e.dataEncipherment = (b2 & 0x10) === 0x10; + e.keyAgreement = (b2 & 0x08) === 0x08; + e.keyCertSign = (b2 & 0x04) === 0x04; + e.cRLSign = (b2 & 0x02) === 0x02; + e.encipherOnly = (b2 & 0x01) === 0x01; + e.decipherOnly = (b3 & 0x80) === 0x80; + } else if(e.name === 'basicConstraints') { + // handle basic constraints + // get value as SEQUENCE + var ev = asn1.fromDer(e.value); + // get cA BOOLEAN flag (defaults to false) + if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) { + e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00); + } else { + e.cA = false; + } + // get path length constraint + var value = null; + if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) { + value = ev.value[0].value; + } else if(ev.value.length > 1) { + value = ev.value[1].value; + } + if(value !== null) { + e.pathLenConstraint = asn1.derToInteger(value); + } + } else if(e.name === 'extKeyUsage') { + // handle extKeyUsage + // value is a SEQUENCE of OIDs + var ev = asn1.fromDer(e.value); + for(var vi = 0; vi < ev.value.length; ++vi) { + var oid = asn1.derToOid(ev.value[vi].value); + if(oid in oids) { + e[oids[oid]] = true; + } else { + e[oid] = true; + } + } + } else if(e.name === 'nsCertType') { + // handle nsCertType + // get value as BIT STRING + var ev = asn1.fromDer(e.value); + var b2 = 0x00; + if(ev.value.length > 1) { + // skip first byte, just indicates unused bits which + // will be padded with 0s anyway + // get bytes with flag bits + b2 = ev.value.charCodeAt(1); + } + // set flags + e.client = (b2 & 0x80) === 0x80; + e.server = (b2 & 0x40) === 0x40; + e.email = (b2 & 0x20) === 0x20; + e.objsign = (b2 & 0x10) === 0x10; + e.reserved = (b2 & 0x08) === 0x08; + e.sslCA = (b2 & 0x04) === 0x04; + e.emailCA = (b2 & 0x02) === 0x02; + e.objCA = (b2 & 0x01) === 0x01; + } else if( + e.name === 'subjectAltName' || + e.name === 'issuerAltName') { + // handle subjectAltName/issuerAltName + e.altNames = []; + + // ev is a SYNTAX SEQUENCE + var gn; + var ev = asn1.fromDer(e.value); + for(var n = 0; n < ev.value.length; ++n) { + // get GeneralName + gn = ev.value[n]; + + var altName = { + type: gn.type, + value: gn.value + }; + e.altNames.push(altName); + + // Note: Support for types 1,2,6,7,8 + switch(gn.type) { + // rfc822Name + case 1: + // dNSName + case 2: + // uniformResourceIdentifier (URI) + case 6: + break; + // IPAddress + case 7: + // convert to IPv4/IPv6 string representation + altName.ip = forge.util.bytesToIP(gn.value); + break; + // registeredID + case 8: + altName.oid = asn1.derToOid(gn.value); + break; + default: + // unsupported + } + } + } else if(e.name === 'subjectKeyIdentifier') { + // value is an OCTETSTRING w/the hash of the key-type specific + // public key structure (eg: RSAPublicKey) + var ev = asn1.fromDer(e.value); + e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value); + } + } + return e; +}; + +/** + * Converts a PKCS#10 certification request (CSR) from an ASN.1 object. + * + * Note: If the certification request is to be verified then compute hash + * should be set to true. There is currently no implementation for converting + * a certificate back to ASN.1 so the CertificationRequestInfo part of the + * ASN.1 object needs to be scanned before the csr object is created. + * + * @param obj the asn1 representation of a PKCS#10 certification request (CSR). + * @param computeHash true to compute the hash for verification. + * + * @return the certification request (CSR). + */ +pki.certificationRequestFromAsn1 = function(obj, computeHash) { + // validate certification request and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#10 certificate request. ' + + 'ASN.1 object is not a PKCS#10 CertificationRequest.'); + error.errors = errors; + throw error; + } + + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); + } + + // create certification request + var csr = pki.createCertificationRequest(); + csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0; + csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid); + csr.signatureParameters = _readSignatureParameters( + csr.signatureOid, capture.csrSignatureParams, true); + csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid); + csr.siginfo.parameters = _readSignatureParameters( + csr.siginfo.algorithmOid, capture.csrSignatureParams, false); + csr.signature = capture.csrSignature; + + // keep CertificationRequestInfo to preserve signature when exporting + csr.certificationRequestInfo = capture.certificationRequestInfo; + + if(computeHash) { + // create digest for OID signature type + csr.md = _createSignatureDigest({ + signatureOid: csr.signatureOid, + type: 'certification request' + }); + + // produce DER formatted CertificationRequestInfo and digest it + var bytes = asn1.toDer(csr.certificationRequestInfo); + csr.md.update(bytes.getBytes()); + } + + // handle subject, build subject message digest + var smd = forge.md.sha1.create(); + csr.subject.getField = function(sn) { + return _getAttribute(csr.subject, sn); + }; + csr.subject.addField = function(attr) { + _fillMissingFields([attr]); + csr.subject.attributes.push(attr); + }; + csr.subject.attributes = pki.RDNAttributesAsArray( + capture.certificationRequestInfoSubject, smd); + csr.subject.hash = smd.digest().toHex(); + + // convert RSA public key from ASN.1 + csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); + + // convert attributes from ASN.1 + csr.getAttribute = function(sn) { + return _getAttribute(csr, sn); + }; + csr.addAttribute = function(attr) { + _fillMissingFields([attr]); + csr.attributes.push(attr); + }; + csr.attributes = pki.CRIAttributesAsArray( + capture.certificationRequestInfoAttributes || []); + + return csr; +}; + +/** + * Creates an empty certification request (a CSR or certificate signing + * request). Once created, its public key and attributes can be set and then + * it can be signed. + * + * @return the empty certification request. + */ +pki.createCertificationRequest = function() { + var csr = {}; + csr.version = 0x00; + csr.signatureOid = null; + csr.signature = null; + csr.siginfo = {}; + csr.siginfo.algorithmOid = null; + + csr.subject = {}; + csr.subject.getField = function(sn) { + return _getAttribute(csr.subject, sn); + }; + csr.subject.addField = function(attr) { + _fillMissingFields([attr]); + csr.subject.attributes.push(attr); + }; + csr.subject.attributes = []; + csr.subject.hash = null; + + csr.publicKey = null; + csr.attributes = []; + csr.getAttribute = function(sn) { + return _getAttribute(csr, sn); + }; + csr.addAttribute = function(attr) { + _fillMissingFields([attr]); + csr.attributes.push(attr); + }; + csr.md = null; + + /** + * Sets the subject of this certification request. + * + * @param attrs the array of subject attributes to use. + */ + csr.setSubject = function(attrs) { + // set new attributes + _fillMissingFields(attrs); + csr.subject.attributes = attrs; + csr.subject.hash = null; + }; + + /** + * Sets the attributes of this certification request. + * + * @param attrs the array of attributes to use. + */ + csr.setAttributes = function(attrs) { + // set new attributes + _fillMissingFields(attrs); + csr.attributes = attrs; + }; + + /** + * Signs this certification request using the given private key. + * + * @param key the private key to sign with. + * @param md the message digest object to use (defaults to forge.md.sha1). + */ + csr.sign = function(key, md) { + // TODO: get signature OID from private key + csr.md = md || forge.md.sha1.create(); + var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption']; + if(!algorithmOid) { + var error = new Error('Could not compute certification request digest. ' + + 'Unknown message digest algorithm OID.'); + error.algorithm = csr.md.algorithm; + throw error; + } + csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid; + + // get CertificationRequestInfo, convert to DER + csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(csr.certificationRequestInfo); + + // digest and sign + csr.md.update(bytes.getBytes()); + csr.signature = key.sign(csr.md); + }; + + /** + * Attempts verify the signature on the passed certification request using + * its public key. + * + * A CSR that has been exported to a file in PEM format can be verified using + * OpenSSL using this command: + * + * openssl req -in -verify -noout -text + * + * @return true if verified, false if not. + */ + csr.verify = function() { + var rval = false; + + var md = csr.md; + if(md === null) { + md = _createSignatureDigest({ + signatureOid: csr.signatureOid, + type: 'certification request' + }); + + // produce DER formatted CertificationRequestInfo and digest it + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(cri); + md.update(bytes.getBytes()); + } + + if(md !== null) { + rval = _verifySignature({ + certificate: csr, md: md, signature: csr.signature + }); + } + + return rval; + }; + + return csr; +}; + +/** + * Converts an X.509 subject or issuer to an ASN.1 RDNSequence. + * + * @param obj the subject or issuer (distinguished name). + * + * @return the ASN.1 RDNSequence. + */ +function _dnToAsn1(obj) { + // create an empty RDNSequence + var rval = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + // iterate over attributes + var attr, set; + var attrs = obj.attributes; + for(var i = 0; i < attrs.length; ++i) { + attr = attrs[i]; + var value = attr.value; + + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.PRINTABLESTRING; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; + + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + // FIXME: handle more encodings + } + + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + // AttributeValue + asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value) + ]) + ]); + rval.value.push(set); + } + + return rval; +} + +/** + * Gets all printable attributes (typically of an issuer or subject) in a + * simplified JSON format for display. + * + * @param attrs the attributes. + * + * @return the JSON for display. + */ +function _getAttributesAsJson(attrs) { + var rval = {}; + for(var i = 0; i < attrs.length; ++i) { + var attr = attrs[i]; + if(attr.shortName && ( + attr.valueTagClass === asn1.Type.UTF8 || + attr.valueTagClass === asn1.Type.PRINTABLESTRING || + attr.valueTagClass === asn1.Type.IA5STRING)) { + var value = attr.value; + if(attr.valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(attr.value); + } + if(!(attr.shortName in rval)) { + rval[attr.shortName] = value; + } else if(forge.util.isArray(rval[attr.shortName])) { + rval[attr.shortName].push(value); + } else { + rval[attr.shortName] = [rval[attr.shortName], value]; + } + } + } + return rval; +} + +/** + * Fills in missing fields in attributes. + * + * @param attrs the attributes to fill missing fields in. + */ +function _fillMissingFields(attrs) { + var attr; + for(var i = 0; i < attrs.length; ++i) { + attr = attrs[i]; + + // populate missing name + if(typeof attr.name === 'undefined') { + if(attr.type && attr.type in pki.oids) { + attr.name = pki.oids[attr.type]; + } else if(attr.shortName && attr.shortName in _shortNames) { + attr.name = pki.oids[_shortNames[attr.shortName]]; + } + } + + // populate missing type (OID) + if(typeof attr.type === 'undefined') { + if(attr.name && attr.name in pki.oids) { + attr.type = pki.oids[attr.name]; + } else { + var error = new Error('Attribute type not specified.'); + error.attribute = attr; + throw error; + } + } + + // populate missing shortname + if(typeof attr.shortName === 'undefined') { + if(attr.name && attr.name in _shortNames) { + attr.shortName = _shortNames[attr.name]; + } + } + + // convert extensions to value + if(attr.type === oids.extensionRequest) { + attr.valueConstructed = true; + attr.valueTagClass = asn1.Type.SEQUENCE; + if(!attr.value && attr.extensions) { + attr.value = []; + for(var ei = 0; ei < attr.extensions.length; ++ei) { + attr.value.push(pki.certificateExtensionToAsn1( + _fillMissingExtensionFields(attr.extensions[ei]))); + } + } + } + + if(typeof attr.value === 'undefined') { + var error = new Error('Attribute value not specified.'); + error.attribute = attr; + throw error; + } + } +} + +/** + * Fills in missing fields in certificate extensions. + * + * @param e the extension. + * @param [options] the options to use. + * [cert] the certificate the extensions are for. + * + * @return the extension. + */ +function _fillMissingExtensionFields(e, options) { + options = options || {}; + + // populate missing name + if(typeof e.name === 'undefined') { + if(e.id && e.id in pki.oids) { + e.name = pki.oids[e.id]; + } + } + + // populate missing id + if(typeof e.id === 'undefined') { + if(e.name && e.name in pki.oids) { + e.id = pki.oids[e.name]; + } else { + var error = new Error('Extension ID not specified.'); + error.extension = e; + throw error; + } + } + + if(typeof e.value !== 'undefined') { + return e; + } + + // handle missing value: + + // value is a BIT STRING + if(e.name === 'keyUsage') { + // build flags + var unused = 0; + var b2 = 0x00; + var b3 = 0x00; + if(e.digitalSignature) { + b2 |= 0x80; + unused = 7; + } + if(e.nonRepudiation) { + b2 |= 0x40; + unused = 6; + } + if(e.keyEncipherment) { + b2 |= 0x20; + unused = 5; + } + if(e.dataEncipherment) { + b2 |= 0x10; + unused = 4; + } + if(e.keyAgreement) { + b2 |= 0x08; + unused = 3; + } + if(e.keyCertSign) { + b2 |= 0x04; + unused = 2; + } + if(e.cRLSign) { + b2 |= 0x02; + unused = 1; + } + if(e.encipherOnly) { + b2 |= 0x01; + unused = 0; + } + if(e.decipherOnly) { + b3 |= 0x80; + unused = 7; + } + + // create bit string + var value = String.fromCharCode(unused); + if(b3 !== 0) { + value += String.fromCharCode(b2) + String.fromCharCode(b3); + } else if(b2 !== 0) { + value += String.fromCharCode(b2); + } + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); + } else if(e.name === 'basicConstraints') { + // basicConstraints is a SEQUENCE + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + // cA BOOLEAN flag defaults to false + if(e.cA) { + e.value.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, + String.fromCharCode(0xFF))); + } + if('pathLenConstraint' in e) { + e.value.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(e.pathLenConstraint).getBytes())); + } + } else if(e.name === 'extKeyUsage') { + // extKeyUsage is a SEQUENCE of OIDs + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + for(var key in e) { + if(e[key] !== true) { + continue; + } + // key is name in OID map + if(key in oids) { + seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, + false, asn1.oidToDer(oids[key]).getBytes())); + } else if(key.indexOf('.') !== -1) { + // assume key is an OID + seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, + false, asn1.oidToDer(key).getBytes())); + } + } + } else if(e.name === 'nsCertType') { + // nsCertType is a BIT STRING + // build flags + var unused = 0; + var b2 = 0x00; + + if(e.client) { + b2 |= 0x80; + unused = 7; + } + if(e.server) { + b2 |= 0x40; + unused = 6; + } + if(e.email) { + b2 |= 0x20; + unused = 5; + } + if(e.objsign) { + b2 |= 0x10; + unused = 4; + } + if(e.reserved) { + b2 |= 0x08; + unused = 3; + } + if(e.sslCA) { + b2 |= 0x04; + unused = 2; + } + if(e.emailCA) { + b2 |= 0x02; + unused = 1; + } + if(e.objCA) { + b2 |= 0x01; + unused = 0; + } + + // create bit string + var value = String.fromCharCode(unused); + if(b2 !== 0) { + value += String.fromCharCode(b2); + } + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); + } else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') { + // SYNTAX SEQUENCE + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + var altName; + for(var n = 0; n < e.altNames.length; ++n) { + altName = e.altNames[n]; + var value = altName.value; + // handle IP + if(altName.type === 7 && altName.ip) { + value = forge.util.bytesFromIP(altName.ip); + if(value === null) { + var error = new Error( + 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); + error.extension = e; + throw error; + } + } else if(altName.type === 8) { + // handle OID + if(altName.oid) { + value = asn1.oidToDer(asn1.oidToDer(altName.oid)); + } else { + // deprecated ... convert value to OID + value = asn1.oidToDer(value); + } + } + e.value.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, altName.type, false, + value)); + } + } else if(e.name === 'nsComment' && options.cert) { + // sanity check value is ASCII (req'd) and not too big + if(!(/^[\x00-\x7F]*$/.test(e.comment)) || + (e.comment.length < 1) || (e.comment.length > 128)) { + throw new Error('Invalid "nsComment" content.'); + } + // IA5STRING opaque comment + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment); + } else if(e.name === 'subjectKeyIdentifier' && options.cert) { + var ski = options.cert.generateSubjectKeyIdentifier(); + e.subjectKeyIdentifier = ski.toHex(); + // OCTETSTRING w/digest + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes()); + } else if(e.name === 'authorityKeyIdentifier' && options.cert) { + // SYNTAX SEQUENCE + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + + if(e.keyIdentifier) { + var keyIdentifier = (e.keyIdentifier === true ? + options.cert.generateSubjectKeyIdentifier().getBytes() : + e.keyIdentifier); + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier)); + } + + if(e.authorityCertIssuer) { + var authorityCertIssuer = [ + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [ + _dnToAsn1(e.authorityCertIssuer === true ? + options.cert.issuer : e.authorityCertIssuer) + ]) + ]; + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer)); + } + + if(e.serialNumber) { + var serialNumber = forge.util.hexToBytes(e.serialNumber === true ? + options.cert.serialNumber : e.serialNumber); + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber)); + } + } else if(e.name === 'cRLDistributionPoints') { + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + + // Create sub SEQUENCE of DistributionPointName + var subSeq = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + // Create fullName CHOICE + var fullNameGeneralNames = asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + var altName; + for(var n = 0; n < e.altNames.length; ++n) { + altName = e.altNames[n]; + var value = altName.value; + // handle IP + if(altName.type === 7 && altName.ip) { + value = forge.util.bytesFromIP(altName.ip); + if(value === null) { + var error = new Error( + 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); + error.extension = e; + throw error; + } + } else if(altName.type === 8) { + // handle OID + if(altName.oid) { + value = asn1.oidToDer(asn1.oidToDer(altName.oid)); + } else { + // deprecated ... convert value to OID + value = asn1.oidToDer(value); + } + } + fullNameGeneralNames.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, altName.type, false, + value)); + } + + // Add to the parent SEQUENCE + subSeq.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames])); + seq.push(subSeq); + } + + // ensure value has been defined by now + if(typeof e.value === 'undefined') { + var error = new Error('Extension value not specified.'); + error.extension = e; + throw error; + } + + return e; +} + +/** + * Convert signature parameters object to ASN.1 + * + * @param {String} oid Signature algorithm OID + * @param params The signature parametrs object + * @return ASN.1 object representing signature parameters + */ +function _signatureParametersToAsn1(oid, params) { + switch(oid) { + case oids['RSASSA-PSS']: + var parts = []; + + if(params.hash.algorithmOid !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.hash.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ])); + } + + if(params.mgf.algorithmOid !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.mgf.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ]) + ])); + } + + if(params.saltLength !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(params.saltLength).getBytes()) + ])); + } + + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts); + + default: + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''); + } +} + +/** + * Converts a certification request's attributes to an ASN.1 set of + * CRIAttributes. + * + * @param csr certification request. + * + * @return the ASN.1 set of CRIAttributes. + */ +function _CRIAttributesToAsn1(csr) { + // create an empty context-specific container + var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + + // no attributes, return empty container + if(csr.attributes.length === 0) { + return rval; + } + + // each attribute has a sequence with a type and a set of values + var attrs = csr.attributes; + for(var i = 0; i < attrs.length; ++i) { + var attr = attrs[i]; + var value = attr.value; + + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.UTF8; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; + } + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + var valueConstructed = false; + if('valueConstructed' in attr) { + valueConstructed = attr.valueConstructed; + } + // FIXME: handle more encodings + + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + // AttributeValue + asn1.create( + asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value) + ]) + ]); + rval.value.push(seq); + } + + return rval; +} + +var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); +var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); + +/** + * Converts a Date object to ASN.1 + * Handles the different format before and after 1st January 2050 + * + * @param date date object. + * + * @return the ASN.1 object representing the date. + */ +function _dateToAsn1(date) { + if(date >= jan_1_1950 && date < jan_1_2050) { + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, + asn1.dateToUtcTime(date)); + } else { + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, + asn1.dateToGeneralizedTime(date)); + } +} + +/** + * Gets the ASN.1 TBSCertificate part of an X.509v3 certificate. + * + * @param cert the certificate. + * + * @return the asn1 TBSCertificate. + */ +pki.getTBSCertificate = function(cert) { + // TBSCertificate + var notBefore = _dateToAsn1(cert.validity.notBefore); + var notAfter = _dateToAsn1(cert.validity.notAfter); + var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // integer + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(cert.version).getBytes()) + ]), + // serialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(cert.serialNumber)), + // signature + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()), + // parameters + _signatureParametersToAsn1( + cert.siginfo.algorithmOid, cert.siginfo.parameters) + ]), + // issuer + _dnToAsn1(cert.issuer), + // validity + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + notBefore, + notAfter + ]), + // subject + _dnToAsn1(cert.subject), + // SubjectPublicKeyInfo + pki.publicKeyToAsn1(cert.publicKey) + ]); + + if(cert.issuer.uniqueId) { + // issuerUniqueID (optional) + tbs.value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + // TODO: support arbitrary bit length ids + String.fromCharCode(0x00) + + cert.issuer.uniqueId + ) + ]) + ); + } + if(cert.subject.uniqueId) { + // subjectUniqueID (optional) + tbs.value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + // TODO: support arbitrary bit length ids + String.fromCharCode(0x00) + + cert.subject.uniqueId + ) + ]) + ); + } + + if(cert.extensions.length > 0) { + // extensions (optional) + tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions)); + } + + return tbs; +}; + +/** + * Gets the ASN.1 CertificationRequestInfo part of a + * PKCS#10 CertificationRequest. + * + * @param csr the certification request. + * + * @return the asn1 CertificationRequestInfo. + */ +pki.getCertificationRequestInfo = function(csr) { + // CertificationRequestInfo + var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(csr.version).getBytes()), + // subject + _dnToAsn1(csr.subject), + // SubjectPublicKeyInfo + pki.publicKeyToAsn1(csr.publicKey), + // attributes + _CRIAttributesToAsn1(csr) + ]); + + return cri; +}; + +/** + * Converts a DistinguishedName (subject or issuer) to an ASN.1 object. + * + * @param dn the DistinguishedName. + * + * @return the asn1 representation of a DistinguishedName. + */ +pki.distinguishedNameToAsn1 = function(dn) { + return _dnToAsn1(dn); +}; + +/** + * Converts an X.509v3 RSA certificate to an ASN.1 object. + * + * @param cert the certificate. + * + * @return the asn1 representation of an X.509v3 RSA certificate. + */ +pki.certificateToAsn1 = function(cert) { + // prefer cached TBSCertificate over generating one + var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert); + + // Certificate + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // TBSCertificate + tbsCertificate, + // AlgorithmIdentifier (signature algorithm) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(cert.signatureOid).getBytes()), + // parameters + _signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters) + ]), + // SignatureValue + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + String.fromCharCode(0x00) + cert.signature) + ]); +}; + +/** + * Converts X.509v3 certificate extensions to ASN.1. + * + * @param exts the extensions to convert. + * + * @return the extensions in ASN.1 format. + */ +pki.certificateExtensionsToAsn1 = function(exts) { + // create top-level extension container + var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []); + + // create extension sequence (stores a sequence for each extension) + var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + rval.value.push(seq); + + for(var i = 0; i < exts.length; ++i) { + seq.value.push(pki.certificateExtensionToAsn1(exts[i])); + } + + return rval; +}; + +/** + * Converts a single certificate extension to ASN.1. + * + * @param ext the extension to convert. + * + * @return the extension in ASN.1 format. + */ +pki.certificateExtensionToAsn1 = function(ext) { + // create a sequence for each extension + var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + // extnID (OID) + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(ext.id).getBytes())); + + // critical defaults to false + if(ext.critical) { + // critical BOOLEAN DEFAULT FALSE + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, + String.fromCharCode(0xFF))); + } + + var value = ext.value; + if(typeof ext.value !== 'string') { + // value is asn.1 + value = asn1.toDer(value).getBytes(); + } + + // extnValue (OCTET STRING) + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value)); + + return extseq; +}; + +/** + * Converts a PKCS#10 certification request to an ASN.1 object. + * + * @param csr the certification request. + * + * @return the asn1 representation of a certification request. + */ +pki.certificationRequestToAsn1 = function(csr) { + // prefer cached CertificationRequestInfo over generating one + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); + + // Certificate + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // CertificationRequestInfo + cri, + // AlgorithmIdentifier (signature algorithm) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(csr.signatureOid).getBytes()), + // parameters + _signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters) + ]), + // signature + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + String.fromCharCode(0x00) + csr.signature) + ]); +}; + +/** + * Creates a CA store. + * + * @param certs an optional array of certificate objects or PEM-formatted + * certificate strings to add to the CA store. + * + * @return the CA store. + */ +pki.createCaStore = function(certs) { + // create CA store + var caStore = { + // stored certificates + certs: {} + }; + + /** + * Gets the certificate that issued the passed certificate or its + * 'parent'. + * + * @param cert the certificate to get the parent for. + * + * @return the parent certificate or null if none was found. + */ + caStore.getIssuer = function(cert) { + var rval = getBySubject(cert.issuer); + + // see if there are multiple matches + /*if(forge.util.isArray(rval)) { + // TODO: resolve multiple matches by checking + // authorityKey/subjectKey/issuerUniqueID/other identifiers, etc. + // FIXME: or alternatively do authority key mapping + // if possible (X.509v1 certs can't work?) + throw new Error('Resolving multiple issuer matches not implemented yet.'); + }*/ + + return rval; + }; + + /** + * Adds a trusted certificate to the store. + * + * @param cert the certificate to add as a trusted certificate (either a + * pki.certificate object or a PEM-formatted certificate). + */ + caStore.addCertificate = function(cert) { + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + + ensureSubjectHasHash(cert.subject); + + if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store + if(cert.subject.hash in caStore.certs) { + // subject hash already exists, append to array + var tmp = caStore.certs[cert.subject.hash]; + if(!forge.util.isArray(tmp)) { + tmp = [tmp]; + } + tmp.push(cert); + caStore.certs[cert.subject.hash] = tmp; + } else { + caStore.certs[cert.subject.hash] = cert; + } + } + }; + + /** + * Checks to see if the given certificate is in the store. + * + * @param cert the certificate to check (either a pki.certificate or a + * PEM-formatted certificate). + * + * @return true if the certificate is in the store, false if not. + */ + caStore.hasCertificate = function(cert) { + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + + var match = getBySubject(cert.subject); + if(!match) { + return false; + } + if(!forge.util.isArray(match)) { + match = [match]; + } + // compare DER-encoding of certificates + var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); + for(var i = 0; i < match.length; ++i) { + var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); + if(der1 === der2) { + return true; + } + } + return false; + }; + + /** + * Lists all of the certificates kept in the store. + * + * @return an array of all of the pki.certificate objects in the store. + */ + caStore.listAllCertificates = function() { + var certList = []; + + for(var hash in caStore.certs) { + if(caStore.certs.hasOwnProperty(hash)) { + var value = caStore.certs[hash]; + if(!forge.util.isArray(value)) { + certList.push(value); + } else { + for(var i = 0; i < value.length; ++i) { + certList.push(value[i]); + } + } + } + } + + return certList; + }; + + /** + * Removes a certificate from the store. + * + * @param cert the certificate to remove (either a pki.certificate or a + * PEM-formatted certificate). + * + * @return the certificate that was removed or null if the certificate + * wasn't in store. + */ + caStore.removeCertificate = function(cert) { + var result; + + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + ensureSubjectHasHash(cert.subject); + if(!caStore.hasCertificate(cert)) { + return null; + } + + var match = getBySubject(cert.subject); + + if(!forge.util.isArray(match)) { + result = caStore.certs[cert.subject.hash]; + delete caStore.certs[cert.subject.hash]; + return result; + } + + // compare DER-encoding of certificates + var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); + for(var i = 0; i < match.length; ++i) { + var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); + if(der1 === der2) { + result = match[i]; + match.splice(i, 1); + } + } + if(match.length === 0) { + delete caStore.certs[cert.subject.hash]; + } + + return result; + }; + + function getBySubject(subject) { + ensureSubjectHasHash(subject); + return caStore.certs[subject.hash] || null; + } + + function ensureSubjectHasHash(subject) { + // produce subject hash if it doesn't exist + if(!subject.hash) { + var md = forge.md.sha1.create(); + subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md); + subject.hash = md.digest().toHex(); + } + } + + // auto-add passed in certs + if(certs) { + // parse PEM-formatted certificates as necessary + for(var i = 0; i < certs.length; ++i) { + var cert = certs[i]; + caStore.addCertificate(cert); + } + } + + return caStore; +}; + +/** + * Certificate verification errors, based on TLS. + */ +pki.certificateError = { + bad_certificate: 'forge.pki.BadCertificate', + unsupported_certificate: 'forge.pki.UnsupportedCertificate', + certificate_revoked: 'forge.pki.CertificateRevoked', + certificate_expired: 'forge.pki.CertificateExpired', + certificate_unknown: 'forge.pki.CertificateUnknown', + unknown_ca: 'forge.pki.UnknownCertificateAuthority' +}; + +/** + * Verifies a certificate chain against the given Certificate Authority store + * with an optional custom verify callback. + * + * @param caStore a certificate store to verify against. + * @param chain the certificate chain to verify, with the root or highest + * authority at the end (an array of certificates). + * @param options a callback to be called for every certificate in the chain or + * an object with: + * verify a callback to be called for every certificate in the + * chain + * validityCheckDate the date against which the certificate + * validity period should be checked. Pass null to not check + * the validity period. By default, the current date is used. + * + * The verify callback has the following signature: + * + * verified - Set to true if certificate was verified, otherwise the + * pki.certificateError for why the certificate failed. + * depth - The current index in the chain, where 0 is the end point's cert. + * certs - The certificate chain, *NOTE* an empty chain indicates an anonymous + * end point. + * + * The function returns true on success and on failure either the appropriate + * pki.certificateError or an object with 'error' set to the appropriate + * pki.certificateError and 'message' set to a custom error message. + * + * @return true if successful, error thrown if not. + */ +pki.verifyCertificateChain = function(caStore, chain, options) { + /* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate + Section 6: Certification Path Validation + See inline parentheticals related to this particular implementation. + + The primary goal of path validation is to verify the binding between + a subject distinguished name or a subject alternative name and subject + public key, as represented in the end entity certificate, based on the + public key of the trust anchor. This requires obtaining a sequence of + certificates that support that binding. That sequence should be provided + in the passed 'chain'. The trust anchor should be in the given CA + store. The 'end entity' certificate is the certificate provided by the + end point (typically a server) and is the first in the chain. + + To meet this goal, the path validation process verifies, among other + things, that a prospective certification path (a sequence of n + certificates or a 'chain') satisfies the following conditions: + + (a) for all x in {1, ..., n-1}, the subject of certificate x is + the issuer of certificate x+1; + + (b) certificate 1 is issued by the trust anchor; + + (c) certificate n is the certificate to be validated; and + + (d) for all x in {1, ..., n}, the certificate was valid at the + time in question. + + Note that here 'n' is index 0 in the chain and 1 is the last certificate + in the chain and it must be signed by a certificate in the connection's + CA store. + + The path validation process also determines the set of certificate + policies that are valid for this path, based on the certificate policies + extension, policy mapping extension, policy constraints extension, and + inhibit any-policy extension. + + Note: Policy mapping extension not supported (Not Required). + + Note: If the certificate has an unsupported critical extension, then it + must be rejected. + + Note: A certificate is self-issued if the DNs that appear in the subject + and issuer fields are identical and are not empty. + + The path validation algorithm assumes the following seven inputs are + provided to the path processing logic. What this specific implementation + will use is provided parenthetically: + + (a) a prospective certification path of length n (the 'chain') + (b) the current date/time: ('now'). + (c) user-initial-policy-set: A set of certificate policy identifiers + naming the policies that are acceptable to the certificate user. + The user-initial-policy-set contains the special value any-policy + if the user is not concerned about certificate policy + (Not implemented. Any policy is accepted). + (d) trust anchor information, describing a CA that serves as a trust + anchor for the certification path. The trust anchor information + includes: + + (1) the trusted issuer name, + (2) the trusted public key algorithm, + (3) the trusted public key, and + (4) optionally, the trusted public key parameters associated + with the public key. + + (Trust anchors are provided via certificates in the CA store). + + The trust anchor information may be provided to the path processing + procedure in the form of a self-signed certificate. The trusted anchor + information is trusted because it was delivered to the path processing + procedure by some trustworthy out-of-band procedure. If the trusted + public key algorithm requires parameters, then the parameters are + provided along with the trusted public key (No parameters used in this + implementation). + + (e) initial-policy-mapping-inhibit, which indicates if policy mapping is + allowed in the certification path. + (Not implemented, no policy checking) + + (f) initial-explicit-policy, which indicates if the path must be valid + for at least one of the certificate policies in the user-initial- + policy-set. + (Not implemented, no policy checking) + + (g) initial-any-policy-inhibit, which indicates whether the + anyPolicy OID should be processed if it is included in a + certificate. + (Not implemented, so any policy is valid provided that it is + not marked as critical) */ + + /* Basic Path Processing: + + For each certificate in the 'chain', the following is checked: + + 1. The certificate validity period includes the current time. + 2. The certificate was signed by its parent (where the parent is either + the next in the chain or from the CA store). Allow processing to + continue to the next step if no parent is found but the certificate is + in the CA store. + 3. TODO: The certificate has not been revoked. + 4. The certificate issuer name matches the parent's subject name. + 5. TODO: If the certificate is self-issued and not the final certificate + in the chain, skip this step, otherwise verify that the subject name + is within one of the permitted subtrees of X.500 distinguished names + and that each of the alternative names in the subjectAltName extension + (critical or non-critical) is within one of the permitted subtrees for + that name type. + 6. TODO: If the certificate is self-issued and not the final certificate + in the chain, skip this step, otherwise verify that the subject name + is not within one of the excluded subtrees for X.500 distinguished + names and none of the subjectAltName extension names are excluded for + that name type. + 7. The other steps in the algorithm for basic path processing involve + handling the policy extension which is not presently supported in this + implementation. Instead, if a critical policy extension is found, the + certificate is rejected as not supported. + 8. If the certificate is not the first or if its the only certificate in + the chain (having no parent from the CA store or is self-signed) and it + has a critical key usage extension, verify that the keyCertSign bit is + set. If the key usage extension exists, verify that the basic + constraints extension exists. If the basic constraints extension exists, + verify that the cA flag is set. If pathLenConstraint is set, ensure that + the number of certificates that precede in the chain (come earlier + in the chain as implemented below), excluding the very first in the + chain (typically the end-entity one), isn't greater than the + pathLenConstraint. This constraint limits the number of intermediate + CAs that may appear below a CA before only end-entity certificates + may be issued. */ + + // if a verify callback is passed as the third parameter, package it within + // the options object. This is to support a legacy function signature that + // expected the verify callback as the third parameter. + if(typeof options === 'function') { + options = {verify: options}; + } + options = options || {}; + + // copy cert chain references to another array to protect against changes + // in verify callback + chain = chain.slice(0); + var certs = chain.slice(0); + + var validityCheckDate = options.validityCheckDate; + // if no validityCheckDate is specified, default to the current date. Make + // sure to maintain the value null because it indicates that the validity + // period should not be checked. + if(typeof validityCheckDate === 'undefined') { + validityCheckDate = new Date(); + } + + // verify each cert in the chain using its parent, where the parent + // is either the next in the chain or from the CA store + var first = true; + var error = null; + var depth = 0; + do { + var cert = chain.shift(); + var parent = null; + var selfSigned = false; + + if(validityCheckDate) { + // 1. check valid time + if(validityCheckDate < cert.validity.notBefore || + validityCheckDate > cert.validity.notAfter) { + error = { + message: 'Certificate is not valid yet or has expired.', + error: pki.certificateError.certificate_expired, + notBefore: cert.validity.notBefore, + notAfter: cert.validity.notAfter, + // TODO: we might want to reconsider renaming 'now' to + // 'validityCheckDate' should this API be changed in the future. + now: validityCheckDate + }; + } + } + + // 2. verify with parent from chain or CA store + if(error === null) { + parent = chain[0] || caStore.getIssuer(cert); + if(parent === null) { + // check for self-signed cert + if(cert.isIssuer(cert)) { + selfSigned = true; + parent = cert; + } + } + + if(parent) { + // FIXME: current CA store implementation might have multiple + // certificates where the issuer can't be determined from the + // certificate (happens rarely with, eg: old certificates) so normalize + // by always putting parents into an array + // TODO: there's may be an extreme degenerate case currently uncovered + // where an old intermediate certificate seems to have a matching parent + // but none of the parents actually verify ... but the intermediate + // is in the CA and it should pass this check; needs investigation + var parents = parent; + if(!forge.util.isArray(parents)) { + parents = [parents]; + } + + // try to verify with each possible parent (typically only one) + var verified = false; + while(!verified && parents.length > 0) { + parent = parents.shift(); + try { + verified = parent.verify(cert); + } catch(ex) { + // failure to verify, don't care why, try next one + } + } + + if(!verified) { + error = { + message: 'Certificate signature is invalid.', + error: pki.certificateError.bad_certificate + }; + } + } + + if(error === null && (!parent || selfSigned) && + !caStore.hasCertificate(cert)) { + // no parent issuer and certificate itself is not trusted + error = { + message: 'Certificate is not trusted.', + error: pki.certificateError.unknown_ca + }; + } + } + + // TODO: 3. check revoked + + // 4. check for matching issuer/subject + if(error === null && parent && !cert.isIssuer(parent)) { + // parent is not issuer + error = { + message: 'Certificate issuer is invalid.', + error: pki.certificateError.bad_certificate + }; + } + + // 5. TODO: check names with permitted names tree + + // 6. TODO: check names against excluded names tree + + // 7. check for unsupported critical extensions + if(error === null) { + // supported extensions + var se = { + keyUsage: true, + basicConstraints: true + }; + for(var i = 0; error === null && i < cert.extensions.length; ++i) { + var ext = cert.extensions[i]; + if(ext.critical && !(ext.name in se)) { + error = { + message: + 'Certificate has an unsupported critical extension.', + error: pki.certificateError.unsupported_certificate + }; + } + } + } + + // 8. check for CA if cert is not first or is the only certificate + // remaining in chain with no parent or is self-signed + if(error === null && + (!first || (chain.length === 0 && (!parent || selfSigned)))) { + // first check keyUsage extension and then basic constraints + var bcExt = cert.getExtension('basicConstraints'); + var keyUsageExt = cert.getExtension('keyUsage'); + if(keyUsageExt !== null) { + // keyCertSign must be true and there must be a basic + // constraints extension + if(!keyUsageExt.keyCertSign || bcExt === null) { + // bad certificate + error = { + message: + 'Certificate keyUsage or basicConstraints conflict ' + + 'or indicate that the certificate is not a CA. ' + + 'If the certificate is the only one in the chain or ' + + 'isn\'t the first then the certificate must be a ' + + 'valid CA.', + error: pki.certificateError.bad_certificate + }; + } + } + // basic constraints cA flag must be set + if(error === null && bcExt !== null && !bcExt.cA) { + // bad certificate + error = { + message: + 'Certificate basicConstraints indicates the certificate ' + + 'is not a CA.', + error: pki.certificateError.bad_certificate + }; + } + // if error is not null and keyUsage is available, then we know it + // has keyCertSign and there is a basic constraints extension too, + // which means we can check pathLenConstraint (if it exists) + if(error === null && keyUsageExt !== null && + 'pathLenConstraint' in bcExt) { + // pathLen is the maximum # of intermediate CA certs that can be + // found between the current certificate and the end-entity (depth 0) + // certificate; this number does not include the end-entity (depth 0, + // last in the chain) even if it happens to be a CA certificate itself + var pathLen = depth - 1; + if(pathLen > bcExt.pathLenConstraint) { + // pathLenConstraint violated, bad certificate + error = { + message: + 'Certificate basicConstraints pathLenConstraint violated.', + error: pki.certificateError.bad_certificate + }; + } + } + } + + // call application callback + var vfd = (error === null) ? true : error.error; + var ret = options.verify ? options.verify(vfd, depth, certs) : vfd; + if(ret === true) { + // clear any set error + error = null; + } else { + // if passed basic tests, set default message and alert + if(vfd === true) { + error = { + message: 'The application rejected the certificate.', + error: pki.certificateError.bad_certificate + }; + } + + // check for custom error info + if(ret || ret === 0) { + // set custom message and error + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + if(ret.message) { + error.message = ret.message; + } + if(ret.error) { + error.error = ret.error; + } + } else if(typeof ret === 'string') { + // set custom error + error.error = ret; + } + } + + // throw error + throw error; + } + + // no longer first cert in chain + first = false; + ++depth; + } while(chain.length > 0); + + return true; +}; + + +/***/ }), + +/***/ 2252: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.billingbudgets_v1beta1 = exports.billingbudgets_v1 = exports.auth = exports.billingbudgets = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8402); +Object.defineProperty(exports, "billingbudgets_v1", { enumerable: true, get: function () { return v1_1.billingbudgets_v1; } }); +const v1beta1_1 = __webpack_require__(4136); +Object.defineProperty(exports, "billingbudgets_v1beta1", { enumerable: true, get: function () { return v1beta1_1.billingbudgets_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.billingbudgets_v1.Billingbudgets, + v1beta1: v1beta1_1.billingbudgets_v1beta1.Billingbudgets, +}; +function billingbudgets(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('billingbudgets', versionOrOptions, exports.VERSIONS, this); +} +exports.billingbudgets = billingbudgets; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2254: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = void 0; +const google_auth_library_1 = __webpack_require__(3668); +class AuthPlus extends google_auth_library_1.GoogleAuth { + constructor() { + super(...arguments); + this.JWT = google_auth_library_1.JWT; + this.Compute = google_auth_library_1.Compute; + this.OAuth2 = google_auth_library_1.OAuth2Client; + this.GoogleAuth = google_auth_library_1.GoogleAuth; + this.AwsClient = google_auth_library_1.AwsClient; + this.IdentityPoolClient = google_auth_library_1.IdentityPoolClient; + this.ExternalAccountClient = google_auth_library_1.ExternalAccountClient; + } + /** + * Override getClient(), memoizing an instance of auth for + * subsequent calls to getProjectId(). + */ + async getClient(options) { + this._cachedAuth = new google_auth_library_1.GoogleAuth(options); + return this._cachedAuth.getClient(); + } + getProjectId(callback) { + if (callback) { + return this._cachedAuth + ? this._cachedAuth.getProjectId(callback) + : super.getProjectId(callback); + } + else { + return this._cachedAuth + ? this._cachedAuth.getProjectId() + : super.getProjectId(); + } + } +} +exports.AuthPlus = AuthPlus; +//# sourceMappingURL=authplus.js.map + +/***/ }), + +/***/ 2259: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// Copyright 2018 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.GaxiosError = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +class GaxiosError extends Error { + constructor(message, options, response) { + super(message); + this.response = response; + this.config = options; + this.code = response.status.toString(); + } +} +exports.GaxiosError = GaxiosError; +//# sourceMappingURL=common.js.map + +/***/ }), + +/***/ 2261: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.youtube_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var youtube_v3; +(function (youtube_v3) { + /** + * YouTube Data API v3 + * + * The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const youtube = google.youtube('v3'); + * ``` + */ + class Youtube { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.abuseReports = new Resource$Abusereports(this.context); + this.activities = new Resource$Activities(this.context); + this.captions = new Resource$Captions(this.context); + this.channelBanners = new Resource$Channelbanners(this.context); + this.channels = new Resource$Channels(this.context); + this.channelSections = new Resource$Channelsections(this.context); + this.comments = new Resource$Comments(this.context); + this.commentThreads = new Resource$Commentthreads(this.context); + this.i18nLanguages = new Resource$I18nlanguages(this.context); + this.i18nRegions = new Resource$I18nregions(this.context); + this.liveBroadcasts = new Resource$Livebroadcasts(this.context); + this.liveChatBans = new Resource$Livechatbans(this.context); + this.liveChatMessages = new Resource$Livechatmessages(this.context); + this.liveChatModerators = new Resource$Livechatmoderators(this.context); + this.liveStreams = new Resource$Livestreams(this.context); + this.members = new Resource$Members(this.context); + this.membershipsLevels = new Resource$Membershipslevels(this.context); + this.playlistItems = new Resource$Playlistitems(this.context); + this.playlists = new Resource$Playlists(this.context); + this.search = new Resource$Search(this.context); + this.subscriptions = new Resource$Subscriptions(this.context); + this.superChatEvents = new Resource$Superchatevents(this.context); + this.tests = new Resource$Tests(this.context); + this.thirdPartyLinks = new Resource$Thirdpartylinks(this.context); + this.thumbnails = new Resource$Thumbnails(this.context); + this.videoAbuseReportReasons = new Resource$Videoabusereportreasons(this.context); + this.videoCategories = new Resource$Videocategories(this.context); + this.videos = new Resource$Videos(this.context); + this.watermarks = new Resource$Watermarks(this.context); + this.youtube = new Resource$Youtube(this.context); + } + } + youtube_v3.Youtube = Youtube; + class Resource$Abusereports { + constructor(context) { + this.context = context; + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/abuseReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Abusereports = Resource$Abusereports; + class Resource$Activities { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Activities = Resource$Activities; + class Resource$Captions { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + download(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part', 'videoId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Captions = Resource$Captions; + class Resource$Channelbanners { + constructor(context) { + this.context = context; + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Channelbanners = Resource$Channelbanners; + class Resource$Channels { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Channels = Resource$Channels; + class Resource$Channelsections { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Channelsections = Resource$Channelsections; + class Resource$Comments { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAsSpam(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments/markAsSpam').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setModerationStatus(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments/setModerationStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'moderationStatus'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Comments = Resource$Comments; + class Resource$Commentthreads { + constructor(context) { + this.context = context; + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Commentthreads = Resource$Commentthreads; + class Resource$I18nlanguages { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/i18nLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$I18nlanguages = Resource$I18nlanguages; + class Resource$I18nregions { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/i18nRegions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$I18nregions = Resource$I18nregions; + class Resource$Livebroadcasts { + constructor(context) { + this.context = context; + } + bind(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts/bind').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insertCuepoint(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts/cuepoint').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + transition(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts/transition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['broadcastStatus', 'id', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Livebroadcasts = Resource$Livebroadcasts; + class Resource$Livechatbans { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Livechatbans = Resource$Livechatbans; + class Resource$Livechatmessages { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['liveChatId', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Livechatmessages = Resource$Livechatmessages; + class Resource$Livechatmoderators { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['liveChatId', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Livechatmoderators = Resource$Livechatmoderators; + class Resource$Livestreams { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Livestreams = Resource$Livestreams; + class Resource$Members { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Members = Resource$Members; + class Resource$Membershipslevels { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/membershipsLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Membershipslevels = Resource$Membershipslevels; + class Resource$Playlistitems { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Playlistitems = Resource$Playlistitems; + class Resource$Playlists { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Playlists = Resource$Playlists; + class Resource$Search { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Search = Resource$Search; + class Resource$Subscriptions { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Subscriptions = Resource$Subscriptions; + class Resource$Superchatevents { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/superChatEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Superchatevents = Resource$Superchatevents; + class Resource$Tests { + constructor(context) { + this.context = context; + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/tests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Tests = Resource$Tests; + class Resource$Thirdpartylinks { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['linkingToken', 'type'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Thirdpartylinks = Resource$Thirdpartylinks; + class Resource$Thumbnails { + constructor(context) { + this.context = context; + } + set(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['videoId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Thumbnails = Resource$Thumbnails; + class Resource$Videoabusereportreasons { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videoAbuseReportReasons').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Videoabusereportreasons = Resource$Videoabusereportreasons; + class Resource$Videocategories { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videoCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Videocategories = Resource$Videocategories; + class Resource$Videos { + 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRating(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos/getRating').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rate(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos/rate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'rating'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportAbuse(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos/reportAbuse').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Videos = Resource$Videos; + class Resource$Watermarks { + constructor(context) { + this.context = context; + } + set(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['channelId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unset(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/watermarks/unset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['channelId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Watermarks = Resource$Watermarks; + class Resource$Youtube { + constructor(context) { + this.context = context; + this.v3 = new Resource$Youtube$V3(this.context); + } + } + youtube_v3.Resource$Youtube = Resource$Youtube; + class Resource$Youtube$V3 { + constructor(context) { + this.context = context; + } + updateCommentThreads(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://youtube.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtube_v3.Resource$Youtube$V3 = Resource$Youtube$V3; +})(youtube_v3 = exports.youtube_v3 || (exports.youtube_v3 = {})); + + +/***/ }), + +/***/ 2274: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.tpu_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var tpu_v1alpha1; +(function (tpu_v1alpha1) { + /** + * Cloud TPU API + * + * TPU API provides customers with access to Google TPU technology. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tpu = google.tpu('v1alpha1'); + * ``` + */ + class Tpu { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + tpu_v1alpha1.Tpu = Tpu; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + tpu_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); + this.nodes = new Resource$Projects$Locations$Nodes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.tensorflowVersions = + new Resource$Projects$Locations$Tensorflowversions(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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Acceleratortypes { + 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; + class Resource$Projects$Locations$Nodes { + 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reimage(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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; + 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Tensorflowversions { + 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; +})(tpu_v1alpha1 = exports.tpu_v1alpha1 || (exports.tpu_v1alpha1 = {})); + + +/***/ }), + +/***/ 2278: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.analytics_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var analytics_v3; +(function (analytics_v3) { + /** + * Google Analytics API + * + * Views and manages your Google Analytics data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analytics = google.analytics('v3'); + * ``` + */ + class Analytics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.data = new Resource$Data(this.context); + this.management = new Resource$Management(this.context); + this.metadata = new Resource$Metadata(this.context); + this.provisioning = new Resource$Provisioning(this.context); + this.userDeletion = new Resource$Userdeletion(this.context); + } + } + analytics_v3.Analytics = Analytics; + class Resource$Data { + constructor(context) { + this.context = context; + this.ga = new Resource$Data$Ga(this.context); + this.mcf = new Resource$Data$Mcf(this.context); + this.realtime = new Resource$Data$Realtime(this.context); + } + } + analytics_v3.Resource$Data = Resource$Data; + class Resource$Data$Ga { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/data/ga').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Data$Ga = Resource$Data$Ga; + class Resource$Data$Mcf { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/data/mcf').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Data$Mcf = Resource$Data$Mcf; + class Resource$Data$Realtime { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/data/realtime').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ids', 'metrics'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Data$Realtime = Resource$Data$Realtime; + class Resource$Management { + constructor(context) { + this.context = context; + this.accounts = new Resource$Management$Accounts(this.context); + this.accountSummaries = new Resource$Management$Accountsummaries(this.context); + this.accountUserLinks = new Resource$Management$Accountuserlinks(this.context); + this.clientId = new Resource$Management$Clientid(this.context); + this.customDataSources = new Resource$Management$Customdatasources(this.context); + this.customDimensions = new Resource$Management$Customdimensions(this.context); + this.customMetrics = new Resource$Management$Custommetrics(this.context); + this.experiments = new Resource$Management$Experiments(this.context); + this.filters = new Resource$Management$Filters(this.context); + this.goals = new Resource$Management$Goals(this.context); + this.profileFilterLinks = new Resource$Management$Profilefilterlinks(this.context); + this.profiles = new Resource$Management$Profiles(this.context); + this.profileUserLinks = new Resource$Management$Profileuserlinks(this.context); + this.remarketingAudience = new Resource$Management$Remarketingaudience(this.context); + this.segments = new Resource$Management$Segments(this.context); + this.unsampledReports = new Resource$Management$Unsampledreports(this.context); + this.uploads = new Resource$Management$Uploads(this.context); + this.webproperties = new Resource$Management$Webproperties(this.context); + this.webPropertyAdWordsLinks = + new Resource$Management$Webpropertyadwordslinks(this.context); + this.webpropertyUserLinks = new Resource$Management$Webpropertyuserlinks(this.context); + } + } + analytics_v3.Resource$Management = Resource$Management; + class Resource$Management$Accounts { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/management/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Accounts = Resource$Management$Accounts; + class Resource$Management$Accountsummaries { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/management/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Accountsummaries = Resource$Management$Accountsummaries; + class Resource$Management$Accountuserlinks { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'linkId'], + pathParams: ['accountId', 'linkId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'linkId'], + pathParams: ['accountId', 'linkId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Accountuserlinks = Resource$Management$Accountuserlinks; + class Resource$Management$Clientid { + constructor(context) { + this.context = context; + } + hashClientId(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/management/clientId:hashClientId').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Clientid = Resource$Management$Clientid; + class Resource$Management$Customdatasources { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Customdatasources = Resource$Management$Customdatasources; + class Resource$Management$Customdimensions { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], + pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], + pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], + pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Customdimensions = Resource$Management$Customdimensions; + class Resource$Management$Custommetrics { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], + pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], + pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], + pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Custommetrics = Resource$Management$Custommetrics; + class Resource$Management$Experiments { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Experiments = Resource$Management$Experiments; + class Resource$Management$Filters { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/management/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/management/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Filters = Resource$Management$Filters; + class Resource$Management$Goals { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], + pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], + pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], + pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Goals = Resource$Management$Goals; + class Resource$Management$Profilefilterlinks { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Profilefilterlinks = Resource$Management$Profilefilterlinks; + class Resource$Management$Profiles { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Profiles = Resource$Management$Profiles; + class Resource$Management$Profileuserlinks { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Profileuserlinks = Resource$Management$Profileuserlinks; + class Resource$Management$Remarketingaudience { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Remarketingaudience = Resource$Management$Remarketingaudience; + class Resource$Management$Segments { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/management/segments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Segments = Resource$Management$Segments; + class Resource$Management$Unsampledreports { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'unsampledReportId', + ], + pathParams: [ + 'accountId', + 'profileId', + 'unsampledReportId', + 'webPropertyId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'unsampledReportId', + ], + pathParams: [ + 'accountId', + 'profileId', + 'unsampledReportId', + 'webPropertyId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Unsampledreports = Resource$Management$Unsampledreports; + class Resource$Management$Uploads { + constructor(context) { + this.context = context; + } + deleteUploadData(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], + pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'customDataSourceId', + 'uploadId', + ], + pathParams: [ + 'accountId', + 'customDataSourceId', + 'uploadId', + 'webPropertyId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], + pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + uploadData(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], + pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Uploads = Resource$Management$Uploads; + class Resource$Management$Webproperties { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Webproperties = Resource$Management$Webproperties; + class Resource$Management$Webpropertyadwordslinks { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Webpropertyadwordslinks = Resource$Management$Webpropertyadwordslinks; + class Resource$Management$Webpropertyuserlinks { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'linkId'], + pathParams: ['accountId', 'linkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'linkId'], + pathParams: ['accountId', 'linkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Management$Webpropertyuserlinks = Resource$Management$Webpropertyuserlinks; + class Resource$Metadata { + constructor(context) { + this.context = context; + this.columns = new Resource$Metadata$Columns(this.context); + } + } + analytics_v3.Resource$Metadata = Resource$Metadata; + class Resource$Metadata$Columns { + 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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/metadata/{reportType}/columns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportType'], + pathParams: ['reportType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Metadata$Columns = Resource$Metadata$Columns; + class Resource$Provisioning { + constructor(context) { + this.context = context; + } + createAccountTicket(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/provisioning/createAccountTicket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createAccountTree(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/provisioning/createAccountTree').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Provisioning = Resource$Provisioning; + class Resource$Userdeletion { + constructor(context) { + this.context = context; + this.userDeletionRequest = new Resource$Userdeletion$Userdeletionrequest(this.context); + } + } + analytics_v3.Resource$Userdeletion = Resource$Userdeletion; + class Resource$Userdeletion$Userdeletionrequest { + constructor(context) { + this.context = context; + } + upsert(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://analytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/analytics/v3/userDeletion/userDeletionRequests:upsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analytics_v3.Resource$Userdeletion$Userdeletionrequest = Resource$Userdeletion$Userdeletionrequest; +})(analytics_v3 = exports.analytics_v3 || (exports.analytics_v3 = {})); + + +/***/ }), + +/***/ 2280: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.websecurityscanner_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var websecurityscanner_v1beta; +(function (websecurityscanner_v1beta) { + /** + * Web Security Scanner API + * + * Scans your Compute and App Engine apps for common web vulnerabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const websecurityscanner = google.websecurityscanner('v1beta'); + * ``` + */ + class Websecurityscanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + websecurityscanner_v1beta.Websecurityscanner = Websecurityscanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + websecurityscanner_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Projects$Scanconfigs$Scanruns { + constructor(context) { + this.context = context; + this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); + this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); + this.findingTypeStats = + new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; + class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1beta = exports.websecurityscanner_v1beta || (exports.websecurityscanner_v1beta = {})); + + +/***/ }), + +/***/ 2281: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.recaptchaenterprise_v1 = exports.auth = exports.recaptchaenterprise = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6758); +Object.defineProperty(exports, "recaptchaenterprise_v1", { enumerable: true, get: function () { return v1_1.recaptchaenterprise_v1; } }); +exports.VERSIONS = { + v1: v1_1.recaptchaenterprise_v1.Recaptchaenterprise, +}; +function recaptchaenterprise(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('recaptchaenterprise', versionOrOptions, exports.VERSIONS, this); +} +exports.recaptchaenterprise = recaptchaenterprise; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2295: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.monitoring_v3 = exports.monitoring_v1 = exports.auth = exports.monitoring = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9918); +Object.defineProperty(exports, "monitoring_v1", { enumerable: true, get: function () { return v1_1.monitoring_v1; } }); +const v3_1 = __webpack_require__(4037); +Object.defineProperty(exports, "monitoring_v3", { enumerable: true, get: function () { return v3_1.monitoring_v3; } }); +exports.VERSIONS = { + v1: v1_1.monitoring_v1.Monitoring, + v3: v3_1.monitoring_v3.Monitoring, +}; +function monitoring(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('monitoring', versionOrOptions, exports.VERSIONS, this); +} +exports.monitoring = monitoring; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2297: +/***/ (function(module) { + +module.exports = class HttpError extends Error { + constructor (message, code, headers) { + super(message) + + // Maintains proper stack trace (only available on V8) + /* istanbul ignore next */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor) + } + + this.name = 'HttpError' + this.code = code + this.headers = headers + } +} + + +/***/ }), + +/***/ 2318: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudprofiler_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudprofiler_v2; +(function (cloudprofiler_v2) { + /** + * Cloud Profiler API + * + * Manages continuous profiling information. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudprofiler = google.cloudprofiler('v2'); + * ``` + */ + class Cloudprofiler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudprofiler_v2.Cloudprofiler = Cloudprofiler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.profiles = new Resource$Projects$Profiles(this.context); + } + } + cloudprofiler_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Profiles { + 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://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createOffline(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://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles:createOffline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudprofiler.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudprofiler_v2.Resource$Projects$Profiles = Resource$Projects$Profiles; +})(cloudprofiler_v2 = exports.cloudprofiler_v2 || (exports.cloudprofiler_v2 = {})); + + +/***/ }), + +/***/ 2322: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.closeSession = exports.request = exports.sessions = void 0; +const http2 = __webpack_require__(7565); +const zlib = __webpack_require__(8761); +const url_1 = __webpack_require__(8835); +const qs = __webpack_require__(7386); +const extend = __webpack_require__(9374); +const stream_1 = __webpack_require__(2413); +const util = __webpack_require__(1669); +const process = __webpack_require__(1765); +const common_1 = __webpack_require__(2259); +const { HTTP2_HEADER_CONTENT_ENCODING, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS, } = http2.constants; +const DEBUG = !!process.env.HTTP2_DEBUG; +/** + * List of sessions current in use. + * @private + */ +exports.sessions = {}; +/** + * Public method to make an http2 request. + * @param config - Request options. + */ +async function request(config) { + const opts = extend(true, {}, config); + opts.validateStatus = opts.validateStatus || validateStatus; + opts.responseType = opts.responseType || 'json'; + const url = new url_1.URL(opts.url); + // Check for an existing session to this host, or go create a new one. + const sessionData = _getClient(url.host); + // Since we're using this session, clear the timeout handle to ensure + // it stays in memory and connected for a while further. + if (sessionData.timeoutHandle !== undefined) { + clearTimeout(sessionData.timeoutHandle); + } + // Assemble the querystring based on config.params. We're using the + // `qs` module to make life a little easier. + let pathWithQs = url.pathname; + if (config.params && Object.keys(config.params).length > 0) { + const serializer = config.paramsSerializer || qs.stringify; + const q = serializer(opts.params); + pathWithQs += `?${q}`; + } + // Assemble the headers based on basic HTTP2 primitives (path, method) and + // custom headers sent from the consumer. Note: I am using `Object.assign` + // here making the assumption these objects are not deep. If it turns out + // they are, we may need to use the `extend` npm module for deep cloning. + const headers = Object.assign({}, opts.headers, { + [HTTP2_HEADER_PATH]: pathWithQs, + [HTTP2_HEADER_METHOD]: config.method || 'GET', + }); + // NOTE: This is working around an upstream bug in `apirequest.ts`. The + // request path assumes that the `content-type` header is going to be set in + // the underlying HTTP Client. This hack provides bug for bug compatability + // with this bug in gaxios: + // https://github.com/googleapis/gaxios/blob/main/src/gaxios.ts#L202 + if (!headers[HTTP2_HEADER_CONTENT_TYPE]) { + if (opts.responseType !== 'text') { + headers[HTTP2_HEADER_CONTENT_TYPE] = 'application/json'; + } + } + const res = { + config, + request: {}, + headers: [], + status: 0, + data: {}, + statusText: '', + }; + const chunks = []; + const session = sessionData.session; + let req; + return new Promise((resolve, reject) => { + try { + req = session + .request(headers) + .on('response', headers => { + res.headers = headers; + res.status = Number(headers[HTTP2_HEADER_STATUS]); + let stream = req; + if (headers[HTTP2_HEADER_CONTENT_ENCODING] === 'gzip') { + stream = req.pipe(zlib.createGunzip()); + } + if (opts.responseType === 'stream') { + res.data = stream; + resolve(res); + return; + } + stream + .on('data', d => { + chunks.push(d); + }) + .on('error', err => { + reject(err); + return; + }) + .on('end', () => { + const buf = Buffer.concat(chunks); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let data = buf; + if (buf) { + if (opts.responseType === 'json') { + try { + data = JSON.parse(buf.toString('utf8')); + } + catch (_a) { + data = buf.toString('utf8'); + } + } + else if (opts.responseType === 'text') { + data = buf.toString('utf8'); + } + else if (opts.responseType === 'arraybuffer') { + data = buf.buffer; + } + res.data = data; + } + if (!opts.validateStatus(res.status)) { + let message = `Request failed with status code ${res.status}. `; + if (res.data && typeof res.data === 'object') { + const body = util.inspect(res.data, { depth: 5 }); + message = `${message}\n'${body}`; + } + reject(new common_1.GaxiosError(message, opts, res)); + } + resolve(res); + return; + }); + }) + .on('error', e => { + reject(e); + return; + }); + } + catch (e) { + closeSession(url); + reject(e); + } + res.request = req; + // If data was provided, write it to the request in the form of + // a stream, string data, or a basic object. + if (config.data) { + if (config.data instanceof stream_1.Stream) { + config.data.pipe(req); + } + else if (typeof config.data === 'string') { + const data = Buffer.from(config.data); + req.end(data); + } + else if (typeof config.data === 'object') { + const data = JSON.stringify(config.data); + req.end(data); + } + } + // Create a timeout so the Http2Session will be cleaned up after + // a period of non-use. 500 milliseconds was chosen because it's + // a nice round number, and I don't know what would be a better + // choice. Keeping this channel open will hold a file descriptor + // which will prevent the process from exiting. + sessionData.timeoutHandle = setTimeout(() => { + closeSession(url); + }, 500); + }); +} +exports.request = request; +/** + * By default, throw for any non-2xx status code + * @param status - status code from the HTTP response + */ +function validateStatus(status) { + return status >= 200 && status < 300; +} +/** + * Obtain an existing h2 session or go create a new one. + * @param host - The hostname to which the session belongs. + */ +function _getClient(host) { + if (!exports.sessions[host]) { + if (DEBUG) { + console.log(`Creating client for ${host}`); + } + const session = http2.connect(`https://${host}`); + session + .on('error', e => { + console.error(`*ERROR*: ${e}`); + delete exports.sessions[host]; + }) + .on('goaway', (errorCode, lastStreamId) => { + console.error(`*GOAWAY*: ${errorCode} : ${lastStreamId}`); + delete exports.sessions[host]; + }); + exports.sessions[host] = { session }; + } + else { + if (DEBUG) { + console.log(`Used cached client for ${host}`); + } + } + return exports.sessions[host]; +} +async function closeSession(url) { + const sessionData = exports.sessions[url.host]; + if (!sessionData) { + return; + } + const { session } = sessionData; + delete exports.sessions[url.host]; + if (DEBUG) { + console.error(`Closing ${url.host}`); + } + session.close(() => { + if (DEBUG) { + console.error(`Closed ${url.host}`); + } + }); + setTimeout(() => { + if (session && !session.destroyed) { + if (DEBUG) { + console.log(`Forcing close ${url.host}`); + } + if (session) { + session.destroy(); + } + } + }, 1000); +} +exports.closeSession = closeSession; +//# sourceMappingURL=http2.js.map + +/***/ }), + +/***/ 2335: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.documentai_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var documentai_v1; +(function (documentai_v1) { + /** + * Cloud Document AI API + * + * Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const documentai = google.documentai('v1'); + * ``` + */ + class Documentai { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + documentai_v1.Documentai = Documentai; + class Resource$Operations { + 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + documentai_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.processors = new Resource$Projects$Locations$Processors(this.context); + this.processorTypes = new Resource$Projects$Locations$Processortypes(this.context); + } + fetchProcessorTypes(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:fetchProcessorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations = Resource$Projects$Locations; + 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Processors { + constructor(context) { + this.context = context; + this.humanReviewConfig = + new Resource$Projects$Locations$Processors$Humanreviewconfig(this.context); + this.processorVersions = + new Resource$Projects$Locations$Processors$Processorversions(this.context); + } + batchProcess(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disable(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enable(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + process(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefaultProcessorVersion(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+processor}:setDefaultProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['processor'], + pathParams: ['processor'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations$Processors = Resource$Projects$Locations$Processors; + class Resource$Projects$Locations$Processors$Humanreviewconfig { + constructor(context) { + this.context = context; + } + reviewDocument(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+humanReviewConfig}:reviewDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['humanReviewConfig'], + pathParams: ['humanReviewConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations$Processors$Humanreviewconfig = Resource$Projects$Locations$Processors$Humanreviewconfig; + class Resource$Projects$Locations$Processors$Processorversions { + constructor(context) { + this.context = context; + this.evaluations = + new Resource$Projects$Locations$Processors$Processorversions$Evaluations(this.context); + } + batchProcess(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deploy(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + evaluateProcessorVersion(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+processorVersion}:evaluateProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['processorVersion'], + pathParams: ['processorVersion'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/processorVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + process(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + train(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/processorVersions:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeploy(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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations$Processors$Processorversions = Resource$Projects$Locations$Processors$Processorversions; + class Resource$Projects$Locations$Processors$Processorversions$Evaluations { + 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations$Processors$Processorversions$Evaluations = Resource$Projects$Locations$Processors$Processorversions$Evaluations; + class Resource$Projects$Locations$Processortypes { + 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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://documentai.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/processorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Locations$Processortypes = Resource$Projects$Locations$Processortypes; + class Resource$Projects$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://documentai.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + documentai_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(documentai_v1 = exports.documentai_v1 || (exports.documentai_v1 = {})); + + +/***/ }), + +/***/ 2349: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticationRequestError; + +const { RequestError } = __webpack_require__(3497); + +function authenticationRequestError(state, error, options) { + /* istanbul ignore next */ + if (!error.headers) throw error; + + const otpRequired = /required/.test(error.headers["x-github-otp"] || ""); + // handle "2FA required" error only + if (error.status !== 401 || !otpRequired) { + throw error; + } + + if ( + error.status === 401 && + otpRequired && + error.request && + error.request.headers["x-github-otp"] + ) { + throw new RequestError( + "Invalid one-time password for two-factor authentication", + 401, + { + headers: error.headers, + request: options + } + ); + } + + if (typeof state.auth.on2fa !== "function") { + throw new RequestError( + "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication", + 401, + { + headers: error.headers, + request: options + } + ); + } + + return Promise.resolve() + .then(() => { + return state.auth.on2fa(); + }) + .then(oneTimePassword => { + const newOptions = Object.assign(options, { + headers: Object.assign( + { "x-github-otp": oneTimePassword }, + options.headers + ) + }); + return state.octokit.request(newOptions); + }); +} + + +/***/ }), + +/***/ 2357: +/***/ (function(module) { + +module.exports = require("assert"); + +/***/ }), + +/***/ 2364: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gameservices_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gameservices_v1beta; +(function (gameservices_v1beta) { + /** + * Game Services API + * + * Deploy and manage infrastructure for global multiplayer gaming experiences. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gameservices = google.gameservices('v1beta'); + * ``` + */ + class Gameservices { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gameservices_v1beta.Gameservices = Gameservices; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gameservices_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.gameServerDeployments = + new Resource$Projects$Locations$Gameserverdeployments(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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Gameserverdeployments { + constructor(context) { + this.context = context; + } + 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Gameserverdeployments = Resource$Projects$Locations$Gameserverdeployments; + 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gameservices_v1beta = exports.gameservices_v1beta || (exports.gameservices_v1beta = {})); + + +/***/ }), + +/***/ 2395: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudbilling_v1beta = exports.cloudbilling_v1 = exports.auth = exports.cloudbilling = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5534); +Object.defineProperty(exports, "cloudbilling_v1", { enumerable: true, get: function () { return v1_1.cloudbilling_v1; } }); +const v1beta_1 = __webpack_require__(5515); +Object.defineProperty(exports, "cloudbilling_v1beta", { enumerable: true, get: function () { return v1beta_1.cloudbilling_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.cloudbilling_v1.Cloudbilling, + v1beta: v1beta_1.cloudbilling_v1beta.Cloudbilling, +}; +function cloudbilling(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudbilling', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudbilling = cloudbilling; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2408: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.beyondcorp_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var beyondcorp_v1; +(function (beyondcorp_v1) { + /** + * BeyondCorp API + * + * Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity solutions. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const beyondcorp = google.beyondcorp('v1'); + * ``` + */ + class Beyondcorp { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + beyondcorp_v1.Beyondcorp = Beyondcorp; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + beyondcorp_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.appConnections = new Resource$Projects$Locations$Appconnections(this.context); + this.appConnectors = new Resource$Projects$Locations$Appconnectors(this.context); + this.appGateways = new Resource$Projects$Locations$Appgateways(this.context); + this.clientConnectorServices = + new Resource$Projects$Locations$Clientconnectorservices(this.context); + this.clientGateways = new Resource$Projects$Locations$Clientgateways(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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Appconnections { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Appconnections = Resource$Projects$Locations$Appconnections; + class Resource$Projects$Locations$Appconnectors { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolveInstanceConfig(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Appconnectors = Resource$Projects$Locations$Appconnectors; + class Resource$Projects$Locations$Appgateways { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; + class Resource$Projects$Locations$Clientconnectorservices { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Clientconnectorservices = Resource$Projects$Locations$Clientconnectorservices; + class Resource$Projects$Locations$Clientgateways { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; + 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(beyondcorp_v1 = exports.beyondcorp_v1 || (exports.beyondcorp_v1 = {})); + + +/***/ }), + +/***/ 2413: +/***/ (function(module) { + +module.exports = require("stream"); + +/***/ }), + +/***/ 2418: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.androidenterprise_v1 = exports.auth = exports.androidenterprise = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5075); +Object.defineProperty(exports, "androidenterprise_v1", { enumerable: true, get: function () { return v1_1.androidenterprise_v1; } }); +exports.VERSIONS = { + v1: v1_1.androidenterprise_v1.Androidenterprise, +}; +function androidenterprise(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('androidenterprise', versionOrOptions, exports.VERSIONS, this); +} +exports.androidenterprise = androidenterprise; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2425: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* eslint-disable @typescript-eslint/no-explicit-any */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; +const http = __importStar(__webpack_require__(8605)); +const https = __importStar(__webpack_require__(7211)); +const pm = __importStar(__webpack_require__(4177)); +const tunnel = __importStar(__webpack_require__(7413)); +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + })); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + const parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && + HttpRedirectCodes.includes(response.message.statusCode) && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === 'https:' && + parsedUrl.protocol !== parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + yield response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info, data); + redirectsRemaining--; + } + if (!response.message.statusCode || + !HttpResponseRetryCodes.includes(response.message.statusCode)) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res) { + if (err) { + reject(err); + } + else if (!res) { + // If `err` is not passed, then `res` must be passed. + reject(new Error('Unknown error')); + } + else { + resolve(res); + } + } + this.requestRawWithCallback(info, data, callbackForResult); + }); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + if (typeof data === 'string') { + if (!info.options.headers) { + info.options.headers = {}; + } + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + function handleResult(err, res) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + } + const req = info.httpModule.request(info.options, (msg) => { + const res = new HttpClientResponse(msg); + handleResult(undefined, res); + }); + let socket; + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info.options.path}`)); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info.options); + } + } + return info; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis. + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + })), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if reusing agent across request and tunneling agent isn't assigned create a new agent + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + // if not using private agent and tunnel agent isn't setup then use global agent + if (!agent) { + agent = usingSsl ? https.globalAgent : http.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + // get the result from the body + function dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + })); + }); + } +} +exports.HttpClient = HttpClient; +const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 2441: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dns_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 = __webpack_require__(927); +var dns_v2; +(function (dns_v2) { + /** + * Cloud DNS API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dns = google.dns('v2'); + * ``` + */ + class Dns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); + this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + this.responsePolicies = new Resource$Responsepolicies(this.context); + this.responsePolicyRules = new Resource$Responsepolicyrules(this.context); + } + } + dns_v2.Dns = Dns; + class Resource$Changes { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone', 'changeId'], + pathParams: ['changeId', 'location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone', 'operation'], + pathParams: ['location', 'managedZone', 'operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Policies = Resource$Policies; + class Resource$Projects { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2/projects/{project}/locations/{location}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], + pathParams: ['location', 'managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], + pathParams: ['location', 'managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], + pathParams: ['location', 'managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; + class Resource$Responsepolicies { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Responsepolicies = Resource$Responsepolicies; + class Resource$Responsepolicyrules { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v2.Resource$Responsepolicyrules = Resource$Responsepolicyrules; +})(dns_v2 = exports.dns_v2 || (exports.dns_v2 = {})); + + +/***/ }), + +/***/ 2442: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(__webpack_require__(6417)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports.default = _default; + +/***/ }), + +/***/ 2471: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.workstations_v1beta = exports.auth = exports.workstations = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta_1 = __webpack_require__(7224); +Object.defineProperty(exports, "workstations_v1beta", { enumerable: true, get: function () { return v1beta_1.workstations_v1beta; } }); +exports.VERSIONS = { + v1beta: v1beta_1.workstations_v1beta.Workstations, +}; +function workstations(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('workstations', versionOrOptions, exports.VERSIONS, this); +} +exports.workstations = workstations; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2484: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2013 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.JWT = void 0; +const gtoken_1 = __webpack_require__(403); +const jwtaccess_1 = __webpack_require__(3479); +const oauth2client_1 = __webpack_require__(4449); +class JWT extends oauth2client_1.OAuth2Client { + constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { + const opts = optionsOrEmail && typeof optionsOrEmail === 'object' + ? optionsOrEmail + : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; + super({ + eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, + forceRefreshOnFailure: opts.forceRefreshOnFailure, + }); + this.email = opts.email; + this.keyFile = opts.keyFile; + this.key = opts.key; + this.keyId = opts.keyId; + this.scopes = opts.scopes; + this.subject = opts.subject; + this.additionalClaims = opts.additionalClaims; + this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; + } + /** + * Creates a copy of the credential with the specified scopes. + * @param scopes List of requested scopes or a single scope. + * @return The cloned instance. + */ + createScoped(scopes) { + return new JWT({ + email: this.email, + keyFile: this.keyFile, + key: this.key, + keyId: this.keyId, + scopes, + subject: this.subject, + additionalClaims: this.additionalClaims, + }); + } + /** + * Obtains the metadata to be sent with the request. + * + * @param url the URI being authorized. + */ + async getRequestMetadataAsync(url) { + url = this.defaultServicePath ? `https://${this.defaultServicePath}/` : url; + const useSelfSignedJWT = (!this.hasUserScopes() && url) || + (this.useJWTAccessWithScope && this.hasAnyScopes()); + if (!this.apiKey && useSelfSignedJWT) { + if (this.additionalClaims && + this.additionalClaims.target_audience) { + const { tokens } = await this.refreshToken(); + return { + headers: this.addSharedMetadataHeaders({ + Authorization: `Bearer ${tokens.id_token}`, + }), + }; + } + else { + // no scopes have been set, but a uri has been provided. Use JWTAccess + // credentials. + if (!this.access) { + this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId, this.eagerRefreshThresholdMillis); + } + let scopes; + if (this.hasUserScopes()) { + scopes = this.scopes; + } + else if (!url) { + scopes = this.defaultScopes; + } + const headers = await this.access.getRequestHeaders(url !== null && url !== void 0 ? url : undefined, this.additionalClaims, + // Scopes take precedent over audience for signing, + // so we only provide them if useJWTAccessWithScope is on + this.useJWTAccessWithScope ? scopes : undefined); + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + else if (this.hasAnyScopes() || this.apiKey) { + return super.getRequestMetadataAsync(url); + } + else { + // If no audience, apiKey, or scopes are provided, we should not attempt + // to populate any headers: + return { headers: {} }; + } + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + // Create a new gToken for fetching an ID token + const gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes || this.defaultScopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: { target_audience: targetAudience }, + transporter: this.transporter, + }); + await gtoken.getToken({ + forceRefresh: true, + }); + if (!gtoken.idToken) { + throw new Error('Unknown error: Failed to fetch ID token'); + } + return gtoken.idToken; + } + /** + * Determine if there are currently scopes available. + */ + hasUserScopes() { + if (!this.scopes) { + return false; + } + return this.scopes.length > 0; + } + /** + * Are there any default or user scopes defined. + */ + hasAnyScopes() { + if (this.scopes && this.scopes.length > 0) + return true; + if (this.defaultScopes && this.defaultScopes.length > 0) + return true; + return false; + } + authorize(callback) { + if (callback) { + this.authorizeAsync().then(r => callback(null, r), callback); + } + else { + return this.authorizeAsync(); + } + } + async authorizeAsync() { + const result = await this.refreshToken(); + if (!result) { + throw new Error('No result returned'); + } + this.credentials = result.tokens; + this.credentials.refresh_token = 'jwt-placeholder'; + this.key = this.gtoken.key; + this.email = this.gtoken.iss; + return result.tokens; + } + /** + * Refreshes the access token. + * @param refreshToken ignored + * @private + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + const gtoken = this.createGToken(); + const token = await gtoken.getToken({ + forceRefresh: this.isTokenExpiring(), + }); + const tokens = { + access_token: token.access_token, + token_type: 'Bearer', + expiry_date: gtoken.expiresAt, + id_token: gtoken.idToken, + }; + this.emit('tokens', tokens); + return { res: null, tokens }; + } + /** + * Create a gToken if it doesn't already exist. + */ + createGToken() { + if (!this.gtoken) { + this.gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes || this.defaultScopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: this.additionalClaims, + transporter: this.transporter, + }); + } + return this.gtoken; + } + /** + * Create a JWT credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + this.quotaProjectId = json.quota_project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the service account auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Creates a JWT credentials instance using an API Key for authentication. + * @param apiKey The API Key in string form. + */ + fromAPIKey(apiKey) { + if (typeof apiKey !== 'string') { + throw new Error('Must provide an API Key string.'); + } + this.apiKey = apiKey; + } + /** + * Using the key or keyFile on the JWT client, obtain an object that contains + * the key and the client email. + */ + async getCredentials() { + if (this.key) { + return { private_key: this.key, client_email: this.email }; + } + else if (this.keyFile) { + const gtoken = this.createGToken(); + const creds = await gtoken.getCredentials(this.keyFile); + return { private_key: creds.privateKey, client_email: creds.clientEmail }; + } + throw new Error('A key or a keyFile must be provided to getCredentials.'); + } +} +exports.JWT = JWT; +//# sourceMappingURL=jwtclient.js.map + +/***/ }), + +/***/ 2510: +/***/ (function(module) { + +module.exports = addHook; + +function addHook(state, kind, name, hook) { + var orig = hook; + if (!state.registry[name]) { + state.registry[name] = []; + } + + if (kind === "before") { + hook = function (method, options) { + return Promise.resolve() + .then(orig.bind(null, options)) + .then(method.bind(null, options)); + }; + } + + if (kind === "after") { + hook = function (method, options) { + var result; + return Promise.resolve() + .then(method.bind(null, options)) + .then(function (result_) { + result = result_; + return orig(result, options); + }) + .then(function () { + return result; + }); + }; + } + + if (kind === "error") { + hook = function (method, options) { + return Promise.resolve() + .then(method.bind(null, options)) + .catch(function (error) { + return orig(error, options); + }); + }; + } + + state.registry[name].push({ + hook: hook, + orig: orig, + }); +} + + +/***/ }), + +/***/ 2527: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.admin_reports_v1 = exports.admin_directory_v1 = exports.admin_datatransfer_v1 = exports.auth = exports.admin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const datatransfer_v1_1 = __webpack_require__(7084); +Object.defineProperty(exports, "admin_datatransfer_v1", { enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } }); +const directory_v1_1 = __webpack_require__(1423); +Object.defineProperty(exports, "admin_directory_v1", { enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } }); +const reports_v1_1 = __webpack_require__(748); +Object.defineProperty(exports, "admin_reports_v1", { enumerable: true, get: function () { return reports_v1_1.admin_reports_v1; } }); +exports.VERSIONS = { + datatransfer_v1: datatransfer_v1_1.admin_datatransfer_v1.Admin, + directory_v1: directory_v1_1.admin_directory_v1.Admin, + reports_v1: reports_v1_1.admin_reports_v1.Admin, +}; +function admin(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('admin', versionOrOptions, exports.VERSIONS, this); +} +exports.admin = admin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2530: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var punycode = __webpack_require__(4213); +var mappingTable = __webpack_require__(6967); + +var PROCESSING_OPTIONS = { + TRANSITIONAL: 0, + NONTRANSITIONAL: 1 +}; + +function normalize(str) { // fix bug in v8 + return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000'); +} + +function findStatus(val) { + var start = 0; + var end = mappingTable.length - 1; + + while (start <= end) { + var mid = Math.floor((start + end) / 2); + + var target = mappingTable[mid]; + if (target[0][0] <= val && target[0][1] >= val) { + return target; + } else if (target[0][0] > val) { + end = mid - 1; + } else { + start = mid + 1; + } + } + + return null; +} + +var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + +function countSymbols(string) { + return string + // replace every surrogate pair with a BMP symbol + .replace(regexAstralSymbols, '_') + // then get the length + .length; +} + +function mapChars(domain_name, useSTD3, processing_option) { + var hasError = false; + var processed = ""; + + var len = countSymbols(domain_name); + for (var i = 0; i < len; ++i) { + var codePoint = domain_name.codePointAt(i); + var status = findStatus(codePoint); + + switch (status[1]) { + case "disallowed": + hasError = true; + processed += String.fromCodePoint(codePoint); + break; + case "ignored": + break; + case "mapped": + processed += String.fromCodePoint.apply(String, status[2]); + break; + case "deviation": + if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) { + processed += String.fromCodePoint.apply(String, status[2]); + } else { + processed += String.fromCodePoint(codePoint); + } + break; + case "valid": + processed += String.fromCodePoint(codePoint); + break; + case "disallowed_STD3_mapped": + if (useSTD3) { + hasError = true; + processed += String.fromCodePoint(codePoint); + } else { + processed += String.fromCodePoint.apply(String, status[2]); + } + break; + case "disallowed_STD3_valid": + if (useSTD3) { + hasError = true; + } + + processed += String.fromCodePoint(codePoint); + break; + } + } + + return { + string: processed, + error: hasError + }; +} + +var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/; + +function validateLabel(label, processing_option) { + if (label.substr(0, 4) === "xn--") { + label = punycode.toUnicode(label); + processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL; + } + + var error = false; + + if (normalize(label) !== label || + (label[3] === "-" && label[4] === "-") || + label[0] === "-" || label[label.length - 1] === "-" || + label.indexOf(".") !== -1 || + label.search(combiningMarksRegex) === 0) { + error = true; + } + + var len = countSymbols(label); + for (var i = 0; i < len; ++i) { + var status = findStatus(label.codePointAt(i)); + if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") || + (processing === PROCESSING_OPTIONS.NONTRANSITIONAL && + status[1] !== "valid" && status[1] !== "deviation")) { + error = true; + break; + } + } + + return { + label: label, + error: error + }; +} + +function processing(domain_name, useSTD3, processing_option) { + var result = mapChars(domain_name, useSTD3, processing_option); + result.string = normalize(result.string); + + var labels = result.string.split("."); + for (var i = 0; i < labels.length; ++i) { + try { + var validation = validateLabel(labels[i]); + labels[i] = validation.label; + result.error = result.error || validation.error; + } catch(e) { + result.error = true; + } + } + + return { + string: labels.join("."), + error: result.error + }; +} + +module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) { + var result = processing(domain_name, useSTD3, processing_option); + var labels = result.string.split("."); + labels = labels.map(function(l) { + try { + return punycode.toASCII(l); + } catch(e) { + result.error = true; + return l; + } + }); + + if (verifyDnsLength) { + var total = labels.slice(0, labels.length - 1).join(".").length; + if (total.length > 253 || total.length === 0) { + result.error = true; + } + + for (var i=0; i < labels.length; ++i) { + if (labels.length > 63 || labels.length === 0) { + result.error = true; + break; + } + } + } + + if (result.error) return null; + return labels.join("."); +}; + +module.exports.toUnicode = function(domain_name, useSTD3) { + var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL); + + return { + domain: result.string, + error: result.error + }; +}; + +module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS; + + +/***/ }), + +/***/ 2536: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.containeranalysis_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var containeranalysis_v1alpha1; +(function (containeranalysis_v1alpha1) { + /** + * Container Analysis API + * + * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const containeranalysis = google.containeranalysis('v1alpha1'); + * ``` + */ + class Containeranalysis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.providers = new Resource$Providers(this.context); + } + } + containeranalysis_v1alpha1.Containeranalysis = Containeranalysis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.notes = new Resource$Projects$Notes(this.context); + this.occurrences = new Resource$Projects$Occurrences(this.context); + this.operations = new Resource$Projects$Operations(this.context); + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + containeranalysis_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Projects$Notes$Occurrences(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Notes = Resource$Projects$Notes; + class Resource$Projects$Notes$Occurrences { + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; + class Resource$Projects$Occurrences { + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNotes(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getVulnerabilitySummary(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; + class Resource$Projects$Operations { + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Scanconfigs { + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Providers { + constructor(context) { + this.context = context; + this.notes = new Resource$Providers$Notes(this.context); + } + } + containeranalysis_v1alpha1.Resource$Providers = Resource$Providers; + class Resource$Providers$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Providers$Notes$Occurrences(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Providers$Notes = Resource$Providers$Notes; + class Resource$Providers$Notes$Occurrences { + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Providers$Notes$Occurrences = Resource$Providers$Notes$Occurrences; +})(containeranalysis_v1alpha1 = exports.containeranalysis_v1alpha1 || (exports.containeranalysis_v1alpha1 = {})); + + +/***/ }), + +/***/ 2554: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.analyticsreporting_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var analyticsreporting_v4; +(function (analyticsreporting_v4) { + /** + * Analytics Reporting API + * + * Accesses Analytics report data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticsreporting = google.analyticsreporting('v4'); + * ``` + */ + class Analyticsreporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.reports = new Resource$Reports(this.context); + this.userActivity = new Resource$Useractivity(this.context); + } + } + analyticsreporting_v4.Analyticsreporting = Analyticsreporting; + class Resource$Reports { + constructor(context) { + this.context = context; + } + batchGet(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://analyticsreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsreporting_v4.Resource$Reports = Resource$Reports; + class Resource$Useractivity { + constructor(context) { + this.context = context; + } + search(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://analyticsreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/userActivity:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsreporting_v4.Resource$Useractivity = Resource$Useractivity; +})(analyticsreporting_v4 = exports.analyticsreporting_v4 || (exports.analyticsreporting_v4 = {})); + + +/***/ }), + +/***/ 2559: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.privateca_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var privateca_v1beta1; +(function (privateca_v1beta1) { + /** + * Certificate Authority API + * + * The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const privateca = google.privateca('v1beta1'); + * ``` + */ + class Privateca { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + privateca_v1beta1.Privateca = Privateca; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + privateca_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.certificateAuthorities = + new Resource$Projects$Locations$Certificateauthorities(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.reusableConfigs = new Resource$Projects$Locations$Reusableconfigs(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Certificateauthorities { + constructor(context) { + this.context = context; + this.certificateRevocationLists = + new Resource$Projects$Locations$Certificateauthorities$Certificaterevocationlists(this.context); + } + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1beta1.Resource$Projects$Locations$Certificateauthorities = Resource$Projects$Locations$Certificateauthorities; + class Resource$Projects$Locations$Certificateauthorities$Certificaterevocationlists { + constructor(context) { + this.context = context; + } + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1beta1.Resource$Projects$Locations$Certificateauthorities$Certificaterevocationlists = Resource$Projects$Locations$Certificateauthorities$Certificaterevocationlists; + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Reusableconfigs { + constructor(context) { + this.context = context; + } + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1beta1.Resource$Projects$Locations$Reusableconfigs = Resource$Projects$Locations$Reusableconfigs; +})(privateca_v1beta1 = exports.privateca_v1beta1 || (exports.privateca_v1beta1 = {})); + + +/***/ }), + +/***/ 2581: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var formats = __webpack_require__(9013); + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +var hexTable = (function () { + var array = []; + for (var i = 0; i < 256; ++i) { + array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); + } + + return array; +}()); + +var compactQueue = function compactQueue(queue) { + while (queue.length > 1) { + var item = queue.pop(); + var obj = item.obj[item.prop]; + + if (isArray(obj)) { + var compacted = []; + + for (var j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted.push(obj[j]); + } + } + + item.obj[item.prop] = compacted; + } + } +}; + +var arrayToObject = function arrayToObject(source, options) { + var obj = options && options.plainObjects ? Object.create(null) : {}; + for (var i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; + } + } + + return obj; +}; + +var merge = function merge(target, source, options) { + /* eslint no-param-reassign: 0 */ + if (!source) { + return target; + } + + if (typeof source !== 'object') { + if (isArray(target)) { + target.push(source); + } else if (target && typeof target === 'object') { + if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { + target[source] = true; + } + } else { + return [target, source]; + } + + return target; + } + + if (!target || typeof target !== 'object') { + return [target].concat(source); + } + + var mergeTarget = target; + if (isArray(target) && !isArray(source)) { + mergeTarget = arrayToObject(target, options); + } + + if (isArray(target) && isArray(source)) { + source.forEach(function (item, i) { + if (has.call(target, i)) { + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } else { + target.push(item); + } + } else { + target[i] = item; + } + }); + return target; + } + + return Object.keys(source).reduce(function (acc, key) { + var value = source[key]; + + if (has.call(acc, key)) { + acc[key] = merge(acc[key], value, options); + } else { + acc[key] = value; + } + return acc; + }, mergeTarget); +}; + +var assign = function assignSingleSource(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +}; + +var decode = function (str, decoder, charset) { + var strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } catch (e) { + return strWithoutPlus; + } +}; + +var encode = function encode(str, defaultEncoder, charset, kind, format) { + // This code was originally written by Brian White (mscdex) for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } + + var string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } else if (typeof str !== 'string') { + string = String(str); + } + + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } + + var out = ''; + for (var i = 0; i < string.length; ++i) { + var c = string.charCodeAt(i); + + if ( + c === 0x2D // - + || c === 0x2E // . + || c === 0x5F // _ + || c === 0x7E // ~ + || (c >= 0x30 && c <= 0x39) // 0-9 + || (c >= 0x41 && c <= 0x5A) // a-z + || (c >= 0x61 && c <= 0x7A) // A-Z + || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) + ) { + out += string.charAt(i); + continue; + } + + if (c < 0x80) { + out = out + hexTable[c]; + continue; + } + + if (c < 0x800) { + out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); + continue; + } + + if (c < 0xD800 || c >= 0xE000) { + out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); + continue; + } + + i += 1; + c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); + /* eslint operator-linebreak: [2, "before"] */ + out += hexTable[0xF0 | (c >> 18)] + + hexTable[0x80 | ((c >> 12) & 0x3F)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + } + + return out; +}; + +var compact = function compact(value) { + var queue = [{ obj: { o: value }, prop: 'o' }]; + var refs = []; + + for (var i = 0; i < queue.length; ++i) { + var item = queue[i]; + var obj = item.obj[item.prop]; + + var keys = Object.keys(obj); + for (var j = 0; j < keys.length; ++j) { + var key = keys[j]; + var val = obj[key]; + if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { + queue.push({ obj: obj, prop: key }); + refs.push(val); + } + } + } + + compactQueue(queue); + + return value; +}; + +var isRegExp = function isRegExp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +}; + +var isBuffer = function isBuffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; + } + + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +}; + +var combine = function combine(a, b) { + return [].concat(a, b); +}; + +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +}; + +module.exports = { + arrayToObject: arrayToObject, + assign: assign, + combine: combine, + compact: compact, + decode: decode, + encode: encode, + isBuffer: isBuffer, + isRegExp: isRegExp, + maybeMap: maybeMap, + merge: merge +}; + + +/***/ }), + +/***/ 2583: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.osconfig_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var osconfig_v1alpha; +(function (osconfig_v1alpha) { + /** + * OS Config API + * + * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const osconfig = google.osconfig('v1alpha'); + * ``` + */ + class Osconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + osconfig_v1alpha.Osconfig = Osconfig; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + osconfig_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instanceOSPoliciesCompliances = + new Resource$Projects$Locations$Instanceospoliciescompliances(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.osPolicyAssignments = + new Resource$Projects$Locations$Ospolicyassignments(this.context); + } + } + osconfig_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instanceospoliciescompliances { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/instanceOSPoliciesCompliances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1alpha.Resource$Projects$Locations$Instanceospoliciescompliances = Resource$Projects$Locations$Instanceospoliciescompliances; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + this.inventories = new Resource$Projects$Locations$Instances$Inventories(this.context); + this.osPolicyAssignments = + new Resource$Projects$Locations$Instances$Ospolicyassignments(this.context); + this.vulnerabilityReports = + new Resource$Projects$Locations$Instances$Vulnerabilityreports(this.context); + } + } + osconfig_v1alpha.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Inventories { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/inventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1alpha.Resource$Projects$Locations$Instances$Inventories = Resource$Projects$Locations$Instances$Inventories; + class Resource$Projects$Locations$Instances$Ospolicyassignments { + constructor(context) { + this.context = context; + this.reports = + new Resource$Projects$Locations$Instances$Ospolicyassignments$Reports(this.context); + } + } + osconfig_v1alpha.Resource$Projects$Locations$Instances$Ospolicyassignments = Resource$Projects$Locations$Instances$Ospolicyassignments; + class Resource$Projects$Locations$Instances$Ospolicyassignments$Reports { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1alpha.Resource$Projects$Locations$Instances$Ospolicyassignments$Reports = Resource$Projects$Locations$Instances$Ospolicyassignments$Reports; + class Resource$Projects$Locations$Instances$Vulnerabilityreports { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/vulnerabilityReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1alpha.Resource$Projects$Locations$Instances$Vulnerabilityreports = Resource$Projects$Locations$Instances$Vulnerabilityreports; + class Resource$Projects$Locations$Ospolicyassignments { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Ospolicyassignments$Operations(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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRevisions(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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1alpha.Resource$Projects$Locations$Ospolicyassignments = Resource$Projects$Locations$Ospolicyassignments; + class Resource$Projects$Locations$Ospolicyassignments$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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1alpha.Resource$Projects$Locations$Ospolicyassignments$Operations = Resource$Projects$Locations$Ospolicyassignments$Operations; +})(osconfig_v1alpha = exports.osconfig_v1alpha || (exports.osconfig_v1alpha = {})); + + +/***/ }), + +/***/ 2591: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.drivelabels_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var drivelabels_v2; +(function (drivelabels_v2) { + /** + * Drive Labels API + * + * An API for managing Drive Labels + * + * @example + * ```js + * const {google} = require('googleapis'); + * const drivelabels = google.drivelabels('v2'); + * ``` + */ + class Drivelabels { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.labels = new Resource$Labels(this.context); + this.limits = new Resource$Limits(this.context); + this.users = new Resource$Users(this.context); + } + } + drivelabels_v2.Drivelabels = Drivelabels; + class Resource$Labels { + constructor(context) { + this.context = context; + this.locks = new Resource$Labels$Locks(this.context); + this.permissions = new Resource$Labels$Permissions(this.context); + this.revisions = new Resource$Labels$Revisions(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delta(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:delta').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disable(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enable(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateLabelCopyMode(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:updateLabelCopyMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePermissions(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Labels = Resource$Labels; + class Resource$Labels$Locks { + 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Labels$Locks = Resource$Labels$Locks; + class Resource$Labels$Permissions { + constructor(context) { + this.context = context; + } + batchDelete(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Labels$Permissions = Resource$Labels$Permissions; + class Resource$Labels$Revisions { + constructor(context) { + this.context = context; + this.locks = new Resource$Labels$Revisions$Locks(this.context); + this.permissions = new Resource$Labels$Revisions$Permissions(this.context); + } + updatePermissions(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Labels$Revisions = Resource$Labels$Revisions; + class Resource$Labels$Revisions$Locks { + 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Labels$Revisions$Locks = Resource$Labels$Revisions$Locks; + class Resource$Labels$Revisions$Permissions { + constructor(context) { + this.context = context; + } + batchDelete(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Labels$Revisions$Permissions = Resource$Labels$Revisions$Permissions; + class Resource$Limits { + constructor(context) { + this.context = context; + } + getLabel(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://drivelabels.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/limits/label').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Limits = Resource$Limits; + class Resource$Users { + constructor(context) { + this.context = context; + } + getCapabilities(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://drivelabels.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drivelabels_v2.Resource$Users = Resource$Users; +})(drivelabels_v2 = exports.drivelabels_v2 || (exports.drivelabels_v2 = {})); + + +/***/ }), + +/***/ 2606: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gmailpostmastertools_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gmailpostmastertools_v1beta1; +(function (gmailpostmastertools_v1beta1) { + /** + * Gmail Postmaster Tools API + * + * The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gmailpostmastertools = google.gmailpostmastertools('v1beta1'); + * ``` + */ + class Gmailpostmastertools { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.domains = new Resource$Domains(this.context); + } + } + gmailpostmastertools_v1beta1.Gmailpostmastertools = Gmailpostmastertools; + class Resource$Domains { + constructor(context) { + this.context = context; + this.trafficStats = new Resource$Domains$Trafficstats(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://gmailpostmastertools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gmailpostmastertools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gmailpostmastertools_v1beta1.Resource$Domains = Resource$Domains; + class Resource$Domains$Trafficstats { + 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://gmailpostmastertools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gmailpostmastertools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/trafficStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gmailpostmastertools_v1beta1.Resource$Domains$Trafficstats = Resource$Domains$Trafficstats; +})(gmailpostmastertools_v1beta1 = exports.gmailpostmastertools_v1beta1 || (exports.gmailpostmastertools_v1beta1 = {})); + + +/***/ }), + +/***/ 2609: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.ml_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var ml_v1; +(function (ml_v1) { + /** + * AI Platform Training & Prediction API + * + * An API to enable creating and using machine learning models. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const ml = google.ml('v1'); + * ``` + */ + class Ml { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + ml_v1.Ml = Ml; + class Resource$Projects { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Jobs(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.models = new Resource$Projects$Models(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + explain(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:explain').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConfig(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + predict(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Jobs { + 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Jobs = Resource$Projects$Jobs; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.studies = new Resource$Projects$Locations$Studies(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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Locations = Resource$Projects$Locations; + 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Studies { + constructor(context) { + this.context = context; + this.trials = new Resource$Projects$Locations$Studies$Trials(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Locations$Studies = Resource$Projects$Locations$Studies; + class Resource$Projects$Locations$Studies$Trials { + constructor(context) { + this.context = context; + } + addMeasurement(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:addMeasurement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + checkEarlyStoppingState(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + complete(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listOptimalTrials(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials:listOptimalTrials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggest(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; + class Resource$Projects$Models { + constructor(context) { + this.context = context; + this.versions = new Resource$Projects$Models$Versions(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Models = Resource$Projects$Models; + class Resource$Projects$Models$Versions { + 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefault(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://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Models$Versions = Resource$Projects$Models$Versions; + class Resource$Projects$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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ml.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ml_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(ml_v1 = exports.ml_v1 || (exports.ml_v1 = {})); + + +/***/ }), + +/***/ 2638: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.pagespeedonline_v5 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var pagespeedonline_v5; +(function (pagespeedonline_v5) { + /** + * PageSpeed Insights API + * + * The PageSpeed Insights API lets you analyze the performance of your website with a simple API. It offers tailored suggestions for how you can optimize your site, and lets you easily integrate PageSpeed Insights analysis into your development tools and workflow. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const pagespeedonline = google.pagespeedonline('v5'); + * ``` + */ + class Pagespeedonline { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.pagespeedapi = new Resource$Pagespeedapi(this.context); + } + } + pagespeedonline_v5.Pagespeedonline = Pagespeedonline; + class Resource$Pagespeedapi { + constructor(context) { + this.context = context; + } + runpagespeed(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://pagespeedonline.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/pagespeedonline/v5/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['url'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pagespeedonline_v5.Resource$Pagespeedapi = Resource$Pagespeedapi; +})(pagespeedonline_v5 = exports.pagespeedonline_v5 || (exports.pagespeedonline_v5 = {})); + + +/***/ }), + +/***/ 2643: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.mybusinessplaceactions_v1 = exports.auth = exports.mybusinessplaceactions = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6147); +Object.defineProperty(exports, "mybusinessplaceactions_v1", { enumerable: true, get: function () { return v1_1.mybusinessplaceactions_v1; } }); +exports.VERSIONS = { + v1: v1_1.mybusinessplaceactions_v1.Mybusinessplaceactions, +}; +function mybusinessplaceactions(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessplaceactions', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessplaceactions = mybusinessplaceactions; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2644: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.serviceusage_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var serviceusage_v1; +(function (serviceusage_v1) { + /** + * Service Usage API + * + * Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const serviceusage = google.serviceusage('v1'); + * ``` + */ + class Serviceusage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceusage_v1.Serviceusage = Serviceusage; + class Resource$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://serviceusage.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceusage_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + } + batchEnable(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchGet(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disable(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enable(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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceusage_v1.Resource$Services = Resource$Services; +})(serviceusage_v1 = exports.serviceusage_v1 || (exports.serviceusage_v1 = {})); + + +/***/ }), + +/***/ 2659: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.containeranalysis_v1beta1 = exports.containeranalysis_v1alpha1 = exports.containeranalysis_v1 = exports.auth = exports.containeranalysis = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8711); +Object.defineProperty(exports, "containeranalysis_v1", { enumerable: true, get: function () { return v1_1.containeranalysis_v1; } }); +const v1alpha1_1 = __webpack_require__(2536); +Object.defineProperty(exports, "containeranalysis_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.containeranalysis_v1alpha1; } }); +const v1beta1_1 = __webpack_require__(644); +Object.defineProperty(exports, "containeranalysis_v1beta1", { enumerable: true, get: function () { return v1beta1_1.containeranalysis_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.containeranalysis_v1.Containeranalysis, + v1alpha1: v1alpha1_1.containeranalysis_v1alpha1.Containeranalysis, + v1beta1: v1beta1_1.containeranalysis_v1beta1.Containeranalysis, +}; +function containeranalysis(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('containeranalysis', versionOrOptions, exports.VERSIONS, this); +} +exports.containeranalysis = containeranalysis; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2662: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.safebrowsing_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var safebrowsing_v4; +(function (safebrowsing_v4) { + /** + * Safe Browsing API + * + * Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const safebrowsing = google.safebrowsing('v4'); + * ``` + */ + class Safebrowsing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.encodedFullHashes = new Resource$Encodedfullhashes(this.context); + this.encodedUpdates = new Resource$Encodedupdates(this.context); + this.fullHashes = new Resource$Fullhashes(this.context); + this.threatHits = new Resource$Threathits(this.context); + this.threatLists = new Resource$Threatlists(this.context); + this.threatListUpdates = new Resource$Threatlistupdates(this.context); + this.threatMatches = new Resource$Threatmatches(this.context); + } + } + safebrowsing_v4.Safebrowsing = Safebrowsing; + class Resource$Encodedfullhashes { + 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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/encodedFullHashes/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['encodedRequest'], + pathParams: ['encodedRequest'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Encodedfullhashes = Resource$Encodedfullhashes; + class Resource$Encodedupdates { + 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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/encodedUpdates/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['encodedRequest'], + pathParams: ['encodedRequest'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Encodedupdates = Resource$Encodedupdates; + class Resource$Fullhashes { + constructor(context) { + this.context = context; + } + find(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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/fullHashes:find').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Fullhashes = Resource$Fullhashes; + class Resource$Threathits { + 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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatHits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Threathits = Resource$Threathits; + class Resource$Threatlists { + 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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Threatlists = Resource$Threatlists; + class Resource$Threatlistupdates { + constructor(context) { + this.context = context; + } + fetch(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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatListUpdates:fetch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Threatlistupdates = Resource$Threatlistupdates; + class Resource$Threatmatches { + constructor(context) { + this.context = context; + } + find(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://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatMatches:find').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + safebrowsing_v4.Resource$Threatmatches = Resource$Threatmatches; +})(safebrowsing_v4 = exports.safebrowsing_v4 || (exports.safebrowsing_v4 = {})); + + +/***/ }), + +/***/ 2674: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticate; + +const { Deprecation } = __webpack_require__(7692); +const once = __webpack_require__(6049); + +const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation)); + +function authenticate(state, options) { + deprecateAuthenticate( + state.octokit.log, + new Deprecation( + '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.' + ) + ); + + if (!options) { + state.auth = false; + return; + } + + switch (options.type) { + case "basic": + if (!options.username || !options.password) { + throw new Error( + "Basic authentication requires both a username and password to be set" + ); + } + break; + + case "oauth": + if (!options.token && !(options.key && options.secret)) { + throw new Error( + "OAuth2 authentication requires a token or key & secret to be set" + ); + } + break; + + case "token": + case "app": + if (!options.token) { + throw new Error("Token authentication requires a token to be set"); + } + break; + + default: + throw new Error( + "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'" + ); + } + + state.auth = options; +} + + +/***/ }), + +/***/ 2705: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of PKCS#1 PSS signature padding. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + */ +var forge = __webpack_require__(239); +__webpack_require__(5707); +__webpack_require__(7152); + +// shortcut for PSS API +var pss = module.exports = forge.pss = forge.pss || {}; + +/** + * Creates a PSS signature scheme object. + * + * There are several ways to provide a salt for encoding: + * + * 1. Specify the saltLength only and the built-in PRNG will generate it. + * 2. Specify the saltLength and a custom PRNG with 'getBytesSync' defined that + * will be used. + * 3. Specify the salt itself as a forge.util.ByteBuffer. + * + * @param options the options to use: + * md the message digest object to use, a forge md instance. + * mgf the mask generation function to use, a forge mgf instance. + * [saltLength] the length of the salt in octets. + * [prng] the pseudo-random number generator to use to produce a salt. + * [salt] the salt to use when encoding. + * + * @return a signature scheme object. + */ +pss.create = function(options) { + // backwards compatibility w/legacy args: hash, mgf, sLen + if(arguments.length === 3) { + options = { + md: arguments[0], + mgf: arguments[1], + saltLength: arguments[2] + }; + } + + var hash = options.md; + var mgf = options.mgf; + var hLen = hash.digestLength; + + var salt_ = options.salt || null; + if(typeof salt_ === 'string') { + // assume binary-encoded string + salt_ = forge.util.createBuffer(salt_); + } + + var sLen; + if('saltLength' in options) { + sLen = options.saltLength; + } else if(salt_ !== null) { + sLen = salt_.length(); + } else { + throw new Error('Salt length not specified or specific salt not given.'); + } + + if(salt_ !== null && salt_.length() !== sLen) { + throw new Error('Given salt length does not match length of given salt.'); + } + + var prng = options.prng || forge.random; + + var pssobj = {}; + + /** + * Encodes a PSS signature. + * + * This function implements EMSA-PSS-ENCODE as per RFC 3447, section 9.1.1. + * + * @param md the message digest object with the hash to sign. + * @param modsBits the length of the RSA modulus in bits. + * + * @return the encoded message as a binary-encoded string of length + * ceil((modBits - 1) / 8). + */ + pssobj.encode = function(md, modBits) { + var i; + var emBits = modBits - 1; + var emLen = Math.ceil(emBits / 8); + + /* 2. Let mHash = Hash(M), an octet string of length hLen. */ + var mHash = md.digest().getBytes(); + + /* 3. If emLen < hLen + sLen + 2, output "encoding error" and stop. */ + if(emLen < hLen + sLen + 2) { + throw new Error('Message is too long to encrypt.'); + } + + /* 4. Generate a random octet string salt of length sLen; if sLen = 0, + * then salt is the empty string. */ + var salt; + if(salt_ === null) { + salt = prng.getBytesSync(sLen); + } else { + salt = salt_.bytes(); + } + + /* 5. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt; */ + var m_ = new forge.util.ByteBuffer(); + m_.fillWithByte(0, 8); + m_.putBytes(mHash); + m_.putBytes(salt); + + /* 6. Let H = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h = hash.digest().getBytes(); + + /* 7. Generate an octet string PS consisting of emLen - sLen - hLen - 2 + * zero octets. The length of PS may be 0. */ + var ps = new forge.util.ByteBuffer(); + ps.fillWithByte(0, emLen - sLen - hLen - 2); + + /* 8. Let DB = PS || 0x01 || salt; DB is an octet string of length + * emLen - hLen - 1. */ + ps.putByte(0x01); + ps.putBytes(salt); + var db = ps.getBytes(); + + /* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ + var maskLen = emLen - hLen - 1; + var dbMask = mgf.generate(h, maskLen); + + /* 10. Let maskedDB = DB \xor dbMask. */ + var maskedDB = ''; + for(i = 0; i < maskLen; i++) { + maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i)); + } + + /* 11. Set the leftmost 8emLen - emBits bits of the leftmost octet in + * maskedDB to zero. */ + var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; + maskedDB = String.fromCharCode(maskedDB.charCodeAt(0) & ~mask) + + maskedDB.substr(1); + + /* 12. Let EM = maskedDB || H || 0xbc. + * 13. Output EM. */ + return maskedDB + h + String.fromCharCode(0xbc); + }; + + /** + * Verifies a PSS signature. + * + * This function implements EMSA-PSS-VERIFY as per RFC 3447, section 9.1.2. + * + * @param mHash the message digest hash, as a binary-encoded string, to + * compare against the signature. + * @param em the encoded message, as a binary-encoded string + * (RSA decryption result). + * @param modsBits the length of the RSA modulus in bits. + * + * @return true if the signature was verified, false if not. + */ + pssobj.verify = function(mHash, em, modBits) { + var i; + var emBits = modBits - 1; + var emLen = Math.ceil(emBits / 8); + + /* c. Convert the message representative m to an encoded message EM + * of length emLen = ceil((modBits - 1) / 8) octets, where modBits + * is the length in bits of the RSA modulus n */ + em = em.substr(-emLen); + + /* 3. If emLen < hLen + sLen + 2, output "inconsistent" and stop. */ + if(emLen < hLen + sLen + 2) { + throw new Error('Inconsistent parameters to PSS signature verification.'); + } + + /* 4. If the rightmost octet of EM does not have hexadecimal value + * 0xbc, output "inconsistent" and stop. */ + if(em.charCodeAt(emLen - 1) !== 0xbc) { + throw new Error('Encoded message does not end in 0xBC.'); + } + + /* 5. Let maskedDB be the leftmost emLen - hLen - 1 octets of EM, and + * let H be the next hLen octets. */ + var maskLen = emLen - hLen - 1; + var maskedDB = em.substr(0, maskLen); + var h = em.substr(maskLen, hLen); + + /* 6. If the leftmost 8emLen - emBits bits of the leftmost octet in + * maskedDB are not all equal to zero, output "inconsistent" and stop. */ + var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; + if((maskedDB.charCodeAt(0) & mask) !== 0) { + throw new Error('Bits beyond keysize not zero as expected.'); + } + + /* 7. Let dbMask = MGF(H, emLen - hLen - 1). */ + var dbMask = mgf.generate(h, maskLen); + + /* 8. Let DB = maskedDB \xor dbMask. */ + var db = ''; + for(i = 0; i < maskLen; i++) { + db += String.fromCharCode(maskedDB.charCodeAt(i) ^ dbMask.charCodeAt(i)); + } + + /* 9. Set the leftmost 8emLen - emBits bits of the leftmost octet + * in DB to zero. */ + db = String.fromCharCode(db.charCodeAt(0) & ~mask) + db.substr(1); + + /* 10. If the emLen - hLen - sLen - 2 leftmost octets of DB are not zero + * or if the octet at position emLen - hLen - sLen - 1 (the leftmost + * position is "position 1") does not have hexadecimal value 0x01, + * output "inconsistent" and stop. */ + var checkLen = emLen - hLen - sLen - 2; + for(i = 0; i < checkLen; i++) { + if(db.charCodeAt(i) !== 0x00) { + throw new Error('Leftmost octets not zero as expected'); + } + } + + if(db.charCodeAt(checkLen) !== 0x01) { + throw new Error('Inconsistent PSS signature, 0x01 marker not found'); + } + + /* 11. Let salt be the last sLen octets of DB. */ + var salt = db.substr(-sLen); + + /* 12. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt */ + var m_ = new forge.util.ByteBuffer(); + m_.fillWithByte(0, 8); + m_.putBytes(mHash); + m_.putBytes(salt); + + /* 13. Let H' = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h_ = hash.digest().getBytes(); + + /* 14. If H = H', output "consistent." Otherwise, output "inconsistent." */ + return h === h_; + }; + + return pssobj; +}; + + +/***/ }), + +/***/ 2707: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(1220); +__webpack_require__(7152); + +var sha1 = module.exports = forge.sha1 = forge.sha1 || {}; +forge.md.sha1 = forge.md.algorithms.sha1 = sha1; + +/** + * Creates a SHA-1 message digest object. + * + * @return a message digest object. + */ +sha1.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + // SHA-1 state contains five 32-bit integers + var _state = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for word storage + var _w = new Array(80); + + // message digest object + var md = { + algorithm: 'sha1', + blockLength: 64, + digestLength: 20, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x67452301, + h1: 0xEFCDAB89, + h2: 0x98BADCFE, + h3: 0x10325476, + h4: 0xC3D2E1F0 + }; + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_state, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-1 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); + + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3, + h4: _state.h4 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32(s2.h0); + rval.putInt32(s2.h1); + rval.putInt32(s2.h2); + rval.putInt32(s2.h3); + rval.putInt32(s2.h4); + return rval; + }; + + return md; +}; + +// sha-1 padding bytes not initialized yet +var _padding = null; +var _initialized = false; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + + // now initialized + _initialized = true; +} + +/** + * Updates a SHA-1 state with the given byte buffer. + * + * @param s the SHA-1 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t, a, b, c, d, e, f, i; + var len = bytes.length(); + while(len >= 64) { + // the w array will be populated with sixteen 32-bit big-endian words + // and then extended into 80 32-bit words according to SHA-1 algorithm + // and for 32-79 using Max Locktyukhin's optimization + + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + e = s.h4; + + // round 1 + for(i = 0; i < 16; ++i) { + t = bytes.getInt32(); + w[i] = t; + f = d ^ (b & (c ^ d)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + for(; i < 20; ++i) { + t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); + t = (t << 1) | (t >>> 31); + w[i] = t; + f = d ^ (b & (c ^ d)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 2 + for(; i < 32; ++i) { + t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); + t = (t << 1) | (t >>> 31); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + for(; i < 40; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 3 + for(; i < 60; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = (b & c) | (d & (b ^ c)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 4 + for(; i < 80; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + s.h4 = (s.h4 + e) | 0; + + len -= 64; + } +} + + +/***/ }), + +/***/ 2736: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.spanner_v1 = exports.auth = exports.spanner = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7233); +Object.defineProperty(exports, "spanner_v1", { enumerable: true, get: function () { return v1_1.spanner_v1; } }); +exports.VERSIONS = { + v1: v1_1.spanner_v1.Spanner, +}; +function spanner(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('spanner', versionOrOptions, exports.VERSIONS, this); +} +exports.spanner = spanner; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2763: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.language_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var language_v1beta1; +(function (language_v1beta1) { + /** + * Cloud Natural Language API + * + * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const language = google.language('v1beta1'); + * ``` + */ + class Language { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + language_v1beta1.Language = Language; + class Resource$Documents { + constructor(context) { + this.context = context; + } + analyzeEntities(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeSentiment(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeSyntax(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + annotateText(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + language_v1beta1.Resource$Documents = Resource$Documents; +})(language_v1beta1 = exports.language_v1beta1 || (exports.language_v1beta1 = {})); + + +/***/ }), + +/***/ 2772: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dlp_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dlp_v2; +(function (dlp_v2) { + /** + * Cloud Data Loss Prevention (DLP) API + * + * Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dlp = google.dlp('v2'); + * ``` + */ + class Dlp { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.infoTypes = new Resource$Infotypes(this.context); + this.locations = new Resource$Locations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + dlp_v2.Dlp = Dlp; + class Resource$Infotypes { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Infotypes = Resource$Infotypes; + class Resource$Locations { + constructor(context) { + this.context = context; + this.infoTypes = new Resource$Locations$Infotypes(this.context); + } + } + dlp_v2.Resource$Locations = Resource$Locations; + class Resource$Locations$Infotypes { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Locations$Infotypes = Resource$Locations$Infotypes; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.deidentifyTemplates = new Resource$Organizations$Deidentifytemplates(this.context); + this.inspectTemplates = new Resource$Organizations$Inspecttemplates(this.context); + this.locations = new Resource$Organizations$Locations(this.context); + this.storedInfoTypes = new Resource$Organizations$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Deidentifytemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Deidentifytemplates = Resource$Organizations$Deidentifytemplates; + class Resource$Organizations$Inspecttemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Inspecttemplates = Resource$Organizations$Inspecttemplates; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.deidentifyTemplates = + new Resource$Organizations$Locations$Deidentifytemplates(this.context); + this.dlpJobs = new Resource$Organizations$Locations$Dlpjobs(this.context); + this.inspectTemplates = + new Resource$Organizations$Locations$Inspecttemplates(this.context); + this.jobTriggers = new Resource$Organizations$Locations$Jobtriggers(this.context); + this.storedInfoTypes = + new Resource$Organizations$Locations$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Deidentifytemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Deidentifytemplates = Resource$Organizations$Locations$Deidentifytemplates; + class Resource$Organizations$Locations$Dlpjobs { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Dlpjobs = Resource$Organizations$Locations$Dlpjobs; + class Resource$Organizations$Locations$Inspecttemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Inspecttemplates = Resource$Organizations$Locations$Inspecttemplates; + class Resource$Organizations$Locations$Jobtriggers { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Jobtriggers = Resource$Organizations$Locations$Jobtriggers; + class Resource$Organizations$Locations$Storedinfotypes { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Storedinfotypes = Resource$Organizations$Locations$Storedinfotypes; + class Resource$Organizations$Storedinfotypes { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Organizations$Storedinfotypes = Resource$Organizations$Storedinfotypes; + class Resource$Projects { + constructor(context) { + this.context = context; + this.content = new Resource$Projects$Content(this.context); + this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates(this.context); + this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); + this.image = new Resource$Projects$Image(this.context); + this.inspectTemplates = new Resource$Projects$Inspecttemplates(this.context); + this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.storedInfoTypes = new Resource$Projects$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Content { + constructor(context) { + this.context = context; + } + deidentify(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + inspect(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reidentify(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Content = Resource$Projects$Content; + class Resource$Projects$Deidentifytemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Deidentifytemplates = Resource$Projects$Deidentifytemplates; + class Resource$Projects$Dlpjobs { + 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Dlpjobs = Resource$Projects$Dlpjobs; + class Resource$Projects$Image { + constructor(context) { + this.context = context; + } + redact(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Image = Resource$Projects$Image; + class Resource$Projects$Inspecttemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Inspecttemplates = Resource$Projects$Inspecttemplates; + class Resource$Projects$Jobtriggers { + constructor(context) { + this.context = context; + } + activate(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Jobtriggers = Resource$Projects$Jobtriggers; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.content = new Resource$Projects$Locations$Content(this.context); + this.deidentifyTemplates = + new Resource$Projects$Locations$Deidentifytemplates(this.context); + this.dlpJobs = new Resource$Projects$Locations$Dlpjobs(this.context); + this.image = new Resource$Projects$Locations$Image(this.context); + this.inspectTemplates = new Resource$Projects$Locations$Inspecttemplates(this.context); + this.jobTriggers = new Resource$Projects$Locations$Jobtriggers(this.context); + this.storedInfoTypes = new Resource$Projects$Locations$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Content { + constructor(context) { + this.context = context; + } + deidentify(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + inspect(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reidentify(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Content = Resource$Projects$Locations$Content; + class Resource$Projects$Locations$Deidentifytemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Deidentifytemplates = Resource$Projects$Locations$Deidentifytemplates; + class Resource$Projects$Locations$Dlpjobs { + 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + finish(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:finish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + hybridInspect(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Dlpjobs = Resource$Projects$Locations$Dlpjobs; + class Resource$Projects$Locations$Image { + constructor(context) { + this.context = context; + } + redact(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Image = Resource$Projects$Locations$Image; + class Resource$Projects$Locations$Inspecttemplates { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Inspecttemplates = Resource$Projects$Locations$Inspecttemplates; + class Resource$Projects$Locations$Jobtriggers { + constructor(context) { + this.context = context; + } + activate(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + hybridInspect(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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Jobtriggers = Resource$Projects$Locations$Jobtriggers; + class Resource$Projects$Locations$Storedinfotypes { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Storedinfotypes = Resource$Projects$Locations$Storedinfotypes; + class Resource$Projects$Storedinfotypes { + 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dlp.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dlp_v2.Resource$Projects$Storedinfotypes = Resource$Projects$Storedinfotypes; +})(dlp_v2 = exports.dlp_v2 || (exports.dlp_v2 = {})); + + +/***/ }), + +/***/ 2776: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.recommendationengine_v1beta1 = exports.auth = exports.recommendationengine = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(7090); +Object.defineProperty(exports, "recommendationengine_v1beta1", { enumerable: true, get: function () { return v1beta1_1.recommendationengine_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.recommendationengine_v1beta1.Recommendationengine, +}; +function recommendationengine(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('recommendationengine', versionOrOptions, exports.VERSIONS, this); +} +exports.recommendationengine = recommendationengine; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2778: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.vpcaccess_v1beta1 = exports.vpcaccess_v1 = exports.auth = exports.vpcaccess = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5340); +Object.defineProperty(exports, "vpcaccess_v1", { enumerable: true, get: function () { return v1_1.vpcaccess_v1; } }); +const v1beta1_1 = __webpack_require__(9170); +Object.defineProperty(exports, "vpcaccess_v1beta1", { enumerable: true, get: function () { return v1beta1_1.vpcaccess_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.vpcaccess_v1.Vpcaccess, + v1beta1: v1beta1_1.vpcaccess_v1beta1.Vpcaccess, +}; +function vpcaccess(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('vpcaccess', versionOrOptions, exports.VERSIONS, this); +} +exports.vpcaccess = vpcaccess; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2781: +/***/ (function(module) { + +"use strict"; + + +var isStream = module.exports = function (stream) { + return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function'; +}; + +isStream.writable = function (stream) { + return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object'; +}; + +isStream.readable = function (stream) { + return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object'; +}; + +isStream.duplex = function (stream) { + return isStream.writable(stream) && isStream.readable(stream); +}; + +isStream.transform = function (stream) { + return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object'; +}; + + +/***/ }), + +/***/ 2784: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.deploymentmanager_v2beta = exports.deploymentmanager_v2 = exports.deploymentmanager_alpha = exports.auth = exports.deploymentmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const alpha_1 = __webpack_require__(7449); +Object.defineProperty(exports, "deploymentmanager_alpha", { enumerable: true, get: function () { return alpha_1.deploymentmanager_alpha; } }); +const v2_1 = __webpack_require__(3726); +Object.defineProperty(exports, "deploymentmanager_v2", { enumerable: true, get: function () { return v2_1.deploymentmanager_v2; } }); +const v2beta_1 = __webpack_require__(9883); +Object.defineProperty(exports, "deploymentmanager_v2beta", { enumerable: true, get: function () { return v2beta_1.deploymentmanager_v2beta; } }); +exports.VERSIONS = { + alpha: alpha_1.deploymentmanager_alpha.Deploymentmanager, + v2: v2_1.deploymentmanager_v2.Deploymentmanager, + v2beta: v2beta_1.deploymentmanager_v2beta.Deploymentmanager, +}; +function deploymentmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('deploymentmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.deploymentmanager = deploymentmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2787: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.jobs_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 = __webpack_require__(927); +var jobs_v2; +(function (jobs_v2) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const jobs = google.jobs('v2'); + * ``` + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.companies = new Resource$Companies(this.context); + this.jobs = new Resource$Jobs(this.context); + this.v2 = new Resource$V2(this.context); + } + } + jobs_v2.Jobs = Jobs; + class Resource$Companies { + constructor(context) { + this.context = context; + this.jobs = new Resource$Companies$Jobs(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v2.Resource$Companies = Resource$Companies; + class Resource$Companies$Jobs { + 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+companyName}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['companyName'], + pathParams: ['companyName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v2.Resource$Companies$Jobs = Resource$Companies$Jobs; + class Resource$Jobs { + constructor(context) { + this.context = context; + } + batchDelete(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteByFilter(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:deleteByFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + histogram(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:histogram').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchForAlert(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v2.Resource$Jobs = Resource$Jobs; + class Resource$V2 { + constructor(context) { + this.context = context; + } + complete(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v2.Resource$V2 = Resource$V2; +})(jobs_v2 = exports.jobs_v2 || (exports.jobs_v2 = {})); + + +/***/ }), + +/***/ 2811: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.fitness_v1 = exports.auth = exports.fitness = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8243); +Object.defineProperty(exports, "fitness_v1", { enumerable: true, get: function () { return v1_1.fitness_v1; } }); +exports.VERSIONS = { + v1: v1_1.fitness_v1.Fitness, +}; +function fitness(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('fitness', versionOrOptions, exports.VERSIONS, this); +} +exports.fitness = fitness; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2825: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.baremetalsolution_v2 = exports.baremetalsolution_v1alpha1 = exports.baremetalsolution_v1 = exports.auth = exports.baremetalsolution = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5140); +Object.defineProperty(exports, "baremetalsolution_v1", { enumerable: true, get: function () { return v1_1.baremetalsolution_v1; } }); +const v1alpha1_1 = __webpack_require__(3812); +Object.defineProperty(exports, "baremetalsolution_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.baremetalsolution_v1alpha1; } }); +const v2_1 = __webpack_require__(843); +Object.defineProperty(exports, "baremetalsolution_v2", { enumerable: true, get: function () { return v2_1.baremetalsolution_v2; } }); +exports.VERSIONS = { + v1: v1_1.baremetalsolution_v1.Baremetalsolution, + v1alpha1: v1alpha1_1.baremetalsolution_v1alpha1.Baremetalsolution, + v2: v2_1.baremetalsolution_v2.Baremetalsolution, +}; +function baremetalsolution(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('baremetalsolution', versionOrOptions, exports.VERSIONS, this); +} +exports.baremetalsolution = baremetalsolution; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2843: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.playablelocations_v3 = exports.auth = exports.playablelocations = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_1 = __webpack_require__(8004); +Object.defineProperty(exports, "playablelocations_v3", { enumerable: true, get: function () { return v3_1.playablelocations_v3; } }); +exports.VERSIONS = { + v3: v3_1.playablelocations_v3.Playablelocations, +}; +function playablelocations(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('playablelocations', versionOrOptions, exports.VERSIONS, this); +} +exports.playablelocations = playablelocations; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2862: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.realtimebidding_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var realtimebidding_v1; +(function (realtimebidding_v1) { + /** + * Real-time Bidding API + * + * Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive via pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const realtimebidding = google.realtimebidding('v1'); + * ``` + */ + class Realtimebidding { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bidders = new Resource$Bidders(this.context); + this.buyers = new Resource$Buyers(this.context); + } + } + realtimebidding_v1.Realtimebidding = Realtimebidding; + class Resource$Bidders { + constructor(context) { + this.context = context; + this.creatives = new Resource$Bidders$Creatives(this.context); + this.endpoints = new Resource$Bidders$Endpoints(this.context); + this.pretargetingConfigs = new Resource$Bidders$Pretargetingconfigs(this.context); + this.publisherConnections = new Resource$Bidders$Publisherconnections(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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/bidders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Creatives { + 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/creatives:watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Bidders$Creatives = Resource$Bidders$Creatives; + class Resource$Bidders$Endpoints { + 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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Bidders$Endpoints = Resource$Bidders$Endpoints; + class Resource$Bidders$Pretargetingconfigs { + constructor(context) { + this.context = context; + } + activate(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addTargetedApps(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addTargetedPublishers(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedPublishers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addTargetedSites(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedSites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pretargetingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pretargetingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeTargetedApps(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeTargetedPublishers(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedPublishers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeTargetedSites(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedSites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspend(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Bidders$Pretargetingconfigs = Resource$Bidders$Pretargetingconfigs; + class Resource$Bidders$Publisherconnections { + constructor(context) { + this.context = context; + } + batchApprove(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/publisherConnections:batchApprove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchReject(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/publisherConnections:batchReject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/publisherConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Bidders$Publisherconnections = Resource$Bidders$Publisherconnections; + class Resource$Buyers { + constructor(context) { + this.context = context; + this.creatives = new Resource$Buyers$Creatives(this.context); + this.userLists = new Resource$Buyers$Userlists(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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRemarketingTag(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getRemarketingTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/buyers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Buyers = Resource$Buyers; + class Resource$Buyers$Creatives { + 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Buyers$Creatives = Resource$Buyers$Creatives; + class Resource$Buyers$Userlists { + constructor(context) { + this.context = context; + } + close(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/userLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRemarketingTag(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getRemarketingTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/userLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + open(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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:open').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://realtimebidding.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + realtimebidding_v1.Resource$Buyers$Userlists = Resource$Buyers$Userlists; +})(realtimebidding_v1 = exports.realtimebidding_v1 || (exports.realtimebidding_v1 = {})); + + +/***/ }), + +/***/ 2880: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +const conversions = __webpack_require__(8751); +const utils = __webpack_require__(7120); +const Impl = __webpack_require__(5197); + +const impl = utils.implSymbol; + +function URL(url) { + if (!this || this[impl] || !(this instanceof URL)) { + throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); + } + if (arguments.length < 1) { + throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present."); + } + const args = []; + for (let i = 0; i < arguments.length && i < 2; ++i) { + args[i] = arguments[i]; + } + args[0] = conversions["USVString"](args[0]); + if (args[1] !== undefined) { + args[1] = conversions["USVString"](args[1]); + } + + module.exports.setup(this, args); +} + +URL.prototype.toJSON = function toJSON() { + if (!this || !module.exports.is(this)) { + throw new TypeError("Illegal invocation"); + } + const args = []; + for (let i = 0; i < arguments.length && i < 0; ++i) { + args[i] = arguments[i]; + } + return this[impl].toJSON.apply(this[impl], args); +}; +Object.defineProperty(URL.prototype, "href", { + get() { + return this[impl].href; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].href = V; + }, + enumerable: true, + configurable: true +}); + +URL.prototype.toString = function () { + if (!this || !module.exports.is(this)) { + throw new TypeError("Illegal invocation"); + } + return this.href; +}; + +Object.defineProperty(URL.prototype, "origin", { + get() { + return this[impl].origin; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "protocol", { + get() { + return this[impl].protocol; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].protocol = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "username", { + get() { + return this[impl].username; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].username = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "password", { + get() { + return this[impl].password; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].password = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "host", { + get() { + return this[impl].host; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].host = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "hostname", { + get() { + return this[impl].hostname; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].hostname = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "port", { + get() { + return this[impl].port; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].port = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "pathname", { + get() { + return this[impl].pathname; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].pathname = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "search", { + get() { + return this[impl].search; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].search = V; + }, + enumerable: true, + configurable: true +}); + +Object.defineProperty(URL.prototype, "hash", { + get() { + return this[impl].hash; + }, + set(V) { + V = conversions["USVString"](V); + this[impl].hash = V; + }, + enumerable: true, + configurable: true +}); + + +module.exports = { + is(obj) { + return !!obj && obj[impl] instanceof Impl.implementation; + }, + create(constructorArgs, privateData) { + let obj = Object.create(URL.prototype); + this.setup(obj, constructorArgs, privateData); + return obj; + }, + setup(obj, constructorArgs, privateData) { + if (!privateData) privateData = {}; + privateData.wrapper = obj; + + obj[impl] = new Impl.implementation(constructorArgs, privateData); + obj[impl][utils.wrapperSymbol] = obj; + }, + interface: URL, + expose: { + Window: { URL: URL }, + Worker: { URL: URL } + } +}; + + + +/***/ }), + +/***/ 2886: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dataform_v1beta1 = exports.auth = exports.dataform = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(3228); +Object.defineProperty(exports, "dataform_v1beta1", { enumerable: true, get: function () { return v1beta1_1.dataform_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.dataform_v1beta1.Dataform, +}; +function dataform(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dataform', versionOrOptions, exports.VERSIONS, this); +} +exports.dataform = dataform; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2893: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/** + * Copyright 2021 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.Impersonated = exports.IMPERSONATED_ACCOUNT_TYPE = void 0; +const oauth2client_1 = __webpack_require__(4449); +const gaxios_1 = __webpack_require__(3597); +exports.IMPERSONATED_ACCOUNT_TYPE = 'impersonated_service_account'; +class Impersonated extends oauth2client_1.OAuth2Client { + /** + * Impersonated service account credentials. + * + * Create a new access token by impersonating another service account. + * + * Impersonated Credentials allowing credentials issued to a user or + * service account to impersonate another. The source project using + * Impersonated Credentials must enable the "IAMCredentials" API. + * Also, the target service account must grant the orginating principal + * the "Service Account Token Creator" IAM role. + * + * @param {object} options - The configuration object. + * @param {object} [options.sourceClient] the source credential used as to + * acquire the impersonated credentials. + * @param {string} [options.targetPrincipal] the service account to + * impersonate. + * @param {string[]} [options.delegates] the chained list of delegates + * required to grant the final access_token. If set, the sequence of + * identities must have "Service Account Token Creator" capability granted to + * the preceding identity. For example, if set to [serviceAccountB, + * serviceAccountC], the sourceCredential must have the Token Creator role on + * serviceAccountB. serviceAccountB must have the Token Creator on + * serviceAccountC. Finally, C must have Token Creator on target_principal. + * If left unset, sourceCredential must have that role on targetPrincipal. + * @param {string[]} [options.targetScopes] scopes to request during the + * authorization grant. + * @param {number} [options.lifetime] number of seconds the delegated + * credential should be valid for up to 3600 seconds by default, or 43,200 + * seconds by extending the token's lifetime, see: + * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth + * @param {string} [options.endpoint] api endpoint override. + */ + constructor(options = {}) { + var _a, _b, _c, _d, _e, _f; + super(options); + this.credentials = { + expiry_date: 1, + refresh_token: 'impersonated-placeholder', + }; + this.sourceClient = (_a = options.sourceClient) !== null && _a !== void 0 ? _a : new oauth2client_1.OAuth2Client(); + this.targetPrincipal = (_b = options.targetPrincipal) !== null && _b !== void 0 ? _b : ''; + this.delegates = (_c = options.delegates) !== null && _c !== void 0 ? _c : []; + this.targetScopes = (_d = options.targetScopes) !== null && _d !== void 0 ? _d : []; + this.lifetime = (_e = options.lifetime) !== null && _e !== void 0 ? _e : 3600; + this.endpoint = (_f = options.endpoint) !== null && _f !== void 0 ? _f : 'https://iamcredentials.googleapis.com'; + } + /** + * Refreshes the access token. + * @param refreshToken Unused parameter + */ + async refreshToken(refreshToken) { + var _a, _b, _c, _d, _e, _f; + try { + await this.sourceClient.getAccessToken(); + const name = 'projects/-/serviceAccounts/' + this.targetPrincipal; + const u = `${this.endpoint}/v1/${name}:generateAccessToken`; + const body = { + delegates: this.delegates, + scope: this.targetScopes, + lifetime: this.lifetime + 's', + }; + const res = await this.sourceClient.request({ + url: u, + data: body, + method: 'POST', + }); + const tokenResponse = res.data; + this.credentials.access_token = tokenResponse.accessToken; + this.credentials.expiry_date = Date.parse(tokenResponse.expireTime); + return { + tokens: this.credentials, + res, + }; + } + catch (error) { + if (!(error instanceof Error)) + throw error; + let status = 0; + let message = ''; + if (error instanceof gaxios_1.GaxiosError) { + status = (_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status; + message = (_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f.message; + } + if (status && message) { + error.message = `${status}: unable to impersonate: ${message}`; + throw error; + } + else { + error.message = `unable to impersonate: ${error}`; + throw error; + } + } + } + /** + * Generates an OpenID Connect ID token for a service account. + * + * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateIdToken Reference Documentation} + * + * @param targetAudience the audience for the fetched ID token. + * @param options the for the request + * @return an OpenID Connect ID token + */ + async fetchIdToken(targetAudience, options) { + var _a; + await this.sourceClient.getAccessToken(); + const name = `projects/-/serviceAccounts/${this.targetPrincipal}`; + const u = `${this.endpoint}/v1/${name}:generateIdToken`; + const body = { + delegates: this.delegates, + audience: targetAudience, + includeEmail: (_a = options === null || options === void 0 ? void 0 : options.includeEmail) !== null && _a !== void 0 ? _a : true, + }; + const res = await this.sourceClient.request({ + url: u, + data: body, + method: 'POST', + }); + return res.data.token; + } +} +exports.Impersonated = Impersonated; +//# sourceMappingURL=impersonated.js.map + +/***/ }), + +/***/ 2926: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.metastore_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var metastore_v1alpha; +(function (metastore_v1alpha) { + /** + * Dataproc Metastore API + * + * The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const metastore = google.metastore('v1alpha'); + * ``` + */ + class Metastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + metastore_v1alpha.Metastore = Metastore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + metastore_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.federations = new Resource$Projects$Locations$Federations(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.services = new Resource$Projects$Locations$Services(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Federations { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Federations = Resource$Projects$Locations$Federations; + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Services$Backups(this.context); + this.databases = new Resource$Projects$Locations$Services$Databases(this.context); + this.metadataImports = + new Resource$Projects$Locations$Services$Metadataimports(this.context); + } + alterLocation(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+service}:alterLocation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportMetadata(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveTableToDatabase(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+service}:moveTableToDatabase').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryMetadata(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+service}:queryMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeIamPolicy(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Backups { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Services$Backups = Resource$Projects$Locations$Services$Backups; + class Resource$Projects$Locations$Services$Databases { + constructor(context) { + this.context = context; + this.tables = new Resource$Projects$Locations$Services$Databases$Tables(this.context); + } + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Services$Databases = Resource$Projects$Locations$Services$Databases; + class Resource$Projects$Locations$Services$Databases$Tables { + constructor(context) { + this.context = context; + } + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Services$Databases$Tables = Resource$Projects$Locations$Services$Databases$Tables; + class Resource$Projects$Locations$Services$Metadataimports { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1alpha.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; +})(metastore_v1alpha = exports.metastore_v1alpha || (exports.metastore_v1alpha = {})); + + +/***/ }), + +/***/ 2929: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.texttospeech_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var texttospeech_v1beta1; +(function (texttospeech_v1beta1) { + /** + * Cloud Text-to-Speech API + * + * Synthesizes natural-sounding speech by applying powerful neural network models. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const texttospeech = google.texttospeech('v1beta1'); + * ``` + */ + class Texttospeech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.text = new Resource$Text(this.context); + this.voices = new Resource$Voices(this.context); + } + } + texttospeech_v1beta1.Texttospeech = Texttospeech; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + texttospeech_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + synthesizeLongAudio(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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:synthesizeLongAudio').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Text { + constructor(context) { + this.context = context; + } + synthesize(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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1beta1.Resource$Text = Resource$Text; + class Resource$Voices { + 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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/voices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1beta1.Resource$Voices = Resource$Voices; +})(texttospeech_v1beta1 = exports.texttospeech_v1beta1 || (exports.texttospeech_v1beta1 = {})); + + +/***/ }), + +/***/ 2942: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.ids_v1 = exports.auth = exports.ids = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1); +Object.defineProperty(exports, "ids_v1", { enumerable: true, get: function () { return v1_1.ids_v1; } }); +exports.VERSIONS = { + v1: v1_1.ids_v1.Ids, +}; +function ids(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('ids', versionOrOptions, exports.VERSIONS, this); +} +exports.ids = ids; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2959: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dfareporting_v3_3 = 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 = __webpack_require__(927); +var dfareporting_v3_3; +(function (dfareporting_v3_3) { + /** + * Campaign Manager 360 API + * + * Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dfareporting = google.dfareporting('v3.3'); + * ``` + */ + class Dfareporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); + this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); + this.accountPermissions = new Resource$Accountpermissions(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); + this.ads = new Resource$Ads(this.context); + this.advertiserGroups = new Resource$Advertisergroups(this.context); + this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); + this.advertisers = new Resource$Advertisers(this.context); + this.browsers = new Resource$Browsers(this.context); + this.campaignCreativeAssociations = + new Resource$Campaigncreativeassociations(this.context); + this.campaigns = new Resource$Campaigns(this.context); + this.changeLogs = new Resource$Changelogs(this.context); + this.cities = new Resource$Cities(this.context); + this.connectionTypes = new Resource$Connectiontypes(this.context); + this.contentCategories = new Resource$Contentcategories(this.context); + this.conversions = new Resource$Conversions(this.context); + this.countries = new Resource$Countries(this.context); + this.creativeAssets = new Resource$Creativeassets(this.context); + this.creativeFields = new Resource$Creativefields(this.context); + this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); + this.creativeGroups = new Resource$Creativegroups(this.context); + this.creatives = new Resource$Creatives(this.context); + this.dimensionValues = new Resource$Dimensionvalues(this.context); + this.directorySites = new Resource$Directorysites(this.context); + this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); + this.eventTags = new Resource$Eventtags(this.context); + this.files = new Resource$Files(this.context); + this.floodlightActivities = new Resource$Floodlightactivities(this.context); + this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); + this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); + this.inventoryItems = new Resource$Inventoryitems(this.context); + this.languages = new Resource$Languages(this.context); + this.metros = new Resource$Metros(this.context); + this.mobileApps = new Resource$Mobileapps(this.context); + this.mobileCarriers = new Resource$Mobilecarriers(this.context); + this.operatingSystems = new Resource$Operatingsystems(this.context); + this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); + this.orderDocuments = new Resource$Orderdocuments(this.context); + this.orders = new Resource$Orders(this.context); + this.placementGroups = new Resource$Placementgroups(this.context); + this.placements = new Resource$Placements(this.context); + this.placementStrategies = new Resource$Placementstrategies(this.context); + this.platformTypes = new Resource$Platformtypes(this.context); + this.postalCodes = new Resource$Postalcodes(this.context); + this.projects = new Resource$Projects(this.context); + this.regions = new Resource$Regions(this.context); + this.remarketingLists = new Resource$Remarketinglists(this.context); + this.remarketingListShares = new Resource$Remarketinglistshares(this.context); + this.reports = new Resource$Reports(this.context); + this.sites = new Resource$Sites(this.context); + this.sizes = new Resource$Sizes(this.context); + this.subaccounts = new Resource$Subaccounts(this.context); + this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); + this.targetingTemplates = new Resource$Targetingtemplates(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); + this.userRolePermissions = new Resource$Userrolepermissions(this.context); + this.userRoles = new Resource$Userroles(this.context); + this.videoFormats = new Resource$Videoformats(this.context); + } + } + dfareporting_v3_3.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountpermissions = Resource$Accountpermissions; + class Resource$Accounts { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserlandingpages { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Advertisers = Resource$Advertisers; + class Resource$Browsers { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { + constructor(context) { + this.context = context; + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Campaigns = Resource$Campaigns; + class Resource$Changelogs { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Changelogs = Resource$Changelogs; + class Resource$Cities { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { + constructor(context) { + this.context = context; + } + batchinsert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchupdate(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Conversions = Resource$Conversions; + class Resource$Countries { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { + constructor(context) { + this.context = context; + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativegroups = Resource$Creativegroups; + class Resource$Creatives { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Creatives = Resource$Creatives; + class Resource$Dimensionvalues { + constructor(context) { + this.context = context; + } + query(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Eventtags = Resource$Eventtags; + class Resource$Files { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generatetag(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Languages = Resource$Languages; + class Resource$Metros { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { + constructor(context) { + this.context = context; + } + generatetags(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Postalcodes = Resource$Postalcodes; + class Resource$Projects { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Projects = Resource$Projects; + class Resource$Regions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Remarketinglistshares = Resource$Remarketinglistshares; + class Resource$Reports { + constructor(context) { + this.context = context; + this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); + this.files = new Resource$Reports$Files(this.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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { + constructor(context) { + this.context = context; + } + query(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Sites = Resource$Sites; + class Resource$Sizes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userrolepermissiongroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Userrolepermissions = Resource$Userrolepermissions; + class Resource$Userroles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_3.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_3 = exports.dfareporting_v3_3 || (exports.dfareporting_v3_3 = {})); + + +/***/ }), + +/***/ 2962: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.poly_v1 = exports.auth = exports.poly = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6930); +Object.defineProperty(exports, "poly_v1", { enumerable: true, get: function () { return v1_1.poly_v1; } }); +exports.VERSIONS = { + v1: v1_1.poly_v1.Poly, +}; +function poly(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('poly', versionOrOptions, exports.VERSIONS, this); +} +exports.poly = poly; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2970: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1alpha2 = exports.bigqueryreservation_v1 = exports.auth = exports.bigqueryreservation = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5794); +Object.defineProperty(exports, "bigqueryreservation_v1", { enumerable: true, get: function () { return v1_1.bigqueryreservation_v1; } }); +const v1alpha2_1 = __webpack_require__(6307); +Object.defineProperty(exports, "bigqueryreservation_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } }); +const v1beta1_1 = __webpack_require__(6237); +Object.defineProperty(exports, "bigqueryreservation_v1beta1", { enumerable: true, get: function () { return v1beta1_1.bigqueryreservation_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.bigqueryreservation_v1.Bigqueryreservation, + v1alpha2: v1alpha2_1.bigqueryreservation_v1alpha2.Bigqueryreservation, + v1beta1: v1beta1_1.bigqueryreservation_v1beta1.Bigqueryreservation, +}; +function bigqueryreservation(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigqueryreservation', versionOrOptions, exports.VERSIONS, this); +} +exports.bigqueryreservation = bigqueryreservation; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 2974: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2019 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.DefaultTransporter = void 0; +const gaxios_1 = __webpack_require__(3597); +const options_1 = __webpack_require__(9882); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __webpack_require__(6947); +const PRODUCT_NAME = 'google-api-nodejs-client'; +class DefaultTransporter { + /** + * Configures request options before making a request. + * @param opts GaxiosOptions options. + * @return Configured options. + */ + configure(opts = {}) { + opts.headers = opts.headers || {}; + if (typeof window === 'undefined') { + // set transporter user agent if not in browser + const uaValue = opts.headers['User-Agent']; + if (!uaValue) { + opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; + } + else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { + opts.headers['User-Agent'] = `${uaValue} ${DefaultTransporter.USER_AGENT}`; + } + // track google-auth-library-nodejs version: + const authVersion = `auth/${pkg.version}`; + if (opts.headers['x-goog-api-client'] && + !opts.headers['x-goog-api-client'].includes(authVersion)) { + opts.headers['x-goog-api-client'] = `${opts.headers['x-goog-api-client']} ${authVersion}`; + } + else if (!opts.headers['x-goog-api-client']) { + const nodeVersion = process.version.replace(/^v/, ''); + opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion} ${authVersion}`; + } + } + return opts; + } + request(opts, callback) { + // ensure the user isn't passing in request-style options + opts = this.configure(opts); + try { + (0, options_1.validate)(opts); + } + catch (e) { + if (callback) { + return callback(e); + } + else { + throw e; + } + } + if (callback) { + (0, gaxios_1.request)(opts).then(r => { + callback(null, r); + }, e => { + callback(this.processError(e)); + }); + } + else { + return (0, gaxios_1.request)(opts).catch(e => { + throw this.processError(e); + }); + } + } + /** + * Changes the error to include details from the body. + */ + processError(e) { + const res = e.response; + const err = e; + const body = res ? res.data : null; + if (res && body && body.error && res.status !== 200) { + if (typeof body.error === 'string') { + err.message = body.error; + err.code = res.status.toString(); + } + else if (Array.isArray(body.error.errors)) { + err.message = body.error.errors + .map((err2) => err2.message) + .join('\n'); + err.code = body.error.code; + err.errors = body.error.errors; + } + else { + err.message = body.error.message; + err.code = body.error.code || res.status; + } + } + else if (res && res.status >= 400) { + // Consider all 4xx and 5xx responses errors. + err.message = body; + err.code = res.status.toString(); + } + return err; + } +} +exports.DefaultTransporter = DefaultTransporter; +/** + * Default user agent. + */ +DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; +//# sourceMappingURL=transporters.js.map + +/***/ }), + +/***/ 2980: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.oauth2_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var oauth2_v2; +(function (oauth2_v2) { + /** + * Google OAuth2 API + * + * Obtains end-user authorization grants for use with other Google APIs. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const oauth2 = google.oauth2('v2'); + * ``` + */ + class Oauth2 { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.userinfo = new Resource$Userinfo(this.context); + } + tokeninfo(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oauth2_v2.Oauth2 = Oauth2; + class Resource$Userinfo { + constructor(context) { + this.context = context; + this.v2 = new Resource$Userinfo$V2(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oauth2_v2.Resource$Userinfo = Resource$Userinfo; + class Resource$Userinfo$V2 { + constructor(context) { + this.context = context; + this.me = new Resource$Userinfo$V2$Me(this.context); + } + } + oauth2_v2.Resource$Userinfo$V2 = Resource$Userinfo$V2; + class Resource$Userinfo$V2$Me { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oauth2_v2.Resource$Userinfo$V2$Me = Resource$Userinfo$V2$Me; +})(oauth2_v2 = exports.oauth2_v2 || (exports.oauth2_v2 = {})); + + +/***/ }), + +/***/ 2985: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datamigration_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datamigration_v1beta1; +(function (datamigration_v1beta1) { + /** + * Database Migration API + * + * Manage Cloud Database Migration Service resources on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datamigration = google.datamigration('v1beta1'); + * ``` + */ + class Datamigration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datamigration_v1beta1.Datamigration = Datamigration; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datamigration_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connectionProfiles = + new Resource$Projects$Locations$Connectionprofiles(this.context); + this.migrationJobs = new Resource$Projects$Locations$Migrationjobs(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectionprofiles { + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1beta1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; + class Resource$Projects$Locations$Migrationjobs { + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateSshScript(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+migrationJob}:generateSshScript').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['migrationJob'], + pathParams: ['migrationJob'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promote(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verify(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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1beta1.Resource$Projects$Locations$Migrationjobs = Resource$Projects$Locations$Migrationjobs; + 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datamigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datamigration_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(datamigration_v1beta1 = exports.datamigration_v1beta1 || (exports.datamigration_v1beta1 = {})); + + +/***/ }), + +/***/ 3000: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Hash-based Message Authentication Code implementation. Requires a message + * digest object that can be obtained, for example, from forge.md.sha1 or + * forge.md.md5. + * + * @author Dave Longley + * + * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved. + */ +var forge = __webpack_require__(239); +__webpack_require__(1220); +__webpack_require__(7152); + +/* HMAC API */ +var hmac = module.exports = forge.hmac = forge.hmac || {}; + +/** + * Creates an HMAC object that uses the given message digest object. + * + * @return an HMAC object. + */ +hmac.create = function() { + // the hmac key to use + var _key = null; + + // the message digest to use + var _md = null; + + // the inner padding + var _ipadding = null; + + // the outer padding + var _opadding = null; + + // hmac context + var ctx = {}; + + /** + * Starts or restarts the HMAC with the given key and message digest. + * + * @param md the message digest to use, null to reuse the previous one, + * a string to use builtin 'sha1', 'md5', 'sha256'. + * @param key the key to use as a string, array of bytes, byte buffer, + * or null to reuse the previous key. + */ + ctx.start = function(md, key) { + if(md !== null) { + if(typeof md === 'string') { + // create builtin message digest + md = md.toLowerCase(); + if(md in forge.md.algorithms) { + _md = forge.md.algorithms[md].create(); + } else { + throw new Error('Unknown hash algorithm "' + md + '"'); + } + } else { + // store message digest + _md = md; + } + } + + if(key === null) { + // reuse previous key + key = _key; + } else { + if(typeof key === 'string') { + // convert string into byte buffer + key = forge.util.createBuffer(key); + } else if(forge.util.isArray(key)) { + // convert byte array into byte buffer + var tmp = key; + key = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + key.putByte(tmp[i]); + } + } + + // if key is longer than blocksize, hash it + var keylen = key.length(); + if(keylen > _md.blockLength) { + _md.start(); + _md.update(key.bytes()); + key = _md.digest(); + } + + // mix key into inner and outer padding + // ipadding = [0x36 * blocksize] ^ key + // opadding = [0x5C * blocksize] ^ key + _ipadding = forge.util.createBuffer(); + _opadding = forge.util.createBuffer(); + keylen = key.length(); + for(var i = 0; i < keylen; ++i) { + var tmp = key.at(i); + _ipadding.putByte(0x36 ^ tmp); + _opadding.putByte(0x5C ^ tmp); + } + + // if key is shorter than blocksize, add additional padding + if(keylen < _md.blockLength) { + var tmp = _md.blockLength - keylen; + for(var i = 0; i < tmp; ++i) { + _ipadding.putByte(0x36); + _opadding.putByte(0x5C); + } + } + _key = key; + _ipadding = _ipadding.bytes(); + _opadding = _opadding.bytes(); + } + + // digest is done like so: hash(opadding | hash(ipadding | message)) + + // prepare to do inner hash + // hash(ipadding | message) + _md.start(); + _md.update(_ipadding); + }; + + /** + * Updates the HMAC with the given message bytes. + * + * @param bytes the bytes to update with. + */ + ctx.update = function(bytes) { + _md.update(bytes); + }; + + /** + * Produces the Message Authentication Code (MAC). + * + * @return a byte buffer containing the digest value. + */ + ctx.getMac = function() { + // digest is done like so: hash(opadding | hash(ipadding | message)) + // here we do the outer hashing + var inner = _md.digest().bytes(); + _md.start(); + _md.update(_opadding); + _md.update(inner); + return _md.digest(); + }; + // alias for getMac + ctx.digest = ctx.getMac; + + return ctx; +}; + + +/***/ }), + +/***/ 3009: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var once = __webpack_require__(6049); + +var noop = function() {}; + +var isRequest = function(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +}; + +var isChildProcess = function(stream) { + return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 +}; + +var eos = function(stream, opts, callback) { + if (typeof opts === 'function') return eos(stream, null, opts); + if (!opts) opts = {}; + + callback = once(callback || noop); + + var ws = stream._writableState; + var rs = stream._readableState; + var readable = opts.readable || (opts.readable !== false && stream.readable); + var writable = opts.writable || (opts.writable !== false && stream.writable); + var cancelled = false; + + var onlegacyfinish = function() { + if (!stream.writable) onfinish(); + }; + + var onfinish = function() { + writable = false; + if (!readable) callback.call(stream); + }; + + var onend = function() { + readable = false; + if (!writable) callback.call(stream); + }; + + var onexit = function(exitCode) { + callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); + }; + + var onerror = function(err) { + callback.call(stream, err); + }; + + var onclose = function() { + process.nextTick(onclosenexttick); + }; + + var onclosenexttick = function() { + if (cancelled) return; + if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); + if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); + }; + + var onrequest = function() { + stream.req.on('finish', onfinish); + }; + + if (isRequest(stream)) { + stream.on('complete', onfinish); + stream.on('abort', onclose); + if (stream.req) onrequest(); + else stream.on('request', onrequest); + } else if (writable && !ws) { // legacy streams + stream.on('end', onlegacyfinish); + stream.on('close', onlegacyfinish); + } + + if (isChildProcess(stream)) stream.on('exit', onexit); + + stream.on('end', onend); + stream.on('finish', onfinish); + if (opts.error !== false) stream.on('error', onerror); + stream.on('close', onclose); + + return function() { + cancelled = true; + stream.removeListener('complete', onfinish); + stream.removeListener('abort', onclose); + stream.removeListener('request', onrequest); + if (stream.req) stream.req.removeListener('finish', onfinish); + stream.removeListener('end', onlegacyfinish); + stream.removeListener('close', onlegacyfinish); + stream.removeListener('finish', onfinish); + stream.removeListener('exit', onexit); + stream.removeListener('end', onend); + stream.removeListener('error', onerror); + stream.removeListener('close', onclose); + }; +}; + +module.exports = eos; + + +/***/ }), + +/***/ 3012: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sourcerepo_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sourcerepo_v1; +(function (sourcerepo_v1) { + /** + * Cloud Source Repositories API + * + * Accesses source code repositories hosted by Google. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sourcerepo = google.sourcerepo('v1'); + * ``` + */ + class Sourcerepo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + sourcerepo_v1.Sourcerepo = Sourcerepo; + class Resource$Projects { + constructor(context) { + this.context = context; + this.repos = new Resource$Projects$Repos(this.context); + } + getConfig(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://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sourcerepo_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Repos { + 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://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sync(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://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sourcerepo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sourcerepo_v1.Resource$Projects$Repos = Resource$Projects$Repos; +})(sourcerepo_v1 = exports.sourcerepo_v1 || (exports.sourcerepo_v1 = {})); + + +/***/ }), + +/***/ 3026: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var hasMap = typeof Map === 'function' && Map.prototype; +var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; +var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; +var mapForEach = hasMap && Map.prototype.forEach; +var hasSet = typeof Set === 'function' && Set.prototype; +var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; +var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; +var setForEach = hasSet && Set.prototype.forEach; +var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; +var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; +var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; +var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; +var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; +var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; +var booleanValueOf = Boolean.prototype.valueOf; +var objectToString = Object.prototype.toString; +var functionToString = Function.prototype.toString; +var $match = String.prototype.match; +var $slice = String.prototype.slice; +var $replace = String.prototype.replace; +var $toUpperCase = String.prototype.toUpperCase; +var $toLowerCase = String.prototype.toLowerCase; +var $test = RegExp.prototype.test; +var $concat = Array.prototype.concat; +var $join = Array.prototype.join; +var $arrSlice = Array.prototype.slice; +var $floor = Math.floor; +var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; +var gOPS = Object.getOwnPropertySymbols; +var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; +var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; +// ie, `has-tostringtag/shams +var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') + ? Symbol.toStringTag + : null; +var isEnumerable = Object.prototype.propertyIsEnumerable; + +var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( + [].__proto__ === Array.prototype // eslint-disable-line no-proto + ? function (O) { + return O.__proto__; // eslint-disable-line no-proto + } + : null +); + +function addNumericSeparator(num, str) { + if ( + num === Infinity + || num === -Infinity + || num !== num + || (num && num > -1000 && num < 1000) + || $test.call(/e/, str) + ) { + return str; + } + var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; + if (typeof num === 'number') { + var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) + if (int !== num) { + var intStr = String(int); + var dec = $slice.call(str, intStr.length + 1); + return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); + } + } + return $replace.call(str, sepRegex, '$&_'); +} + +var utilInspect = __webpack_require__(3330); +var inspectCustom = utilInspect.custom; +var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; + +module.exports = function inspect_(obj, options, depth, seen) { + var opts = options || {}; + + if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { + throw new TypeError('option "quoteStyle" must be "single" or "double"'); + } + if ( + has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' + ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity + : opts.maxStringLength !== null + ) + ) { + throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); + } + var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; + if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { + throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); + } + + if ( + has(opts, 'indent') + && opts.indent !== null + && opts.indent !== '\t' + && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) + ) { + throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); + } + if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { + throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); + } + var numericSeparator = opts.numericSeparator; + + if (typeof obj === 'undefined') { + return 'undefined'; + } + if (obj === null) { + return 'null'; + } + if (typeof obj === 'boolean') { + return obj ? 'true' : 'false'; + } + + if (typeof obj === 'string') { + return inspectString(obj, opts); + } + if (typeof obj === 'number') { + if (obj === 0) { + return Infinity / obj > 0 ? '0' : '-0'; + } + var str = String(obj); + return numericSeparator ? addNumericSeparator(obj, str) : str; + } + if (typeof obj === 'bigint') { + var bigIntStr = String(obj) + 'n'; + return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; + } + + var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; + if (typeof depth === 'undefined') { depth = 0; } + if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { + return isArray(obj) ? '[Array]' : '[Object]'; + } + + var indent = getIndent(opts, depth); + + if (typeof seen === 'undefined') { + seen = []; + } else if (indexOf(seen, obj) >= 0) { + return '[Circular]'; + } + + function inspect(value, from, noIndent) { + if (from) { + seen = $arrSlice.call(seen); + seen.push(from); + } + if (noIndent) { + var newOpts = { + depth: opts.depth + }; + if (has(opts, 'quoteStyle')) { + newOpts.quoteStyle = opts.quoteStyle; + } + return inspect_(value, newOpts, depth + 1, seen); + } + return inspect_(value, opts, depth + 1, seen); + } + + if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable + var name = nameOf(obj); + var keys = arrObjKeys(obj, inspect); + return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); + } + if (isSymbol(obj)) { + var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); + return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; + } + if (isElement(obj)) { + var s = '<' + $toLowerCase.call(String(obj.nodeName)); + var attrs = obj.attributes || []; + for (var i = 0; i < attrs.length; i++) { + s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); + } + s += '>'; + if (obj.childNodes && obj.childNodes.length) { s += '...'; } + s += ''; + return s; + } + if (isArray(obj)) { + if (obj.length === 0) { return '[]'; } + var xs = arrObjKeys(obj, inspect); + if (indent && !singleLineValues(xs)) { + return '[' + indentedJoin(xs, indent) + ']'; + } + return '[ ' + $join.call(xs, ', ') + ' ]'; + } + if (isError(obj)) { + var parts = arrObjKeys(obj, inspect); + if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { + return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; + } + if (parts.length === 0) { return '[' + String(obj) + ']'; } + return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; + } + if (typeof obj === 'object' && customInspect) { + if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { + return utilInspect(obj, { depth: maxDepth - depth }); + } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { + return obj.inspect(); + } + } + if (isMap(obj)) { + var mapParts = []; + if (mapForEach) { + mapForEach.call(obj, function (value, key) { + mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); + }); + } + return collectionOf('Map', mapSize.call(obj), mapParts, indent); + } + if (isSet(obj)) { + var setParts = []; + if (setForEach) { + setForEach.call(obj, function (value) { + setParts.push(inspect(value, obj)); + }); + } + return collectionOf('Set', setSize.call(obj), setParts, indent); + } + if (isWeakMap(obj)) { + return weakCollectionOf('WeakMap'); + } + if (isWeakSet(obj)) { + return weakCollectionOf('WeakSet'); + } + if (isWeakRef(obj)) { + return weakCollectionOf('WeakRef'); + } + if (isNumber(obj)) { + return markBoxed(inspect(Number(obj))); + } + if (isBigInt(obj)) { + return markBoxed(inspect(bigIntValueOf.call(obj))); + } + if (isBoolean(obj)) { + return markBoxed(booleanValueOf.call(obj)); + } + if (isString(obj)) { + return markBoxed(inspect(String(obj))); + } + if (!isDate(obj) && !isRegExp(obj)) { + var ys = arrObjKeys(obj, inspect); + var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; + var protoTag = obj instanceof Object ? '' : 'null prototype'; + var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; + var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; + var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); + if (ys.length === 0) { return tag + '{}'; } + if (indent) { + return tag + '{' + indentedJoin(ys, indent) + '}'; + } + return tag + '{ ' + $join.call(ys, ', ') + ' }'; + } + return String(obj); +}; + +function wrapQuotes(s, defaultStyle, opts) { + var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; + return quoteChar + s + quoteChar; +} + +function quote(s) { + return $replace.call(String(s), /"/g, '"'); +} + +function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } + +// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives +function isSymbol(obj) { + if (hasShammedSymbols) { + return obj && typeof obj === 'object' && obj instanceof Symbol; + } + if (typeof obj === 'symbol') { + return true; + } + if (!obj || typeof obj !== 'object' || !symToString) { + return false; + } + try { + symToString.call(obj); + return true; + } catch (e) {} + return false; +} + +function isBigInt(obj) { + if (!obj || typeof obj !== 'object' || !bigIntValueOf) { + return false; + } + try { + bigIntValueOf.call(obj); + return true; + } catch (e) {} + return false; +} + +var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; +function has(obj, key) { + return hasOwn.call(obj, key); +} + +function toStr(obj) { + return objectToString.call(obj); +} + +function nameOf(f) { + if (f.name) { return f.name; } + var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); + if (m) { return m[1]; } + return null; +} + +function indexOf(xs, x) { + if (xs.indexOf) { return xs.indexOf(x); } + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) { return i; } + } + return -1; +} + +function isMap(x) { + if (!mapSize || !x || typeof x !== 'object') { + return false; + } + try { + mapSize.call(x); + try { + setSize.call(x); + } catch (s) { + return true; + } + return x instanceof Map; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isWeakMap(x) { + if (!weakMapHas || !x || typeof x !== 'object') { + return false; + } + try { + weakMapHas.call(x, weakMapHas); + try { + weakSetHas.call(x, weakSetHas); + } catch (s) { + return true; + } + return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isWeakRef(x) { + if (!weakRefDeref || !x || typeof x !== 'object') { + return false; + } + try { + weakRefDeref.call(x); + return true; + } catch (e) {} + return false; +} + +function isSet(x) { + if (!setSize || !x || typeof x !== 'object') { + return false; + } + try { + setSize.call(x); + try { + mapSize.call(x); + } catch (m) { + return true; + } + return x instanceof Set; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isWeakSet(x) { + if (!weakSetHas || !x || typeof x !== 'object') { + return false; + } + try { + weakSetHas.call(x, weakSetHas); + try { + weakMapHas.call(x, weakMapHas); + } catch (s) { + return true; + } + return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isElement(x) { + if (!x || typeof x !== 'object') { return false; } + if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { + return true; + } + return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; +} + +function inspectString(str, opts) { + if (str.length > opts.maxStringLength) { + var remaining = str.length - opts.maxStringLength; + var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); + return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; + } + // eslint-disable-next-line no-control-regex + var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); + return wrapQuotes(s, 'single', opts); +} + +function lowbyte(c) { + var n = c.charCodeAt(0); + var x = { + 8: 'b', + 9: 't', + 10: 'n', + 12: 'f', + 13: 'r' + }[n]; + if (x) { return '\\' + x; } + return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); +} + +function markBoxed(str) { + return 'Object(' + str + ')'; +} + +function weakCollectionOf(type) { + return type + ' { ? }'; +} + +function collectionOf(type, size, entries, indent) { + var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); + return type + ' (' + size + ') {' + joinedEntries + '}'; +} + +function singleLineValues(xs) { + for (var i = 0; i < xs.length; i++) { + if (indexOf(xs[i], '\n') >= 0) { + return false; + } + } + return true; +} + +function getIndent(opts, depth) { + var baseIndent; + if (opts.indent === '\t') { + baseIndent = '\t'; + } else if (typeof opts.indent === 'number' && opts.indent > 0) { + baseIndent = $join.call(Array(opts.indent + 1), ' '); + } else { + return null; + } + return { + base: baseIndent, + prev: $join.call(Array(depth + 1), baseIndent) + }; +} + +function indentedJoin(xs, indent) { + if (xs.length === 0) { return ''; } + var lineJoiner = '\n' + indent.prev + indent.base; + return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; +} + +function arrObjKeys(obj, inspect) { + var isArr = isArray(obj); + var xs = []; + if (isArr) { + xs.length = obj.length; + for (var i = 0; i < obj.length; i++) { + xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; + } + } + var syms = typeof gOPS === 'function' ? gOPS(obj) : []; + var symMap; + if (hasShammedSymbols) { + symMap = {}; + for (var k = 0; k < syms.length; k++) { + symMap['$' + syms[k]] = syms[k]; + } + } + + for (var key in obj) { // eslint-disable-line no-restricted-syntax + if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue + if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue + if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { + // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section + continue; // eslint-disable-line no-restricted-syntax, no-continue + } else if ($test.call(/[^\w$]/, key)) { + xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); + } else { + xs.push(key + ': ' + inspect(obj[key], obj)); + } + } + if (typeof gOPS === 'function') { + for (var j = 0; j < syms.length; j++) { + if (isEnumerable.call(obj, syms[j])) { + xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); + } + } + } + return xs; +} + + +/***/ }), + +/***/ 3030: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.secretmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var secretmanager_v1; +(function (secretmanager_v1) { + /** + * Secret Manager API + * + * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const secretmanager = google.secretmanager('v1'); + * ``` + */ + class Secretmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + secretmanager_v1.Secretmanager = Secretmanager; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.secrets = new Resource$Projects$Secrets(this.context); + } + } + secretmanager_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + secretmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Secrets { + constructor(context) { + this.context = context; + this.versions = new Resource$Projects$Secrets$Versions(this.context); + } + addVersion(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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + secretmanager_v1.Resource$Projects$Secrets = Resource$Projects$Secrets; + class Resource$Projects$Secrets$Versions { + constructor(context) { + this.context = context; + } + access(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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + destroy(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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disable(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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enable(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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + secretmanager_v1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; +})(secretmanager_v1 = exports.secretmanager_v1 || (exports.secretmanager_v1 = {})); + + +/***/ }), + +/***/ 3034: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.readerrevenuesubscriptionlinking_v1 = exports.auth = exports.readerrevenuesubscriptionlinking = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4743); +Object.defineProperty(exports, "readerrevenuesubscriptionlinking_v1", { enumerable: true, get: function () { return v1_1.readerrevenuesubscriptionlinking_v1; } }); +exports.VERSIONS = { + v1: v1_1.readerrevenuesubscriptionlinking_v1.Readerrevenuesubscriptionlinking, +}; +function readerrevenuesubscriptionlinking(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('readerrevenuesubscriptionlinking', versionOrOptions, exports.VERSIONS, this); +} +exports.readerrevenuesubscriptionlinking = readerrevenuesubscriptionlinking; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3060: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.displayvideo_v2 = exports.displayvideo_v1dev = exports.displayvideo_v1beta2 = exports.displayvideo_v1beta = exports.displayvideo_v1 = exports.auth = exports.displayvideo = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(164); +Object.defineProperty(exports, "displayvideo_v1", { enumerable: true, get: function () { return v1_1.displayvideo_v1; } }); +const v1beta_1 = __webpack_require__(8505); +Object.defineProperty(exports, "displayvideo_v1beta", { enumerable: true, get: function () { return v1beta_1.displayvideo_v1beta; } }); +const v1beta2_1 = __webpack_require__(7063); +Object.defineProperty(exports, "displayvideo_v1beta2", { enumerable: true, get: function () { return v1beta2_1.displayvideo_v1beta2; } }); +const v1dev_1 = __webpack_require__(7281); +Object.defineProperty(exports, "displayvideo_v1dev", { enumerable: true, get: function () { return v1dev_1.displayvideo_v1dev; } }); +const v2_1 = __webpack_require__(4712); +Object.defineProperty(exports, "displayvideo_v2", { enumerable: true, get: function () { return v2_1.displayvideo_v2; } }); +exports.VERSIONS = { + v1: v1_1.displayvideo_v1.Displayvideo, + v1beta: v1beta_1.displayvideo_v1beta.Displayvideo, + v1beta2: v1beta2_1.displayvideo_v1beta2.Displayvideo, + v1dev: v1dev_1.displayvideo_v1dev.Displayvideo, + v2: v2_1.displayvideo_v2.Displayvideo, +}; +function displayvideo(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('displayvideo', versionOrOptions, exports.VERSIONS, this); +} +exports.displayvideo = displayvideo; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3061: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.toolresults_v1beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var toolresults_v1beta3; +(function (toolresults_v1beta3) { + /** + * Cloud Tool Results API + * + * API to publish and access results from developer tools. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const toolresults = google.toolresults('v1beta3'); + * ``` + */ + class Toolresults { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + toolresults_v1beta3.Toolresults = Toolresults; + class Resource$Projects { + constructor(context) { + this.context = context; + this.histories = new Resource$Projects$Histories(this.context); + } + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + initializeSettings(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}:initializeSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects = Resource$Projects; + class Resource$Projects$Histories { + constructor(context) { + this.context = context; + this.executions = new Resource$Projects$Histories$Executions(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories = Resource$Projects$Histories; + class Resource$Projects$Histories$Executions { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Histories$Executions$Clusters(this.context); + this.environments = + new Resource$Projects$Histories$Executions$Environments(this.context); + this.steps = new Resource$Projects$Histories$Executions$Steps(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions = Resource$Projects$Histories$Executions; + class Resource$Projects$Histories$Executions$Clusters { + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'clusterId'], + pathParams: ['clusterId', 'executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Clusters = Resource$Projects$Histories$Executions$Clusters; + class Resource$Projects$Histories$Executions$Environments { + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'environmentId', + ], + pathParams: ['environmentId', 'executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Environments = Resource$Projects$Histories$Executions$Environments; + class Resource$Projects$Histories$Executions$Steps { + constructor(context) { + this.context = context; + this.perfMetricsSummary = + new Resource$Projects$Histories$Executions$Steps$Perfmetricssummary(this.context); + this.perfSampleSeries = + new Resource$Projects$Histories$Executions$Steps$Perfsampleseries(this.context); + this.testCases = + new Resource$Projects$Histories$Executions$Steps$Testcases(this.context); + this.thumbnails = + new Resource$Projects$Histories$Executions$Steps$Thumbnails(this.context); + } + accessibilityClusters(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/{+name}:accessibilityClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPerfMetricsSummary(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publishXunitXmlFiles(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps = Resource$Projects$Histories$Executions$Steps; + class Resource$Projects$Histories$Executions$Steps$Perfmetricssummary { + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Perfmetricssummary = Resource$Projects$Histories$Executions$Steps$Perfmetricssummary; + class Resource$Projects$Histories$Executions$Steps$Perfsampleseries { + constructor(context) { + this.context = context; + this.samples = + new Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Perfsampleseries = Resource$Projects$Histories$Executions$Steps$Perfsampleseries; + class Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples { + constructor(context) { + this.context = context; + } + batchCreate(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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples = Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples; + class Resource$Projects$Histories$Executions$Steps$Testcases { + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'testCaseId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'stepId', + 'testCaseId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Testcases = Resource$Projects$Histories$Executions$Steps$Testcases; + class Resource$Projects$Histories$Executions$Steps$Thumbnails { + 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://toolresults.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Thumbnails = Resource$Projects$Histories$Executions$Steps$Thumbnails; +})(toolresults_v1beta3 = exports.toolresults_v1beta3 || (exports.toolresults_v1beta3 = {})); + + +/***/ }), + +/***/ 3072: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dataplex_v1 = exports.auth = exports.dataplex = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1407); +Object.defineProperty(exports, "dataplex_v1", { enumerable: true, get: function () { return v1_1.dataplex_v1; } }); +exports.VERSIONS = { + v1: v1_1.dataplex_v1.Dataplex, +}; +function dataplex(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dataplex', versionOrOptions, exports.VERSIONS, this); +} +exports.dataplex = dataplex; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3077: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.pubsub_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var pubsub_v1; +(function (pubsub_v1) { + /** + * Cloud Pub/Sub API + * + * Provides reliable, many-to-many, asynchronous messaging between applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const pubsub = google.pubsub('v1'); + * ``` + */ + class Pubsub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + pubsub_v1.Pubsub = Pubsub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.schemas = new Resource$Projects$Schemas(this.context); + this.snapshots = new Resource$Projects$Snapshots(this.context); + this.subscriptions = new Resource$Projects$Subscriptions(this.context); + this.topics = new Resource$Projects$Topics(this.context); + } + } + pubsub_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Schemas { + constructor(context) { + this.context = context; + } + commit(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteRevision(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRevisions(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/schemas:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateMessage(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/schemas:validateMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pubsub_v1.Resource$Projects$Schemas = Resource$Projects$Schemas; + class Resource$Projects$Snapshots { + 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['snapshot'], + pathParams: ['snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['snapshot'], + pathParams: ['snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+project}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pubsub_v1.Resource$Projects$Snapshots = Resource$Projects$Snapshots; + class Resource$Projects$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detach(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:detach').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAckDeadline(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyPushConfig(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pull(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + seek(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:seek').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pubsub_v1.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; + class Resource$Projects$Topics { + constructor(context) { + this.context = context; + this.snapshots = new Resource$Projects$Topics$Snapshots(this.context); + this.subscriptions = new Resource$Projects$Topics$Subscriptions(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pubsub_v1.Resource$Projects$Topics = Resource$Projects$Topics; + class Resource$Projects$Topics$Snapshots { + 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pubsub_v1.Resource$Projects$Topics$Snapshots = Resource$Projects$Topics$Snapshots; + class Resource$Projects$Topics$Subscriptions { + 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + pubsub_v1.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; +})(pubsub_v1 = exports.pubsub_v1 || (exports.pubsub_v1 = {})); + + +/***/ }), + +/***/ 3080: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dialogflow_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dialogflow_v2beta1; +(function (dialogflow_v2beta1) { + /** + * Dialogflow API + * + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dialogflow = google.dialogflow('v2beta1'); + * ``` + */ + class Dialogflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dialogflow_v2beta1.Dialogflow = Dialogflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Agent(this.context); + this.answerRecords = new Resource$Projects$Answerrecords(this.context); + this.conversationProfiles = new Resource$Projects$Conversationprofiles(this.context); + this.conversations = new Resource$Projects$Conversations(this.context); + this.knowledgeBases = new Resource$Projects$Knowledgebases(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + deleteAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Agent$Environments(this.context); + this.intents = new Resource$Projects$Agent$Intents(this.context); + this.knowledgeBases = new Resource$Projects$Agent$Knowledgebases(this.context); + this.sessions = new Resource$Projects$Agent$Sessions(this.context); + this.versions = new Resource$Projects$Agent$Versions(this.context); + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFulfillment(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getValidationResult(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + train(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateFulfillment(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent = Resource$Projects$Agent; + class Resource$Projects$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; + class Resource$Projects$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; + class Resource$Projects$Agent$Environments { + constructor(context) { + this.context = context; + this.intents = new Resource$Projects$Agent$Environments$Intents(this.context); + this.users = new Resource$Projects$Agent$Environments$Users(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHistory(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments = Resource$Projects$Agent$Environments; + class Resource$Projects$Agent$Environments$Intents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Intents = Resource$Projects$Agent$Environments$Intents; + class Resource$Projects$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users = Resource$Projects$Agent$Environments$Users; + class Resource$Projects$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = + new Resource$Projects$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = + new Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; + class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; + class Resource$Projects$Agent$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Agent$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases = Resource$Projects$Agent$Knowledgebases; + class Resource$Projects$Agent$Knowledgebases$Documents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reload(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases$Documents = Resource$Projects$Agent$Knowledgebases$Documents; + class Resource$Projects$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Agent$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; + class Resource$Projects$Agent$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; + class Resource$Projects$Agent$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; + class Resource$Projects$Agent$Versions { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Versions = Resource$Projects$Agent$Versions; + class Resource$Projects$Answerrecords { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Answerrecords = Resource$Projects$Answerrecords; + class Resource$Projects$Conversationprofiles { + constructor(context) { + this.context = context; + } + clearSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Conversationprofiles = Resource$Projects$Conversationprofiles; + class Resource$Projects$Conversations { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Conversations$Messages(this.context); + this.participants = new Resource$Projects$Conversations$Participants(this.context); + this.suggestions = new Resource$Projects$Conversations$Suggestions(this.context); + } + complete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Conversations = Resource$Projects$Conversations; + class Resource$Projects$Conversations$Messages { + constructor(context) { + this.context = context; + } + batchCreate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/messages:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Conversations$Messages = Resource$Projects$Conversations$Messages; + class Resource$Projects$Conversations$Participants { + constructor(context) { + this.context = context; + this.suggestions = + new Resource$Projects$Conversations$Participants$Suggestions(this.context); + } + analyzeContent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['participant'], + pathParams: ['participant'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Conversations$Participants = Resource$Projects$Conversations$Participants; + class Resource$Projects$Conversations$Participants$Suggestions { + constructor(context) { + this.context = context; + } + compile(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:compile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestArticles(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestFaqAnswers(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestSmartReplies(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Conversations$Participants$Suggestions = Resource$Projects$Conversations$Participants$Suggestions; + class Resource$Projects$Conversations$Suggestions { + constructor(context) { + this.context = context; + } + suggestConversationSummary(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversation'], + pathParams: ['conversation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Conversations$Suggestions = Resource$Projects$Conversations$Suggestions; + class Resource$Projects$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Knowledgebases = Resource$Projects$Knowledgebases; + class Resource$Projects$Knowledgebases$Documents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reload(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Knowledgebases$Documents = Resource$Projects$Knowledgebases$Documents; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Locations$Agent(this.context); + this.answerRecords = new Resource$Projects$Locations$Answerrecords(this.context); + this.conversationProfiles = + new Resource$Projects$Locations$Conversationprofiles(this.context); + this.conversations = new Resource$Projects$Locations$Conversations(this.context); + this.knowledgeBases = new Resource$Projects$Locations$Knowledgebases(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + deleteAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Locations$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Locations$Agent$Environments(this.context); + this.intents = new Resource$Projects$Locations$Agent$Intents(this.context); + this.sessions = new Resource$Projects$Locations$Agent$Sessions(this.context); + this.versions = new Resource$Projects$Locations$Agent$Versions(this.context); + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFulfillment(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getValidationResult(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + train(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateFulfillment(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent = Resource$Projects$Locations$Agent; + class Resource$Projects$Locations$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = + new Resource$Projects$Locations$Agent$Entitytypes$Entities(this.context); + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; + class Resource$Projects$Locations$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes$Entities = Resource$Projects$Locations$Agent$Entitytypes$Entities; + class Resource$Projects$Locations$Agent$Environments { + constructor(context) { + this.context = context; + this.intents = new Resource$Projects$Locations$Agent$Environments$Intents(this.context); + this.users = new Resource$Projects$Locations$Agent$Environments$Users(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHistory(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments = Resource$Projects$Locations$Agent$Environments; + class Resource$Projects$Locations$Agent$Environments$Intents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Intents = Resource$Projects$Locations$Agent$Environments$Intents; + class Resource$Projects$Locations$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = + new Resource$Projects$Locations$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users = Resource$Projects$Locations$Agent$Environments$Users; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = + new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = + new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions = Resource$Projects$Locations$Agent$Environments$Users$Sessions; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Locations$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Intents = Resource$Projects$Locations$Agent$Intents; + class Resource$Projects$Locations$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Locations$Agent$Sessions$Contexts(this.context); + this.entityTypes = + new Resource$Projects$Locations$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions = Resource$Projects$Locations$Agent$Sessions; + class Resource$Projects$Locations$Agent$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Contexts = Resource$Projects$Locations$Agent$Sessions$Contexts; + class Resource$Projects$Locations$Agent$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Sessions$Entitytypes; + class Resource$Projects$Locations$Agent$Versions { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Versions = Resource$Projects$Locations$Agent$Versions; + class Resource$Projects$Locations$Answerrecords { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Answerrecords = Resource$Projects$Locations$Answerrecords; + class Resource$Projects$Locations$Conversationprofiles { + constructor(context) { + this.context = context; + } + clearSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Conversationprofiles = Resource$Projects$Locations$Conversationprofiles; + class Resource$Projects$Locations$Conversations { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Locations$Conversations$Messages(this.context); + this.participants = + new Resource$Projects$Locations$Conversations$Participants(this.context); + this.suggestions = + new Resource$Projects$Locations$Conversations$Suggestions(this.context); + } + complete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Conversations = Resource$Projects$Locations$Conversations; + class Resource$Projects$Locations$Conversations$Messages { + constructor(context) { + this.context = context; + } + batchCreate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/messages:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Messages = Resource$Projects$Locations$Conversations$Messages; + class Resource$Projects$Locations$Conversations$Participants { + constructor(context) { + this.context = context; + this.suggestions = + new Resource$Projects$Locations$Conversations$Participants$Suggestions(this.context); + } + analyzeContent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['participant'], + pathParams: ['participant'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Participants = Resource$Projects$Locations$Conversations$Participants; + class Resource$Projects$Locations$Conversations$Participants$Suggestions { + constructor(context) { + this.context = context; + } + suggestArticles(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestFaqAnswers(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestSmartReplies(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Participants$Suggestions = Resource$Projects$Locations$Conversations$Participants$Suggestions; + class Resource$Projects$Locations$Conversations$Suggestions { + constructor(context) { + this.context = context; + } + suggestConversationSummary(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversation'], + pathParams: ['conversation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Suggestions = Resource$Projects$Locations$Conversations$Suggestions; + class Resource$Projects$Locations$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Locations$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Knowledgebases = Resource$Projects$Locations$Knowledgebases; + class Resource$Projects$Locations$Knowledgebases$Documents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reload(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Knowledgebases$Documents = Resource$Projects$Locations$Knowledgebases$Documents; + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v2beta1 = exports.dialogflow_v2beta1 || (exports.dialogflow_v2beta1 = {})); + + +/***/ }), + +/***/ 3081: +/***/ (function(module, exports, __webpack_require__) { + +/** + * Module dependencies. + */ + +const tty = __webpack_require__(3867); +const util = __webpack_require__(1669); + +/** + * This is the Node.js implementation of `debug()`. + */ + +exports.init = init; +exports.log = log; +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; +exports.destroy = util.deprecate( + () => {}, + 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' +); + +/** + * Colors. + */ + +exports.colors = [6, 2, 3, 4, 5, 1]; + +try { + // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) + // eslint-disable-next-line import/no-extraneous-dependencies + const supportsColor = __webpack_require__(5247); + + if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { + exports.colors = [ + 20, + 21, + 26, + 27, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 56, + 57, + 62, + 63, + 68, + 69, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 92, + 93, + 98, + 99, + 112, + 113, + 128, + 129, + 134, + 135, + 148, + 149, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 178, + 179, + 184, + 185, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 214, + 215, + 220, + 221 + ]; + } +} catch (error) { + // Swallow - we only care if `supports-color` is available; it doesn't have to be. +} + +/** + * Build up the default `inspectOpts` object from the environment variables. + * + * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js + */ + +exports.inspectOpts = Object.keys(process.env).filter(key => { + return /^debug_/i.test(key); +}).reduce((obj, key) => { + // Camel-case + const prop = key + .substring(6) + .toLowerCase() + .replace(/_([a-z])/g, (_, k) => { + return k.toUpperCase(); + }); + + // Coerce string value into JS value + let val = process.env[key]; + if (/^(yes|on|true|enabled)$/i.test(val)) { + val = true; + } else if (/^(no|off|false|disabled)$/i.test(val)) { + val = false; + } else if (val === 'null') { + val = null; + } else { + val = Number(val); + } + + obj[prop] = val; + return obj; +}, {}); + +/** + * Is stdout a TTY? Colored output is enabled when `true`. + */ + +function useColors() { + return 'colors' in exports.inspectOpts ? + Boolean(exports.inspectOpts.colors) : + tty.isatty(process.stderr.fd); +} + +/** + * Adds ANSI color escape codes if enabled. + * + * @api public + */ + +function formatArgs(args) { + const {namespace: name, useColors} = this; + + if (useColors) { + const c = this.color; + const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); + const prefix = ` ${colorCode};1m${name} \u001B[0m`; + + args[0] = prefix + args[0].split('\n').join('\n' + prefix); + args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); + } else { + args[0] = getDate() + name + ' ' + args[0]; + } +} + +function getDate() { + if (exports.inspectOpts.hideDate) { + return ''; + } + return new Date().toISOString() + ' '; +} + +/** + * Invokes `util.format()` with the specified arguments and writes to stderr. + */ + +function log(...args) { + return process.stderr.write(util.format(...args) + '\n'); +} + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + if (namespaces) { + process.env.DEBUG = namespaces; + } else { + // If you set a process.env field to null or undefined, it gets cast to the + // string 'null' or 'undefined'. Just delete instead. + delete process.env.DEBUG; + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ + +function load() { + return process.env.DEBUG; +} + +/** + * Init logic for `debug` instances. + * + * Create a new `inspectOpts` object in case `useColors` is set + * differently for a particular `debug` instance. + */ + +function init(debug) { + debug.inspectOpts = {}; + + const keys = Object.keys(exports.inspectOpts); + for (let i = 0; i < keys.length; i++) { + debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; + } +} + +module.exports = __webpack_require__(6486)(exports); + +const {formatters} = module.exports; + +/** + * Map %o to `util.inspect()`, all on a single line. + */ + +formatters.o = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts) + .split('\n') + .map(str => str.trim()) + .join(' '); +}; + +/** + * Map %O to `util.inspect()`, allowing multiple lines if needed. + */ + +formatters.O = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts); +}; + + +/***/ }), + +/***/ 3088: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.privateca_v1beta1 = exports.privateca_v1 = exports.auth = exports.privateca = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5908); +Object.defineProperty(exports, "privateca_v1", { enumerable: true, get: function () { return v1_1.privateca_v1; } }); +const v1beta1_1 = __webpack_require__(2559); +Object.defineProperty(exports, "privateca_v1beta1", { enumerable: true, get: function () { return v1beta1_1.privateca_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.privateca_v1.Privateca, + v1beta1: v1beta1_1.privateca_v1beta1.Privateca, +}; +function privateca(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('privateca', versionOrOptions, exports.VERSIONS, this); +} +exports.privateca = privateca; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3102: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2012 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.GoogleApis = exports.AuthPlus = void 0; +const apis_1 = __webpack_require__(1442); +const googleapis_common_1 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_1.AuthPlus; } }); +class GoogleApis extends apis_1.GeneratedAPIs { + /** + * GoogleApis constructor. + * + * @example + * ```js + * const GoogleApis = require('googleapis').GoogleApis; + * const google = new GoogleApis(); + * ``` + * + * @param options - Configuration options. + */ + constructor(options) { + super(); + this._discovery = new googleapis_common_1.Discovery({ debug: false, includePrivate: false }); + this.auth = new googleapis_common_1.AuthPlus(); + this._options = {}; + this.options(options); + } + /** + * Obtain a Map of supported APIs, along with included API versions. + */ + getSupportedAPIs() { + const apiMap = {}; + Object.keys(apis_1.APIS).forEach(a => { + apiMap[a] = Object.keys(apis_1.APIS[a]); + }); + return apiMap; + } + /** + * Set options. + * + * @param options - Configuration options. + */ + options(options) { + this._options = options || {}; + } + /** + * Add APIs endpoints to googleapis object + * E.g. googleapis.drive and googleapis.datastore + * + * @param apisToAdd - Apis to be added to this GoogleApis instance. + */ + addAPIs(apisToAdd) { + for (const apiName in apisToAdd) { + // eslint-disable-next-line no-prototype-builtins + if (apisToAdd.hasOwnProperty(apiName)) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + this[apiName] = apisToAdd[apiName].bind(this); + } + } + } + discover(url, callback) { + if (callback) { + this.discoverAsync(url) + .then(() => callback()) + .catch(callback); + } + else { + return this.discoverAsync(url); + } + } + async discoverAsync(url) { + const allApis = await this._discovery.discoverAllAPIs(url); + this.addAPIs(allApis); + } + /** + * Dynamically generate an Endpoint object from a discovery doc. + * + * @param path - Url or file path to discover doc for a single API. + * @param options - Options to configure the Endpoint object generated from the discovery doc. + * @returns A promise that resolves with the configured endpoint. + */ + async discoverAPI(apiPath, options = {}) { + const endpointCreator = await this._discovery.discoverAPI(apiPath); + const ep = endpointCreator(options, this); + ep.google = this; // for drive.google.transporter + return Object.freeze(ep); + } +} +exports.GoogleApis = GoogleApis; + + +/***/ }), + +/***/ 3103: +/***/ (function(__unusedmodule, exports) { + +"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.bigtableadmin_v1 = void 0; +var bigtableadmin_v1; +(function (bigtableadmin_v1) { + /** + * Cloud Bigtable Admin API + * + * Administer your Cloud Bigtable tables and instances. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigtableadmin = google.bigtableadmin('v1'); + * ``` + */ + class Bigtableadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + bigtableadmin_v1.Bigtableadmin = Bigtableadmin; +})(bigtableadmin_v1 = exports.bigtableadmin_v1 || (exports.bigtableadmin_v1 = {})); + + +/***/ }), + +/***/ 3115: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.policysimulator_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var policysimulator_v1beta; +(function (policysimulator_v1beta) { + /** + * Policy Simulator API + * + * Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A `Replay` is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a `Replay`, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const policysimulator = google.policysimulator('v1beta'); + * ``` + */ + class Policysimulator { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.operations = new Resource$Operations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + policysimulator_v1beta.Policysimulator = Policysimulator; + class Resource$Folders { + constructor(context) { + this.context = context; + this.locations = new Resource$Folders$Locations(this.context); + } + } + policysimulator_v1beta.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Folders$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Folders$Locations$Replays(this.context); + } + } + policysimulator_v1beta.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1beta.Resource$Folders$Locations$Orgpolicyviolationspreviews = Resource$Folders$Locations$Orgpolicyviolationspreviews; + class Resource$Folders$Locations$Orgpolicyviolationspreviews$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations = Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Folders$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1beta.Resource$Folders$Locations$Replays = Resource$Folders$Locations$Replays; + class Resource$Folders$Locations$Replays$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Folders$Locations$Replays$Operations = Resource$Folders$Locations$Replays$Operations; + class Resource$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + policysimulator_v1beta.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Organizations$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Organizations$Locations$Replays(this.context); + } + } + policysimulator_v1beta.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1beta.Resource$Organizations$Locations$Orgpolicyviolationspreviews = Resource$Organizations$Locations$Orgpolicyviolationspreviews; + class Resource$Organizations$Locations$Orgpolicyviolationspreviews$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations = Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Organizations$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1beta.Resource$Organizations$Locations$Replays = Resource$Organizations$Locations$Replays; + class Resource$Organizations$Locations$Replays$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Organizations$Locations$Replays$Operations = Resource$Organizations$Locations$Replays$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + policysimulator_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Projects$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Projects$Locations$Replays(this.context); + } + } + policysimulator_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1beta.Resource$Projects$Locations$Orgpolicyviolationspreviews = Resource$Projects$Locations$Orgpolicyviolationspreviews; + class Resource$Projects$Locations$Orgpolicyviolationspreviews$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations = Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Projects$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1beta.Resource$Projects$Locations$Replays = Resource$Projects$Locations$Replays; + class Resource$Projects$Locations$Replays$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; +})(policysimulator_v1beta = exports.policysimulator_v1beta || (exports.policysimulator_v1beta = {})); + + +/***/ }), + +/***/ 3124: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dfareporting_v4 = exports.dfareporting_v3_5 = exports.dfareporting_v3_4 = exports.dfareporting_v3_3 = exports.auth = exports.dfareporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_3_1 = __webpack_require__(2959); +Object.defineProperty(exports, "dfareporting_v3_3", { enumerable: true, get: function () { return v3_3_1.dfareporting_v3_3; } }); +const v3_4_1 = __webpack_require__(5552); +Object.defineProperty(exports, "dfareporting_v3_4", { enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } }); +const v3_5_1 = __webpack_require__(719); +Object.defineProperty(exports, "dfareporting_v3_5", { enumerable: true, get: function () { return v3_5_1.dfareporting_v3_5; } }); +const v4_1 = __webpack_require__(1321); +Object.defineProperty(exports, "dfareporting_v4", { enumerable: true, get: function () { return v4_1.dfareporting_v4; } }); +exports.VERSIONS = { + 'v3.3': v3_3_1.dfareporting_v3_3.Dfareporting, + 'v3.4': v3_4_1.dfareporting_v3_4.Dfareporting, + 'v3.5': v3_5_1.dfareporting_v3_5.Dfareporting, + v4: v4_1.dfareporting_v4.Dfareporting, +}; +function dfareporting(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dfareporting', versionOrOptions, exports.VERSIONS, this); +} +exports.dfareporting = dfareporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3129: +/***/ (function(module) { + +module.exports = require("child_process"); + +/***/ }), + +/***/ 3143: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = withAuthorizationPrefix; + +const atob = __webpack_require__(1368); + +const REGEX_IS_BASIC_AUTH = /^[\w-]+:/; + +function withAuthorizationPrefix(authorization) { + if (/^(basic|bearer|token) /i.test(authorization)) { + return authorization; + } + + try { + if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) { + return `basic ${authorization}`; + } + } catch (error) {} + + if (authorization.split(/\./).length === 3) { + return `bearer ${authorization}`; + } + + return `token ${authorization}`; +} + + +/***/ }), + +/***/ 3166: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dns_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dns_v1beta2; +(function (dns_v1beta2) { + /** + * Cloud DNS API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dns = google.dns('v1beta2'); + * ``` + */ + class Dns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); + this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + this.responsePolicies = new Resource$Responsepolicies(this.context); + this.responsePolicyRules = new Resource$Responsepolicyrules(this.context); + } + } + dns_v1beta2.Dns = Dns; + class Resource$Changes { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Policies = Resource$Policies; + class Resource$Projects { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; + class Resource$Responsepolicies { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Responsepolicies = Resource$Responsepolicies; + class Resource$Responsepolicyrules { + 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dns_v1beta2.Resource$Responsepolicyrules = Resource$Responsepolicyrules; +})(dns_v1beta2 = exports.dns_v1beta2 || (exports.dns_v1beta2 = {})); + + +/***/ }), + +/***/ 3192: +/***/ (function(module) { + +"use strict"; + + +function getParamSize(keySize) { + var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); + return result; +} + +var paramBytesForAlg = { + ES256: getParamSize(256), + ES384: getParamSize(384), + ES512: getParamSize(521) +}; + +function getParamBytesForAlg(alg) { + var paramBytes = paramBytesForAlg[alg]; + if (paramBytes) { + return paramBytes; + } + + throw new Error('Unknown algorithm "' + alg + '"'); +} + +module.exports = getParamBytesForAlg; + + +/***/ }), + +/***/ 3199: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.streetviewpublish_v1 = exports.auth = exports.streetviewpublish = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5240); +Object.defineProperty(exports, "streetviewpublish_v1", { enumerable: true, get: function () { return v1_1.streetviewpublish_v1; } }); +exports.VERSIONS = { + v1: v1_1.streetviewpublish_v1.Streetviewpublish, +}; +function streetviewpublish(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('streetviewpublish', versionOrOptions, exports.VERSIONS, this); +} +exports.streetviewpublish = streetviewpublish; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3208: +/***/ (function(module) { + +// Copyright 2020 The Oppia Authors. All Rights Reserved. +// +// 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. + +const openEvent = 'opened'; +// Github action sends a different type of event. +const openEventGithubActions = 'pull_request_target_opened'; +const reopenEventGithubActions = 'pull_request_target_reopened'; +const editEventGithubActions = 'pull_request_target_edited'; +const reopenEvent = 'pull_request_reopened'; +const PRUnlabelEvent = 'pull_request_unlabeled'; +const PRLabelEvent = 'pull_request_labeled'; +const synchronizeEvent = 'synchronize'; +const closeEvent = 'closed'; +const editEvent = 'pull_request_edited'; +const issuesLabelEvent = 'issues_labeled'; +const issuesAssignedEvent = 'issues_assigned'; +const pushEvent = 'push'; +const pullRequestReviewEvent = 'pr_review'; +const checkCompletedEvent = 'check_completed'; +const periodicCheckEvent = 'periodic-check-event'; +const issueCommentCreatedEvent = 'comment_created'; + +const periodicCheck = 'periodic-check'; +const claCheck = 'cla-check'; +const claCheckGithubAction = 'cla-check-github-action'; +const datastoreLabelCheck = 'datastore-label-check'; +const prLabelCheck = 'pr-label-check'; +const hotfixLabelCheck = 'hotfix-label-check'; +const prTemplateCheck = 'pr-template-check'; +// This check is required in re-open events as well to +// prevent user from reopening the PR. +const branchCheck = 'branch-check'; +const wipCheck = 'wip-check'; +const assigneeCheck = 'assignee-check'; +const mergeConflictCheck = 'merge-conflict-check'; +const allMergeConflictCheck = 'all-merge-conflict-check'; +const jobCheck = 'job-check'; +const cronJobCheck = 'cron-job-check'; +const modelCheck = 'model-check'; +const issuesLabelCheck = 'issues-labeled-check'; +const issuesAssignedCheck = 'issues-assigned-check'; +const forcePushCheck = 'force-push-check'; +const pullRequestReviewCheck = 'pr-review-check'; +const ciFailureCheck = 'ci-failure-check'; +const updateWithDevelopCheck = 'update-with-develop-check'; +const respondToReviewCheck = 'respond-to-review-check'; +const staleBuildLabelCheck = 'stale-build-label-check'; +const dontMergeLabelCheck = 'dont-merge-label-check'; + +const checksWhitelist = { + // eslint-disable-next-line quote-props + 'oppia-android': { + [openEvent]: [claCheck], + [reopenEvent]: [], + [openEventGithubActions]: [claCheckGithubAction], + [reopenEventGithubActions]: [claCheckGithubAction], + [PRLabelEvent]: [], + [synchronizeEvent]: [], + [closeEvent]: [], + [editEvent]: [], + [issuesLabelEvent]: [], + [pullRequestReviewEvent]: [pullRequestReviewCheck], + [issueCommentCreatedEvent]: [respondToReviewCheck], + }, + // eslint-disable-next-line quote-props + 'oppia': { + [openEvent]: [ + assigneeCheck, + claCheck, + branchCheck, + jobCheck, + cronJobCheck, + modelCheck, + prTemplateCheck + ], + [openEventGithubActions]: [claCheckGithubAction, wipCheck], + [reopenEventGithubActions]: [claCheckGithubAction, wipCheck], + [editEventGithubActions]: [wipCheck], + [reopenEvent]: [ + branchCheck, + jobCheck, + cronJobCheck, + modelCheck, + prTemplateCheck + ], + [PRLabelEvent]: [prLabelCheck, hotfixLabelCheck], + [synchronizeEvent]: [ + mergeConflictCheck, + jobCheck, + cronJobCheck, + modelCheck, + ], + [closeEvent]: [allMergeConflictCheck, updateWithDevelopCheck], + [editEvent]: [wipCheck], + [issuesLabelEvent]: [issuesLabelCheck], + [issuesAssignedEvent]: [issuesAssignedCheck], + [PRUnlabelEvent]: [datastoreLabelCheck, dontMergeLabelCheck, + staleBuildLabelCheck], + [pushEvent]: [forcePushCheck], + [periodicCheckEvent]: [periodicCheck], + [pullRequestReviewEvent]: [pullRequestReviewCheck], + [checkCompletedEvent]: [ciFailureCheck], + [issueCommentCreatedEvent]: [respondToReviewCheck] + }, + // eslint-disable-next-line quote-props + 'oppiabot': { + [openEvent]: [claCheck], + [reopenEvent]: [], + [openEventGithubActions]: [claCheckGithubAction], + [reopenEventGithubActions]: [claCheckGithubAction], + [synchronizeEvent]: [mergeConflictCheck], + [closeEvent]: [allMergeConflictCheck], + [editEvent]: [], + [issuesLabelEvent]: [], + [issuesAssignedEvent]: [], + [pushEvent]: [], + [pullRequestReviewEvent]: [pullRequestReviewCheck], + [issueCommentCreatedEvent]: [respondToReviewCheck], + }, +}; + +const blacklistedAuthors = ['translatewiki']; + +module.exports.openEvent = openEvent; +module.exports.reopenEvent = reopenEvent; +module.exports.PRUnlabelEvent = PRUnlabelEvent; +module.exports.PRLabelEvent = PRLabelEvent; +module.exports.synchronizeEvent = synchronizeEvent; +module.exports.closeEvent = closeEvent; +module.exports.editEvent = editEvent; +module.exports.issuesLabelEvent = issuesLabelEvent; +module.exports.issuesAssignedEvent = issuesAssignedEvent; +module.exports.pushEvent = pushEvent; +module.exports.pullRequestReviewEvent = pullRequestReviewEvent; +module.exports.checkCompletedEvent = checkCompletedEvent; +module.exports.periodicCheckEvent = periodicCheckEvent; +module.exports.issueCommentCreatedEvent = issueCommentCreatedEvent; + +module.exports.periodicCheck = periodicCheck; +module.exports.claCheck = claCheck; +module.exports.claCheckGithubAction = claCheckGithubAction; +module.exports.branchCheck = branchCheck; +module.exports.wipCheck = wipCheck; +module.exports.assigneeCheck = assigneeCheck; +module.exports.mergeConflictCheck = mergeConflictCheck; +module.exports.allMergeConflictCheck = allMergeConflictCheck; +module.exports.jobCheck = jobCheck; +module.exports.cronJobCheck = cronJobCheck; +module.exports.modelCheck = modelCheck; +module.exports.issuesLabelCheck = issuesLabelCheck; +module.exports.issuesAssignedCheck = issuesAssignedCheck; +module.exports.datastoreLabelCheck = datastoreLabelCheck; +module.exports.prLabelCheck = prLabelCheck; +module.exports.hotfixLabelCheck = hotfixLabelCheck; +module.exports.prTemplateCheck = prTemplateCheck; +module.exports.forcePushCheck = forcePushCheck; +module.exports.pullRequestReviewCheck = pullRequestReviewCheck; +module.exports.ciFailureCheck = ciFailureCheck; +module.exports.updateWithDevelopCheck = updateWithDevelopCheck; +module.exports.respondToReviewCheck = respondToReviewCheck; +module.exports.staleBuildLabelCheck = staleBuildLabelCheck; +module.exports.dontMergeLabelCheck = dontMergeLabelCheck; + +module.exports.getBlacklistedAuthors = function() { + return blacklistedAuthors; +}; + +module.exports.getChecksWhitelist = function() { + return checksWhitelist; +}; + + +/***/ }), + +/***/ 3212: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.sqladmin_v1beta4 = exports.sqladmin_v1 = exports.auth = exports.sqladmin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6683); +Object.defineProperty(exports, "sqladmin_v1", { enumerable: true, get: function () { return v1_1.sqladmin_v1; } }); +const v1beta4_1 = __webpack_require__(3562); +Object.defineProperty(exports, "sqladmin_v1beta4", { enumerable: true, get: function () { return v1beta4_1.sqladmin_v1beta4; } }); +exports.VERSIONS = { + v1: v1_1.sqladmin_v1.Sqladmin, + v1beta4: v1beta4_1.sqladmin_v1beta4.Sqladmin, +}; +function sqladmin(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sqladmin', versionOrOptions, exports.VERSIONS, this); +} +exports.sqladmin = sqladmin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3223: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.acmedns_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var acmedns_v1; +(function (acmedns_v1) { + /** + * ACME DNS API + * + * Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const acmedns = google.acmedns('v1'); + * ``` + */ + class Acmedns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acmeChallengeSets = new Resource$Acmechallengesets(this.context); + } + } + acmedns_v1.Acmedns = Acmedns; + class Resource$Acmechallengesets { + 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://acmedns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/acmeChallengeSets/{rootDomain}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['rootDomain'], + pathParams: ['rootDomain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rotateChallenges(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://acmedns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/acmeChallengeSets/{rootDomain}:rotateChallenges').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['rootDomain'], + pathParams: ['rootDomain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + acmedns_v1.Resource$Acmechallengesets = Resource$Acmechallengesets; +})(acmedns_v1 = exports.acmedns_v1 || (exports.acmedns_v1 = {})); + + +/***/ }), + +/***/ 3228: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dataform_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dataform_v1beta1; +(function (dataform_v1beta1) { + /** + * Dataform API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dataform = google.dataform('v1beta1'); + * ``` + */ + class Dataform { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dataform_v1beta1.Dataform = Dataform; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + dataform_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.repositories = new Resource$Projects$Locations$Repositories(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Repositories { + constructor(context) { + this.context = context; + this.compilationResults = + new Resource$Projects$Locations$Repositories$Compilationresults(this.context); + this.releaseConfigs = + new Resource$Projects$Locations$Repositories$Releaseconfigs(this.context); + this.workflowConfigs = + new Resource$Projects$Locations$Repositories$Workflowconfigs(this.context); + this.workflowInvocations = + new Resource$Projects$Locations$Repositories$Workflowinvocations(this.context); + this.workspaces = new Resource$Projects$Locations$Repositories$Workspaces(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchRemoteBranches(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:fetchRemoteBranches').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Compilationresults { + 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/compilationResults').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/compilationResults').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations$Repositories$Compilationresults = Resource$Projects$Locations$Repositories$Compilationresults; + class Resource$Projects$Locations$Repositories$Releaseconfigs { + 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releaseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releaseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations$Repositories$Releaseconfigs = Resource$Projects$Locations$Repositories$Releaseconfigs; + class Resource$Projects$Locations$Repositories$Workflowconfigs { + 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workflowConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workflowConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations$Repositories$Workflowconfigs = Resource$Projects$Locations$Repositories$Workflowconfigs; + class Resource$Projects$Locations$Repositories$Workflowinvocations { + 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workflowInvocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workflowInvocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations$Repositories$Workflowinvocations = Resource$Projects$Locations$Repositories$Workflowinvocations; + class Resource$Projects$Locations$Repositories$Workspaces { + constructor(context) { + this.context = context; + } + commit(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchFileDiff(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:fetchFileDiff').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchFileGitStatuses(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:fetchFileGitStatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchGitAheadBehind(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:fetchGitAheadBehind').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + installNpmPackages(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:installNpmPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + makeDirectory(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:makeDirectory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveDirectory(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:moveDirectory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveFile(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:moveFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pull(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + push(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryDirectoryContents(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:queryDirectoryContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + readFile(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:readFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeDirectory(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:removeDirectory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeFile(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:removeFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + writeFile(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://dataform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+workspace}:writeFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workspace'], + pathParams: ['workspace'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataform_v1beta1.Resource$Projects$Locations$Repositories$Workspaces = Resource$Projects$Locations$Repositories$Workspaces; +})(dataform_v1beta1 = exports.dataform_v1beta1 || (exports.dataform_v1beta1 = {})); + + +/***/ }), + +/***/ 3258: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.chromeuxreport_v1 = exports.auth = exports.chromeuxreport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7127); +Object.defineProperty(exports, "chromeuxreport_v1", { enumerable: true, get: function () { return v1_1.chromeuxreport_v1; } }); +exports.VERSIONS = { + v1: v1_1.chromeuxreport_v1.Chromeuxreport, +}; +function chromeuxreport(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('chromeuxreport', versionOrOptions, exports.VERSIONS, this); +} +exports.chromeuxreport = chromeuxreport; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3265: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = getPage + +const deprecate = __webpack_require__(6370) +const getPageLinks = __webpack_require__(4577) +const HttpError = __webpack_require__(2297) + +function getPage (octokit, link, which, headers) { + deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) + const url = getPageLinks(link)[which] + + if (!url) { + const urlError = new HttpError(`No ${which} page found`, 404) + return Promise.reject(urlError) + } + + const requestOptions = { + url, + headers: applyAcceptHeader(link, headers) + } + + const promise = octokit.request(requestOptions) + + return promise +} + +function applyAcceptHeader (res, headers) { + const previous = res.headers && res.headers['x-github-media-type'] + + if (!previous || (headers && headers.accept)) { + return headers + } + headers = headers || {} + headers.accept = 'application/vnd.' + previous + .replace('; param=', '.') + .replace('; format=', '+') + + return headers +} + + +/***/ }), + +/***/ 3269: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.run_v2 = exports.run_v1beta1 = exports.run_v1alpha1 = exports.run_v1 = exports.auth = exports.run = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7923); +Object.defineProperty(exports, "run_v1", { enumerable: true, get: function () { return v1_1.run_v1; } }); +const v1alpha1_1 = __webpack_require__(8238); +Object.defineProperty(exports, "run_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.run_v1alpha1; } }); +const v1beta1_1 = __webpack_require__(6088); +Object.defineProperty(exports, "run_v1beta1", { enumerable: true, get: function () { return v1beta1_1.run_v1beta1; } }); +const v2_1 = __webpack_require__(7327); +Object.defineProperty(exports, "run_v2", { enumerable: true, get: function () { return v2_1.run_v2; } }); +exports.VERSIONS = { + v1: v1_1.run_v1.Run, + v1alpha1: v1alpha1_1.run_v1alpha1.Run, + v1beta1: v1beta1_1.run_v1beta1.Run, + v2: v2_1.run_v2.Run, +}; +function run(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('run', versionOrOptions, exports.VERSIONS, this); +} +exports.run = run; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3274: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.managedidentities_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var managedidentities_v1beta1; +(function (managedidentities_v1beta1) { + /** + * Managed Service for Microsoft Active Directory API + * + * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const managedidentities = google.managedidentities('v1beta1'); + * ``` + */ + class Managedidentities { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + managedidentities_v1beta1.Managedidentities = Managedidentities; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + managedidentities_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.domains = new Resource$Projects$Locations$Global$Domains(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + this.peerings = new Resource$Projects$Locations$Global$Peerings(this.context); + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Domains { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Global$Domains$Backups(this.context); + this.sqlIntegrations = + new Resource$Projects$Locations$Global$Domains$Sqlintegrations(this.context); + } + attachTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + checkMigrationPermission(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+domain}:checkMigrationPermission').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disableMigration(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+domain}:disableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + domainJoinMachine(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+domain}:domainJoinMachine').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableMigration(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+domain}:enableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + extendSchema(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+domain}:extendSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getLdapssettings(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reconfigureTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAdminPassword(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateLdapssettings(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateTrust(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Domains$Backups { + 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Domains$Backups = Resource$Projects$Locations$Global$Domains$Backups; + class Resource$Projects$Locations$Global$Domains$Sqlintegrations { + 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Domains$Sqlintegrations = Resource$Projects$Locations$Global$Domains$Sqlintegrations; + class Resource$Projects$Locations$Global$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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; + class Resource$Projects$Locations$Global$Peerings { + 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; +})(managedidentities_v1beta1 = exports.managedidentities_v1beta1 || (exports.managedidentities_v1beta1 = {})); + + +/***/ }), + +/***/ 3285: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// Copyright 2014 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.IAMAuth = void 0; +class IAMAuth { + /** + * IAM credentials. + * + * @param selector the iam authority selector + * @param token the token + * @constructor + */ + constructor(selector, token) { + this.selector = selector; + this.token = token; + this.selector = selector; + this.token = token; + } + /** + * Acquire the HTTP headers required to make an authenticated request. + */ + getRequestHeaders() { + return { + 'x-goog-iam-authority-selector': this.selector, + 'x-goog-iam-authorization-token': this.token, + }; + } +} +exports.IAMAuth = IAMAuth; +//# sourceMappingURL=iam.js.map + +/***/ }), + +/***/ 3294: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.apigateway_v1beta = exports.apigateway_v1 = exports.auth = exports.apigateway = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8000); +Object.defineProperty(exports, "apigateway_v1", { enumerable: true, get: function () { return v1_1.apigateway_v1; } }); +const v1beta_1 = __webpack_require__(4822); +Object.defineProperty(exports, "apigateway_v1beta", { enumerable: true, get: function () { return v1beta_1.apigateway_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.apigateway_v1.Apigateway, + v1beta: v1beta_1.apigateway_v1beta.Apigateway, +}; +function apigateway(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apigateway', versionOrOptions, exports.VERSIONS, this); +} +exports.apigateway = apigateway; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3300: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.appengine_v1beta = exports.appengine_v1alpha = exports.appengine_v1 = exports.auth = exports.appengine = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5840); +Object.defineProperty(exports, "appengine_v1", { enumerable: true, get: function () { return v1_1.appengine_v1; } }); +const v1alpha_1 = __webpack_require__(765); +Object.defineProperty(exports, "appengine_v1alpha", { enumerable: true, get: function () { return v1alpha_1.appengine_v1alpha; } }); +const v1beta_1 = __webpack_require__(8867); +Object.defineProperty(exports, "appengine_v1beta", { enumerable: true, get: function () { return v1beta_1.appengine_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.appengine_v1.Appengine, + v1alpha: v1alpha_1.appengine_v1alpha.Appengine, + v1beta: v1beta_1.appengine_v1beta.Appengine, +}; +function appengine(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('appengine', versionOrOptions, exports.VERSIONS, this); +} +exports.appengine = appengine; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3313: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.clouderrorreporting_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var clouderrorreporting_v1beta1; +(function (clouderrorreporting_v1beta1) { + /** + * Error Reporting API + * + * Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const clouderrorreporting = google.clouderrorreporting('v1beta1'); + * ``` + */ + class Clouderrorreporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + clouderrorreporting_v1beta1.Clouderrorreporting = Clouderrorreporting; + class Resource$Projects { + constructor(context) { + this.context = context; + this.events = new Resource$Projects$Events(this.context); + this.groups = new Resource$Projects$Groups(this.context); + this.groupStats = new Resource$Projects$Groupstats(this.context); + } + deleteEvents(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://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Events { + 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://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Events = Resource$Projects$Events; + class Resource$Projects$Groups { + 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://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupName'], + pathParams: ['groupName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Groups = Resource$Projects$Groups; + class Resource$Projects$Groupstats { + 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://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Groupstats = Resource$Projects$Groupstats; +})(clouderrorreporting_v1beta1 = exports.clouderrorreporting_v1beta1 || (exports.clouderrorreporting_v1beta1 = {})); + + +/***/ }), + +/***/ 3317: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.script_v1 = exports.auth = exports.script = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8448); +Object.defineProperty(exports, "script_v1", { enumerable: true, get: function () { return v1_1.script_v1; } }); +exports.VERSIONS = { + v1: v1_1.script_v1.Script, +}; +function script(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('script', versionOrOptions, exports.VERSIONS, this); +} +exports.script = script; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3327: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports.default = _default; + +/***/ }), + +/***/ 3330: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = __webpack_require__(1669).inspect; + + +/***/ }), + +/***/ 3331: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.IdTokenClient = void 0; +const oauth2client_1 = __webpack_require__(4449); +class IdTokenClient extends oauth2client_1.OAuth2Client { + /** + * Google ID Token client + * + * Retrieve access token from the metadata server. + * See: https://developers.google.com/compute/docs/authentication + */ + constructor(options) { + super(); + this.targetAudience = options.targetAudience; + this.idTokenProvider = options.idTokenProvider; + } + async getRequestMetadataAsync( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + url) { + if (!this.credentials.id_token || + (this.credentials.expiry_date || 0) < Date.now()) { + const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); + this.credentials = { + id_token: idToken, + expiry_date: this.getIdTokenExpiryDate(idToken), + }; + } + const headers = { + Authorization: 'Bearer ' + this.credentials.id_token, + }; + return { headers }; + } + getIdTokenExpiryDate(idToken) { + const payloadB64 = idToken.split('.')[1]; + if (payloadB64) { + const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); + return payload.exp * 1000; + } + } +} +exports.IdTokenClient = IdTokenClient; +//# sourceMappingURL=idtokenclient.js.map + +/***/ }), + +/***/ 3336: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = hasLastPage + +const deprecate = __webpack_require__(6370) +const getPageLinks = __webpack_require__(4577) + +function hasLastPage (link) { + deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) + return getPageLinks(link).last +} + + +/***/ }), + +/***/ 3345: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.verifiedaccess_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var verifiedaccess_v2; +(function (verifiedaccess_v2) { + /** + * Chrome Verified Access API + * + * API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network + * + * @example + * ```js + * const {google} = require('googleapis'); + * const verifiedaccess = google.verifiedaccess('v2'); + * ``` + */ + class Verifiedaccess { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.challenge = new Resource$Challenge(this.context); + } + } + verifiedaccess_v2.Verifiedaccess = Verifiedaccess; + class Resource$Challenge { + constructor(context) { + this.context = context; + } + generate(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://verifiedaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/challenge:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verify(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://verifiedaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + verifiedaccess_v2.Resource$Challenge = Resource$Challenge; +})(verifiedaccess_v2 = exports.verifiedaccess_v2 || (exports.verifiedaccess_v2 = {})); + + +/***/ }), + +/***/ 3348: +/***/ (function(module) { + +"use strict"; + + +const isWin = process.platform === 'win32'; + +function notFoundError(original, syscall) { + return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { + code: 'ENOENT', + errno: 'ENOENT', + syscall: `${syscall} ${original.command}`, + path: original.command, + spawnargs: original.args, + }); +} + +function hookChildProcess(cp, parsed) { + if (!isWin) { + return; + } + + const originalEmit = cp.emit; + + cp.emit = function (name, arg1) { + // If emitting "exit" event and exit code is 1, we need to check if + // the command exists and emit an "error" instead + // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 + if (name === 'exit') { + const err = verifyENOENT(arg1, parsed, 'spawn'); + + if (err) { + return originalEmit.call(cp, 'error', err); + } + } + + return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params + }; +} + +function verifyENOENT(status, parsed) { + if (isWin && status === 1 && !parsed.file) { + return notFoundError(parsed.original, 'spawn'); + } + + return null; +} + +function verifyENOENTSync(status, parsed) { + if (isWin && status === 1 && !parsed.file) { + return notFoundError(parsed.original, 'spawnSync'); + } + + return null; +} + +module.exports = { + hookChildProcess, + verifyENOENT, + verifyENOENTSync, + notFoundError, +}; + + +/***/ }), + +/***/ 3355: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.apikeys_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var apikeys_v2; +(function (apikeys_v2) { + /** + * API Keys API + * + * Manages the API keys associated with developer projects. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apikeys = google.apikeys('v2'); + * ``` + */ + class Apikeys { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.keys = new Resource$Keys(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + apikeys_v2.Apikeys = Apikeys; + class Resource$Keys { + constructor(context) { + this.context = context; + } + lookupKey(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://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/keys:lookupKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apikeys_v2.Resource$Keys = Resource$Keys; + class Resource$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://apikeys.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apikeys_v2.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apikeys_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.keys = new Resource$Projects$Locations$Keys(this.context); + } + } + apikeys_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Keys { + 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://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apikeys.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apikeys.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getKeyString(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://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/keyString').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apikeys.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apikeys.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apikeys.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apikeys_v2.Resource$Projects$Locations$Keys = Resource$Projects$Locations$Keys; +})(apikeys_v2 = exports.apikeys_v2 || (exports.apikeys_v2 = {})); + + +/***/ }), + +/***/ 3374: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebaseml_v1beta2 = exports.firebaseml_v1 = exports.auth = exports.firebaseml = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8157); +Object.defineProperty(exports, "firebaseml_v1", { enumerable: true, get: function () { return v1_1.firebaseml_v1; } }); +const v1beta2_1 = __webpack_require__(5529); +Object.defineProperty(exports, "firebaseml_v1beta2", { enumerable: true, get: function () { return v1beta2_1.firebaseml_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.firebaseml_v1.Firebaseml, + v1beta2: v1beta2_1.firebaseml_v1beta2.Firebaseml, +}; +function firebaseml(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebaseml', versionOrOptions, exports.VERSIONS, this); +} +exports.firebaseml = firebaseml; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3386: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudsearch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudsearch_v1; +(function (cloudsearch_v1) { + /** + * Cloud Search API + * + * Cloud Search provides cloud-based search capabilities over Google Workspace data. The Cloud Search API allows indexing of non-Google Workspace data into Cloud Search. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudsearch = google.cloudsearch('v1'); + * ``` + */ + class Cloudsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.debug = new Resource$Debug(this.context); + this.indexing = new Resource$Indexing(this.context); + this.media = new Resource$Media(this.context); + this.operations = new Resource$Operations(this.context); + this.query = new Resource$Query(this.context); + this.settings = new Resource$Settings(this.context); + this.stats = new Resource$Stats(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudsearch_v1.Cloudsearch = Cloudsearch; + class Resource$Debug { + constructor(context) { + this.context = context; + this.datasources = new Resource$Debug$Datasources(this.context); + this.identitysources = new Resource$Debug$Identitysources(this.context); + } + } + cloudsearch_v1.Resource$Debug = Resource$Debug; + class Resource$Debug$Datasources { + constructor(context) { + this.context = context; + this.items = new Resource$Debug$Datasources$Items(this.context); + } + } + cloudsearch_v1.Resource$Debug$Datasources = Resource$Debug$Datasources; + class Resource$Debug$Datasources$Items { + constructor(context) { + this.context = context; + this.unmappedids = new Resource$Debug$Datasources$Items$Unmappedids(this.context); + } + checkAccess(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+name}:checkAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchByViewUrl(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+name}/items:searchByViewUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Datasources$Items = Resource$Debug$Datasources$Items; + class Resource$Debug$Datasources$Items$Unmappedids { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Datasources$Items$Unmappedids = Resource$Debug$Datasources$Items$Unmappedids; + class Resource$Debug$Identitysources { + constructor(context) { + this.context = context; + this.items = new Resource$Debug$Identitysources$Items(this.context); + this.unmappedids = new Resource$Debug$Identitysources$Unmappedids(this.context); + } + } + cloudsearch_v1.Resource$Debug$Identitysources = Resource$Debug$Identitysources; + class Resource$Debug$Identitysources$Items { + constructor(context) { + this.context = context; + } + listForunmappedidentity(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/items:forunmappedidentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Identitysources$Items = Resource$Debug$Identitysources$Items; + class Resource$Debug$Identitysources$Unmappedids { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Identitysources$Unmappedids = Resource$Debug$Identitysources$Unmappedids; + class Resource$Indexing { + constructor(context) { + this.context = context; + this.datasources = new Resource$Indexing$Datasources(this.context); + } + } + cloudsearch_v1.Resource$Indexing = Resource$Indexing; + class Resource$Indexing$Datasources { + constructor(context) { + this.context = context; + this.items = new Resource$Indexing$Datasources$Items(this.context); + } + deleteSchema(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSchema(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSchema(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Indexing$Datasources = Resource$Indexing$Datasources; + class Resource$Indexing$Datasources$Items { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteQueueItems(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:deleteQueueItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + index(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:index').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + poll(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:poll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + push(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unreserve(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:unreserve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Indexing$Datasources$Items = Resource$Indexing$Datasources$Items; + class Resource$Media { + constructor(context) { + this.context = context; + } + upload(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Media = Resource$Media; + class Resource$Operations { + constructor(context) { + this.context = context; + this.lro = new Resource$Operations$Lro(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://cloudsearch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Operations = Resource$Operations; + class Resource$Operations$Lro { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/lro').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Operations$Lro = Resource$Operations$Lro; + class Resource$Query { + constructor(context) { + this.context = context; + this.sources = new Resource$Query$Sources(this.context); + } + search(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggest(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Query = Resource$Query; + class Resource$Query$Sources { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Query$Sources = Resource$Query$Sources; + class Resource$Settings { + constructor(context) { + this.context = context; + this.datasources = new Resource$Settings$Datasources(this.context); + this.searchapplications = new Resource$Settings$Searchapplications(this.context); + } + getCustomer(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCustomer(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Settings = Resource$Settings; + class Resource$Settings$Datasources { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Settings$Datasources = Resource$Settings$Datasources; + class Resource$Settings$Searchapplications { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Settings$Searchapplications = Resource$Settings$Searchapplications; + class Resource$Stats { + constructor(context) { + this.context = context; + this.index = new Resource$Stats$Index(this.context); + this.query = new Resource$Stats$Query(this.context); + this.session = new Resource$Stats$Session(this.context); + this.user = new Resource$Stats$User(this.context); + } + getIndex(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/index').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getQuery(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSearchapplication(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/searchapplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSession(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/session').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getUser(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/user').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats = Resource$Stats; + class Resource$Stats$Index { + constructor(context) { + this.context = context; + this.datasources = new Resource$Stats$Index$Datasources(this.context); + } + } + cloudsearch_v1.Resource$Stats$Index = Resource$Stats$Index; + class Resource$Stats$Index$Datasources { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/index/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Index$Datasources = Resource$Stats$Index$Datasources; + class Resource$Stats$Query { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$Query$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$Query = Resource$Stats$Query; + class Resource$Stats$Query$Searchapplications { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/query/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Query$Searchapplications = Resource$Stats$Query$Searchapplications; + class Resource$Stats$Session { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$Session$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$Session = Resource$Stats$Session; + class Resource$Stats$Session$Searchapplications { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/session/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Session$Searchapplications = Resource$Stats$Session$Searchapplications; + class Resource$Stats$User { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$User$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$User = Resource$Stats$User; + class Resource$Stats$User$Searchapplications { + 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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/user/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$User$Searchapplications = Resource$Stats$User$Searchapplications; + class Resource$V1 { + constructor(context) { + this.context = context; + } + initializeCustomer(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://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1:initializeCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudsearch_v1.Resource$V1 = Resource$V1; +})(cloudsearch_v1 = exports.cloudsearch_v1 || (exports.cloudsearch_v1 = {})); + + +/***/ }), + +/***/ 3405: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.testing_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var testing_v1; +(function (testing_v1) { + /** + * Cloud Testing API + * + * Allows developers to run automated tests for their mobile applications on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const testing = google.testing('v1'); + * ``` + */ + class Testing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.applicationDetailService = new Resource$Applicationdetailservice(this.context); + this.projects = new Resource$Projects(this.context); + this.testEnvironmentCatalog = new Resource$Testenvironmentcatalog(this.context); + } + } + testing_v1.Testing = Testing; + class Resource$Applicationdetailservice { + constructor(context) { + this.context = context; + } + getApkDetails(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://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/applicationDetailService/getApkDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + testing_v1.Resource$Applicationdetailservice = Resource$Applicationdetailservice; + class Resource$Projects { + constructor(context) { + this.context = context; + this.testMatrices = new Resource$Projects$Testmatrices(this.context); + } + } + testing_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Testmatrices { + 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://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'testMatrixId'], + pathParams: ['projectId', 'testMatrixId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/testMatrices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/testMatrices/{testMatrixId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'testMatrixId'], + pathParams: ['projectId', 'testMatrixId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + testing_v1.Resource$Projects$Testmatrices = Resource$Projects$Testmatrices; + class Resource$Testenvironmentcatalog { + 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://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/testEnvironmentCatalog/{environmentType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['environmentType'], + pathParams: ['environmentType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + testing_v1.Resource$Testenvironmentcatalog = Resource$Testenvironmentcatalog; +})(testing_v1 = exports.testing_v1 || (exports.testing_v1 = {})); + + +/***/ }), + +/***/ 3411: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(__webpack_require__(8078)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!(0, _validate.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +var _default = stringify; +exports.default = _default; + +/***/ }), + +/***/ 3415: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinessbusinesscalls_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinessbusinesscalls_v1; +(function (mybusinessbusinesscalls_v1) { + /** + * My Business Business Calls API + * + * The My Business Business Calls API manages business calls information of a location on Google and collect insights like the number of missed calls to their location. Additional information about Business calls can be found at https://support.google.com/business/answer/9688285?p=call_history. If the Google Business Profile links to a Google Ads account and call history is turned on, calls that last longer than a specific time, and that can be attributed to an ad interaction, will show in the linked Google Ads account under the "Calls from Ads" conversion. If smart bidding and call conversions are used in the optimization strategy, there could be a change in ad spend. Learn more about smart bidding. To view and perform actions on a location's calls, you need to be a `OWNER`, `CO_OWNER` or `MANAGER` of the location. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessbusinesscalls = google.mybusinessbusinesscalls('v1'); + * ``` + */ + class Mybusinessbusinesscalls { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + } + } + mybusinessbusinesscalls_v1.Mybusinessbusinesscalls = Mybusinessbusinesscalls; + class Resource$Locations { + constructor(context) { + this.context = context; + this.businesscallsinsights = new Resource$Locations$Businesscallsinsights(this.context); + } + getBusinesscallssettings(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://mybusinessbusinesscalls.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBusinesscallssettings(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://mybusinessbusinesscalls.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinesscalls_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Businesscallsinsights { + 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://mybusinessbusinesscalls.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/businesscallsinsights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinesscalls_v1.Resource$Locations$Businesscallsinsights = Resource$Locations$Businesscallsinsights; +})(mybusinessbusinesscalls_v1 = exports.mybusinessbusinesscalls_v1 || (exports.mybusinessbusinesscalls_v1 = {})); + + +/***/ }), + +/***/ 3435: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.appsactivity_v1 = exports.auth = exports.appsactivity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9556); +Object.defineProperty(exports, "appsactivity_v1", { enumerable: true, get: function () { return v1_1.appsactivity_v1; } }); +exports.VERSIONS = { + v1: v1_1.appsactivity_v1.Appsactivity, +}; +function appsactivity(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('appsactivity', versionOrOptions, exports.VERSIONS, this); +} +exports.appsactivity = appsactivity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3453: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gameservices_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gameservices_v1; +(function (gameservices_v1) { + /** + * Game Services API + * + * Deploy and manage infrastructure for global multiplayer gaming experiences. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gameservices = google.gameservices('v1'); + * ``` + */ + class Gameservices { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gameservices_v1.Gameservices = Gameservices; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gameservices_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.gameServerDeployments = + new Resource$Projects$Locations$Gameserverdeployments(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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gameservices_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Gameserverdeployments { + constructor(context) { + this.context = context; + } + 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gameservices_v1.Resource$Projects$Locations$Gameserverdeployments = Resource$Projects$Locations$Gameserverdeployments; + 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gameservices.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gameservices_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gameservices_v1 = exports.gameservices_v1 || (exports.gameservices_v1 = {})); + + +/***/ }), + +/***/ 3475: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sql_v1beta4 = 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 = __webpack_require__(927); +var sql_v1beta4; +(function (sql_v1beta4) { + /** + * Cloud SQL Admin API + * + * API for Cloud SQL database instance management + * + * @example + * const {google} = require('googleapis'); + * const sql = google.sql('v1beta4'); + * + * @namespace sql + * @type {Function} + * @version v1beta4 + * @variation v1beta4 + * @param {object=} options Options for Sql + */ + class Sql { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.backupRuns = new Resource$Backupruns(this.context); + this.databases = new Resource$Databases(this.context); + this.flags = new Resource$Flags(this.context); + this.instances = new Resource$Instances(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.sslCerts = new Resource$Sslcerts(this.context); + this.tiers = new Resource$Tiers(this.context); + this.users = new Resource$Users(this.context); + } + } + sql_v1beta4.Sql = Sql; + class Resource$Backupruns { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Backupruns = Resource$Backupruns; + class Resource$Databases { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Databases = Resource$Databases; + class Resource$Flags { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Flags = Resource$Flags; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addServerCa(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clone(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + demoteMaster(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + failover(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listServerCas(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promoteReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetSslConfig(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restoreBackup(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rotateServerCa(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + truncateLog(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Instances = Resource$Instances; + class Resource$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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + } + } + sql_v1beta4.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + } + rescheduleMaintenance(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startExternalSync(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyExternalSyncSettings(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Sslcerts { + constructor(context) { + this.context = context; + } + createEphemeral(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Sslcerts = Resource$Sslcerts; + class Resource$Tiers { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Tiers = Resource$Tiers; + class Resource$Users { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sql_v1beta4.Resource$Users = Resource$Users; +})(sql_v1beta4 = exports.sql_v1beta4 || (exports.sql_v1beta4 = {})); + + +/***/ }), + +/***/ 3478: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.policytroubleshooter_v1beta = exports.policytroubleshooter_v1 = exports.auth = exports.policytroubleshooter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8001); +Object.defineProperty(exports, "policytroubleshooter_v1", { enumerable: true, get: function () { return v1_1.policytroubleshooter_v1; } }); +const v1beta_1 = __webpack_require__(5675); +Object.defineProperty(exports, "policytroubleshooter_v1beta", { enumerable: true, get: function () { return v1beta_1.policytroubleshooter_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.policytroubleshooter_v1.Policytroubleshooter, + v1beta: v1beta_1.policytroubleshooter_v1beta.Policytroubleshooter, +}; +function policytroubleshooter(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('policytroubleshooter', versionOrOptions, exports.VERSIONS, this); +} +exports.policytroubleshooter = policytroubleshooter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3479: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2015 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.JWTAccess = void 0; +const jws = __webpack_require__(4979); +const LRU = __webpack_require__(8702); +const DEFAULT_HEADER = { + alg: 'RS256', + typ: 'JWT', +}; +class JWTAccess { + /** + * JWTAccess service account credentials. + * + * Create a new access token by using the credential to create a new JWT token + * that's recognized as the access token. + * + * @param email the service account email address. + * @param key the private key that will be used to sign the token. + * @param keyId the ID of the private key used to sign the token. + */ + constructor(email, key, keyId, eagerRefreshThresholdMillis) { + this.cache = new LRU({ + max: 500, + maxAge: 60 * 60 * 1000, + }); + this.email = email; + this.key = key; + this.keyId = keyId; + this.eagerRefreshThresholdMillis = + eagerRefreshThresholdMillis !== null && eagerRefreshThresholdMillis !== void 0 ? eagerRefreshThresholdMillis : 5 * 60 * 1000; + } + /** + * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url + * + * @param url The URI being authorized. + * @param scopes The scope or scopes being authorized + * @returns A string that returns the cached key. + */ + getCachedKey(url, scopes) { + let cacheKey = url; + if (scopes && Array.isArray(scopes) && scopes.length) { + cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`; + } + else if (typeof scopes === 'string') { + cacheKey = url ? `${url}_${scopes}` : scopes; + } + if (!cacheKey) { + throw Error('Scopes or url must be provided'); + } + return cacheKey; + } + /** + * Get a non-expired access token, after refreshing if necessary. + * + * @param url The URI being authorized. + * @param additionalClaims An object with a set of additional claims to + * include in the payload. + * @returns An object that includes the authorization header. + */ + getRequestHeaders(url, additionalClaims, scopes) { + // Return cached authorization headers, unless we are within + // eagerRefreshThresholdMillis ms of them expiring: + const key = this.getCachedKey(url, scopes); + const cachedToken = this.cache.get(key); + const now = Date.now(); + if (cachedToken && + cachedToken.expiration - now > this.eagerRefreshThresholdMillis) { + return cachedToken.headers; + } + const iat = Math.floor(Date.now() / 1000); + const exp = JWTAccess.getExpirationTime(iat); + let defaultClaims; + // Turn scopes into space-separated string + if (Array.isArray(scopes)) { + scopes = scopes.join(' '); + } + // If scopes are specified, sign with scopes + if (scopes) { + defaultClaims = { + iss: this.email, + sub: this.email, + scope: scopes, + exp, + iat, + }; + } + else { + defaultClaims = { + iss: this.email, + sub: this.email, + aud: url, + exp, + iat, + }; + } + // if additionalClaims are provided, ensure they do not collide with + // other required claims. + if (additionalClaims) { + for (const claim in defaultClaims) { + if (additionalClaims[claim]) { + throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); + } + } + } + const header = this.keyId + ? { ...DEFAULT_HEADER, kid: this.keyId } + : DEFAULT_HEADER; + const payload = Object.assign(defaultClaims, additionalClaims); + // Sign the jwt and add it to the cache + const signedJWT = jws.sign({ header, payload, secret: this.key }); + const headers = { Authorization: `Bearer ${signedJWT}` }; + this.cache.set(key, { + expiration: exp * 1000, + headers, + }); + return headers; + } + /** + * Returns an expiration time for the JWT token. + * + * @param iat The issued at time for the JWT. + * @returns An expiration time for the JWT. + */ + static getExpirationTime(iat) { + const exp = iat + 3600; // 3600 seconds = 1 hour + return exp; + } + /** + * Create a JWTAccess credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + reject(new Error('Must pass in a stream containing the service account auth settings.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('data', chunk => (s += chunk)) + .on('error', reject) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (err) { + reject(err); + } + }); + }); + } +} +exports.JWTAccess = JWTAccess; +//# sourceMappingURL=jwtaccess.js.map + +/***/ }), + +/***/ 3485: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firestore_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firestore_v1beta2; +(function (firestore_v1beta2) { + /** + * Cloud Firestore API + * + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firestore = google.firestore('v1beta2'); + * ``` + */ + class Firestore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firestore_v1beta2.Firestore = Firestore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Databases(this.context); + } + } + firestore_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { + constructor(context) { + this.context = context; + this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); + } + exportDocuments(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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importDocuments(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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firestore_v1beta2.Resource$Projects$Databases = Resource$Projects$Databases; + class Resource$Projects$Databases$Collectiongroups { + constructor(context) { + this.context = context; + this.fields = new Resource$Projects$Databases$Collectiongroups$Fields(this.context); + this.indexes = new Resource$Projects$Databases$Collectiongroups$Indexes(this.context); + } + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups = Resource$Projects$Databases$Collectiongroups; + class Resource$Projects$Databases$Collectiongroups$Fields { + 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; + class Resource$Projects$Databases$Collectiongroups$Indexes { + 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; +})(firestore_v1beta2 = exports.firestore_v1beta2 || (exports.firestore_v1beta2 = {})); + + +/***/ }), + +/***/ 3489: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.videointelligence_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var videointelligence_v1beta2; +(function (videointelligence_v1beta2) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1beta2'); + * ``` + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1beta2.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(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://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + videointelligence_v1beta2.Resource$Videos = Resource$Videos; +})(videointelligence_v1beta2 = exports.videointelligence_v1beta2 || (exports.videointelligence_v1beta2 = {})); + + +/***/ }), + +/***/ 3497: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var deprecation = __webpack_require__(7692); +var once = _interopDefault(__webpack_require__(6049)); + +const logOnce = once(deprecation => console.warn(deprecation)); +/** + * Error with extra properties to help with debugging + */ + +class RequestError extends Error { + constructor(message, statusCode, options) { + super(message); // Maintains proper stack trace (only available on V8) + + /* istanbul ignore next */ + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + + this.name = "HttpError"; + this.status = statusCode; + Object.defineProperty(this, "code", { + get() { + logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); + return statusCode; + } + + }); + this.headers = options.headers || {}; // redact request credentials without mutating original request options + + const requestCopy = Object.assign({}, options.request); + + if (options.request.headers.authorization) { + requestCopy.headers = Object.assign({}, options.request.headers, { + authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") + }); + } + + requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit + // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications + .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended + // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header + .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); + this.request = requestCopy; + } + +} + +exports.RequestError = RequestError; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 3498: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(__webpack_require__(6417)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports.default = _default; + +/***/ }), + +/***/ 3523: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var register = __webpack_require__(9280); +var addHook = __webpack_require__(2510); +var removeHook = __webpack_require__(5866); + +// bind with array of arguments: https://stackoverflow.com/a/21792913 +var bind = Function.bind; +var bindable = bind.bind(bind); + +function bindApi(hook, state, name) { + var removeHookRef = bindable(removeHook, null).apply( + null, + name ? [state, name] : [state] + ); + hook.api = { remove: removeHookRef }; + hook.remove = removeHookRef; + ["before", "error", "after", "wrap"].forEach(function (kind) { + var args = name ? [state, kind, name] : [state, kind]; + hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args); + }); +} + +function HookSingular() { + var singularHookName = "h"; + var singularHookState = { + registry: {}, + }; + var singularHook = register.bind(null, singularHookState, singularHookName); + bindApi(singularHook, singularHookState, singularHookName); + return singularHook; +} + +function HookCollection() { + var state = { + registry: {}, + }; + + var hook = register.bind(null, state); + bindApi(hook, state); + + return hook; +} + +var collectionHookDeprecationMessageDisplayed = false; +function Hook() { + if (!collectionHookDeprecationMessageDisplayed) { + console.warn( + '[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4' + ); + collectionHookDeprecationMessageDisplayed = true; + } + return HookCollection(); +} + +Hook.Singular = HookSingular.bind(); +Hook.Collection = HookCollection.bind(); + +module.exports = Hook; +// expose constructors as a named property for TypeScript +module.exports.Hook = Hook; +module.exports.Singular = Hook.Singular; +module.exports.Collection = Hook.Collection; + + +/***/ }), + +/***/ 3530: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudresourcemanager_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudresourcemanager_v1beta1; +(function (cloudresourcemanager_v1beta1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); + * ``` + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudresourcemanager_v1beta1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Organizations { + 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/organizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudresourcemanager_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Projects { + 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAncestry(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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudresourcemanager_v1beta1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1beta1 = exports.cloudresourcemanager_v1beta1 || (exports.cloudresourcemanager_v1beta1 = {})); + + +/***/ }), + +/***/ 3537: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.sasportal_v1alpha1 = exports.auth = exports.sasportal = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(5772); +Object.defineProperty(exports, "sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.sasportal_v1alpha1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.sasportal_v1alpha1.Sasportal, +}; +function sasportal(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sasportal', versionOrOptions, exports.VERSIONS, this); +} +exports.sasportal = sasportal; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3556: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.policysimulator_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var policysimulator_v1beta1; +(function (policysimulator_v1beta1) { + /** + * Policy Simulator API + * + * Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A `Replay` is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a `Replay`, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const policysimulator = google.policysimulator('v1beta1'); + * ``` + */ + class Policysimulator { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.operations = new Resource$Operations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + policysimulator_v1beta1.Policysimulator = Policysimulator; + class Resource$Folders { + constructor(context) { + this.context = context; + this.locations = new Resource$Folders$Locations(this.context); + } + } + policysimulator_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Folders$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Folders$Locations$Replays(this.context); + } + } + policysimulator_v1beta1.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1beta1.Resource$Folders$Locations$Orgpolicyviolationspreviews = Resource$Folders$Locations$Orgpolicyviolationspreviews; + class Resource$Folders$Locations$Orgpolicyviolationspreviews$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations = Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Folders$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1beta1.Resource$Folders$Locations$Replays = Resource$Folders$Locations$Replays; + class Resource$Folders$Locations$Replays$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Folders$Locations$Replays$Operations = Resource$Folders$Locations$Replays$Operations; + class Resource$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + policysimulator_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Organizations$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Organizations$Locations$Replays(this.context); + } + } + policysimulator_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1beta1.Resource$Organizations$Locations$Orgpolicyviolationspreviews = Resource$Organizations$Locations$Orgpolicyviolationspreviews; + class Resource$Organizations$Locations$Orgpolicyviolationspreviews$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations = Resource$Organizations$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Organizations$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1beta1.Resource$Organizations$Locations$Replays = Resource$Organizations$Locations$Replays; + class Resource$Organizations$Locations$Replays$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Organizations$Locations$Replays$Operations = Resource$Organizations$Locations$Replays$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + policysimulator_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.orgPolicyViolationsPreviews = + new Resource$Projects$Locations$Orgpolicyviolationspreviews(this.context); + this.replays = new Resource$Projects$Locations$Replays(this.context); + } + } + policysimulator_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Orgpolicyviolationspreviews { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations(this.context); + } + } + policysimulator_v1beta1.Resource$Projects$Locations$Orgpolicyviolationspreviews = Resource$Projects$Locations$Orgpolicyviolationspreviews; + class Resource$Projects$Locations$Orgpolicyviolationspreviews$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations = Resource$Projects$Locations$Orgpolicyviolationspreviews$Operations; + class Resource$Projects$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Replays$Operations(this.context); + } + } + policysimulator_v1beta1.Resource$Projects$Locations$Replays = Resource$Projects$Locations$Replays; + class Resource$Projects$Locations$Replays$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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policysimulator_v1beta1.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; +})(policysimulator_v1beta1 = exports.policysimulator_v1beta1 || (exports.policysimulator_v1beta1 = {})); + + +/***/ }), + +/***/ 3558: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = hasPreviousPage + +const deprecate = __webpack_require__(6370) +const getPageLinks = __webpack_require__(4577) + +function hasPreviousPage (link) { + deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) + return getPageLinks(link).prev +} + + +/***/ }), + +/***/ 3562: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sqladmin_v1beta4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sqladmin_v1beta4; +(function (sqladmin_v1beta4) { + /** + * Cloud SQL Admin API + * + * API for Cloud SQL database instance management + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1beta4'); + * ``` + */ + class Sqladmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.backupRuns = new Resource$Backupruns(this.context); + this.connect = new Resource$Connect(this.context); + this.databases = new Resource$Databases(this.context); + this.flags = new Resource$Flags(this.context); + this.instances = new Resource$Instances(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.sslCerts = new Resource$Sslcerts(this.context); + this.tiers = new Resource$Tiers(this.context); + this.users = new Resource$Users(this.context); + } + } + sqladmin_v1beta4.Sqladmin = Sqladmin; + class Resource$Backupruns { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Backupruns = Resource$Backupruns; + class Resource$Connect { + constructor(context) { + this.context = context; + } + generateEphemeralCert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Connect = Resource$Connect; + class Resource$Databases { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Databases = Resource$Databases; + class Resource$Flags { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Flags = Resource$Flags; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addServerCa(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clone(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + demoteMaster(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + failover(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listServerCas(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promoteReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetSslConfig(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restoreBackup(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rotateServerCa(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + truncateLog(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Instances = Resource$Instances; + class Resource$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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + } + } + sqladmin_v1beta4.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + } + getDiskShrinkConfig(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + performDiskShrink(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rescheduleMaintenance(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetReplicaSize(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startExternalSync(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyExternalSyncSettings(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Sslcerts { + constructor(context) { + this.context = context; + } + createEphemeral(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Sslcerts = Resource$Sslcerts; + class Resource$Tiers { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Tiers = Resource$Tiers; + class Resource$Users { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users/{name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'name'], + pathParams: ['instance', 'name', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1beta4.Resource$Users = Resource$Users; +})(sqladmin_v1beta4 = exports.sqladmin_v1beta4 || (exports.sqladmin_v1beta4 = {})); + + +/***/ }), + +/***/ 3597: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2018 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.request = exports.instance = exports.Gaxios = exports.GaxiosError = void 0; +const gaxios_1 = __webpack_require__(5830); +Object.defineProperty(exports, "Gaxios", { enumerable: true, get: function () { return gaxios_1.Gaxios; } }); +var common_1 = __webpack_require__(2259); +Object.defineProperty(exports, "GaxiosError", { enumerable: true, get: function () { return common_1.GaxiosError; } }); +/** + * The default instance used when the `request` method is directly + * invoked. + */ +exports.instance = new gaxios_1.Gaxios(); +/** + * Make an HTTP request using the given options. + * @param opts Options for the request + */ +async function request(opts) { + return exports.instance.request(opts); +} +exports.request = request; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 3632: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.oslogin_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var oslogin_v1alpha; +(function (oslogin_v1alpha) { + /** + * Cloud OS Login API + * + * You can use OS Login to manage access to your VM instances using IAM roles. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const oslogin = google.oslogin('v1alpha'); + * ``` + */ + class Oslogin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + oslogin_v1alpha.Oslogin = Oslogin; + class Resource$Users { + constructor(context) { + this.context = context; + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); + } + getLoginProfile(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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importSshPublicKey(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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oslogin_v1alpha.Resource$Users = Resource$Users; + class Resource$Users$Projects { + 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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oslogin_v1alpha.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { + 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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oslogin_v1alpha.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1alpha = exports.oslogin_v1alpha || (exports.oslogin_v1alpha = {})); + + +/***/ }), + +/***/ 3641: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.indexing_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var indexing_v3; +(function (indexing_v3) { + /** + * Indexing API + * + * Notifies Google when your web pages change. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const indexing = google.indexing('v3'); + * ``` + */ + class Indexing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.urlNotifications = new Resource$Urlnotifications(this.context); + } + } + indexing_v3.Indexing = Indexing; + class Resource$Urlnotifications { + constructor(context) { + this.context = context; + } + getMetadata(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://indexing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/urlNotifications/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(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://indexing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/urlNotifications:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + indexing_v3.Resource$Urlnotifications = Resource$Urlnotifications; +})(indexing_v3 = exports.indexing_v3 || (exports.indexing_v3 = {})); + + +/***/ }), + +/***/ 3649: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = getLastPage + +const getPage = __webpack_require__(3265) + +function getLastPage (octokit, link, headers) { + return getPage(octokit, link, 'last', headers) +} + + +/***/ }), + +/***/ 3668: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.AuthClient = void 0; +// Copyright 2017 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. +const googleauth_1 = __webpack_require__(8948); +Object.defineProperty(exports, "GoogleAuth", { enumerable: true, get: function () { return googleauth_1.GoogleAuth; } }); +var authclient_1 = __webpack_require__(5616); +Object.defineProperty(exports, "AuthClient", { enumerable: true, get: function () { return authclient_1.AuthClient; } }); +var computeclient_1 = __webpack_require__(4310); +Object.defineProperty(exports, "Compute", { enumerable: true, get: function () { return computeclient_1.Compute; } }); +var envDetect_1 = __webpack_require__(4813); +Object.defineProperty(exports, "GCPEnv", { enumerable: true, get: function () { return envDetect_1.GCPEnv; } }); +var iam_1 = __webpack_require__(3285); +Object.defineProperty(exports, "IAMAuth", { enumerable: true, get: function () { return iam_1.IAMAuth; } }); +var idtokenclient_1 = __webpack_require__(3331); +Object.defineProperty(exports, "IdTokenClient", { enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } }); +var jwtaccess_1 = __webpack_require__(3479); +Object.defineProperty(exports, "JWTAccess", { enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } }); +var jwtclient_1 = __webpack_require__(2484); +Object.defineProperty(exports, "JWT", { enumerable: true, get: function () { return jwtclient_1.JWT; } }); +var impersonated_1 = __webpack_require__(2893); +Object.defineProperty(exports, "Impersonated", { enumerable: true, get: function () { return impersonated_1.Impersonated; } }); +var oauth2client_1 = __webpack_require__(4449); +Object.defineProperty(exports, "CodeChallengeMethod", { enumerable: true, get: function () { return oauth2client_1.CodeChallengeMethod; } }); +Object.defineProperty(exports, "OAuth2Client", { enumerable: true, get: function () { return oauth2client_1.OAuth2Client; } }); +var loginticket_1 = __webpack_require__(2207); +Object.defineProperty(exports, "LoginTicket", { enumerable: true, get: function () { return loginticket_1.LoginTicket; } }); +var refreshclient_1 = __webpack_require__(8846); +Object.defineProperty(exports, "UserRefreshClient", { enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } }); +var awsclient_1 = __webpack_require__(7549); +Object.defineProperty(exports, "AwsClient", { enumerable: true, get: function () { return awsclient_1.AwsClient; } }); +var identitypoolclient_1 = __webpack_require__(6345); +Object.defineProperty(exports, "IdentityPoolClient", { enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } }); +var externalclient_1 = __webpack_require__(992); +Object.defineProperty(exports, "ExternalAccountClient", { enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } }); +var baseexternalclient_1 = __webpack_require__(48); +Object.defineProperty(exports, "BaseExternalAccountClient", { enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } }); +var downscopedclient_1 = __webpack_require__(9640); +Object.defineProperty(exports, "DownscopedClient", { enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } }); +var pluggable_auth_client_1 = __webpack_require__(282); +Object.defineProperty(exports, "PluggableAuthClient", { enumerable: true, get: function () { return pluggable_auth_client_1.PluggableAuthClient; } }); +var transporters_1 = __webpack_require__(2974); +Object.defineProperty(exports, "DefaultTransporter", { enumerable: true, get: function () { return transporters_1.DefaultTransporter; } }); +const auth = new googleauth_1.GoogleAuth(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 3695: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.digitalassetlinks_v1 = exports.auth = exports.digitalassetlinks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7861); +Object.defineProperty(exports, "digitalassetlinks_v1", { enumerable: true, get: function () { return v1_1.digitalassetlinks_v1; } }); +exports.VERSIONS = { + v1: v1_1.digitalassetlinks_v1.Digitalassetlinks, +}; +function digitalassetlinks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('digitalassetlinks', versionOrOptions, exports.VERSIONS, this); +} +exports.digitalassetlinks = digitalassetlinks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3716: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.serviceconsumermanagement_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var serviceconsumermanagement_v1beta1; +(function (serviceconsumermanagement_v1beta1) { + /** + * Service Consumer Management API + * + * Manages the service consumers of a Service Infrastructure service. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const serviceconsumermanagement = google.serviceconsumermanagement('v1beta1'); + * ``` + */ + class Serviceconsumermanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceconsumermanagement_v1beta1.Serviceconsumermanagement = Serviceconsumermanagement; + class Resource$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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); + } + } + serviceconsumermanagement_v1beta1.Resource$Services = Resource$Services; + class Resource$Services$Consumerquotametrics { + constructor(context) { + this.context = context; + this.limits = new Resource$Services$Consumerquotametrics$Limits(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importProducerOverrides(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics = Resource$Services$Consumerquotametrics; + class Resource$Services$Consumerquotametrics$Limits { + constructor(context) { + this.context = context; + this.producerOverrides = + new Resource$Services$Consumerquotametrics$Limits$Produceroverrides(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; + class Resource$Services$Consumerquotametrics$Limits$Produceroverrides { + 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits$Produceroverrides = Resource$Services$Consumerquotametrics$Limits$Produceroverrides; +})(serviceconsumermanagement_v1beta1 = exports.serviceconsumermanagement_v1beta1 || (exports.serviceconsumermanagement_v1beta1 = {})); + + +/***/ }), + +/***/ 3726: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.deploymentmanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var deploymentmanager_v2; +(function (deploymentmanager_v2) { + /** + * Cloud Deployment Manager V2 API + * + * The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const deploymentmanager = google.deploymentmanager('v2'); + * ``` + */ + class Deploymentmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.deployments = new Resource$Deployments(this.context); + this.manifests = new Resource$Manifests(this.context); + this.operations = new Resource$Operations(this.context); + this.resources = new Resource$Resources(this.context); + this.types = new Resource$Types(this.context); + } + } + deploymentmanager_v2.Deploymentmanager = Deploymentmanager; + class Resource$Deployments { + constructor(context) { + this.context = context; + } + cancelPreview(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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + deploymentmanager_v2.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { + 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + deploymentmanager_v2.Resource$Manifests = Resource$Manifests; + class Resource$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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + deploymentmanager_v2.Resource$Operations = Resource$Operations; + class Resource$Resources { + 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + deploymentmanager_v2.Resource$Resources = Resource$Resources; + class Resource$Types { + 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/deploymentmanager/v2/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + deploymentmanager_v2.Resource$Types = Resource$Types; +})(deploymentmanager_v2 = exports.deploymentmanager_v2 || (exports.deploymentmanager_v2 = {})); + + +/***/ }), + +/***/ 3727: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.tasks_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var tasks_v1; +(function (tasks_v1) { + /** + * Google Tasks API + * + * The Google Tasks API lets you manage your tasks and task lists. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tasks = google.tasks('v1'); + * ``` + */ + class Tasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.tasklists = new Resource$Tasklists(this.context); + this.tasks = new Resource$Tasks(this.context); + } + } + tasks_v1.Tasks = Tasks; + class Resource$Tasklists { + 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tasks_v1.Resource$Tasklists = Resource$Tasklists; + class Resource$Tasks { + constructor(context) { + this.context = context; + } + clear(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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tasks_v1.Resource$Tasks = Resource$Tasks; +})(tasks_v1 = exports.tasks_v1 || (exports.tasks_v1 = {})); + + +/***/ }), + +/***/ 3752: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.assuredworkloads_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var assuredworkloads_v1beta1; +(function (assuredworkloads_v1beta1) { + /** + * Assured Workloads API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const assuredworkloads = google.assuredworkloads('v1beta1'); + * ``` + */ + class Assuredworkloads { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + assuredworkloads_v1beta1.Assuredworkloads = Assuredworkloads; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + assuredworkloads_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Locations$Operations(this.context); + this.workloads = new Resource$Organizations$Locations$Workloads(this.context); + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Organizations$Locations$Workloads { + constructor(context) { + this.context = context; + this.organizations = + new Resource$Organizations$Locations$Workloads$Organizations(this.context); + this.violations = + new Resource$Organizations$Locations$Workloads$Violations(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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restrictAllowedResources(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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restrictAllowedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads = Resource$Organizations$Locations$Workloads; + class Resource$Organizations$Locations$Workloads$Organizations { + constructor(context) { + this.context = context; + this.locations = + new Resource$Organizations$Locations$Workloads$Organizations$Locations(this.context); + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Organizations = Resource$Organizations$Locations$Workloads$Organizations; + class Resource$Organizations$Locations$Workloads$Organizations$Locations { + constructor(context) { + this.context = context; + this.workloads = + new Resource$Organizations$Locations$Workloads$Organizations$Locations$Workloads(this.context); + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Organizations$Locations = Resource$Organizations$Locations$Workloads$Organizations$Locations; + class Resource$Organizations$Locations$Workloads$Organizations$Locations$Workloads { + constructor(context) { + this.context = context; + } + analyzeWorkloadMove(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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+source}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['source', 'target'], + pathParams: ['source', 'target'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Organizations$Locations$Workloads = Resource$Organizations$Locations$Workloads$Organizations$Locations$Workloads; + class Resource$Organizations$Locations$Workloads$Violations { + constructor(context) { + this.context = context; + } + acknowledge(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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.organizations = new Resource$Projects$Organizations(this.context); + } + } + assuredworkloads_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Organizations$Locations(this.context); + } + } + assuredworkloads_v1beta1.Resource$Projects$Organizations = Resource$Projects$Organizations; + class Resource$Projects$Organizations$Locations { + constructor(context) { + this.context = context; + this.workloads = new Resource$Projects$Organizations$Locations$Workloads(this.context); + } + } + assuredworkloads_v1beta1.Resource$Projects$Organizations$Locations = Resource$Projects$Organizations$Locations; + class Resource$Projects$Organizations$Locations$Workloads { + constructor(context) { + this.context = context; + } + analyzeWorkloadMove(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://assuredworkloads.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+project}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'target'], + pathParams: ['project', 'target'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + assuredworkloads_v1beta1.Resource$Projects$Organizations$Locations$Workloads = Resource$Projects$Organizations$Locations$Workloads; +})(assuredworkloads_v1beta1 = exports.assuredworkloads_v1beta1 || (exports.assuredworkloads_v1beta1 = {})); + + +/***/ }), + +/***/ 3768: +/***/ (function(module) { + +"use strict"; + +module.exports = function (x) { + var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt(); + var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt(); + + if (x[x.length - 1] === lf) { + x = x.slice(0, x.length - 1); + } + + if (x[x.length - 1] === cr) { + x = x.slice(0, x.length - 1); + } + + return x; +}; + + +/***/ }), + +/***/ 3769: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.essentialcontacts_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var essentialcontacts_v1; +(function (essentialcontacts_v1) { + /** + * Essential Contacts API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const essentialcontacts = google.essentialcontacts('v1'); + * ``` + */ + class Essentialcontacts { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + essentialcontacts_v1.Essentialcontacts = Essentialcontacts; + class Resource$Folders { + constructor(context) { + this.context = context; + this.contacts = new Resource$Folders$Contacts(this.context); + } + } + essentialcontacts_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Contacts { + constructor(context) { + this.context = context; + } + compute(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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendTestMessage(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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + essentialcontacts_v1.Resource$Folders$Contacts = Resource$Folders$Contacts; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.contacts = new Resource$Organizations$Contacts(this.context); + } + } + essentialcontacts_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Contacts { + constructor(context) { + this.context = context; + } + compute(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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendTestMessage(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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + essentialcontacts_v1.Resource$Organizations$Contacts = Resource$Organizations$Contacts; + class Resource$Projects { + constructor(context) { + this.context = context; + this.contacts = new Resource$Projects$Contacts(this.context); + } + } + essentialcontacts_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Contacts { + constructor(context) { + this.context = context; + } + compute(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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendTestMessage(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://essentialcontacts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + essentialcontacts_v1.Resource$Projects$Contacts = Resource$Projects$Contacts; +})(essentialcontacts_v1 = exports.essentialcontacts_v1 || (exports.essentialcontacts_v1 = {})); + + +/***/ }), + +/***/ 3773: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dns_v2beta1 = exports.dns_v2 = exports.dns_v1beta2 = exports.dns_v1 = exports.auth = exports.dns = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1611); +Object.defineProperty(exports, "dns_v1", { enumerable: true, get: function () { return v1_1.dns_v1; } }); +const v1beta2_1 = __webpack_require__(3166); +Object.defineProperty(exports, "dns_v1beta2", { enumerable: true, get: function () { return v1beta2_1.dns_v1beta2; } }); +const v2_1 = __webpack_require__(2441); +Object.defineProperty(exports, "dns_v2", { enumerable: true, get: function () { return v2_1.dns_v2; } }); +const v2beta1_1 = __webpack_require__(6873); +Object.defineProperty(exports, "dns_v2beta1", { enumerable: true, get: function () { return v2beta1_1.dns_v2beta1; } }); +exports.VERSIONS = { + v1: v1_1.dns_v1.Dns, + v1beta2: v1beta2_1.dns_v1beta2.Dns, + v2: v2_1.dns_v2.Dns, + v2beta1: v2beta1_1.dns_v2beta1.Dns, +}; +function dns(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dns', versionOrOptions, exports.VERSIONS, this); +} +exports.dns = dns; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3777: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = getFirstPage + +const getPage = __webpack_require__(3265) + +function getFirstPage (octokit, link, headers) { + return getPage(octokit, link, 'first', headers) +} + + +/***/ }), + +/***/ 3781: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.websecurityscanner_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var websecurityscanner_v1; +(function (websecurityscanner_v1) { + /** + * Web Security Scanner API + * + * Scans your Compute and App Engine apps for common web vulnerabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const websecurityscanner = google.websecurityscanner('v1'); + * ``` + */ + class Websecurityscanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + websecurityscanner_v1.Websecurityscanner = Websecurityscanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + websecurityscanner_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Projects$Scanconfigs$Scanruns { + constructor(context) { + this.context = context; + this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); + this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); + this.findingTypeStats = + new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(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://websecurityscanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; + class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { + 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://websecurityscanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1 = exports.websecurityscanner_v1 || (exports.websecurityscanner_v1 = {})); + + +/***/ }), + +/***/ 3794: +/***/ (function(module, exports, __webpack_require__) { + +/* eslint-env browser */ + +/** + * This is the web browser implementation of `debug()`. + */ + +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; +exports.storage = localstorage(); +exports.destroy = (() => { + let warned = false; + + return () => { + if (!warned) { + warned = true; + console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); + } + }; +})(); + +/** + * Colors. + */ + +exports.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33' +]; + +/** + * Currently only WebKit-based Web Inspectors, Firefox >= v31, + * and the Firebug extension (any Firefox version) are known + * to support "%c" CSS customizations. + * + * TODO: add a `localStorage` variable to explicitly enable/disable colors + */ + +// eslint-disable-next-line complexity +function useColors() { + // NB: In an Electron preload script, document will be defined but not fully + // initialized. Since we know we're in Chrome, we'll just detect this case + // explicitly + if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { + return true; + } + + // Internet Explorer and Edge do not support colors. + if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { + return false; + } + + // Is webkit? http://stackoverflow.com/a/16459606/376773 + // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // Is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // Is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // Double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); +} + +/** + * Colorize log arguments if enabled. + * + * @api public + */ + +function formatArgs(args) { + args[0] = (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + args[0] + + (this.useColors ? '%c ' : ' ') + + '+' + module.exports.humanize(this.diff); + + if (!this.useColors) { + return; + } + + const c = 'color: ' + this.color; + args.splice(1, 0, c, 'color: inherit'); + + // The final "%c" is somewhat tricky, because there could be other + // arguments passed either before or after the %c, so we need to + // figure out the correct index to insert the CSS into + let index = 0; + let lastC = 0; + args[0].replace(/%[a-zA-Z%]/g, match => { + if (match === '%%') { + return; + } + index++; + if (match === '%c') { + // We only are interested in the *last* %c + // (the user may have provided their own) + lastC = index; + } + }); + + args.splice(lastC, 0, c); +} + +/** + * Invokes `console.debug()` when available. + * No-op when `console.debug` is not a "function". + * If `console.debug` is not available, falls back + * to `console.log`. + * + * @api public + */ +exports.log = console.debug || console.log || (() => {}); + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + try { + if (namespaces) { + exports.storage.setItem('debug', namespaces); + } else { + exports.storage.removeItem('debug'); + } + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ +function load() { + let r; + try { + r = exports.storage.getItem('debug'); + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } + + // If debug isn't set in LS, and we're in Electron, try to load $DEBUG + if (!r && typeof process !== 'undefined' && 'env' in process) { + r = process.env.DEBUG; + } + + return r; +} + +/** + * Localstorage attempts to return the localstorage. + * + * This is necessary because safari throws + * when a user disables cookies/localstorage + * and you attempt to access it. + * + * @return {LocalStorage} + * @api private + */ + +function localstorage() { + try { + // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context + // The Browser also has localStorage in the global context. + return localStorage; + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +module.exports = __webpack_require__(6486)(exports); + +const {formatters} = module.exports; + +/** + * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + */ + +formatters.j = function (v) { + try { + return JSON.stringify(v); + } catch (error) { + return '[UnexpectedJSONParseError]: ' + error.message; + } +}; + + +/***/ }), + +/***/ 3798: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Cross-browser support for logging in a web application. + * + * @author David I. Lehn + * + * Copyright (c) 2008-2013 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +/* LOG API */ +module.exports = forge.log = forge.log || {}; + +/** + * Application logging system. + * + * Each logger level available as it's own function of the form: + * forge.log.level(category, args...) + * The category is an arbitrary string, and the args are the same as + * Firebug's console.log API. By default the call will be output as: + * 'LEVEL [category] , args[1], ...' + * This enables proper % formatting via the first argument. + * Each category is enabled by default but can be enabled or disabled with + * the setCategoryEnabled() function. + */ +// list of known levels +forge.log.levels = [ + 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max']; +// info on the levels indexed by name: +// index: level index +// name: uppercased display name +var sLevelInfo = {}; +// list of loggers +var sLoggers = []; +/** + * Standard console logger. If no console support is enabled this will + * remain null. Check before using. + */ +var sConsoleLogger = null; + +// logger flags +/** + * Lock the level at the current value. Used in cases where user config may + * set the level such that only critical messages are seen but more verbose + * messages are needed for debugging or other purposes. + */ +forge.log.LEVEL_LOCKED = (1 << 1); +/** + * Always call log function. By default, the logging system will check the + * message level against logger.level before calling the log function. This + * flag allows the function to do its own check. + */ +forge.log.NO_LEVEL_CHECK = (1 << 2); +/** + * Perform message interpolation with the passed arguments. "%" style + * fields in log messages will be replaced by arguments as needed. Some + * loggers, such as Firebug, may do this automatically. The original log + * message will be available as 'message' and the interpolated version will + * be available as 'fullMessage'. + */ +forge.log.INTERPOLATE = (1 << 3); + +// setup each log level +for(var i = 0; i < forge.log.levels.length; ++i) { + var level = forge.log.levels[i]; + sLevelInfo[level] = { + index: i, + name: level.toUpperCase() + }; +} + +/** + * Message logger. Will dispatch a message to registered loggers as needed. + * + * @param message message object + */ +forge.log.logMessage = function(message) { + var messageLevelIndex = sLevelInfo[message.level].index; + for(var i = 0; i < sLoggers.length; ++i) { + var logger = sLoggers[i]; + if(logger.flags & forge.log.NO_LEVEL_CHECK) { + logger.f(message); + } else { + // get logger level + var loggerLevelIndex = sLevelInfo[logger.level].index; + // check level + if(messageLevelIndex <= loggerLevelIndex) { + // message critical enough, call logger + logger.f(logger, message); + } + } + } +}; + +/** + * Sets the 'standard' key on a message object to: + * "LEVEL [category] " + message + * + * @param message a message log object + */ +forge.log.prepareStandard = function(message) { + if(!('standard' in message)) { + message.standard = + sLevelInfo[message.level].name + + //' ' + +message.timestamp + + ' [' + message.category + '] ' + + message.message; + } +}; + +/** + * Sets the 'full' key on a message object to the original message + * interpolated via % formatting with the message arguments. + * + * @param message a message log object. + */ +forge.log.prepareFull = function(message) { + if(!('full' in message)) { + // copy args and insert message at the front + var args = [message.message]; + args = args.concat([] || false); + // format the message + message.full = forge.util.format.apply(this, args); + } +}; + +/** + * Applies both preparseStandard() and prepareFull() to a message object and + * store result in 'standardFull'. + * + * @param message a message log object. + */ +forge.log.prepareStandardFull = function(message) { + if(!('standardFull' in message)) { + // FIXME implement 'standardFull' logging + forge.log.prepareStandard(message); + message.standardFull = message.standard; + } +}; + +// create log level functions +if(true) { + // levels for which we want functions + var levels = ['error', 'warning', 'info', 'debug', 'verbose']; + for(var i = 0; i < levels.length; ++i) { + // wrap in a function to ensure proper level var is passed + (function(level) { + // create function for this level + forge.log[level] = function(category, message/*, args...*/) { + // convert arguments to real array, remove category and message + var args = Array.prototype.slice.call(arguments).slice(2); + // create message object + // Note: interpolation and standard formatting is done lazily + var msg = { + timestamp: new Date(), + level: level, + category: category, + message: message, + 'arguments': args + /*standard*/ + /*full*/ + /*fullMessage*/ + }; + // process this message + forge.log.logMessage(msg); + }; + })(levels[i]); + } +} + +/** + * Creates a new logger with specified custom logging function. + * + * The logging function has a signature of: + * function(logger, message) + * logger: current logger + * message: object: + * level: level id + * category: category + * message: string message + * arguments: Array of extra arguments + * fullMessage: interpolated message and arguments if INTERPOLATE flag set + * + * @param logFunction a logging function which takes a log message object + * as a parameter. + * + * @return a logger object. + */ +forge.log.makeLogger = function(logFunction) { + var logger = { + flags: 0, + f: logFunction + }; + forge.log.setLevel(logger, 'none'); + return logger; +}; + +/** + * Sets the current log level on a logger. + * + * @param logger the target logger. + * @param level the new maximum log level as a string. + * + * @return true if set, false if not. + */ +forge.log.setLevel = function(logger, level) { + var rval = false; + if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) { + for(var i = 0; i < forge.log.levels.length; ++i) { + var aValidLevel = forge.log.levels[i]; + if(level == aValidLevel) { + // set level + logger.level = level; + rval = true; + break; + } + } + } + + return rval; +}; + +/** + * Locks the log level at its current value. + * + * @param logger the target logger. + * @param lock boolean lock value, default to true. + */ +forge.log.lock = function(logger, lock) { + if(typeof lock === 'undefined' || lock) { + logger.flags |= forge.log.LEVEL_LOCKED; + } else { + logger.flags &= ~forge.log.LEVEL_LOCKED; + } +}; + +/** + * Adds a logger. + * + * @param logger the logger object. + */ +forge.log.addLogger = function(logger) { + sLoggers.push(logger); +}; + +// setup the console logger if possible, else create fake console.log +if(typeof(console) !== 'undefined' && 'log' in console) { + var logger; + if(console.error && console.warn && console.info && console.debug) { + // looks like Firebug-style logging is available + // level handlers map + var levelHandlers = { + error: console.error, + warning: console.warn, + info: console.info, + debug: console.debug, + verbose: console.debug + }; + var f = function(logger, message) { + forge.log.prepareStandard(message); + var handler = levelHandlers[message.level]; + // prepend standard message and concat args + var args = [message.standard]; + args = args.concat(message['arguments'].slice()); + // apply to low-level console function + handler.apply(console, args); + }; + logger = forge.log.makeLogger(f); + } else { + // only appear to have basic console.log + var f = function(logger, message) { + forge.log.prepareStandardFull(message); + console.log(message.standardFull); + }; + logger = forge.log.makeLogger(f); + } + forge.log.setLevel(logger, 'debug'); + forge.log.addLogger(logger); + sConsoleLogger = logger; +} else { + // define fake console.log to avoid potential script errors on + // browsers that do not have console logging + console = { + log: function() {} + }; +} + +/* + * Check for logging control query vars in current URL. + * + * console.level= + * Set's the console log level by name. Useful to override defaults and + * allow more verbose logging before a user config is loaded. + * + * console.lock= + * Lock the console log level at whatever level it is set at. This is run + * after console.level is processed. Useful to force a level of verbosity + * that could otherwise be limited by a user config. + */ +if(sConsoleLogger !== null && + typeof window !== 'undefined' && window.location +) { + var query = new URL(window.location.href).searchParams; + if(query.has('console.level')) { + // set with last value + forge.log.setLevel( + sConsoleLogger, query.get('console.level').slice(-1)[0]); + } + if(query.has('console.lock')) { + // set with last value + var lock = query.get('console.lock').slice(-1)[0]; + if(lock == 'true') { + forge.log.lock(sConsoleLogger); + } + } +} + +// provide public access to console logger +forge.log.consoleLogger = sConsoleLogger; + + +/***/ }), + +/***/ 3799: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.beyondcorp_v1alpha = exports.beyondcorp_v1 = exports.auth = exports.beyondcorp = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2408); +Object.defineProperty(exports, "beyondcorp_v1", { enumerable: true, get: function () { return v1_1.beyondcorp_v1; } }); +const v1alpha_1 = __webpack_require__(5178); +Object.defineProperty(exports, "beyondcorp_v1alpha", { enumerable: true, get: function () { return v1alpha_1.beyondcorp_v1alpha; } }); +exports.VERSIONS = { + v1: v1_1.beyondcorp_v1.Beyondcorp, + v1alpha: v1alpha_1.beyondcorp_v1alpha.Beyondcorp, +}; +function beyondcorp(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('beyondcorp', versionOrOptions, exports.VERSIONS, this); +} +exports.beyondcorp = beyondcorp; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3812: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.baremetalsolution_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var baremetalsolution_v1alpha1; +(function (baremetalsolution_v1alpha1) { + /** + * Bare Metal Solution API + * + * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const baremetalsolution = google.baremetalsolution('v1alpha1'); + * ``` + */ + class Baremetalsolution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + baremetalsolution_v1alpha1.Baremetalsolution = Baremetalsolution; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.provisioningQuotas = new Resource$Projects$Provisioningquotas(this.context); + } + } + baremetalsolution_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + submitProvisioningConfig(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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha1/{+project}/{+location}:submitProvisioningConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Provisioningquotas { + 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://baremetalsolution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v1alpha1.Resource$Projects$Provisioningquotas = Resource$Projects$Provisioningquotas; +})(baremetalsolution_v1alpha1 = exports.baremetalsolution_v1alpha1 || (exports.baremetalsolution_v1alpha1 = {})); + + +/***/ }), + +/***/ 3817: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.adexperiencereport_v1 = exports.auth = exports.adexperiencereport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4548); +Object.defineProperty(exports, "adexperiencereport_v1", { enumerable: true, get: function () { return v1_1.adexperiencereport_v1; } }); +exports.VERSIONS = { + v1: v1_1.adexperiencereport_v1.Adexperiencereport, +}; +function adexperiencereport(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('adexperiencereport', versionOrOptions, exports.VERSIONS, this); +} +exports.adexperiencereport = adexperiencereport; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3844: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = rng; + +var _crypto = _interopRequireDefault(__webpack_require__(6417)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; + +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} + +/***/ }), + +/***/ 3864: +/***/ (function(module, exports) { + +exports = module.exports = SemVer + +var debug +/* istanbul ignore next */ +if (typeof process === 'object' && + process.env && + process.env.NODE_DEBUG && + /\bsemver\b/i.test(process.env.NODE_DEBUG)) { + debug = function () { + var args = Array.prototype.slice.call(arguments, 0) + args.unshift('SEMVER') + console.log.apply(console, args) + } +} else { + debug = function () {} +} + +// Note: this is the semver.org version of the spec that it implements +// Not necessarily the package version of this code. +exports.SEMVER_SPEC_VERSION = '2.0.0' + +var MAX_LENGTH = 256 +var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || + /* istanbul ignore next */ 9007199254740991 + +// Max safe segment length for coercion. +var MAX_SAFE_COMPONENT_LENGTH = 16 + +// The actual regexps go on exports.re +var re = exports.re = [] +var src = exports.src = [] +var R = 0 + +// The following Regular Expressions can be used for tokenizing, +// validating, and parsing SemVer version strings. + +// ## Numeric Identifier +// A single `0`, or a non-zero digit followed by zero or more digits. + +var NUMERICIDENTIFIER = R++ +src[NUMERICIDENTIFIER] = '0|[1-9]\\d*' +var NUMERICIDENTIFIERLOOSE = R++ +src[NUMERICIDENTIFIERLOOSE] = '[0-9]+' + +// ## Non-numeric Identifier +// Zero or more digits, followed by a letter or hyphen, and then zero or +// more letters, digits, or hyphens. + +var NONNUMERICIDENTIFIER = R++ +src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*' + +// ## Main Version +// Three dot-separated numeric identifiers. + +var MAINVERSION = R++ +src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + + '(' + src[NUMERICIDENTIFIER] + ')\\.' + + '(' + src[NUMERICIDENTIFIER] + ')' + +var MAINVERSIONLOOSE = R++ +src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[NUMERICIDENTIFIERLOOSE] + ')' + +// ## Pre-release Version Identifier +// A numeric identifier, or a non-numeric identifier. + +var PRERELEASEIDENTIFIER = R++ +src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + + '|' + src[NONNUMERICIDENTIFIER] + ')' + +var PRERELEASEIDENTIFIERLOOSE = R++ +src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + + '|' + src[NONNUMERICIDENTIFIER] + ')' + +// ## Pre-release Version +// Hyphen, followed by one or more dot-separated pre-release version +// identifiers. + +var PRERELEASE = R++ +src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + + '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))' + +var PRERELEASELOOSE = R++ +src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + + '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))' + +// ## Build Metadata Identifier +// Any combination of digits, letters, or hyphens. + +var BUILDIDENTIFIER = R++ +src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+' + +// ## Build Metadata +// Plus sign, followed by one or more period-separated build metadata +// identifiers. + +var BUILD = R++ +src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + + '(?:\\.' + src[BUILDIDENTIFIER] + ')*))' + +// ## Full Version String +// A main version, followed optionally by a pre-release version and +// build metadata. + +// Note that the only major, minor, patch, and pre-release sections of +// the version string are capturing groups. The build metadata is not a +// capturing group, because it should not ever be used in version +// comparison. + +var FULL = R++ +var FULLPLAIN = 'v?' + src[MAINVERSION] + + src[PRERELEASE] + '?' + + src[BUILD] + '?' + +src[FULL] = '^' + FULLPLAIN + '$' + +// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. +// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty +// common in the npm registry. +var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + + src[PRERELEASELOOSE] + '?' + + src[BUILD] + '?' + +var LOOSE = R++ +src[LOOSE] = '^' + LOOSEPLAIN + '$' + +var GTLT = R++ +src[GTLT] = '((?:<|>)?=?)' + +// Something like "2.*" or "1.2.x". +// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Only the first item is strictly required. +var XRANGEIDENTIFIERLOOSE = R++ +src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' +var XRANGEIDENTIFIER = R++ +src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*' + +var XRANGEPLAIN = R++ +src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + + '(?:' + src[PRERELEASE] + ')?' + + src[BUILD] + '?' + + ')?)?' + +var XRANGEPLAINLOOSE = R++ +src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:' + src[PRERELEASELOOSE] + ')?' + + src[BUILD] + '?' + + ')?)?' + +var XRANGE = R++ +src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$' +var XRANGELOOSE = R++ +src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$' + +// Coercion. +// Extract anything that could conceivably be a part of a valid semver +var COERCE = R++ +src[COERCE] = '(?:^|[^\\d])' + + '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + + '(?:$|[^\\d])' + +// Tilde ranges. +// Meaning is "reasonably at or greater than" +var LONETILDE = R++ +src[LONETILDE] = '(?:~>?)' + +var TILDETRIM = R++ +src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+' +re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g') +var tildeTrimReplace = '$1~' + +var TILDE = R++ +src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$' +var TILDELOOSE = R++ +src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$' + +// Caret ranges. +// Meaning is "at least and backwards compatible with" +var LONECARET = R++ +src[LONECARET] = '(?:\\^)' + +var CARETTRIM = R++ +src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+' +re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g') +var caretTrimReplace = '$1^' + +var CARET = R++ +src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$' +var CARETLOOSE = R++ +src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$' + +// A simple gt/lt/eq thing, or just "" to indicate "any version" +var COMPARATORLOOSE = R++ +src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$' +var COMPARATOR = R++ +src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$' + +// An expression to strip any whitespace between the gtlt and the thing +// it modifies, so that `> 1.2.3` ==> `>1.2.3` +var COMPARATORTRIM = R++ +src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + + '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')' + +// this one has to use the /g flag +re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g') +var comparatorTrimReplace = '$1$2$3' + +// Something like `1.2.3 - 1.2.4` +// Note that these all use the loose form, because they'll be +// checked against either the strict or loose comparator form +// later. +var HYPHENRANGE = R++ +src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + + '\\s+-\\s+' + + '(' + src[XRANGEPLAIN] + ')' + + '\\s*$' + +var HYPHENRANGELOOSE = R++ +src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + + '\\s+-\\s+' + + '(' + src[XRANGEPLAINLOOSE] + ')' + + '\\s*$' + +// Star ranges basically just allow anything at all. +var STAR = R++ +src[STAR] = '(<|>)?=?\\s*\\*' + +// Compile to actual regexp objects. +// All are flag-free, unless they were created above with a flag. +for (var i = 0; i < R; i++) { + debug(i, src[i]) + if (!re[i]) { + re[i] = new RegExp(src[i]) + } +} + +exports.parse = parse +function parse (version, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + if (version instanceof SemVer) { + return version + } + + if (typeof version !== 'string') { + return null + } + + if (version.length > MAX_LENGTH) { + return null + } + + var r = options.loose ? re[LOOSE] : re[FULL] + if (!r.test(version)) { + return null + } + + try { + return new SemVer(version, options) + } catch (er) { + return null + } +} + +exports.valid = valid +function valid (version, options) { + var v = parse(version, options) + return v ? v.version : null +} + +exports.clean = clean +function clean (version, options) { + var s = parse(version.trim().replace(/^[=v]+/, ''), options) + return s ? s.version : null +} + +exports.SemVer = SemVer + +function SemVer (version, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + if (version instanceof SemVer) { + if (version.loose === options.loose) { + return version + } else { + version = version.version + } + } else if (typeof version !== 'string') { + throw new TypeError('Invalid Version: ' + version) + } + + if (version.length > MAX_LENGTH) { + throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') + } + + if (!(this instanceof SemVer)) { + return new SemVer(version, options) + } + + debug('SemVer', version, options) + this.options = options + this.loose = !!options.loose + + var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]) + + if (!m) { + throw new TypeError('Invalid Version: ' + version) + } + + this.raw = version + + // these are actually numbers + this.major = +m[1] + this.minor = +m[2] + this.patch = +m[3] + + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError('Invalid major version') + } + + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError('Invalid minor version') + } + + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError('Invalid patch version') + } + + // numberify any prerelease numeric ids + if (!m[4]) { + this.prerelease = [] + } else { + this.prerelease = m[4].split('.').map(function (id) { + if (/^[0-9]+$/.test(id)) { + var num = +id + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num + } + } + return id + }) + } + + this.build = m[5] ? m[5].split('.') : [] + this.format() +} + +SemVer.prototype.format = function () { + this.version = this.major + '.' + this.minor + '.' + this.patch + if (this.prerelease.length) { + this.version += '-' + this.prerelease.join('.') + } + return this.version +} + +SemVer.prototype.toString = function () { + return this.version +} + +SemVer.prototype.compare = function (other) { + debug('SemVer.compare', this.version, this.options, other) + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + return this.compareMain(other) || this.comparePre(other) +} + +SemVer.prototype.compareMain = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + return compareIdentifiers(this.major, other.major) || + compareIdentifiers(this.minor, other.minor) || + compareIdentifiers(this.patch, other.patch) +} + +SemVer.prototype.comparePre = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + // NOT having a prerelease is > having one + if (this.prerelease.length && !other.prerelease.length) { + return -1 + } else if (!this.prerelease.length && other.prerelease.length) { + return 1 + } else if (!this.prerelease.length && !other.prerelease.length) { + return 0 + } + + var i = 0 + do { + var a = this.prerelease[i] + var b = other.prerelease[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) +} + +// preminor will bump the version up to the next minor release, and immediately +// down to pre-release. premajor and prepatch work the same way. +SemVer.prototype.inc = function (release, identifier) { + switch (release) { + case 'premajor': + this.prerelease.length = 0 + this.patch = 0 + this.minor = 0 + this.major++ + this.inc('pre', identifier) + break + case 'preminor': + this.prerelease.length = 0 + this.patch = 0 + this.minor++ + this.inc('pre', identifier) + break + case 'prepatch': + // If this is already a prerelease, it will bump to the next version + // drop any prereleases that might already exist, since they are not + // relevant at this point. + this.prerelease.length = 0 + this.inc('patch', identifier) + this.inc('pre', identifier) + break + // If the input is a non-prerelease version, this acts the same as + // prepatch. + case 'prerelease': + if (this.prerelease.length === 0) { + this.inc('patch', identifier) + } + this.inc('pre', identifier) + break + + case 'major': + // If this is a pre-major version, bump up to the same major version. + // Otherwise increment major. + // 1.0.0-5 bumps to 1.0.0 + // 1.1.0 bumps to 2.0.0 + if (this.minor !== 0 || + this.patch !== 0 || + this.prerelease.length === 0) { + this.major++ + } + this.minor = 0 + this.patch = 0 + this.prerelease = [] + break + case 'minor': + // If this is a pre-minor version, bump up to the same minor version. + // Otherwise increment minor. + // 1.2.0-5 bumps to 1.2.0 + // 1.2.1 bumps to 1.3.0 + if (this.patch !== 0 || this.prerelease.length === 0) { + this.minor++ + } + this.patch = 0 + this.prerelease = [] + break + case 'patch': + // If this is not a pre-release version, it will increment the patch. + // If it is a pre-release it will bump up to the same patch version. + // 1.2.0-5 patches to 1.2.0 + // 1.2.0 patches to 1.2.1 + if (this.prerelease.length === 0) { + this.patch++ + } + this.prerelease = [] + break + // This probably shouldn't be used publicly. + // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. + case 'pre': + if (this.prerelease.length === 0) { + this.prerelease = [0] + } else { + var i = this.prerelease.length + while (--i >= 0) { + if (typeof this.prerelease[i] === 'number') { + this.prerelease[i]++ + i = -2 + } + } + if (i === -1) { + // didn't increment anything + this.prerelease.push(0) + } + } + if (identifier) { + // 1.2.0-beta.1 bumps to 1.2.0-beta.2, + // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 + if (this.prerelease[0] === identifier) { + if (isNaN(this.prerelease[1])) { + this.prerelease = [identifier, 0] + } + } else { + this.prerelease = [identifier, 0] + } + } + break + + default: + throw new Error('invalid increment argument: ' + release) + } + this.format() + this.raw = this.version + return this +} + +exports.inc = inc +function inc (version, release, loose, identifier) { + if (typeof (loose) === 'string') { + identifier = loose + loose = undefined + } + + try { + return new SemVer(version, loose).inc(release, identifier).version + } catch (er) { + return null + } +} + +exports.diff = diff +function diff (version1, version2) { + if (eq(version1, version2)) { + return null + } else { + var v1 = parse(version1) + var v2 = parse(version2) + var prefix = '' + if (v1.prerelease.length || v2.prerelease.length) { + prefix = 'pre' + var defaultResult = 'prerelease' + } + for (var key in v1) { + if (key === 'major' || key === 'minor' || key === 'patch') { + if (v1[key] !== v2[key]) { + return prefix + key + } + } + } + return defaultResult // may be undefined + } +} + +exports.compareIdentifiers = compareIdentifiers + +var numeric = /^[0-9]+$/ +function compareIdentifiers (a, b) { + var anum = numeric.test(a) + var bnum = numeric.test(b) + + if (anum && bnum) { + a = +a + b = +b + } + + return a === b ? 0 + : (anum && !bnum) ? -1 + : (bnum && !anum) ? 1 + : a < b ? -1 + : 1 +} + +exports.rcompareIdentifiers = rcompareIdentifiers +function rcompareIdentifiers (a, b) { + return compareIdentifiers(b, a) +} + +exports.major = major +function major (a, loose) { + return new SemVer(a, loose).major +} + +exports.minor = minor +function minor (a, loose) { + return new SemVer(a, loose).minor +} + +exports.patch = patch +function patch (a, loose) { + return new SemVer(a, loose).patch +} + +exports.compare = compare +function compare (a, b, loose) { + return new SemVer(a, loose).compare(new SemVer(b, loose)) +} + +exports.compareLoose = compareLoose +function compareLoose (a, b) { + return compare(a, b, true) +} + +exports.rcompare = rcompare +function rcompare (a, b, loose) { + return compare(b, a, loose) +} + +exports.sort = sort +function sort (list, loose) { + return list.sort(function (a, b) { + return exports.compare(a, b, loose) + }) +} + +exports.rsort = rsort +function rsort (list, loose) { + return list.sort(function (a, b) { + return exports.rcompare(a, b, loose) + }) +} + +exports.gt = gt +function gt (a, b, loose) { + return compare(a, b, loose) > 0 +} + +exports.lt = lt +function lt (a, b, loose) { + return compare(a, b, loose) < 0 +} + +exports.eq = eq +function eq (a, b, loose) { + return compare(a, b, loose) === 0 +} + +exports.neq = neq +function neq (a, b, loose) { + return compare(a, b, loose) !== 0 +} + +exports.gte = gte +function gte (a, b, loose) { + return compare(a, b, loose) >= 0 +} + +exports.lte = lte +function lte (a, b, loose) { + return compare(a, b, loose) <= 0 +} + +exports.cmp = cmp +function cmp (a, op, b, loose) { + switch (op) { + case '===': + if (typeof a === 'object') + a = a.version + if (typeof b === 'object') + b = b.version + return a === b + + case '!==': + if (typeof a === 'object') + a = a.version + if (typeof b === 'object') + b = b.version + return a !== b + + case '': + case '=': + case '==': + return eq(a, b, loose) + + case '!=': + return neq(a, b, loose) + + case '>': + return gt(a, b, loose) + + case '>=': + return gte(a, b, loose) + + case '<': + return lt(a, b, loose) + + case '<=': + return lte(a, b, loose) + + default: + throw new TypeError('Invalid operator: ' + op) + } +} + +exports.Comparator = Comparator +function Comparator (comp, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + if (comp instanceof Comparator) { + if (comp.loose === !!options.loose) { + return comp + } else { + comp = comp.value + } + } + + if (!(this instanceof Comparator)) { + return new Comparator(comp, options) + } + + debug('comparator', comp, options) + this.options = options + this.loose = !!options.loose + this.parse(comp) + + if (this.semver === ANY) { + this.value = '' + } else { + this.value = this.operator + this.semver.version + } + + debug('comp', this) +} + +var ANY = {} +Comparator.prototype.parse = function (comp) { + var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var m = comp.match(r) + + if (!m) { + throw new TypeError('Invalid comparator: ' + comp) + } + + this.operator = m[1] + if (this.operator === '=') { + this.operator = '' + } + + // if it literally is just '>' or '' then allow anything. + if (!m[2]) { + this.semver = ANY + } else { + this.semver = new SemVer(m[2], this.options.loose) + } +} + +Comparator.prototype.toString = function () { + return this.value +} + +Comparator.prototype.test = function (version) { + debug('Comparator.test', version, this.options.loose) + + if (this.semver === ANY) { + return true + } + + if (typeof version === 'string') { + version = new SemVer(version, this.options) + } + + return cmp(version, this.operator, this.semver, this.options) +} + +Comparator.prototype.intersects = function (comp, options) { + if (!(comp instanceof Comparator)) { + throw new TypeError('a Comparator is required') + } + + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + var rangeTmp + + if (this.operator === '') { + rangeTmp = new Range(comp.value, options) + return satisfies(this.value, rangeTmp, options) + } else if (comp.operator === '') { + rangeTmp = new Range(this.value, options) + return satisfies(comp.semver, rangeTmp, options) + } + + var sameDirectionIncreasing = + (this.operator === '>=' || this.operator === '>') && + (comp.operator === '>=' || comp.operator === '>') + var sameDirectionDecreasing = + (this.operator === '<=' || this.operator === '<') && + (comp.operator === '<=' || comp.operator === '<') + var sameSemVer = this.semver.version === comp.semver.version + var differentDirectionsInclusive = + (this.operator === '>=' || this.operator === '<=') && + (comp.operator === '>=' || comp.operator === '<=') + var oppositeDirectionsLessThan = + cmp(this.semver, '<', comp.semver, options) && + ((this.operator === '>=' || this.operator === '>') && + (comp.operator === '<=' || comp.operator === '<')) + var oppositeDirectionsGreaterThan = + cmp(this.semver, '>', comp.semver, options) && + ((this.operator === '<=' || this.operator === '<') && + (comp.operator === '>=' || comp.operator === '>')) + + return sameDirectionIncreasing || sameDirectionDecreasing || + (sameSemVer && differentDirectionsInclusive) || + oppositeDirectionsLessThan || oppositeDirectionsGreaterThan +} + +exports.Range = Range +function Range (range, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + if (range instanceof Range) { + if (range.loose === !!options.loose && + range.includePrerelease === !!options.includePrerelease) { + return range + } else { + return new Range(range.raw, options) + } + } + + if (range instanceof Comparator) { + return new Range(range.value, options) + } + + if (!(this instanceof Range)) { + return new Range(range, options) + } + + this.options = options + this.loose = !!options.loose + this.includePrerelease = !!options.includePrerelease + + // First, split based on boolean or || + this.raw = range + this.set = range.split(/\s*\|\|\s*/).map(function (range) { + return this.parseRange(range.trim()) + }, this).filter(function (c) { + // throw out any that are not relevant for whatever reason + return c.length + }) + + if (!this.set.length) { + throw new TypeError('Invalid SemVer Range: ' + range) + } + + this.format() +} + +Range.prototype.format = function () { + this.range = this.set.map(function (comps) { + return comps.join(' ').trim() + }).join('||').trim() + return this.range +} + +Range.prototype.toString = function () { + return this.range +} + +Range.prototype.parseRange = function (range) { + var loose = this.options.loose + range = range.trim() + // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` + var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE] + range = range.replace(hr, hyphenReplace) + debug('hyphen replace', range) + // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` + range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace) + debug('comparator trim', range, re[COMPARATORTRIM]) + + // `~ 1.2.3` => `~1.2.3` + range = range.replace(re[TILDETRIM], tildeTrimReplace) + + // `^ 1.2.3` => `^1.2.3` + range = range.replace(re[CARETTRIM], caretTrimReplace) + + // normalize spaces + range = range.split(/\s+/).join(' ') + + // At this point, the range is completely trimmed and + // ready to be split into comparators. + + var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var set = range.split(' ').map(function (comp) { + return parseComparator(comp, this.options) + }, this).join(' ').split(/\s+/) + if (this.options.loose) { + // in loose mode, throw out any that are not valid comparators + set = set.filter(function (comp) { + return !!comp.match(compRe) + }) + } + set = set.map(function (comp) { + return new Comparator(comp, this.options) + }, this) + + return set +} + +Range.prototype.intersects = function (range, options) { + if (!(range instanceof Range)) { + throw new TypeError('a Range is required') + } + + return this.set.some(function (thisComparators) { + return thisComparators.every(function (thisComparator) { + return range.set.some(function (rangeComparators) { + return rangeComparators.every(function (rangeComparator) { + return thisComparator.intersects(rangeComparator, options) + }) + }) + }) + }) +} + +// Mostly just for testing and legacy API reasons +exports.toComparators = toComparators +function toComparators (range, options) { + return new Range(range, options).set.map(function (comp) { + return comp.map(function (c) { + return c.value + }).join(' ').trim().split(' ') + }) +} + +// comprised of xranges, tildes, stars, and gtlt's at this point. +// already replaced the hyphen ranges +// turn into a set of JUST comparators. +function parseComparator (comp, options) { + debug('comp', comp, options) + comp = replaceCarets(comp, options) + debug('caret', comp) + comp = replaceTildes(comp, options) + debug('tildes', comp) + comp = replaceXRanges(comp, options) + debug('xrange', comp) + comp = replaceStars(comp, options) + debug('stars', comp) + return comp +} + +function isX (id) { + return !id || id.toLowerCase() === 'x' || id === '*' +} + +// ~, ~> --> * (any, kinda silly) +// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 +// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 +// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 +// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 +// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 +function replaceTildes (comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceTilde(comp, options) + }).join(' ') +} + +function replaceTilde (comp, options) { + var r = options.loose ? re[TILDELOOSE] : re[TILDE] + return comp.replace(r, function (_, M, m, p, pr) { + debug('tilde', comp, _, M, m, p, pr) + var ret + + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (isX(p)) { + // ~1.2 == >=1.2.0 <1.3.0 + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } else if (pr) { + debug('replaceTilde pr', pr) + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + (+m + 1) + '.0' + } else { + // ~1.2.3 == >=1.2.3 <1.3.0 + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + (+m + 1) + '.0' + } + + debug('tilde return', ret) + return ret + }) +} + +// ^ --> * (any, kinda silly) +// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 +// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 +// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 +// ^1.2.3 --> >=1.2.3 <2.0.0 +// ^1.2.0 --> >=1.2.0 <2.0.0 +function replaceCarets (comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceCaret(comp, options) + }).join(' ') +} + +function replaceCaret (comp, options) { + debug('caret', comp, options) + var r = options.loose ? re[CARETLOOSE] : re[CARET] + return comp.replace(r, function (_, M, m, p, pr) { + debug('caret', comp, _, M, m, p, pr) + var ret + + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (isX(p)) { + if (M === '0') { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } else { + ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' + } + } else if (pr) { + debug('replaceCaret pr', pr) + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + m + '.' + (+p + 1) + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + (+m + 1) + '.0' + } + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + (+M + 1) + '.0.0' + } + } else { + debug('no pr') + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + m + '.' + (+p + 1) + } else { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + (+m + 1) + '.0' + } + } else { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + (+M + 1) + '.0.0' + } + } + + debug('caret return', ret) + return ret + }) +} + +function replaceXRanges (comp, options) { + debug('replaceXRanges', comp, options) + return comp.split(/\s+/).map(function (comp) { + return replaceXRange(comp, options) + }).join(' ') +} + +function replaceXRange (comp, options) { + comp = comp.trim() + var r = options.loose ? re[XRANGELOOSE] : re[XRANGE] + return comp.replace(r, function (ret, gtlt, M, m, p, pr) { + debug('xRange', comp, ret, gtlt, M, m, p, pr) + var xM = isX(M) + var xm = xM || isX(m) + var xp = xm || isX(p) + var anyX = xp + + if (gtlt === '=' && anyX) { + gtlt = '' + } + + if (xM) { + if (gtlt === '>' || gtlt === '<') { + // nothing is allowed + ret = '<0.0.0' + } else { + // nothing is forbidden + ret = '*' + } + } else if (gtlt && anyX) { + // we know patch is an x, because we have any x at all. + // replace X with 0 + if (xm) { + m = 0 + } + p = 0 + + if (gtlt === '>') { + // >1 => >=2.0.0 + // >1.2 => >=1.3.0 + // >1.2.3 => >= 1.2.4 + gtlt = '>=' + if (xm) { + M = +M + 1 + m = 0 + p = 0 + } else { + m = +m + 1 + p = 0 + } + } else if (gtlt === '<=') { + // <=0.7.x is actually <0.8.0, since any 0.7.x should + // pass. Similarly, <=7.x is actually <8.0.0, etc. + gtlt = '<' + if (xm) { + M = +M + 1 + } else { + m = +m + 1 + } + } + + ret = gtlt + M + '.' + m + '.' + p + } else if (xm) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (xp) { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } + + debug('xRange return', ret) + + return ret + }) +} + +// Because * is AND-ed with everything else in the comparator, +// and '' means "any version", just remove the *s entirely. +function replaceStars (comp, options) { + debug('replaceStars', comp, options) + // Looseness is ignored here. star is always as loose as it gets! + return comp.trim().replace(re[STAR], '') +} + +// This function is passed to string.replace(re[HYPHENRANGE]) +// M, m, patch, prerelease, build +// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 +// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do +// 1.2 - 3.4 => >=1.2.0 <3.5.0 +function hyphenReplace ($0, + from, fM, fm, fp, fpr, fb, + to, tM, tm, tp, tpr, tb) { + if (isX(fM)) { + from = '' + } else if (isX(fm)) { + from = '>=' + fM + '.0.0' + } else if (isX(fp)) { + from = '>=' + fM + '.' + fm + '.0' + } else { + from = '>=' + from + } + + if (isX(tM)) { + to = '' + } else if (isX(tm)) { + to = '<' + (+tM + 1) + '.0.0' + } else if (isX(tp)) { + to = '<' + tM + '.' + (+tm + 1) + '.0' + } else if (tpr) { + to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr + } else { + to = '<=' + to + } + + return (from + ' ' + to).trim() +} + +// if ANY of the sets match ALL of its comparators, then pass +Range.prototype.test = function (version) { + if (!version) { + return false + } + + if (typeof version === 'string') { + version = new SemVer(version, this.options) + } + + for (var i = 0; i < this.set.length; i++) { + if (testSet(this.set[i], version, this.options)) { + return true + } + } + return false +} + +function testSet (set, version, options) { + for (var i = 0; i < set.length; i++) { + if (!set[i].test(version)) { + return false + } + } + + if (version.prerelease.length && !options.includePrerelease) { + // Find the set of versions that are allowed to have prereleases + // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 + // That should allow `1.2.3-pr.2` to pass. + // However, `1.2.4-alpha.notready` should NOT be allowed, + // even though it's within the range set by the comparators. + for (i = 0; i < set.length; i++) { + debug(set[i].semver) + if (set[i].semver === ANY) { + continue + } + + if (set[i].semver.prerelease.length > 0) { + var allowed = set[i].semver + if (allowed.major === version.major && + allowed.minor === version.minor && + allowed.patch === version.patch) { + return true + } + } + } + + // Version has a -pre, but it's not one of the ones we like. + return false + } + + return true +} + +exports.satisfies = satisfies +function satisfies (version, range, options) { + try { + range = new Range(range, options) + } catch (er) { + return false + } + return range.test(version) +} + +exports.maxSatisfying = maxSatisfying +function maxSatisfying (versions, range, options) { + var max = null + var maxSV = null + try { + var rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!max || maxSV.compare(v) === -1) { + // compare(max, v, true) + max = v + maxSV = new SemVer(max, options) + } + } + }) + return max +} + +exports.minSatisfying = minSatisfying +function minSatisfying (versions, range, options) { + var min = null + var minSV = null + try { + var rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!min || minSV.compare(v) === 1) { + // compare(min, v, true) + min = v + minSV = new SemVer(min, options) + } + } + }) + return min +} + +exports.minVersion = minVersion +function minVersion (range, loose) { + range = new Range(range, loose) + + var minver = new SemVer('0.0.0') + if (range.test(minver)) { + return minver + } + + minver = new SemVer('0.0.0-0') + if (range.test(minver)) { + return minver + } + + minver = null + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i] + + comparators.forEach(function (comparator) { + // Clone to avoid manipulating the comparator's semver object. + var compver = new SemVer(comparator.semver.version) + switch (comparator.operator) { + case '>': + if (compver.prerelease.length === 0) { + compver.patch++ + } else { + compver.prerelease.push(0) + } + compver.raw = compver.format() + /* fallthrough */ + case '': + case '>=': + if (!minver || gt(minver, compver)) { + minver = compver + } + break + case '<': + case '<=': + /* Ignore maximum versions */ + break + /* istanbul ignore next */ + default: + throw new Error('Unexpected operation: ' + comparator.operator) + } + }) + } + + if (minver && range.test(minver)) { + return minver + } + + return null +} + +exports.validRange = validRange +function validRange (range, options) { + try { + // Return '*' instead of '' so that truthiness works. + // This will throw if it's invalid anyway + return new Range(range, options).range || '*' + } catch (er) { + return null + } +} + +// Determine if version is less than all the versions possible in the range +exports.ltr = ltr +function ltr (version, range, options) { + return outside(version, range, '<', options) +} + +// Determine if version is greater than all the versions possible in the range. +exports.gtr = gtr +function gtr (version, range, options) { + return outside(version, range, '>', options) +} + +exports.outside = outside +function outside (version, range, hilo, options) { + version = new SemVer(version, options) + range = new Range(range, options) + + var gtfn, ltefn, ltfn, comp, ecomp + switch (hilo) { + case '>': + gtfn = gt + ltefn = lte + ltfn = lt + comp = '>' + ecomp = '>=' + break + case '<': + gtfn = lt + ltefn = gte + ltfn = gt + comp = '<' + ecomp = '<=' + break + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + + // If it satisifes the range it is not outside + if (satisfies(version, range, options)) { + return false + } + + // From now on, variable terms are as if we're in "gtr" mode. + // but note that everything is flipped for the "ltr" function. + + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i] + + var high = null + var low = null + + comparators.forEach(function (comparator) { + if (comparator.semver === ANY) { + comparator = new Comparator('>=0.0.0') + } + high = high || comparator + low = low || comparator + if (gtfn(comparator.semver, high.semver, options)) { + high = comparator + } else if (ltfn(comparator.semver, low.semver, options)) { + low = comparator + } + }) + + // If the edge version comparator has a operator then our version + // isn't outside it + if (high.operator === comp || high.operator === ecomp) { + return false + } + + // If the lowest version comparator has an operator and our version + // is less than it then it isn't higher than the range + if ((!low.operator || low.operator === comp) && + ltefn(version, low.semver)) { + return false + } else if (low.operator === ecomp && ltfn(version, low.semver)) { + return false + } + } + return true +} + +exports.prerelease = prerelease +function prerelease (version, options) { + var parsed = parse(version, options) + return (parsed && parsed.prerelease.length) ? parsed.prerelease : null +} + +exports.intersects = intersects +function intersects (r1, r2, options) { + r1 = new Range(r1, options) + r2 = new Range(r2, options) + return r1.intersects(r2) +} + +exports.coerce = coerce +function coerce (version) { + if (version instanceof SemVer) { + return version + } + + if (typeof version !== 'string') { + return null + } + + var match = version.match(re[COERCE]) + + if (match == null) { + return null + } + + return parse(match[1] + + '.' + (match[2] || '0') + + '.' + (match[3] || '0')) +} + + +/***/ }), + +/***/ 3867: +/***/ (function(module) { + +module.exports = require("tty"); + +/***/ }), + +/***/ 3868: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.iap_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var iap_v1beta1; +(function (iap_v1beta1) { + /** + * Cloud Identity-Aware Proxy API + * + * Controls access to cloud applications running on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const iap = google.iap('v1beta1'); + * ``` + */ + class Iap { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1beta1 = new Resource$V1beta1(this.context); + } + } + iap_v1beta1.Iap = Iap; + class Resource$V1beta1 { + constructor(context) { + this.context = context; + } + 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iap_v1beta1.Resource$V1beta1 = Resource$V1beta1; +})(iap_v1beta1 = exports.iap_v1beta1 || (exports.iap_v1beta1 = {})); + + +/***/ }), + +/***/ 3881: +/***/ (function(__unusedmodule, exports) { + +"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.youtubeAnalytics_v1 = void 0; +var youtubeAnalytics_v1; +(function (youtubeAnalytics_v1) { + /** + * YouTube Analytics API + * + * Retrieves your YouTube Analytics data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const youtubeAnalytics = google.youtubeAnalytics('v1'); + * ``` + */ + class Youtubeanalytics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + youtubeAnalytics_v1.Youtubeanalytics = Youtubeanalytics; +})(youtubeAnalytics_v1 = exports.youtubeAnalytics_v1 || (exports.youtubeAnalytics_v1 = {})); + + +/***/ }), + +/***/ 3889: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.iam_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var iam_v2; +(function (iam_v2) { + /** + * Identity and Access Management (IAM) API + * + * Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const iam = google.iam('v2'); + * ``` + */ + class Iam { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.policies = new Resource$Policies(this.context); + } + } + iam_v2.Iam = Iam; + class Resource$Policies { + constructor(context) { + this.context = context; + this.operations = new Resource$Policies$Operations(this.context); + } + createPolicy(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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iam.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iam.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPolicies(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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iam_v2.Resource$Policies = Resource$Policies; + class Resource$Policies$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://iam.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iam_v2.Resource$Policies$Operations = Resource$Policies$Operations; +})(iam_v2 = exports.iam_v2 || (exports.iam_v2 = {})); + + +/***/ }), + +/***/ 3890: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.runtimeconfig_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var runtimeconfig_v1; +(function (runtimeconfig_v1) { + /** + * Cloud Runtime Configuration API + * + * The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const runtimeconfig = google.runtimeconfig('v1'); + * ``` + */ + class Runtimeconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + runtimeconfig_v1.Runtimeconfig = Runtimeconfig; + class Resource$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://runtimeconfig.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://runtimeconfig.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://runtimeconfig.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + runtimeconfig_v1.Resource$Operations = Resource$Operations; +})(runtimeconfig_v1 = exports.runtimeconfig_v1 || (exports.runtimeconfig_v1 = {})); + + +/***/ }), + +/***/ 3891: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.fcm_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var fcm_v1; +(function (fcm_v1) { + /** + * Firebase Cloud Messaging API + * + * FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * ``` + */ + class Fcm { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + fcm_v1.Fcm = Fcm; + class Resource$Projects { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Messages(this.context); + } + } + fcm_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Messages { + constructor(context) { + this.context = context; + } + send(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://fcm.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages:send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + fcm_v1.Resource$Projects$Messages = Resource$Projects$Messages; +})(fcm_v1 = exports.fcm_v1 || (exports.fcm_v1 = {})); + + +/***/ }), + +/***/ 3897: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var getSideChannel = __webpack_require__(4701); +var utils = __webpack_require__(2581); +var formats = __webpack_require__(9013); +var has = Object.prototype.hasOwnProperty; + +var arrayPrefixGenerators = { + brackets: function brackets(prefix) { + return prefix + '[]'; + }, + comma: 'comma', + indices: function indices(prefix, key) { + return prefix + '[' + key + ']'; + }, + repeat: function repeat(prefix) { + return prefix; + } +}; + +var isArray = Array.isArray; +var push = Array.prototype.push; +var pushToArray = function (arr, valueOrArray) { + push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); +}; + +var toISO = Date.prototype.toISOString; + +var defaultFormat = formats['default']; +var defaults = { + addQueryPrefix: false, + allowDots: false, + charset: 'utf-8', + charsetSentinel: false, + delimiter: '&', + encode: true, + encoder: utils.encode, + encodeValuesOnly: false, + format: defaultFormat, + formatter: formats.formatters[defaultFormat], + // deprecated + indices: false, + serializeDate: function serializeDate(date) { + return toISO.call(date); + }, + skipNulls: false, + strictNullHandling: false +}; + +var isNonNullishPrimitive = function isNonNullishPrimitive(v) { + return typeof v === 'string' + || typeof v === 'number' + || typeof v === 'boolean' + || typeof v === 'symbol' + || typeof v === 'bigint'; +}; + +var sentinel = {}; + +var stringify = function stringify( + object, + prefix, + generateArrayPrefix, + commaRoundTrip, + strictNullHandling, + skipNulls, + encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + sideChannel +) { + var obj = object; + + var tmpSc = sideChannel; + var step = 0; + var findFlag = false; + while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { + // Where object last appeared in the ref tree + var pos = tmpSc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } else { + findFlag = true; // Break while + } + } + if (typeof tmpSc.get(sentinel) === 'undefined') { + step = 0; + } + } + + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } else if (obj instanceof Date) { + obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = utils.maybeMap(obj, function (value) { + if (value instanceof Date) { + return serializeDate(value); + } + return value; + }); + } + + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; + } + + obj = ''; + } + + if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { + if (encoder) { + var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); + return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; + } + return [formatter(prefix) + '=' + formatter(String(obj))]; + } + + var values = []; + + if (typeof obj === 'undefined') { + return values; + } + + var objKeys; + if (generateArrayPrefix === 'comma' && isArray(obj)) { + // we need to join elements in + if (encodeValuesOnly && encoder) { + obj = utils.maybeMap(obj, encoder); + } + objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; + } else if (isArray(filter)) { + objKeys = filter; + } else { + var keys = Object.keys(obj); + objKeys = sort ? keys.sort(sort) : keys; + } + + var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; + + for (var j = 0; j < objKeys.length; ++j) { + var key = objKeys[j]; + var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; + + if (skipNulls && value === null) { + continue; + } + + var keyPrefix = isArray(obj) + ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix + : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); + + sideChannel.set(object, step); + var valueSideChannel = getSideChannel(); + valueSideChannel.set(sentinel, sideChannel); + pushToArray(values, stringify( + value, + keyPrefix, + generateArrayPrefix, + commaRoundTrip, + strictNullHandling, + skipNulls, + generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + valueSideChannel + )); + } + + return values; +}; + +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; + } + + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } + + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + var formatter = formats.formatters[format]; + + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + format: format, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); + + var objKeys; + var filter; + + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } else if (isArray(options.filter)) { + filter = options.filter; + objKeys = filter; + } + + var keys = []; + + if (typeof obj !== 'object' || obj === null) { + return ''; + } + + var arrayFormat; + if (opts && opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if (opts && 'indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } else { + arrayFormat = 'indices'; + } + + var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; + if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { + throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); + } + var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; + + if (!objKeys) { + objKeys = Object.keys(obj); + } + + if (options.sort) { + objKeys.sort(options.sort); + } + + var sideChannel = getSideChannel(); + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + + if (options.skipNulls && obj[key] === null) { + continue; + } + pushToArray(keys, stringify( + obj[key], + key, + generateArrayPrefix, + commaRoundTrip, + options.strictNullHandling, + options.skipNulls, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.format, + options.formatter, + options.encodeValuesOnly, + options.charset, + sideChannel + )); + } + + var joined = keys.join(options.delimiter); + var prefix = options.addQueryPrefix === true ? '?' : ''; + + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B&'; + } else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93&'; + } + } + + return joined.length > 0 ? prefix + joined : ''; +}; + + +/***/ }), + +/***/ 3898: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.iap_v1beta1 = exports.iap_v1 = exports.auth = exports.iap = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5625); +Object.defineProperty(exports, "iap_v1", { enumerable: true, get: function () { return v1_1.iap_v1; } }); +const v1beta1_1 = __webpack_require__(3868); +Object.defineProperty(exports, "iap_v1beta1", { enumerable: true, get: function () { return v1beta1_1.iap_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.iap_v1.Iap, + v1beta1: v1beta1_1.iap_v1beta1.Iap, +}; +function iap(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('iap', versionOrOptions, exports.VERSIONS, this); +} +exports.iap = iap; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3900: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkehub_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkehub_v1beta; +(function (gkehub_v1beta) { + /** + * GKE Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkehub = google.gkehub('v1beta'); + * ``` + */ + class Gkehub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gkehub_v1beta.Gkehub = Gkehub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gkehub_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.features = new Resource$Projects$Locations$Features(this.context); + this.memberships = new Resource$Projects$Locations$Memberships(this.context); + this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.scopes = new Resource$Projects$Locations$Scopes(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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Features { + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Features = Resource$Projects$Locations$Features; + class Resource$Projects$Locations$Memberships { + constructor(context) { + this.context = context; + this.bindings = new Resource$Projects$Locations$Memberships$Bindings(this.context); + } + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; + class Resource$Projects$Locations$Memberships$Bindings { + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Memberships$Bindings = Resource$Projects$Locations$Memberships$Bindings; + class Resource$Projects$Locations$Namespaces { + constructor(context) { + this.context = context; + this.rbacrolebindings = + new Resource$Projects$Locations$Namespaces$Rbacrolebindings(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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Rbacrolebindings { + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Namespaces$Rbacrolebindings = Resource$Projects$Locations$Namespaces$Rbacrolebindings; + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scopes { + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1beta.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; +})(gkehub_v1beta = exports.gkehub_v1beta || (exports.gkehub_v1beta = {})); + + +/***/ }), + +/***/ 3913: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datastream_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datastream_v1alpha1; +(function (datastream_v1alpha1) { + /** + * Datastream API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datastream = google.datastream('v1alpha1'); + * ``` + */ + class Datastream { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datastream_v1alpha1.Datastream = Datastream; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datastream_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connectionProfiles = + new Resource$Projects$Locations$Connectionprofiles(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.privateConnections = + new Resource$Projects$Locations$Privateconnections(this.context); + this.streams = new Resource$Projects$Locations$Streams(this.context); + } + fetchStaticIps(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectionprofiles { + 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + discover(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles:discover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; + 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Privateconnections { + constructor(context) { + this.context = context; + this.routes = new Resource$Projects$Locations$Privateconnections$Routes(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations$Privateconnections = Resource$Projects$Locations$Privateconnections; + class Resource$Projects$Locations$Privateconnections$Routes { + 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations$Privateconnections$Routes = Resource$Projects$Locations$Privateconnections$Routes; + class Resource$Projects$Locations$Streams { + constructor(context) { + this.context = context; + this.objects = new Resource$Projects$Locations$Streams$Objects(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchErrors(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+stream}:fetchErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['stream'], + pathParams: ['stream'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations$Streams = Resource$Projects$Locations$Streams; + class Resource$Projects$Locations$Streams$Objects { + 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/objects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startBackfillJob(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+object}:startBackfillJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['object'], + pathParams: ['object'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopBackfillJob(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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+object}:stopBackfillJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['object'], + pathParams: ['object'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastream_v1alpha1.Resource$Projects$Locations$Streams$Objects = Resource$Projects$Locations$Streams$Objects; +})(datastream_v1alpha1 = exports.datastream_v1alpha1 || (exports.datastream_v1alpha1 = {})); + + +/***/ }), + +/***/ 3929: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = hasNextPage + +const deprecate = __webpack_require__(6370) +const getPageLinks = __webpack_require__(4577) + +function hasNextPage (link) { + deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) + return getPageLinks(link).next +} + + +/***/ }), + +/***/ 3937: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.playdeveloperreporting_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var playdeveloperreporting_v1beta1; +(function (playdeveloperreporting_v1beta1) { + /** + * Google Play Developer Reporting API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const playdeveloperreporting = google.playdeveloperreporting('v1beta1'); + * ``` + */ + class Playdeveloperreporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.anomalies = new Resource$Anomalies(this.context); + this.vitals = new Resource$Vitals(this.context); + } + } + playdeveloperreporting_v1beta1.Playdeveloperreporting = Playdeveloperreporting; + class Resource$Anomalies { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/anomalies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Anomalies = Resource$Anomalies; + class Resource$Vitals { + constructor(context) { + this.context = context; + this.anrrate = new Resource$Vitals$Anrrate(this.context); + this.crashrate = new Resource$Vitals$Crashrate(this.context); + this.errors = new Resource$Vitals$Errors(this.context); + this.excessivewakeuprate = new Resource$Vitals$Excessivewakeuprate(this.context); + this.slowrenderingrate = new Resource$Vitals$Slowrenderingrate(this.context); + this.slowstartrate = new Resource$Vitals$Slowstartrate(this.context); + this.stuckbackgroundwakelockrate = + new Resource$Vitals$Stuckbackgroundwakelockrate(this.context); + } + } + playdeveloperreporting_v1beta1.Resource$Vitals = Resource$Vitals; + class Resource$Vitals$Anrrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Anrrate = Resource$Vitals$Anrrate; + class Resource$Vitals$Crashrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Crashrate = Resource$Vitals$Crashrate; + class Resource$Vitals$Errors { + constructor(context) { + this.context = context; + this.counts = new Resource$Vitals$Errors$Counts(this.context); + this.issues = new Resource$Vitals$Errors$Issues(this.context); + this.reports = new Resource$Vitals$Errors$Reports(this.context); + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Errors = Resource$Vitals$Errors; + class Resource$Vitals$Errors$Counts { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Errors$Counts = Resource$Vitals$Errors$Counts; + class Resource$Vitals$Errors$Issues { + constructor(context) { + this.context = context; + } + search(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/errorIssues:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Errors$Issues = Resource$Vitals$Errors$Issues; + class Resource$Vitals$Errors$Reports { + constructor(context) { + this.context = context; + } + search(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/errorReports:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Errors$Reports = Resource$Vitals$Errors$Reports; + class Resource$Vitals$Excessivewakeuprate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Excessivewakeuprate = Resource$Vitals$Excessivewakeuprate; + class Resource$Vitals$Slowrenderingrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Slowrenderingrate = Resource$Vitals$Slowrenderingrate; + class Resource$Vitals$Slowstartrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Slowstartrate = Resource$Vitals$Slowstartrate; + class Resource$Vitals$Stuckbackgroundwakelockrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1beta1.Resource$Vitals$Stuckbackgroundwakelockrate = Resource$Vitals$Stuckbackgroundwakelockrate; +})(playdeveloperreporting_v1beta1 = exports.playdeveloperreporting_v1beta1 || (exports.playdeveloperreporting_v1beta1 = {})); + + +/***/ }), + +/***/ 3946: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.workflows_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var workflows_v1; +(function (workflows_v1) { + /** + * Workflows API + * + * Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const workflows = google.workflows('v1'); + * ``` + */ + class Workflows { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + workflows_v1.Workflows = Workflows; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + workflows_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.workflows = new Resource$Projects$Locations$Workflows(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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflows_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + 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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflows_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workflows { + 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflows_v1.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows; +})(workflows_v1 = exports.workflows_v1 || (exports.workflows_v1 = {})); + + +/***/ }), + +/***/ 3970: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.forms_v1 = exports.auth = exports.forms = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1643); +Object.defineProperty(exports, "forms_v1", { enumerable: true, get: function () { return v1_1.forms_v1; } }); +exports.VERSIONS = { + v1: v1_1.forms_v1.Forms, +}; +function forms(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('forms', versionOrOptions, exports.VERSIONS, this); +} +exports.forms = forms; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 3994: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.jobs_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var jobs_v3; +(function (jobs_v3) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const jobs = google.jobs('v3'); + * ``` + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + jobs_v3.Jobs = Jobs; + class Resource$Projects { + constructor(context) { + this.context = context; + this.clientEvents = new Resource$Projects$Clientevents(this.context); + this.companies = new Resource$Projects$Companies(this.context); + this.jobs = new Resource$Projects$Jobs(this.context); + } + complete(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Clientevents { + 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v3.Resource$Projects$Clientevents = Resource$Projects$Clientevents; + class Resource$Projects$Companies { + 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v3.Resource$Projects$Companies = Resource$Projects$Companies; + class Resource$Projects$Jobs { + constructor(context) { + this.context = context; + } + batchDelete(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchForAlert(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + jobs_v3.Resource$Projects$Jobs = Resource$Projects$Jobs; +})(jobs_v3 = exports.jobs_v3 || (exports.jobs_v3 = {})); + + +/***/ }), + +/***/ 3996: +/***/ (function(__unusedmodule, exports) { + +"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.getAPI = void 0; +function getAPI(api, options, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +versions, context) { + let version; + if (typeof options === 'string') { + version = options; + options = {}; + } + else if (typeof options === 'object') { + version = options.version; + delete options.version; + } + else { + throw new Error('Argument error: Accepts only string or object'); + } + try { + const ctr = versions[version]; + const ep = new ctr(options, context); + return Object.freeze(ep); + } + catch (e) { + throw new Error(`Unable to load endpoint ${api}("${version}"): ${e.message}`); + } +} +exports.getAPI = getAPI; +//# sourceMappingURL=apiIndex.js.map + +/***/ }), + +/***/ 4016: +/***/ (function(module) { + +module.exports = require("tls"); + +/***/ }), + +/***/ 4018: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.eventarc_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var eventarc_v1beta1; +(function (eventarc_v1beta1) { + /** + * Eventarc API + * + * Build event-driven applications on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const eventarc = google.eventarc('v1beta1'); + * ``` + */ + class Eventarc { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + eventarc_v1beta1.Eventarc = Eventarc; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + eventarc_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.triggers = new Resource$Projects$Locations$Triggers(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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Triggers { + 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1beta1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; +})(eventarc_v1beta1 = exports.eventarc_v1beta1 || (exports.eventarc_v1beta1 = {})); + + +/***/ }), + +/***/ 4025: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.driveactivity_v2 = exports.auth = exports.driveactivity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(8488); +Object.defineProperty(exports, "driveactivity_v2", { enumerable: true, get: function () { return v2_1.driveactivity_v2; } }); +exports.VERSIONS = { + v2: v2_1.driveactivity_v2.Driveactivity, +}; +function driveactivity(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('driveactivity', versionOrOptions, exports.VERSIONS, this); +} +exports.driveactivity = driveactivity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4037: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.monitoring_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var monitoring_v3; +(function (monitoring_v3) { + /** + * Cloud Monitoring API + * + * Manages your Cloud Monitoring data and configurations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const monitoring = google.monitoring('v3'); + * ``` + */ + class Monitoring { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + this.services = new Resource$Services(this.context); + this.uptimeCheckIps = new Resource$Uptimecheckips(this.context); + } + } + monitoring_v3.Monitoring = Monitoring; + class Resource$Folders { + constructor(context) { + this.context = context; + this.timeSeries = new Resource$Folders$Timeseries(this.context); + } + } + monitoring_v3.Resource$Folders = Resource$Folders; + class Resource$Folders$Timeseries { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Folders$Timeseries = Resource$Folders$Timeseries; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.timeSeries = new Resource$Organizations$Timeseries(this.context); + } + } + monitoring_v3.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Timeseries { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Organizations$Timeseries = Resource$Organizations$Timeseries; + class Resource$Projects { + constructor(context) { + this.context = context; + this.alertPolicies = new Resource$Projects$Alertpolicies(this.context); + this.collectdTimeSeries = new Resource$Projects$Collectdtimeseries(this.context); + this.groups = new Resource$Projects$Groups(this.context); + this.metricDescriptors = new Resource$Projects$Metricdescriptors(this.context); + this.monitoredResourceDescriptors = + new Resource$Projects$Monitoredresourcedescriptors(this.context); + this.notificationChannelDescriptors = + new Resource$Projects$Notificationchanneldescriptors(this.context); + this.notificationChannels = new Resource$Projects$Notificationchannels(this.context); + this.snoozes = new Resource$Projects$Snoozes(this.context); + this.timeSeries = new Resource$Projects$Timeseries(this.context); + this.uptimeCheckConfigs = new Resource$Projects$Uptimecheckconfigs(this.context); + } + } + monitoring_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Alertpolicies { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Alertpolicies = Resource$Projects$Alertpolicies; + class Resource$Projects$Collectdtimeseries { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/collectdTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Collectdtimeseries = Resource$Projects$Collectdtimeseries; + class Resource$Projects$Groups { + constructor(context) { + this.context = context; + this.members = new Resource$Projects$Groups$Members(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Groups = Resource$Projects$Groups; + class Resource$Projects$Groups$Members { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Groups$Members = Resource$Projects$Groups$Members; + class Resource$Projects$Metricdescriptors { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Metricdescriptors = Resource$Projects$Metricdescriptors; + class Resource$Projects$Monitoredresourcedescriptors { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Monitoredresourcedescriptors = Resource$Projects$Monitoredresourcedescriptors; + class Resource$Projects$Notificationchanneldescriptors { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/notificationChannelDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Notificationchanneldescriptors = Resource$Projects$Notificationchanneldescriptors; + class Resource$Projects$Notificationchannels { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getVerificationCode(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:getVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendVerificationCode(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verify(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Notificationchannels = Resource$Projects$Notificationchannels; + class Resource$Projects$Snoozes { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/snoozes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/snoozes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Snoozes = Resource$Projects$Snoozes; + class Resource$Projects$Timeseries { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createService(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries:createService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Timeseries = Resource$Projects$Timeseries; + class Resource$Projects$Uptimecheckconfigs { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Projects$Uptimecheckconfigs = Resource$Projects$Uptimecheckconfigs; + class Resource$Services { + constructor(context) { + this.context = context; + this.serviceLevelObjectives = + new Resource$Services$Servicelevelobjectives(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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Services = Resource$Services; + class Resource$Services$Servicelevelobjectives { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Services$Servicelevelobjectives = Resource$Services$Servicelevelobjectives; + class Resource$Uptimecheckips { + 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://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/uptimeCheckIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v3.Resource$Uptimecheckips = Resource$Uptimecheckips; +})(monitoring_v3 = exports.monitoring_v3 || (exports.monitoring_v3 = {})); + + +/***/ }), + +/***/ 4058: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.adsensehost_v4_1 = exports.auth = exports.adsensehost = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v4_1_1 = __webpack_require__(77); +Object.defineProperty(exports, "adsensehost_v4_1", { enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } }); +exports.VERSIONS = { + 'v4.1': v4_1_1.adsensehost_v4_1.Adsensehost, +}; +function adsensehost(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('adsensehost', versionOrOptions, exports.VERSIONS, this); +} +exports.adsensehost = adsensehost; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4076: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of basic PEM (Privacy Enhanced Mail) algorithms. + * + * See: RFC 1421. + * + * @author Dave Longley + * + * Copyright (c) 2013-2014 Digital Bazaar, Inc. + * + * A Forge PEM object has the following fields: + * + * type: identifies the type of message (eg: "RSA PRIVATE KEY"). + * + * procType: identifies the type of processing performed on the message, + * it has two subfields: version and type, eg: 4,ENCRYPTED. + * + * contentDomain: identifies the type of content in the message, typically + * only uses the value: "RFC822". + * + * dekInfo: identifies the message encryption algorithm and mode and includes + * any parameters for the algorithm, it has two subfields: algorithm and + * parameters, eg: DES-CBC,F8143EDE5960C597. + * + * headers: contains all other PEM encapsulated headers -- where order is + * significant (for pairing data like recipient ID + key info). + * + * body: the binary-encoded body. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +// shortcut for pem API +var pem = module.exports = forge.pem = forge.pem || {}; + +/** + * Encodes (serializes) the given PEM object. + * + * @param msg the PEM message object to encode. + * @param options the options to use: + * maxline the maximum characters per line for the body, (default: 64). + * + * @return the PEM-formatted string. + */ +pem.encode = function(msg, options) { + options = options || {}; + var rval = '-----BEGIN ' + msg.type + '-----\r\n'; + + // encode special headers + var header; + if(msg.procType) { + header = { + name: 'Proc-Type', + values: [String(msg.procType.version), msg.procType.type] + }; + rval += foldHeader(header); + } + if(msg.contentDomain) { + header = {name: 'Content-Domain', values: [msg.contentDomain]}; + rval += foldHeader(header); + } + if(msg.dekInfo) { + header = {name: 'DEK-Info', values: [msg.dekInfo.algorithm]}; + if(msg.dekInfo.parameters) { + header.values.push(msg.dekInfo.parameters); + } + rval += foldHeader(header); + } + + if(msg.headers) { + // encode all other headers + for(var i = 0; i < msg.headers.length; ++i) { + rval += foldHeader(msg.headers[i]); + } + } + + // terminate header + if(msg.procType) { + rval += '\r\n'; + } + + // add body + rval += forge.util.encode64(msg.body, options.maxline || 64) + '\r\n'; + + rval += '-----END ' + msg.type + '-----\r\n'; + return rval; +}; + +/** + * Decodes (deserializes) all PEM messages found in the given string. + * + * @param str the PEM-formatted string to decode. + * + * @return the PEM message objects in an array. + */ +pem.decode = function(str) { + var rval = []; + + // split string into PEM messages (be lenient w/EOF on BEGIN line) + var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g; + var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/; + var rCRLF = /\r?\n/; + var match; + while(true) { + match = rMessage.exec(str); + if(!match) { + break; + } + + // accept "NEW CERTIFICATE REQUEST" as "CERTIFICATE REQUEST" + // https://datatracker.ietf.org/doc/html/rfc7468#section-7 + var type = match[1]; + if(type === 'NEW CERTIFICATE REQUEST') { + type = 'CERTIFICATE REQUEST'; + } + + var msg = { + type: type, + procType: null, + contentDomain: null, + dekInfo: null, + headers: [], + body: forge.util.decode64(match[3]) + }; + rval.push(msg); + + // no headers + if(!match[2]) { + continue; + } + + // parse headers + var lines = match[2].split(rCRLF); + var li = 0; + while(match && li < lines.length) { + // get line, trim any rhs whitespace + var line = lines[li].replace(/\s+$/, ''); + + // RFC2822 unfold any following folded lines + for(var nl = li + 1; nl < lines.length; ++nl) { + var next = lines[nl]; + if(!/\s/.test(next[0])) { + break; + } + line += next; + li = nl; + } + + // parse header + match = line.match(rHeader); + if(match) { + var header = {name: match[1], values: []}; + var values = match[2].split(','); + for(var vi = 0; vi < values.length; ++vi) { + header.values.push(ltrim(values[vi])); + } + + // Proc-Type must be the first header + if(!msg.procType) { + if(header.name !== 'Proc-Type') { + throw new Error('Invalid PEM formatted message. The first ' + + 'encapsulated header must be "Proc-Type".'); + } else if(header.values.length !== 2) { + throw new Error('Invalid PEM formatted message. The "Proc-Type" ' + + 'header must have two subfields.'); + } + msg.procType = {version: values[0], type: values[1]}; + } else if(!msg.contentDomain && header.name === 'Content-Domain') { + // special-case Content-Domain + msg.contentDomain = values[0] || ''; + } else if(!msg.dekInfo && header.name === 'DEK-Info') { + // special-case DEK-Info + if(header.values.length === 0) { + throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + + 'header must have at least one subfield.'); + } + msg.dekInfo = {algorithm: values[0], parameters: values[1] || null}; + } else { + msg.headers.push(header); + } + } + + ++li; + } + + if(msg.procType === 'ENCRYPTED' && !msg.dekInfo) { + throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + + 'header must be present if "Proc-Type" is "ENCRYPTED".'); + } + } + + if(rval.length === 0) { + throw new Error('Invalid PEM formatted message.'); + } + + return rval; +}; + +function foldHeader(header) { + var rval = header.name + ': '; + + // ensure values with CRLF are folded + var values = []; + var insertSpace = function(match, $1) { + return ' ' + $1; + }; + for(var i = 0; i < header.values.length; ++i) { + values.push(header.values[i].replace(/^(\S+\r\n)/, insertSpace)); + } + rval += values.join(',') + '\r\n'; + + // do folding + var length = 0; + var candidate = -1; + for(var i = 0; i < rval.length; ++i, ++length) { + if(length > 65 && candidate !== -1) { + var insert = rval[candidate]; + if(insert === ',') { + ++candidate; + rval = rval.substr(0, candidate) + '\r\n ' + rval.substr(candidate); + } else { + rval = rval.substr(0, candidate) + + '\r\n' + insert + rval.substr(candidate + 1); + } + length = (i - candidate - 1); + candidate = -1; + ++i; + } else if(rval[i] === ' ' || rval[i] === '\t' || rval[i] === ',') { + candidate = i; + } + } + + return rval; +} + +function ltrim(str) { + return str.replace(/^\s+/, ''); +} + + +/***/ }), + +/***/ 4079: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudfunctions_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudfunctions_v1; +(function (cloudfunctions_v1) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v1'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v1.Cloudfunctions = Cloudfunctions; + class Resource$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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + call(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1 = exports.cloudfunctions_v1 || (exports.cloudfunctions_v1 = {})); + + +/***/ }), + +/***/ 4089: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _regex = _interopRequireDefault(__webpack_require__(8280)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function validate(uuid) { + return typeof uuid === 'string' && _regex.default.test(uuid); +} + +var _default = validate; +exports.default = _default; + +/***/ }), + +/***/ 4090: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.accesscontextmanager_v1beta = exports.accesscontextmanager_v1 = exports.auth = exports.accesscontextmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8227); +Object.defineProperty(exports, "accesscontextmanager_v1", { enumerable: true, get: function () { return v1_1.accesscontextmanager_v1; } }); +const v1beta_1 = __webpack_require__(5551); +Object.defineProperty(exports, "accesscontextmanager_v1beta", { enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.accesscontextmanager_v1.Accesscontextmanager, + v1beta: v1beta_1.accesscontextmanager_v1beta.Accesscontextmanager, +}; +function accesscontextmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('accesscontextmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.accesscontextmanager = accesscontextmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4102: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.storagetransfer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var storagetransfer_v1; +(function (storagetransfer_v1) { + /** + * Storage Transfer API + * + * Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const storagetransfer = google.storagetransfer('v1'); + * ``` + */ + class Storagetransfer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.googleServiceAccounts = new Resource$Googleserviceaccounts(this.context); + this.projects = new Resource$Projects(this.context); + this.transferJobs = new Resource$Transferjobs(this.context); + this.transferOperations = new Resource$Transferoperations(this.context); + } + } + storagetransfer_v1.Storagetransfer = Storagetransfer; + class Resource$Googleserviceaccounts { + 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleServiceAccounts/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + storagetransfer_v1.Resource$Googleserviceaccounts = Resource$Googleserviceaccounts; + class Resource$Projects { + constructor(context) { + this.context = context; + this.agentPools = new Resource$Projects$Agentpools(this.context); + } + } + storagetransfer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Agentpools { + 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + storagetransfer_v1.Resource$Projects$Agentpools = Resource$Projects$Agentpools; + class Resource$Transferjobs { + 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['jobName', 'projectId'], + pathParams: ['jobName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobName', 'projectId'], + pathParams: ['jobName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filter'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['jobName'], + pathParams: ['jobName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+jobName}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['jobName'], + pathParams: ['jobName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + storagetransfer_v1.Resource$Transferjobs = Resource$Transferjobs; + class Resource$Transferoperations { + 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://storagetransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name', 'filter'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + storagetransfer_v1.Resource$Transferoperations = Resource$Transferoperations; +})(storagetransfer_v1 = exports.storagetransfer_v1 || (exports.storagetransfer_v1 = {})); + + +/***/ }), + +/***/ 4106: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +exports.unsafeStringify = unsafeStringify; + +var _validate = _interopRequireDefault(__webpack_require__(4089)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).slice(1)); +} + +function unsafeStringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); +} + +function stringify(arr, offset = 0) { + const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!(0, _validate.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +var _default = stringify; +exports.default = _default; + +/***/ }), + +/***/ 4114: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * A javascript implementation of a cryptographically-secure + * Pseudo Random Number Generator (PRNG). The Fortuna algorithm is followed + * here though the use of SHA-256 is not enforced; when generating an + * a PRNG context, the hashing algorithm and block cipher used for + * the generator are specified via a plugin. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +var _crypto = null; +if(forge.util.isNodejs && !forge.options.usePureJavaScript && + !process.versions['node-webkit']) { + _crypto = __webpack_require__(6417); +} + +/* PRNG API */ +var prng = module.exports = forge.prng = forge.prng || {}; + +/** + * Creates a new PRNG context. + * + * A PRNG plugin must be passed in that will provide: + * + * 1. A function that initializes the key and seed of a PRNG context. It + * will be given a 16 byte key and a 16 byte seed. Any key expansion + * or transformation of the seed from a byte string into an array of + * integers (or similar) should be performed. + * 2. The cryptographic function used by the generator. It takes a key and + * a seed. + * 3. A seed increment function. It takes the seed and returns seed + 1. + * 4. An api to create a message digest. + * + * For an example, see random.js. + * + * @param plugin the PRNG plugin to use. + */ +prng.create = function(plugin) { + var ctx = { + plugin: plugin, + key: null, + seed: null, + time: null, + // number of reseeds so far + reseeds: 0, + // amount of data generated so far + generated: 0, + // no initial key bytes + keyBytes: '' + }; + + // create 32 entropy pools (each is a message digest) + var md = plugin.md; + var pools = new Array(32); + for(var i = 0; i < 32; ++i) { + pools[i] = md.create(); + } + ctx.pools = pools; + + // entropy pools are written to cyclically, starting at index 0 + ctx.pool = 0; + + /** + * Generates random bytes. The bytes may be generated synchronously or + * asynchronously. Web workers must use the asynchronous interface or + * else the behavior is undefined. + * + * @param count the number of random bytes to generate. + * @param [callback(err, bytes)] called once the operation completes. + * + * @return count random bytes as a string. + */ + ctx.generate = function(count, callback) { + // do synchronously + if(!callback) { + return ctx.generateSync(count); + } + + // simple generator using counter-based CBC + var cipher = ctx.plugin.cipher; + var increment = ctx.plugin.increment; + var formatKey = ctx.plugin.formatKey; + var formatSeed = ctx.plugin.formatSeed; + var b = forge.util.createBuffer(); + + // paranoid deviation from Fortuna: + // reset key for every request to protect previously + // generated random bytes should the key be discovered; + // there is no 100ms based reseeding because of this + // forced reseed for every `generate` call + ctx.key = null; + + generate(); + + function generate(err) { + if(err) { + return callback(err); + } + + // sufficient bytes generated + if(b.length() >= count) { + return callback(null, b.getBytes(count)); + } + + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } + + if(ctx.key === null) { + // prevent stack overflow + return forge.util.nextTick(function() { + _reseed(generate); + }); + } + + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); + + // generate bytes for a new key and seed + ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); + ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); + + forge.util.setImmediate(generate); + } + }; + + /** + * Generates random bytes synchronously. + * + * @param count the number of random bytes to generate. + * + * @return count random bytes as a string. + */ + ctx.generateSync = function(count) { + // simple generator using counter-based CBC + var cipher = ctx.plugin.cipher; + var increment = ctx.plugin.increment; + var formatKey = ctx.plugin.formatKey; + var formatSeed = ctx.plugin.formatSeed; + + // paranoid deviation from Fortuna: + // reset key for every request to protect previously + // generated random bytes should the key be discovered; + // there is no 100ms based reseeding because of this + // forced reseed for every `generateSync` call + ctx.key = null; + + var b = forge.util.createBuffer(); + while(b.length() < count) { + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } + + if(ctx.key === null) { + _reseedSync(); + } + + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); + + // generate bytes for a new key and seed + ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); + ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); + } + + return b.getBytes(count); + }; + + /** + * Private function that asynchronously reseeds a generator. + * + * @param callback(err) called once the operation completes. + */ + function _reseed(callback) { + if(ctx.pools[0].messageLength >= 32) { + _seed(); + return callback(); + } + // not enough seed data... + var needed = (32 - ctx.pools[0].messageLength) << 5; + ctx.seedFile(needed, function(err, bytes) { + if(err) { + return callback(err); + } + ctx.collect(bytes); + _seed(); + callback(); + }); + } + + /** + * Private function that synchronously reseeds a generator. + */ + function _reseedSync() { + if(ctx.pools[0].messageLength >= 32) { + return _seed(); + } + // not enough seed data... + var needed = (32 - ctx.pools[0].messageLength) << 5; + ctx.collect(ctx.seedFileSync(needed)); + _seed(); + } + + /** + * Private function that seeds a generator once enough bytes are available. + */ + function _seed() { + // update reseed count + ctx.reseeds = (ctx.reseeds === 0xffffffff) ? 0 : ctx.reseeds + 1; + + // goal is to update `key` via: + // key = hash(key + s) + // where 's' is all collected entropy from selected pools, then... + + // create a plugin-based message digest + var md = ctx.plugin.md.create(); + + // consume current key bytes + md.update(ctx.keyBytes); + + // digest the entropy of pools whose index k meet the + // condition 'n mod 2^k == 0' where n is the number of reseeds + var _2powK = 1; + for(var k = 0; k < 32; ++k) { + if(ctx.reseeds % _2powK === 0) { + md.update(ctx.pools[k].digest().getBytes()); + ctx.pools[k].start(); + } + _2powK = _2powK << 1; + } + + // get digest for key bytes + ctx.keyBytes = md.digest().getBytes(); + + // paranoid deviation from Fortuna: + // update `seed` via `seed = hash(key)` + // instead of initializing to zero once and only + // ever incrementing it + md.start(); + md.update(ctx.keyBytes); + var seedBytes = md.digest().getBytes(); + + // update state + ctx.key = ctx.plugin.formatKey(ctx.keyBytes); + ctx.seed = ctx.plugin.formatSeed(seedBytes); + ctx.generated = 0; + } + + /** + * The built-in default seedFile. This seedFile is used when entropy + * is needed immediately. + * + * @param needed the number of bytes that are needed. + * + * @return the random bytes. + */ + function defaultSeedFile(needed) { + // use window.crypto.getRandomValues strong source of entropy if available + var getRandomValues = null; + var globalScope = forge.util.globalScope; + var _crypto = globalScope.crypto || globalScope.msCrypto; + if(_crypto && _crypto.getRandomValues) { + getRandomValues = function(arr) { + return _crypto.getRandomValues(arr); + }; + } + + var b = forge.util.createBuffer(); + if(getRandomValues) { + while(b.length() < needed) { + // max byte length is 65536 before QuotaExceededError is thrown + // http://www.w3.org/TR/WebCryptoAPI/#RandomSource-method-getRandomValues + var count = Math.max(1, Math.min(needed - b.length(), 65536) / 4); + var entropy = new Uint32Array(Math.floor(count)); + try { + getRandomValues(entropy); + for(var i = 0; i < entropy.length; ++i) { + b.putInt32(entropy[i]); + } + } catch(e) { + /* only ignore QuotaExceededError */ + if(!(typeof QuotaExceededError !== 'undefined' && + e instanceof QuotaExceededError)) { + throw e; + } + } + } + } + + // be sad and add some weak random data + if(b.length() < needed) { + /* Draws from Park-Miller "minimal standard" 31 bit PRNG, + implemented with David G. Carta's optimization: with 32 bit math + and without division (Public Domain). */ + var hi, lo, next; + var seed = Math.floor(Math.random() * 0x010000); + while(b.length() < needed) { + lo = 16807 * (seed & 0xFFFF); + hi = 16807 * (seed >> 16); + lo += (hi & 0x7FFF) << 16; + lo += hi >> 15; + lo = (lo & 0x7FFFFFFF) + (lo >> 31); + seed = lo & 0xFFFFFFFF; + + // consume lower 3 bytes of seed + for(var i = 0; i < 3; ++i) { + // throw in more pseudo random + next = seed >>> (i << 3); + next ^= Math.floor(Math.random() * 0x0100); + b.putByte(next & 0xFF); + } + } + } + + return b.getBytes(needed); + } + // initialize seed file APIs + if(_crypto) { + // use nodejs async API + ctx.seedFile = function(needed, callback) { + _crypto.randomBytes(needed, function(err, bytes) { + if(err) { + return callback(err); + } + callback(null, bytes.toString()); + }); + }; + // use nodejs sync API + ctx.seedFileSync = function(needed) { + return _crypto.randomBytes(needed).toString(); + }; + } else { + ctx.seedFile = function(needed, callback) { + try { + callback(null, defaultSeedFile(needed)); + } catch(e) { + callback(e); + } + }; + ctx.seedFileSync = defaultSeedFile; + } + + /** + * Adds entropy to a prng ctx's accumulator. + * + * @param bytes the bytes of entropy as a string. + */ + ctx.collect = function(bytes) { + // iterate over pools distributing entropy cyclically + var count = bytes.length; + for(var i = 0; i < count; ++i) { + ctx.pools[ctx.pool].update(bytes.substr(i, 1)); + ctx.pool = (ctx.pool === 31) ? 0 : ctx.pool + 1; + } + }; + + /** + * Collects an integer of n bits. + * + * @param i the integer entropy. + * @param n the number of bits in the integer. + */ + ctx.collectInt = function(i, n) { + var bytes = ''; + for(var x = 0; x < n; x += 8) { + bytes += String.fromCharCode((i >> x) & 0xFF); + } + ctx.collect(bytes); + }; + + /** + * Registers a Web Worker to receive immediate entropy from the main thread. + * This method is required until Web Workers can access the native crypto + * API. This method should be called twice for each created worker, once in + * the main thread, and once in the worker itself. + * + * @param worker the worker to register. + */ + ctx.registerWorker = function(worker) { + // worker receives random bytes + if(worker === self) { + ctx.seedFile = function(needed, callback) { + function listener(e) { + var data = e.data; + if(data.forge && data.forge.prng) { + self.removeEventListener('message', listener); + callback(data.forge.prng.err, data.forge.prng.bytes); + } + } + self.addEventListener('message', listener); + self.postMessage({forge: {prng: {needed: needed}}}); + }; + } else { + // main thread sends random bytes upon request + var listener = function(e) { + var data = e.data; + if(data.forge && data.forge.prng) { + ctx.seedFile(data.forge.prng.needed, function(err, bytes) { + worker.postMessage({forge: {prng: {err: err, bytes: bytes}}}); + }); + } + }; + // TODO: do we need to remove the event listener when the worker dies? + worker.addEventListener('message', listener); + } + }; + + return ctx; +}; + + +/***/ }), + +/***/ 4121: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datafusion_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datafusion_v1; +(function (datafusion_v1) { + /** + * Cloud Data Fusion API + * + * Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datafusion = google.datafusion('v1'); + * ``` + */ + class Datafusion { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datafusion_v1.Datafusion = Datafusion; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datafusion_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.versions = new Resource$Projects$Locations$Versions(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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + this.dnsPeerings = new Resource$Projects$Locations$Instances$Dnspeerings(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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Dnspeerings { + 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1.Resource$Projects$Locations$Instances$Dnspeerings = Resource$Projects$Locations$Instances$Dnspeerings; + 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Versions { + 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1.Resource$Projects$Locations$Versions = Resource$Projects$Locations$Versions; +})(datafusion_v1 = exports.datafusion_v1 || (exports.datafusion_v1 = {})); + + +/***/ }), + +/***/ 4136: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.billingbudgets_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var billingbudgets_v1beta1; +(function (billingbudgets_v1beta1) { + /** + * Cloud Billing Budget API + * + * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const billingbudgets = google.billingbudgets('v1beta1'); + * ``` + */ + class Billingbudgets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + } + } + billingbudgets_v1beta1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); + } + } + billingbudgets_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + 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://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + billingbudgets_v1beta1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1beta1 = exports.billingbudgets_v1beta1 || (exports.billingbudgets_v1beta1 = {})); + + +/***/ }), + +/***/ 4149: +/***/ (function(module, exports, __webpack_require__) { + +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +/* eslint-disable node/no-deprecated-api */ +var buffer = __webpack_require__(4293) +var Buffer = buffer.Buffer + +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} + +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.prototype = Object.create(Buffer.prototype) + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } + } else { + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} + +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} + + +/***/ }), + +/***/ 4158: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.adsense_v2 = exports.adsense_v1_4 = exports.auth = exports.adsense = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_4_1 = __webpack_require__(8206); +Object.defineProperty(exports, "adsense_v1_4", { enumerable: true, get: function () { return v1_4_1.adsense_v1_4; } }); +const v2_1 = __webpack_require__(9928); +Object.defineProperty(exports, "adsense_v2", { enumerable: true, get: function () { return v2_1.adsense_v2; } }); +exports.VERSIONS = { + 'v1.4': v1_4_1.adsense_v1_4.Adsense, + v2: v2_1.adsense_v2.Adsense, +}; +function adsense(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('adsense', versionOrOptions, exports.VERSIONS, this); +} +exports.adsense = adsense; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4162: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2022 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.PluggableAuthHandler = void 0; +const pluggable_auth_client_1 = __webpack_require__(282); +const executable_response_1 = __webpack_require__(5561); +const childProcess = __webpack_require__(3129); +const fs = __webpack_require__(5747); +/** + * A handler used to retrieve 3rd party token responses from user defined + * executables and cached file output for the PluggableAuthClient class. + */ +class PluggableAuthHandler { + /** + * Instantiates a PluggableAuthHandler instance using the provided + * PluggableAuthHandlerOptions object. + */ + constructor(options) { + if (!options.command) { + throw new Error('No command provided.'); + } + this.commandComponents = PluggableAuthHandler.parseCommand(options.command); + this.timeoutMillis = options.timeoutMillis; + if (!this.timeoutMillis) { + throw new Error('No timeoutMillis provided.'); + } + this.outputFile = options.outputFile; + } + /** + * Calls user provided executable to get a 3rd party subject token and + * returns the response. + * @param envMap a Map of additional Environment Variables required for + * the executable. + * @return A promise that resolves with the executable response. + */ + retrieveResponseFromExecutable(envMap) { + return new Promise((resolve, reject) => { + // Spawn process to run executable using added environment variables. + const child = childProcess.spawn(this.commandComponents[0], this.commandComponents.slice(1), { + env: { ...process.env, ...Object.fromEntries(envMap) }, + }); + let output = ''; + // Append stdout to output as executable runs. + child.stdout.on('data', (data) => { + output += data; + }); + // Append stderr as executable runs. + child.stderr.on('data', (err) => { + output += err; + }); + // Set up a timeout to end the child process and throw an error. + const timeout = setTimeout(() => { + // Kill child process and remove listeners so 'close' event doesn't get + // read after child process is killed. + child.removeAllListeners(); + child.kill(); + return reject(new Error('The executable failed to finish within the timeout specified.')); + }, this.timeoutMillis); + child.on('close', (code) => { + // Cancel timeout if executable closes before timeout is reached. + clearTimeout(timeout); + if (code === 0) { + // If the executable completed successfully, try to return the parsed response. + try { + const responseJson = JSON.parse(output); + const response = new executable_response_1.ExecutableResponse(responseJson); + return resolve(response); + } + catch (error) { + if (error instanceof executable_response_1.ExecutableResponseError) { + return reject(error); + } + return reject(new executable_response_1.ExecutableResponseError(`The executable returned an invalid response: ${output}`)); + } + } + else { + return reject(new pluggable_auth_client_1.ExecutableError(output, code.toString())); + } + }); + }); + } + /** + * Checks user provided output file for response from previous run of + * executable and return the response if it exists, is formatted correctly, and is not expired. + */ + async retrieveCachedResponse() { + if (!this.outputFile || this.outputFile.length === 0) { + return undefined; + } + let filePath; + try { + filePath = await fs.promises.realpath(this.outputFile); + } + catch (_a) { + // If file path cannot be resolved, return undefined. + return undefined; + } + if (!(await fs.promises.lstat(filePath)).isFile()) { + // If path does not lead to file, return undefined. + return undefined; + } + const responseString = await fs.promises.readFile(filePath, { + encoding: 'utf8', + }); + if (responseString === '') { + return undefined; + } + try { + const responseJson = JSON.parse(responseString); + const response = new executable_response_1.ExecutableResponse(responseJson); + // Check if response is successful and unexpired. + if (response.isValid()) { + return new executable_response_1.ExecutableResponse(responseJson); + } + return undefined; + } + catch (error) { + if (error instanceof executable_response_1.ExecutableResponseError) { + throw error; + } + throw new executable_response_1.ExecutableResponseError(`The output file contained an invalid response: ${responseString}`); + } + } + /** + * Parses given command string into component array, splitting on spaces unless + * spaces are between quotation marks. + */ + static parseCommand(command) { + // Split the command into components by splitting on spaces, + // unless spaces are contained in quotation marks. + const components = command.match(/(?:[^\s"]+|"[^"]*")+/g); + if (!components) { + throw new Error(`Provided command: "${command}" could not be parsed.`); + } + // Remove quotation marks from the beginning and end of each component if they are present. + for (let i = 0; i < components.length; i++) { + if (components[i][0] === '"' && components[i].slice(-1) === '"') { + components[i] = components[i].slice(1, -1); + } + } + return components; + } +} +exports.PluggableAuthHandler = PluggableAuthHandler; +//# sourceMappingURL=pluggable-auth-handler.js.map + +/***/ }), + +/***/ 4177: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.checkBypass = exports.getProxyUrl = void 0; +function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === 'https:'; + if (checkBypass(reqUrl)) { + return undefined; + } + const proxyVar = (() => { + if (usingSsl) { + return process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + })(); + if (proxyVar) { + return new URL(proxyVar); + } + else { + return undefined; + } +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + const reqHost = reqUrl.hostname; + if (isLoopbackAddress(reqHost)) { + return true; + } + const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (const upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperNoProxyItem === '*' || + upperReqHosts.some(x => x === upperNoProxyItem || + x.endsWith(`.${upperNoProxyItem}`) || + (upperNoProxyItem.startsWith('.') && + x.endsWith(`${upperNoProxyItem}`)))) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; +function isLoopbackAddress(host) { + const hostLower = host.toLowerCase(); + return (hostLower === 'localhost' || + hostLower.startsWith('127.') || + hostLower.startsWith('[::1]') || + hostLower.startsWith('[0:0:0:0:0:0:0:1]')); +} +//# sourceMappingURL=proxy.js.map + +/***/ }), + +/***/ 4190: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticationPlugin; + +const { createTokenAuth } = __webpack_require__(9813); +const { Deprecation } = __webpack_require__(7692); +const once = __webpack_require__(6049); + +const beforeRequest = __webpack_require__(6863); +const requestError = __webpack_require__(7293); +const validate = __webpack_require__(6489); +const withAuthorizationPrefix = __webpack_require__(3143); + +const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation)); +const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation)); + +function authenticationPlugin(octokit, options) { + // If `options.authStrategy` is set then use it and pass in `options.auth` + if (options.authStrategy) { + const auth = options.authStrategy(options.auth); + octokit.hook.wrap("request", auth.hook); + octokit.auth = auth; + return; + } + + // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance + // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred. + if (!options.auth) { + octokit.auth = () => + Promise.resolve({ + type: "unauthenticated" + }); + return; + } + + const isBasicAuthString = + typeof options.auth === "string" && + /^basic/.test(withAuthorizationPrefix(options.auth)); + + // If only `options.auth` is set to a string, use the default token authentication strategy. + if (typeof options.auth === "string" && !isBasicAuthString) { + const auth = createTokenAuth(options.auth); + octokit.hook.wrap("request", auth.hook); + octokit.auth = auth; + return; + } + + // Otherwise log a deprecation message + const [deprecationMethod, deprecationMessapge] = isBasicAuthString + ? [ + deprecateAuthBasic, + 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)' + ] + : [ + deprecateAuthObject, + 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)' + ]; + deprecationMethod( + octokit.log, + new Deprecation("[@octokit/rest] " + deprecationMessapge) + ); + + octokit.auth = () => + Promise.resolve({ + type: "deprecated", + message: deprecationMessapge + }); + + validate(options.auth); + + const state = { + octokit, + auth: options.auth + }; + + octokit.hook.before("request", beforeRequest.bind(null, state)); + octokit.hook.error("request", requestError.bind(null, state)); +} + + +/***/ }), + +/***/ 4201: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudbuild_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudbuild_v1; +(function (cloudbuild_v1) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.githubDotComWebhook = new Resource$Githubdotcomwebhook(this.context); + this.locations = new Resource$Locations(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudbuild_v1.Cloudbuild = Cloudbuild; + class Resource$Githubdotcomwebhook { + constructor(context) { + this.context = context; + } + receive(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/githubDotComWebhook:receive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Githubdotcomwebhook = Resource$Githubdotcomwebhook; + class Resource$Locations { + constructor(context) { + this.context = context; + } + regionalWebhook(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/regionalWebhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Locations = Resource$Locations; + class Resource$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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.builds = new Resource$Projects$Builds(this.context); + this.githubEnterpriseConfigs = + new Resource$Projects$Githubenterpriseconfigs(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.triggers = new Resource$Projects$Triggers(this.context); + } + } + cloudbuild_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Builds { + constructor(context) { + this.context = context; + } + approve(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retry(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Builds = Resource$Projects$Builds; + class Resource$Projects$Githubenterpriseconfigs { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Githubenterpriseconfigs = Resource$Projects$Githubenterpriseconfigs; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.bitbucketServerConfigs = + new Resource$Projects$Locations$Bitbucketserverconfigs(this.context); + this.builds = new Resource$Projects$Locations$Builds(this.context); + this.githubEnterpriseConfigs = + new Resource$Projects$Locations$Githubenterpriseconfigs(this.context); + this.gitLabConfigs = new Resource$Projects$Locations$Gitlabconfigs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.triggers = new Resource$Projects$Locations$Triggers(this.context); + this.workerPools = new Resource$Projects$Locations$Workerpools(this.context); + } + } + cloudbuild_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Bitbucketserverconfigs { + constructor(context) { + this.context = context; + this.connectedRepositories = + new Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories(this.context); + this.repos = new Resource$Projects$Locations$Bitbucketserverconfigs$Repos(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeBitbucketServerConnectedRepository(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+config}:removeBitbucketServerConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['config'], + pathParams: ['config'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs = Resource$Projects$Locations$Bitbucketserverconfigs; + class Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories { + constructor(context) { + this.context = context; + } + batchCreate(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories = Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories; + class Resource$Projects$Locations$Bitbucketserverconfigs$Repos { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs$Repos = Resource$Projects$Locations$Bitbucketserverconfigs$Repos; + class Resource$Projects$Locations$Builds { + constructor(context) { + this.context = context; + } + approve(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retry(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Builds = Resource$Projects$Locations$Builds; + class Resource$Projects$Locations$Githubenterpriseconfigs { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Githubenterpriseconfigs = Resource$Projects$Locations$Githubenterpriseconfigs; + class Resource$Projects$Locations$Gitlabconfigs { + constructor(context) { + this.context = context; + this.connectedRepositories = + new Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories(this.context); + this.repos = new Resource$Projects$Locations$Gitlabconfigs$Repos(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeGitLabConnectedRepository(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+config}:removeGitLabConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['config'], + pathParams: ['config'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs = Resource$Projects$Locations$Gitlabconfigs; + class Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories { + constructor(context) { + this.context = context; + } + batchCreate(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories = Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories; + class Resource$Projects$Locations$Gitlabconfigs$Repos { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs$Repos = Resource$Projects$Locations$Gitlabconfigs$Repos; + 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Triggers { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + webhook(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; + class Resource$Projects$Locations$Workerpools { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; + class Resource$Projects$Triggers { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + webhook(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{trigger}:webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'trigger'], + pathParams: ['projectId', 'trigger'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Triggers = Resource$Projects$Triggers; + class Resource$V1 { + constructor(context) { + this.context = context; + } + webhook(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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1.Resource$V1 = Resource$V1; +})(cloudbuild_v1 = exports.cloudbuild_v1 || (exports.cloudbuild_v1 = {})); + + +/***/ }), + +/***/ 4205: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(__webpack_require__(4089)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +var _default = parse; +exports.default = _default; + +/***/ }), + +/***/ 4212: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = _default; +exports.URL = exports.DNS = void 0; + +var _stringify = _interopRequireDefault(__webpack_require__(3411)); + +var _parse = _interopRequireDefault(__webpack_require__(22)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = (0, _parse.default)(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return (0, _stringify.default)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} + +/***/ }), + +/***/ 4213: +/***/ (function(module) { + +module.exports = require("punycode"); + +/***/ }), + +/***/ 4226: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.documentai_v1beta3 = exports.documentai_v1beta2 = exports.documentai_v1 = exports.auth = exports.documentai = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2335); +Object.defineProperty(exports, "documentai_v1", { enumerable: true, get: function () { return v1_1.documentai_v1; } }); +const v1beta2_1 = __webpack_require__(1294); +Object.defineProperty(exports, "documentai_v1beta2", { enumerable: true, get: function () { return v1beta2_1.documentai_v1beta2; } }); +const v1beta3_1 = __webpack_require__(456); +Object.defineProperty(exports, "documentai_v1beta3", { enumerable: true, get: function () { return v1beta3_1.documentai_v1beta3; } }); +exports.VERSIONS = { + v1: v1_1.documentai_v1.Documentai, + v1beta2: v1beta2_1.documentai_v1beta2.Documentai, + v1beta3: v1beta3_1.documentai_v1beta3.Documentai, +}; +function documentai(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('documentai', versionOrOptions, exports.VERSIONS, this); +} +exports.documentai = documentai; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4233: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.compute_beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var compute_beta; +(function (compute_beta) { + /** + * Compute Engine API + * + * Creates and runs virtual machines on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const compute = google.compute('beta'); + * ``` + */ + class Compute { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acceleratorTypes = new Resource$Acceleratortypes(this.context); + this.addresses = new Resource$Addresses(this.context); + this.autoscalers = new Resource$Autoscalers(this.context); + this.backendBuckets = new Resource$Backendbuckets(this.context); + this.backendServices = new Resource$Backendservices(this.context); + this.disks = new Resource$Disks(this.context); + this.diskTypes = new Resource$Disktypes(this.context); + this.externalVpnGateways = new Resource$Externalvpngateways(this.context); + this.firewallPolicies = new Resource$Firewallpolicies(this.context); + this.firewalls = new Resource$Firewalls(this.context); + this.forwardingRules = new Resource$Forwardingrules(this.context); + this.globalAddresses = new Resource$Globaladdresses(this.context); + this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); + this.globalNetworkEndpointGroups = + new Resource$Globalnetworkendpointgroups(this.context); + this.globalOperations = new Resource$Globaloperations(this.context); + this.globalOrganizationOperations = + new Resource$Globalorganizationoperations(this.context); + this.globalPublicDelegatedPrefixes = + new Resource$Globalpublicdelegatedprefixes(this.context); + this.healthChecks = new Resource$Healthchecks(this.context); + this.httpHealthChecks = new Resource$Httphealthchecks(this.context); + this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); + this.imageFamilyViews = new Resource$Imagefamilyviews(this.context); + this.images = new Resource$Images(this.context); + this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); + this.instanceGroups = new Resource$Instancegroups(this.context); + this.instances = new Resource$Instances(this.context); + this.instanceTemplates = new Resource$Instancetemplates(this.context); + this.interconnectAttachments = new Resource$Interconnectattachments(this.context); + this.interconnectLocations = new Resource$Interconnectlocations(this.context); + this.interconnects = new Resource$Interconnects(this.context); + this.licenseCodes = new Resource$Licensecodes(this.context); + this.licenses = new Resource$Licenses(this.context); + this.machineImages = new Resource$Machineimages(this.context); + this.machineTypes = new Resource$Machinetypes(this.context); + this.networkAttachments = new Resource$Networkattachments(this.context); + this.networkEdgeSecurityServices = + new Resource$Networkedgesecurityservices(this.context); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); + this.networkFirewallPolicies = new Resource$Networkfirewallpolicies(this.context); + this.networks = new Resource$Networks(this.context); + this.nodeGroups = new Resource$Nodegroups(this.context); + this.nodeTemplates = new Resource$Nodetemplates(this.context); + this.nodeTypes = new Resource$Nodetypes(this.context); + this.organizationSecurityPolicies = + new Resource$Organizationsecuritypolicies(this.context); + this.packetMirrorings = new Resource$Packetmirrorings(this.context); + this.projects = new Resource$Projects(this.context); + this.publicAdvertisedPrefixes = new Resource$Publicadvertisedprefixes(this.context); + this.publicDelegatedPrefixes = new Resource$Publicdelegatedprefixes(this.context); + this.regionAutoscalers = new Resource$Regionautoscalers(this.context); + this.regionBackendServices = new Resource$Regionbackendservices(this.context); + this.regionCommitments = new Resource$Regioncommitments(this.context); + this.regionDisks = new Resource$Regiondisks(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); + this.regionInstanceGroupManagers = + new Resource$Regioninstancegroupmanagers(this.context); + this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); + this.regionInstances = new Resource$Regioninstances(this.context); + this.regionInstanceTemplates = new Resource$Regioninstancetemplates(this.context); + this.regionNetworkEndpointGroups = + new Resource$Regionnetworkendpointgroups(this.context); + this.regionNetworkFirewallPolicies = + new Resource$Regionnetworkfirewallpolicies(this.context); + this.regionNotificationEndpoints = + new Resource$Regionnotificationendpoints(this.context); + this.regionOperations = new Resource$Regionoperations(this.context); + this.regions = new Resource$Regions(this.context); + this.regionSecurityPolicies = new Resource$Regionsecuritypolicies(this.context); + this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); + this.regionSslPolicies = new Resource$Regionsslpolicies(this.context); + this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); + this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); + this.regionTargetTcpProxies = new Resource$Regiontargettcpproxies(this.context); + this.regionUrlMaps = new Resource$Regionurlmaps(this.context); + this.reservations = new Resource$Reservations(this.context); + this.resourcePolicies = new Resource$Resourcepolicies(this.context); + this.routers = new Resource$Routers(this.context); + this.routes = new Resource$Routes(this.context); + this.securityPolicies = new Resource$Securitypolicies(this.context); + this.serviceAttachments = new Resource$Serviceattachments(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetGrpcProxies = new Resource$Targetgrpcproxies(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zones = new Resource$Zones(this.context); + } + } + compute_beta.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setEdgeSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; + } + addSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setEdgeSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSnapshot(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopGroupAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssociations(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTarget(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Globaladdresses { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTarget(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Imagefamilyviews { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Imagefamilyviews = Resource$Imagefamilyviews; + class Resource$Images { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deprecate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFromFamily(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listErrors(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listManagedInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoHealingPolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachDisk(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteAccessConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachDisk(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getGuestAttributes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getScreenshot(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSerialPortOutput(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getShieldedInstanceIdentity(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getShieldedVmIdentity(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listReferrers(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendDiagnosticInterrupt(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDeletionProtection(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDiskAutoDelete(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMachineResources(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMetadata(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMinCpuPlatform(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setName(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setScheduling(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setServiceAccount(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setShieldedInstanceIntegrityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setShieldedVmIntegrityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTags(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + simulateMaintenanceEvent(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startWithEncryptionKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspend(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAccessConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateDisplayDevice(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateNetworkInterface(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateShieldedInstanceConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateShieldedVmConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instances = Resource$Instances; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDiagnostics(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkattachments { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkattachments = Resource$Networkattachments; + class Resource$Networkedgesecurityservices { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPeeringRoutes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removePeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + switchToCustomMode(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteNodes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listNodes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNodeTemplate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + simulateMaintenanceEvent(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Organizationsecuritypolicies { + constructor(context) { + this.context = context; + } + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + copyRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssociations(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disableXpnResource(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enableXpnResource(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getXpnResources(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listXpnHosts(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveDisk(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCommonInstanceMetadata(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefaultNetworkTier(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUsageExportBucket(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateReservations(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { + constructor(context) { + this.context = context; + } + addResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSnapshot(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopGroupAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listErrors(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listManagedInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoHealingPolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regioninstancetemplates { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; + class Resource$Regionnetworkendpointgroups { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnetworkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEffectiveFirewalls(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNatMappingInfo(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRouterStatus(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + preview(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Routers = Resource$Routers; + class Resource$Routes { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; + } + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPreconfiguredExpressionSets(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Sslcertificates = Resource$Sslcertificates; + class Resource$Sslpolicies { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Subnetworks { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + expandIpCidrRange(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listUsable(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setPrivateIpGoogleAccess(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targetgrpcproxies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCertificateMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setQuicOverride(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHealth(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeHealthCheck(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackup(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackendService(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setCertificateMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setProxyHeader(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setBackendService(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setProxyHeader(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getStatus(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneoperations { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zones { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_beta.Resource$Zones = Resource$Zones; +})(compute_beta = exports.compute_beta || (exports.compute_beta = {})); + + +/***/ }), + +/***/ 4285: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = __webpack_require__(239); +__webpack_require__(828); +__webpack_require__(9994); +__webpack_require__(1431); +__webpack_require__(6102); +__webpack_require__(6155); +__webpack_require__(8784); +__webpack_require__(3000); +__webpack_require__(2143); +__webpack_require__(3798); +__webpack_require__(6479); +__webpack_require__(8526); +__webpack_require__(1575); +__webpack_require__(4076); +__webpack_require__(2065); +__webpack_require__(7997); +__webpack_require__(7963); +__webpack_require__(6463); +__webpack_require__(1850); +__webpack_require__(4114); +__webpack_require__(2705); +__webpack_require__(5707); +__webpack_require__(4385); +__webpack_require__(8928); +__webpack_require__(7171); +__webpack_require__(7152); + + +/***/ }), + +/***/ 4286: +/***/ (function(__unusedmodule, exports) { + +"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.androidpublisher_v1 = void 0; +var androidpublisher_v1; +(function (androidpublisher_v1) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v1'); + * + * @namespace androidpublisher + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + androidpublisher_v1.Androidpublisher = Androidpublisher; +})(androidpublisher_v1 = exports.androidpublisher_v1 || (exports.androidpublisher_v1 = {})); + + +/***/ }), + +/***/ 4293: +/***/ (function(module) { + +module.exports = require("buffer"); + +/***/ }), + +/***/ 4294: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebase_v1beta1 = exports.auth = exports.firebase = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(9172); +Object.defineProperty(exports, "firebase_v1beta1", { enumerable: true, get: function () { return v1beta1_1.firebase_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.firebase_v1beta1.Firebase, +}; +function firebase(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebase', versionOrOptions, exports.VERSIONS, this); +} +exports.firebase = firebase; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4310: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2013 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.Compute = void 0; +const arrify = __webpack_require__(2155); +const gaxios_1 = __webpack_require__(3597); +const gcpMetadata = __webpack_require__(1479); +const oauth2client_1 = __webpack_require__(4449); +class Compute extends oauth2client_1.OAuth2Client { + /** + * Google Compute Engine service account credentials. + * + * Retrieve access token from the metadata server. + * See: https://developers.google.com/compute/docs/authentication + */ + constructor(options = {}) { + super(options); + // Start with an expired refresh token, which will automatically be + // refreshed before the first API call is made. + this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; + this.serviceAccountEmail = options.serviceAccountEmail || 'default'; + this.scopes = arrify(options.scopes); + } + /** + * Refreshes the access token. + * @param refreshToken Unused parameter + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; + let data; + try { + const instanceOptions = { + property: tokenPath, + }; + if (this.scopes.length > 0) { + instanceOptions.params = { + scopes: this.scopes.join(','), + }; + } + data = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + if (e instanceof gaxios_1.GaxiosError) { + e.message = `Could not refresh access token: ${e.message}`; + this.wrapError(e); + } + throw e; + } + const tokens = data; + if (data && data.expires_in) { + tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res: null }; + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + + `?format=full&audience=${targetAudience}`; + let idToken; + try { + const instanceOptions = { + property: idTokenPath, + }; + idToken = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + if (e instanceof Error) { + e.message = `Could not fetch ID token: ${e.message}`; + } + throw e; + } + return idToken; + } + wrapError(e) { + const res = e.response; + if (res && res.status) { + e.code = res.status.toString(); + if (res.status === 403) { + e.message = + 'A Forbidden error was returned while attempting to retrieve an access ' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have the correct permission scopes specified: ' + + e.message; + } + else if (res.status === 404) { + e.message = + 'A Not Found error was returned while attempting to retrieve an access' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have any permission scopes specified: ' + + e.message; + } + } + } +} +exports.Compute = Compute; +//# sourceMappingURL=computeclient.js.map + +/***/ }), + +/***/ 4340: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.slides_v1 = exports.auth = exports.slides = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7641); +Object.defineProperty(exports, "slides_v1", { enumerable: true, get: function () { return v1_1.slides_v1; } }); +exports.VERSIONS = { + v1: v1_1.slides_v1.Slides, +}; +function slides(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('slides', versionOrOptions, exports.VERSIONS, this); +} +exports.slides = slides; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4353: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.androiddeviceprovisioning_v1 = exports.auth = exports.androiddeviceprovisioning = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(418); +Object.defineProperty(exports, "androiddeviceprovisioning_v1", { enumerable: true, get: function () { return v1_1.androiddeviceprovisioning_v1; } }); +exports.VERSIONS = { + v1: v1_1.androiddeviceprovisioning_v1.Androiddeviceprovisioning, +}; +function androiddeviceprovisioning(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('androiddeviceprovisioning', versionOrOptions, exports.VERSIONS, this); +} +exports.androiddeviceprovisioning = androiddeviceprovisioning; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4379: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.mybusinessbusinesscalls_v1 = exports.auth = exports.mybusinessbusinesscalls = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3415); +Object.defineProperty(exports, "mybusinessbusinesscalls_v1", { enumerable: true, get: function () { return v1_1.mybusinessbusinesscalls_v1; } }); +exports.VERSIONS = { + v1: v1_1.mybusinessbusinesscalls_v1.Mybusinessbusinesscalls, +}; +function mybusinessbusinesscalls(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessbusinesscalls', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessbusinesscalls = mybusinessbusinesscalls; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4385: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * RC2 implementation. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + * + * Information on the RC2 cipher is available from RFC #2268, + * http://www.ietf.org/rfc/rfc2268.txt + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +var piTable = [ + 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, 0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d, + 0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e, 0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2, + 0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13, 0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32, + 0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b, 0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82, + 0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c, 0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc, + 0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1, 0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26, + 0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57, 0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03, + 0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7, 0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7, + 0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7, 0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a, + 0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74, 0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec, + 0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc, 0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39, + 0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a, 0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31, + 0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae, 0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9, + 0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c, 0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9, + 0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0, 0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e, + 0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77, 0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad +]; + +var s = [1, 2, 3, 5]; + +/** + * Rotate a word left by given number of bits. + * + * Bits that are shifted out on the left are put back in on the right + * hand side. + * + * @param word The word to shift left. + * @param bits The number of bits to shift by. + * @return The rotated word. + */ +var rol = function(word, bits) { + return ((word << bits) & 0xffff) | ((word & 0xffff) >> (16 - bits)); +}; + +/** + * Rotate a word right by given number of bits. + * + * Bits that are shifted out on the right are put back in on the left + * hand side. + * + * @param word The word to shift right. + * @param bits The number of bits to shift by. + * @return The rotated word. + */ +var ror = function(word, bits) { + return ((word & 0xffff) >> bits) | ((word << (16 - bits)) & 0xffff); +}; + +/* RC2 API */ +module.exports = forge.rc2 = forge.rc2 || {}; + +/** + * Perform RC2 key expansion as per RFC #2268, section 2. + * + * @param key variable-length user key (between 1 and 128 bytes) + * @param effKeyBits number of effective key bits (default: 128) + * @return the expanded RC2 key (ByteBuffer of 128 bytes) + */ +forge.rc2.expandKey = function(key, effKeyBits) { + if(typeof key === 'string') { + key = forge.util.createBuffer(key); + } + effKeyBits = effKeyBits || 128; + + /* introduce variables that match the names used in RFC #2268 */ + var L = key; + var T = key.length(); + var T1 = effKeyBits; + var T8 = Math.ceil(T1 / 8); + var TM = 0xff >> (T1 & 0x07); + var i; + + for(i = T; i < 128; i++) { + L.putByte(piTable[(L.at(i - 1) + L.at(i - T)) & 0xff]); + } + + L.setAt(128 - T8, piTable[L.at(128 - T8) & TM]); + + for(i = 127 - T8; i >= 0; i--) { + L.setAt(i, piTable[L.at(i + 1) ^ L.at(i + T8)]); + } + + return L; +}; + +/** + * Creates a RC2 cipher object. + * + * @param key the symmetric key to use (as base for key generation). + * @param bits the number of effective key bits. + * @param encrypt false for decryption, true for encryption. + * + * @return the cipher. + */ +var createCipher = function(key, bits, encrypt) { + var _finish = false, _input = null, _output = null, _iv = null; + var mixRound, mashRound; + var i, j, K = []; + + /* Expand key and fill into K[] Array */ + key = forge.rc2.expandKey(key, bits); + for(i = 0; i < 64; i++) { + K.push(key.getInt16Le()); + } + + if(encrypt) { + /** + * Perform one mixing round "in place". + * + * @param R Array of four words to perform mixing on. + */ + mixRound = function(R) { + for(i = 0; i < 4; i++) { + R[i] += K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + + ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); + R[i] = rol(R[i], s[i]); + j++; + } + }; + + /** + * Perform one mashing round "in place". + * + * @param R Array of four words to perform mashing on. + */ + mashRound = function(R) { + for(i = 0; i < 4; i++) { + R[i] += K[R[(i + 3) % 4] & 63]; + } + }; + } else { + /** + * Perform one r-mixing round "in place". + * + * @param R Array of four words to perform mixing on. + */ + mixRound = function(R) { + for(i = 3; i >= 0; i--) { + R[i] = ror(R[i], s[i]); + R[i] -= K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + + ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); + j--; + } + }; + + /** + * Perform one r-mashing round "in place". + * + * @param R Array of four words to perform mashing on. + */ + mashRound = function(R) { + for(i = 3; i >= 0; i--) { + R[i] -= K[R[(i + 3) % 4] & 63]; + } + }; + } + + /** + * Run the specified cipher execution plan. + * + * This function takes four words from the input buffer, applies the IV on + * it (if requested) and runs the provided execution plan. + * + * The plan must be put together in form of a array of arrays. Where the + * outer one is simply a list of steps to perform and the inner one needs + * to have two elements: the first one telling how many rounds to perform, + * the second one telling what to do (i.e. the function to call). + * + * @param {Array} plan The plan to execute. + */ + var runPlan = function(plan) { + var R = []; + + /* Get data from input buffer and fill the four words into R */ + for(i = 0; i < 4; i++) { + var val = _input.getInt16Le(); + + if(_iv !== null) { + if(encrypt) { + /* We're encrypting, apply the IV first. */ + val ^= _iv.getInt16Le(); + } else { + /* We're decryption, keep cipher text for next block. */ + _iv.putInt16Le(val); + } + } + + R.push(val & 0xffff); + } + + /* Reset global "j" variable as per spec. */ + j = encrypt ? 0 : 63; + + /* Run execution plan. */ + for(var ptr = 0; ptr < plan.length; ptr++) { + for(var ctr = 0; ctr < plan[ptr][0]; ctr++) { + plan[ptr][1](R); + } + } + + /* Write back result to output buffer. */ + for(i = 0; i < 4; i++) { + if(_iv !== null) { + if(encrypt) { + /* We're encrypting in CBC-mode, feed back encrypted bytes into + IV buffer to carry it forward to next block. */ + _iv.putInt16Le(R[i]); + } else { + R[i] ^= _iv.getInt16Le(); + } + } + + _output.putInt16Le(R[i]); + } + }; + + /* Create cipher object */ + var cipher = null; + cipher = { + /** + * Starts or restarts the encryption or decryption process, whichever + * was previously configured. + * + * To use the cipher in CBC mode, iv may be given either as a string + * of bytes, or as a byte buffer. For ECB mode, give null as iv. + * + * @param iv the initialization vector to use, null for ECB mode. + * @param output the output the buffer to write to, null to create one. + */ + start: function(iv, output) { + if(iv) { + /* CBC mode */ + if(typeof iv === 'string') { + iv = forge.util.createBuffer(iv); + } + } + + _finish = false; + _input = forge.util.createBuffer(); + _output = output || new forge.util.createBuffer(); + _iv = iv; + + cipher.output = _output; + }, + + /** + * Updates the next block. + * + * @param input the buffer to read from. + */ + update: function(input) { + if(!_finish) { + // not finishing, so fill the input buffer with more input + _input.putBuffer(input); + } + + while(_input.length() >= 8) { + runPlan([ + [ 5, mixRound ], + [ 1, mashRound ], + [ 6, mixRound ], + [ 1, mashRound ], + [ 5, mixRound ] + ]); + } + }, + + /** + * Finishes encrypting or decrypting. + * + * @param pad a padding function to use, null for PKCS#7 padding, + * signature(blockSize, buffer, decrypt). + * + * @return true if successful, false on error. + */ + finish: function(pad) { + var rval = true; + + if(encrypt) { + if(pad) { + rval = pad(8, _input, !encrypt); + } else { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (_input.length() === 8) ? 8 : (8 - _input.length()); + _input.fillWithByte(padding, padding); + } + } + + if(rval) { + // do final update + _finish = true; + cipher.update(); + } + + if(!encrypt) { + // check for error: input data not a multiple of block size + rval = (_input.length() === 0); + if(rval) { + if(pad) { + rval = pad(8, _output, !encrypt); + } else { + // ensure padding byte count is valid + var len = _output.length(); + var count = _output.at(len - 1); + + if(count > len) { + rval = false; + } else { + // trim off padding bytes + _output.truncate(count); + } + } + } + } + + return rval; + } + }; + + return cipher; +}; + +/** + * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the + * given symmetric key. The output will be stored in the 'output' member + * of the returned cipher. + * + * The key and iv may be given as a string of bytes or a byte buffer. + * The cipher is initialized to use 128 effective key bits. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * + * @return the cipher. + */ +forge.rc2.startEncrypting = function(key, iv, output) { + var cipher = forge.rc2.createEncryptionCipher(key, 128); + cipher.start(iv, output); + return cipher; +}; + +/** + * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the + * given symmetric key. + * + * The key may be given as a string of bytes or a byte buffer. + * + * To start encrypting call start() on the cipher with an iv and optional + * output buffer. + * + * @param key the symmetric key to use. + * + * @return the cipher. + */ +forge.rc2.createEncryptionCipher = function(key, bits) { + return createCipher(key, bits, true); +}; + +/** + * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the + * given symmetric key. The output will be stored in the 'output' member + * of the returned cipher. + * + * The key and iv may be given as a string of bytes or a byte buffer. + * The cipher is initialized to use 128 effective key bits. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * + * @return the cipher. + */ +forge.rc2.startDecrypting = function(key, iv, output) { + var cipher = forge.rc2.createDecryptionCipher(key, 128); + cipher.start(iv, output); + return cipher; +}; + +/** + * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the + * given symmetric key. + * + * The key may be given as a string of bytes or a byte buffer. + * + * To start decrypting call start() on the cipher with an iv and optional + * output buffer. + * + * @param key the symmetric key to use. + * + * @return the cipher. + */ +forge.rc2.createDecryptionCipher = function(key, bits) { + return createCipher(key, bits, false); +}; + + +/***/ }), + +/***/ 4401: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dialogflow_v3beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dialogflow_v3beta1; +(function (dialogflow_v3beta1) { + /** + * Dialogflow API + * + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dialogflow = google.dialogflow('v3beta1'); + * ``` + */ + class Dialogflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dialogflow_v3beta1.Dialogflow = Dialogflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + dialogflow_v3beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.agents = new Resource$Projects$Locations$Agents(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.securitySettings = new Resource$Projects$Locations$Securitysettings(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Agents { + constructor(context) { + this.context = context; + this.changelogs = new Resource$Projects$Locations$Agents$Changelogs(this.context); + this.entityTypes = new Resource$Projects$Locations$Agents$Entitytypes(this.context); + this.environments = new Resource$Projects$Locations$Agents$Environments(this.context); + this.flows = new Resource$Projects$Locations$Agents$Flows(this.context); + this.intents = new Resource$Projects$Locations$Agents$Intents(this.context); + this.sessions = new Resource$Projects$Locations$Agents$Sessions(this.context); + this.testCases = new Resource$Projects$Locations$Agents$Testcases(this.context); + this.webhooks = new Resource$Projects$Locations$Agents$Webhooks(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getValidationResult(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents = Resource$Projects$Locations$Agents; + class Resource$Projects$Locations$Agents$Changelogs { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/changelogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Changelogs = Resource$Projects$Locations$Agents$Changelogs; + class Resource$Projects$Locations$Agents$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Entitytypes = Resource$Projects$Locations$Agents$Entitytypes; + class Resource$Projects$Locations$Agents$Environments { + constructor(context) { + this.context = context; + this.continuousTestResults = + new Resource$Projects$Locations$Agents$Environments$Continuoustestresults(this.context); + this.deployments = + new Resource$Projects$Locations$Agents$Environments$Deployments(this.context); + this.experiments = + new Resource$Projects$Locations$Agents$Environments$Experiments(this.context); + this.sessions = + new Resource$Projects$Locations$Agents$Environments$Sessions(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deployFlow(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+environment}:deployFlow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lookupEnvironmentHistory(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:lookupEnvironmentHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runContinuousTest(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+environment}:runContinuousTest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments = Resource$Projects$Locations$Agents$Environments; + class Resource$Projects$Locations$Agents$Environments$Continuoustestresults { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/continuousTestResults').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Continuoustestresults = Resource$Projects$Locations$Agents$Environments$Continuoustestresults; + class Resource$Projects$Locations$Agents$Environments$Deployments { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Deployments = Resource$Projects$Locations$Agents$Environments$Deployments; + class Resource$Projects$Locations$Agents$Environments$Experiments { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Experiments = Resource$Projects$Locations$Agents$Environments$Experiments; + class Resource$Projects$Locations$Agents$Environments$Sessions { + constructor(context) { + this.context = context; + this.entityTypes = + new Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes(this.context); + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fulfillIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + matchIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Sessions = Resource$Projects$Locations$Agents$Environments$Sessions; + class Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes; + class Resource$Projects$Locations$Agents$Flows { + constructor(context) { + this.context = context; + this.pages = new Resource$Projects$Locations$Agents$Flows$Pages(this.context); + this.transitionRouteGroups = + new Resource$Projects$Locations$Agents$Flows$Transitionroutegroups(this.context); + this.versions = new Resource$Projects$Locations$Agents$Flows$Versions(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getValidationResult(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/flows:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + train(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows = Resource$Projects$Locations$Agents$Flows; + class Resource$Projects$Locations$Agents$Flows$Pages { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Pages = Resource$Projects$Locations$Agents$Flows$Pages; + class Resource$Projects$Locations$Agents$Flows$Transitionroutegroups { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Transitionroutegroups = Resource$Projects$Locations$Agents$Flows$Transitionroutegroups; + class Resource$Projects$Locations$Agents$Flows$Versions { + constructor(context) { + this.context = context; + } + compareVersions(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+baseVersion}:compareVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['baseVersion'], + pathParams: ['baseVersion'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + load(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:load').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Versions = Resource$Projects$Locations$Agents$Flows$Versions; + class Resource$Projects$Locations$Agents$Intents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Intents = Resource$Projects$Locations$Agents$Intents; + class Resource$Projects$Locations$Agents$Sessions { + constructor(context) { + this.context = context; + this.entityTypes = + new Resource$Projects$Locations$Agents$Sessions$Entitytypes(this.context); + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fulfillIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + matchIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Sessions = Resource$Projects$Locations$Agents$Sessions; + class Resource$Projects$Locations$Agents$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Sessions$Entitytypes; + class Resource$Projects$Locations$Agents$Testcases { + constructor(context) { + this.context = context; + this.results = new Resource$Projects$Locations$Agents$Testcases$Results(this.context); + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/testCases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchRun(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/testCases:batchRun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + calculateCoverage(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+agent}/testCases:calculateCoverage').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['agent'], + pathParams: ['agent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/testCases:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/testCases:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Testcases = Resource$Projects$Locations$Agents$Testcases; + class Resource$Projects$Locations$Agents$Testcases$Results { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Testcases$Results = Resource$Projects$Locations$Agents$Testcases$Results; + class Resource$Projects$Locations$Agents$Webhooks { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Webhooks = Resource$Projects$Locations$Agents$Webhooks; + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Securitysettings { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Locations$Securitysettings = Resource$Projects$Locations$Securitysettings; + class Resource$Projects$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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v3beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v3beta1 = exports.dialogflow_v3beta1 || (exports.dialogflow_v3beta1 = {})); + + +/***/ }), + +/***/ 4409: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.clouddebugger_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var clouddebugger_v2; +(function (clouddebugger_v2) { + /** + * Cloud Debugger API + * + * Examines the call stack and variables of a running application without stopping or slowing it down. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const clouddebugger = google.clouddebugger('v2'); + * ``` + */ + class Clouddebugger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.controller = new Resource$Controller(this.context); + this.debugger = new Resource$Debugger(this.context); + } + } + clouddebugger_v2.Clouddebugger = Clouddebugger; + class Resource$Controller { + constructor(context) { + this.context = context; + this.debuggees = new Resource$Controller$Debuggees(this.context); + } + } + clouddebugger_v2.Resource$Controller = Resource$Controller; + class Resource$Controller$Debuggees { + constructor(context) { + this.context = context; + this.breakpoints = new Resource$Controller$Debuggees$Breakpoints(this.context); + } + 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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Controller$Debuggees = Resource$Controller$Debuggees; + class Resource$Controller$Debuggees$Breakpoints { + 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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['debuggeeId', 'id'], + pathParams: ['debuggeeId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Controller$Debuggees$Breakpoints = Resource$Controller$Debuggees$Breakpoints; + class Resource$Debugger { + constructor(context) { + this.context = context; + this.debuggees = new Resource$Debugger$Debuggees(this.context); + } + } + clouddebugger_v2.Resource$Debugger = Resource$Debugger; + class Resource$Debugger$Debuggees { + constructor(context) { + this.context = context; + this.breakpoints = new Resource$Debugger$Debuggees$Breakpoints(this.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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Debugger$Debuggees = Resource$Debugger$Debuggees; + class Resource$Debugger$Debuggees$Breakpoints { + 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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + set(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://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddebugger_v2.Resource$Debugger$Debuggees$Breakpoints = Resource$Debugger$Debuggees$Breakpoints; +})(clouddebugger_v2 = exports.clouddebugger_v2 || (exports.clouddebugger_v2 = {})); + + +/***/ }), + +/***/ 4416: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.publicca_v1beta1 = exports.publicca_v1alpha1 = exports.auth = exports.publicca = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(4447); +Object.defineProperty(exports, "publicca_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.publicca_v1alpha1; } }); +const v1beta1_1 = __webpack_require__(5934); +Object.defineProperty(exports, "publicca_v1beta1", { enumerable: true, get: function () { return v1beta1_1.publicca_v1beta1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.publicca_v1alpha1.Publicca, + v1beta1: v1beta1_1.publicca_v1beta1.Publicca, +}; +function publicca(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('publicca', versionOrOptions, exports.VERSIONS, this); +} +exports.publicca = publicca; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4419: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.toolresults_v1beta3 = exports.auth = exports.toolresults = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta3_1 = __webpack_require__(3061); +Object.defineProperty(exports, "toolresults_v1beta3", { enumerable: true, get: function () { return v1beta3_1.toolresults_v1beta3; } }); +exports.VERSIONS = { + v1beta3: v1beta3_1.toolresults_v1beta3.Toolresults, +}; +function toolresults(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('toolresults', versionOrOptions, exports.VERSIONS, this); +} +exports.toolresults = toolresults; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4424: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudshell_v1alpha1 = 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 = __webpack_require__(927); +var cloudshell_v1alpha1; +(function (cloudshell_v1alpha1) { + /** + * Cloud Shell API + * + * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudshell = google.cloudshell('v1alpha1'); + * ``` + */ + class Cloudshell { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + cloudshell_v1alpha1.Cloudshell = Cloudshell; + class Resource$Users { + constructor(context) { + this.context = context; + this.environments = new Resource$Users$Environments(this.context); + } + } + cloudshell_v1alpha1.Resource$Users = Resource$Users; + class Resource$Users$Environments { + constructor(context) { + this.context = context; + this.publicKeys = new Resource$Users$Environments$Publickeys(this.context); + } + authorize(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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1alpha1.Resource$Users$Environments = Resource$Users$Environments; + class Resource$Users$Environments$Publickeys { + 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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1alpha1.Resource$Users$Environments$Publickeys = Resource$Users$Environments$Publickeys; +})(cloudshell_v1alpha1 = exports.cloudshell_v1alpha1 || (exports.cloudshell_v1alpha1 = {})); + + +/***/ }), + +/***/ 4430: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = octokitValidate; + +const validate = __webpack_require__(1348); + +function octokitValidate(octokit) { + octokit.hook.before("request", validate.bind(null, octokit)); +} + + +/***/ }), + +/***/ 4431: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.issue = exports.issueCommand = void 0; +const os = __importStar(__webpack_require__(2087)); +const utils_1 = __webpack_require__(5082); +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } +} +function escapeData(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/:/g, '%3A') + .replace(/,/g, '%2C'); +} +//# sourceMappingURL=command.js.map + +/***/ }), + +/***/ 4438: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.bigtableadmin_v2 = exports.bigtableadmin_v1 = exports.auth = exports.bigtableadmin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3103); +Object.defineProperty(exports, "bigtableadmin_v1", { enumerable: true, get: function () { return v1_1.bigtableadmin_v1; } }); +const v2_1 = __webpack_require__(7827); +Object.defineProperty(exports, "bigtableadmin_v2", { enumerable: true, get: function () { return v2_1.bigtableadmin_v2; } }); +exports.VERSIONS = { + v1: v1_1.bigtableadmin_v1.Bigtableadmin, + v2: v2_1.bigtableadmin_v2.Bigtableadmin, +}; +function bigtableadmin(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigtableadmin', versionOrOptions, exports.VERSIONS, this); +} +exports.bigtableadmin = bigtableadmin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4443: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const events_1 = __webpack_require__(8614); +const debug_1 = __importDefault(__webpack_require__(4784)); +const promisify_1 = __importDefault(__webpack_require__(8537)); +const debug = debug_1.default('agent-base'); +function isAgent(v) { + return Boolean(v) && typeof v.addRequest === 'function'; +} +function isSecureEndpoint() { + const { stack } = new Error(); + if (typeof stack !== 'string') + return false; + return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); +} +function createAgent(callback, opts) { + return new createAgent.Agent(callback, opts); +} +(function (createAgent) { + /** + * Base `http.Agent` implementation. + * No pooling/keep-alive is implemented by default. + * + * @param {Function} callback + * @api public + */ + class Agent extends events_1.EventEmitter { + constructor(callback, _opts) { + super(); + let opts = _opts; + if (typeof callback === 'function') { + this.callback = callback; + } + else if (callback) { + opts = callback; + } + // Timeout for the socket to be returned from the callback + this.timeout = null; + if (opts && typeof opts.timeout === 'number') { + this.timeout = opts.timeout; + } + // These aren't actually used by `agent-base`, but are required + // for the TypeScript definition files in `@types/node` :/ + this.maxFreeSockets = 1; + this.maxSockets = 1; + this.maxTotalSockets = Infinity; + this.sockets = {}; + this.freeSockets = {}; + this.requests = {}; + this.options = {}; + } + get defaultPort() { + if (typeof this.explicitDefaultPort === 'number') { + return this.explicitDefaultPort; + } + return isSecureEndpoint() ? 443 : 80; + } + set defaultPort(v) { + this.explicitDefaultPort = v; + } + get protocol() { + if (typeof this.explicitProtocol === 'string') { + return this.explicitProtocol; + } + return isSecureEndpoint() ? 'https:' : 'http:'; + } + set protocol(v) { + this.explicitProtocol = v; + } + callback(req, opts, fn) { + throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); + } + /** + * Called by node-core's "_http_client.js" module when creating + * a new HTTP request with this Agent instance. + * + * @api public + */ + addRequest(req, _opts) { + const opts = Object.assign({}, _opts); + if (typeof opts.secureEndpoint !== 'boolean') { + opts.secureEndpoint = isSecureEndpoint(); + } + if (opts.host == null) { + opts.host = 'localhost'; + } + if (opts.port == null) { + opts.port = opts.secureEndpoint ? 443 : 80; + } + if (opts.protocol == null) { + opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; + } + if (opts.host && opts.path) { + // If both a `host` and `path` are specified then it's most + // likely the result of a `url.parse()` call... we need to + // remove the `path` portion so that `net.connect()` doesn't + // attempt to open that as a unix socket file. + delete opts.path; + } + delete opts.agent; + delete opts.hostname; + delete opts._defaultAgent; + delete opts.defaultPort; + delete opts.createConnection; + // Hint to use "Connection: close" + // XXX: non-documented `http` module API :( + req._last = true; + req.shouldKeepAlive = false; + let timedOut = false; + let timeoutId = null; + const timeoutMs = opts.timeout || this.timeout; + const onerror = (err) => { + if (req._hadError) + return; + req.emit('error', err); + // For Safety. Some additional errors might fire later on + // and we need to make sure we don't double-fire the error event. + req._hadError = true; + }; + const ontimeout = () => { + timeoutId = null; + timedOut = true; + const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); + err.code = 'ETIMEOUT'; + onerror(err); + }; + const callbackError = (err) => { + if (timedOut) + return; + if (timeoutId !== null) { + clearTimeout(timeoutId); + timeoutId = null; + } + onerror(err); + }; + const onsocket = (socket) => { + if (timedOut) + return; + if (timeoutId != null) { + clearTimeout(timeoutId); + timeoutId = null; + } + if (isAgent(socket)) { + // `socket` is actually an `http.Agent` instance, so + // relinquish responsibility for this `req` to the Agent + // from here on + debug('Callback returned another Agent instance %o', socket.constructor.name); + socket.addRequest(req, opts); + return; + } + if (socket) { + socket.once('free', () => { + this.freeSocket(socket, opts); + }); + req.onSocket(socket); + return; + } + const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); + onerror(err); + }; + if (typeof this.callback !== 'function') { + onerror(new Error('`callback` is not defined')); + return; + } + if (!this.promisifiedCallback) { + if (this.callback.length >= 3) { + debug('Converting legacy callback function to promise'); + this.promisifiedCallback = promisify_1.default(this.callback); + } + else { + this.promisifiedCallback = this.callback; + } + } + if (typeof timeoutMs === 'number' && timeoutMs > 0) { + timeoutId = setTimeout(ontimeout, timeoutMs); + } + if ('port' in opts && typeof opts.port !== 'number') { + opts.port = Number(opts.port); + } + try { + debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); + Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); + } + catch (err) { + Promise.reject(err).catch(callbackError); + } + } + freeSocket(socket, opts) { + debug('Freeing socket %o %o', socket.constructor.name, opts); + socket.destroy(); + } + destroy() { + debug('Destroying agent %o', this.constructor.name); + } + } + createAgent.Agent = Agent; + // So that `instanceof` works correctly + createAgent.prototype = createAgent.Agent.prototype; +})(createAgent || (createAgent = {})); +module.exports = createAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 4447: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.publicca_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var publicca_v1alpha1; +(function (publicca_v1alpha1) { + /** + * Public Certificate Authority API + * + * The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const publicca = google.publicca('v1alpha1'); + * ``` + */ + class Publicca { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + publicca_v1alpha1.Publicca = Publicca; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + publicca_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.externalAccountKeys = + new Resource$Projects$Locations$Externalaccountkeys(this.context); + } + } + publicca_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Externalaccountkeys { + 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://publicca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/externalAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + publicca_v1alpha1.Resource$Projects$Locations$Externalaccountkeys = Resource$Projects$Locations$Externalaccountkeys; +})(publicca_v1alpha1 = exports.publicca_v1alpha1 || (exports.publicca_v1alpha1 = {})); + + +/***/ }), + +/***/ 4449: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2019 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.OAuth2Client = exports.CertificateFormat = exports.CodeChallengeMethod = void 0; +const gaxios_1 = __webpack_require__(3597); +const querystring = __webpack_require__(1191); +const stream = __webpack_require__(2413); +const formatEcdsa = __webpack_require__(8815); +const crypto_1 = __webpack_require__(8984); +const authclient_1 = __webpack_require__(5616); +const loginticket_1 = __webpack_require__(2207); +var CodeChallengeMethod; +(function (CodeChallengeMethod) { + CodeChallengeMethod["Plain"] = "plain"; + CodeChallengeMethod["S256"] = "S256"; +})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {})); +var CertificateFormat; +(function (CertificateFormat) { + CertificateFormat["PEM"] = "PEM"; + CertificateFormat["JWK"] = "JWK"; +})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {})); +class OAuth2Client extends authclient_1.AuthClient { + constructor(optionsOrClientId, clientSecret, redirectUri) { + super(); + this.certificateCache = {}; + this.certificateExpiry = null; + this.certificateCacheFormat = CertificateFormat.PEM; + this.refreshTokenPromises = new Map(); + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { clientId: optionsOrClientId, clientSecret, redirectUri }; + this._clientId = opts.clientId; + this._clientSecret = opts.clientSecret; + this.redirectUri = opts.redirectUri; + this.eagerRefreshThresholdMillis = + opts.eagerRefreshThresholdMillis || 5 * 60 * 1000; + this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure; + } + /** + * Generates URL for consent page landing. + * @param opts Options. + * @return URL to consent page. + */ + generateAuthUrl(opts = {}) { + if (opts.code_challenge_method && !opts.code_challenge) { + throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); + } + opts.response_type = opts.response_type || 'code'; + opts.client_id = opts.client_id || this._clientId; + opts.redirect_uri = opts.redirect_uri || this.redirectUri; + // Allow scopes to be passed either as array or a string + if (Array.isArray(opts.scope)) { + opts.scope = opts.scope.join(' '); + } + const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; + return (rootUrl + + '?' + + querystring.stringify(opts)); + } + generateCodeVerifier() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); + } + /** + * Convenience method to automatically generate a code_verifier, and its + * resulting SHA256. If used, this must be paired with a S256 + * code_challenge_method. + * + * For a full example see: + * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js + */ + async generateCodeVerifierAsync() { + // base64 encoding uses 6 bits per character, and we want to generate128 + // characters. 6*128/8 = 96. + const crypto = (0, crypto_1.createCrypto)(); + const randomString = crypto.randomBytesBase64(96); + // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ + // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just + // swapping out a few chars. + const codeVerifier = randomString + .replace(/\+/g, '~') + .replace(/=/g, '_') + .replace(/\//g, '-'); + // Generate the base64 encoded SHA256 + const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); + // We need to use base64UrlEncoding instead of standard base64 + const codeChallenge = unencodedCodeChallenge + .split('=')[0] + .replace(/\+/g, '-') + .replace(/\//g, '_'); + return { codeVerifier, codeChallenge }; + } + getToken(codeOrOptions, callback) { + const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; + if (callback) { + this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); + } + else { + return this.getTokenAsync(options); + } + } + async getTokenAsync(options) { + const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; + const values = { + code: options.code, + client_id: options.client_id || this._clientId, + client_secret: this._clientSecret, + redirect_uri: options.redirect_uri || this.redirectUri, + grant_type: 'authorization_code', + code_verifier: options.codeVerifier, + }; + const res = await this.transporter.request({ + method: 'POST', + url, + data: querystring.stringify(values), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + const tokens = res.data; + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + /** + * Refreshes the access token. + * @param refresh_token Existing refresh token. + * @private + */ + async refreshToken(refreshToken) { + if (!refreshToken) { + return this.refreshTokenNoCache(refreshToken); + } + // If a request to refresh using the same token has started, + // return the same promise. + if (this.refreshTokenPromises.has(refreshToken)) { + return this.refreshTokenPromises.get(refreshToken); + } + const p = this.refreshTokenNoCache(refreshToken).then(r => { + this.refreshTokenPromises.delete(refreshToken); + return r; + }, e => { + this.refreshTokenPromises.delete(refreshToken); + throw e; + }); + this.refreshTokenPromises.set(refreshToken, p); + return p; + } + async refreshTokenNoCache(refreshToken) { + var _a; + if (!refreshToken) { + throw new Error('No refresh token is set.'); + } + const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; + const data = { + refresh_token: refreshToken, + client_id: this._clientId, + client_secret: this._clientSecret, + grant_type: 'refresh_token', + }; + let res; + try { + // request for new token + res = await this.transporter.request({ + method: 'POST', + url, + data: querystring.stringify(data), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + } + catch (e) { + if (e instanceof gaxios_1.GaxiosError && + e.message === 'invalid_grant' && + ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) && + /ReAuth/i.test(e.response.data.error_description)) { + e.message = JSON.stringify(e.response.data); + } + throw e; + } + const tokens = res.data; + // TODO: de-duplicate this code from a few spots + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + refreshAccessToken(callback) { + if (callback) { + this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + } + else { + return this.refreshAccessTokenAsync(); + } + } + async refreshAccessTokenAsync() { + const r = await this.refreshToken(this.credentials.refresh_token); + const tokens = r.tokens; + tokens.refresh_token = this.credentials.refresh_token; + this.credentials = tokens; + return { credentials: this.credentials, res: r.res }; + } + getAccessToken(callback) { + if (callback) { + this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); + } + else { + return this.getAccessTokenAsync(); + } + } + async getAccessTokenAsync() { + const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); + if (shouldRefresh) { + if (!this.credentials.refresh_token) { + if (this.refreshHandler) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + return { token: this.credentials.access_token }; + } + } + else { + throw new Error('No refresh token or refresh handler callback is set.'); + } + } + const r = await this.refreshAccessTokenAsync(); + if (!r.credentials || (r.credentials && !r.credentials.access_token)) { + throw new Error('Could not refresh access token.'); + } + return { token: r.credentials.access_token, res: r.res }; + } + else { + return { token: this.credentials.access_token }; + } + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * In OAuth2Client, the result has the form: + * { Authorization: 'Bearer ' } + * @param url The optional url being authorized + */ + async getRequestHeaders(url) { + const headers = (await this.getRequestMetadataAsync(url)).headers; + return headers; + } + async getRequestMetadataAsync( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + url) { + const thisCreds = this.credentials; + if (!thisCreds.access_token && + !thisCreds.refresh_token && + !this.apiKey && + !this.refreshHandler) { + throw new Error('No access, refresh token, API key or refresh handler callback is set.'); + } + if (thisCreds.access_token && !this.isTokenExpiring()) { + thisCreds.token_type = thisCreds.token_type || 'Bearer'; + const headers = { + Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers) }; + } + // If refreshHandler exists, call processAndValidateRefreshHandler(). + if (this.refreshHandler) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + const headers = { + Authorization: 'Bearer ' + this.credentials.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + if (this.apiKey) { + return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + } + let r = null; + let tokens = null; + try { + r = await this.refreshToken(thisCreds.refresh_token); + tokens = r.tokens; + } + catch (err) { + const e = err; + if (e.response && + (e.response.status === 403 || e.response.status === 404)) { + e.message = `Could not refresh access token: ${e.message}`; + } + throw e; + } + const credentials = this.credentials; + credentials.token_type = credentials.token_type || 'Bearer'; + tokens.refresh_token = credentials.refresh_token; + this.credentials = tokens; + const headers = { + Authorization: credentials.token_type + ' ' + tokens.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; + } + /** + * Generates an URL to revoke the given token. + * @param token The existing token to be revoked. + */ + static getRevokeTokenUrl(token) { + const parameters = querystring.stringify({ token }); + return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`; + } + revokeToken(token, callback) { + const opts = { + url: OAuth2Client.getRevokeTokenUrl(token), + method: 'POST', + }; + if (callback) { + this.transporter + .request(opts) + .then(r => callback(null, r), callback); + } + else { + return this.transporter.request(opts); + } + } + revokeCredentials(callback) { + if (callback) { + this.revokeCredentialsAsync().then(res => callback(null, res), callback); + } + else { + return this.revokeCredentialsAsync(); + } + } + async revokeCredentialsAsync() { + const token = this.credentials.access_token; + this.credentials = {}; + if (token) { + return this.revokeToken(token); + } + else { + throw new Error('No access token to revoke.'); + } + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + async requestAsync(opts, retry = false) { + let r2; + try { + const r = await this.getRequestMetadataAsync(opts.url); + opts.headers = opts.headers || {}; + if (r.headers && r.headers['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; + } + if (r.headers && r.headers.Authorization) { + opts.headers.Authorization = r.headers.Authorization; + } + if (this.apiKey) { + opts.headers['X-Goog-Api-Key'] = this.apiKey; + } + r2 = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - An access_token and refresh_token were available, but either no + // expiry_date was available or the forceRefreshOnFailure flag is set. + // The absent expiry_date case can happen when developers stash the + // access_token and refresh_token for later use, but the access_token + // fails on the first try because it's expired. Some developers may + // choose to enable forceRefreshOnFailure to mitigate time-related + // errors. + // Or the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - No refresh_token was available + // - An access_token and a refreshHandler callback were available, but + // either no expiry_date was available or the forceRefreshOnFailure + // flag is set. The access_token fails on the first try because it's + // expired. Some developers may choose to enable forceRefreshOnFailure + // to mitigate time-related errors. + const mayRequireRefresh = this.credentials && + this.credentials.access_token && + this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure); + const mayRequireRefreshWithNoRefreshToken = this.credentials && + this.credentials.access_token && + !this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure) && + this.refreshHandler; + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) { + await this.refreshAccessTokenAsync(); + return this.requestAsync(opts, true); + } + else if (!retry && + isAuthErr && + !isReadableStream && + mayRequireRefreshWithNoRefreshToken) { + const refreshedAccessToken = await this.processAndValidateRefreshHandler(); + if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { + this.setCredentials(refreshedAccessToken); + } + return this.requestAsync(opts, true); + } + } + throw e; + } + return r2; + } + verifyIdToken(options, callback) { + // This function used to accept two arguments instead of an options object. + // Check the types to help users upgrade with less pain. + // This check can be removed after a 2.0 release. + if (callback && typeof callback !== 'function') { + throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); + } + if (callback) { + this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); + } + else { + return this.verifyIdTokenAsync(options); + } + } + async verifyIdTokenAsync(options) { + if (!options.idToken) { + throw new Error('The verifyIdToken method requires an ID Token'); + } + const response = await this.getFederatedSignonCertsAsync(); + const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry); + return login; + } + /** + * Obtains information about the provisioned access token. Especially useful + * if you want to check the scopes that were provisioned to a given token. + * + * @param accessToken Required. The Access Token for which you want to get + * user info. + */ + async getTokenInfo(accessToken) { + const { data } = await this.transporter.request({ + method: 'POST', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + Authorization: `Bearer ${accessToken}`, + }, + url: OAuth2Client.GOOGLE_TOKEN_INFO_URL, + }); + const info = Object.assign({ + expiry_date: new Date().getTime() + data.expires_in * 1000, + scopes: data.scope.split(' '), + }, data); + delete info.expires_in; + delete info.scope; + return info; + } + getFederatedSignonCerts(callback) { + if (callback) { + this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); + } + else { + return this.getFederatedSignonCertsAsync(); + } + } + async getFederatedSignonCertsAsync() { + const nowTime = new Date().getTime(); + const format = (0, crypto_1.hasBrowserCrypto)() + ? CertificateFormat.JWK + : CertificateFormat.PEM; + if (this.certificateExpiry && + nowTime < this.certificateExpiry.getTime() && + this.certificateCacheFormat === format) { + return { certs: this.certificateCache, format }; + } + let res; + let url; + switch (format) { + case CertificateFormat.PEM: + url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_; + break; + case CertificateFormat.JWK: + url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_; + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + try { + res = await this.transporter.request({ url }); + } + catch (e) { + if (e instanceof Error) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + } + throw e; + } + const cacheControl = res ? res.headers['cache-control'] : undefined; + let cacheAge = -1; + if (cacheControl) { + const pattern = new RegExp('max-age=([0-9]*)'); + const regexResult = pattern.exec(cacheControl); + if (regexResult && regexResult.length === 2) { + // Cache results with max-age (in seconds) + cacheAge = Number(regexResult[1]) * 1000; // milliseconds + } + } + let certificates = {}; + switch (format) { + case CertificateFormat.PEM: + certificates = res.data; + break; + case CertificateFormat.JWK: + for (const key of res.data.keys) { + certificates[key.kid] = key; + } + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + const now = new Date(); + this.certificateExpiry = + cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); + this.certificateCache = certificates; + this.certificateCacheFormat = format; + return { certs: certificates, format, res }; + } + getIapPublicKeys(callback) { + if (callback) { + this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + } + else { + return this.getIapPublicKeysAsync(); + } + } + async getIapPublicKeysAsync() { + let res; + const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_; + try { + res = await this.transporter.request({ url }); + } + catch (e) { + if (e instanceof Error) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + } + throw e; + } + return { pubkeys: res.data, res }; + } + verifySignedJwtWithCerts() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); + } + /** + * Verify the id token is signed with the correct certificate + * and is from the correct audience. + * @param jwt The jwt to verify (The ID Token in this case). + * @param certs The array of certs to test the jwt against. + * @param requiredAudience The audience to test the jwt against. + * @param issuers The allowed issuers of the jwt (Optional). + * @param maxExpiry The max expiry the certificate can be (Optional). + * @return Returns a promise resolving to LoginTicket on verification. + */ + async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { + const crypto = (0, crypto_1.createCrypto)(); + if (!maxExpiry) { + maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_; + } + const segments = jwt.split('.'); + if (segments.length !== 3) { + throw new Error('Wrong number of segments in token: ' + jwt); + } + const signed = segments[0] + '.' + segments[1]; + let signature = segments[2]; + let envelope; + let payload; + try { + envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); + } + catch (err) { + if (err instanceof Error) { + err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; + } + throw err; + } + if (!envelope) { + throw new Error("Can't parse token envelope: " + segments[0]); + } + try { + payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); + } + catch (err) { + if (err instanceof Error) { + err.message = `Can't parse token payload '${segments[0]}`; + } + throw err; + } + if (!payload) { + throw new Error("Can't parse token payload: " + segments[1]); + } + if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { + // If this is not present, then there's no reason to attempt verification + throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); + } + const cert = certs[envelope.kid]; + if (envelope.alg === 'ES256') { + signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); + } + const verified = await crypto.verify(cert, signed, signature); + if (!verified) { + throw new Error('Invalid token signature: ' + jwt); + } + if (!payload.iat) { + throw new Error('No issue time in token: ' + JSON.stringify(payload)); + } + if (!payload.exp) { + throw new Error('No expiration time in token: ' + JSON.stringify(payload)); + } + const iat = Number(payload.iat); + if (isNaN(iat)) + throw new Error('iat field using invalid format'); + const exp = Number(payload.exp); + if (isNaN(exp)) + throw new Error('exp field using invalid format'); + const now = new Date().getTime() / 1000; + if (exp >= now + maxExpiry) { + throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); + } + const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; + const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; + if (now < earliest) { + throw new Error('Token used too early, ' + + now + + ' < ' + + earliest + + ': ' + + JSON.stringify(payload)); + } + if (now > latest) { + throw new Error('Token used too late, ' + + now + + ' > ' + + latest + + ': ' + + JSON.stringify(payload)); + } + if (issuers && issuers.indexOf(payload.iss) < 0) { + throw new Error('Invalid issuer, expected one of [' + + issuers + + '], but got ' + + payload.iss); + } + // Check the audience matches if we have one + if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { + const aud = payload.aud; + let audVerified = false; + // If the requiredAudience is an array, check if it contains token + // audience + if (requiredAudience.constructor === Array) { + audVerified = requiredAudience.indexOf(aud) > -1; + } + else { + audVerified = aud === requiredAudience; + } + if (!audVerified) { + throw new Error('Wrong recipient, payload audience != requiredAudience'); + } + } + return new loginticket_1.LoginTicket(envelope, payload); + } + /** + * Returns a promise that resolves with AccessTokenResponse type if + * refreshHandler is defined. + * If not, nothing is returned. + */ + async processAndValidateRefreshHandler() { + if (this.refreshHandler) { + const accessTokenResponse = await this.refreshHandler(); + if (!accessTokenResponse.access_token) { + throw new Error('No access token is returned by the refreshHandler callback.'); + } + return accessTokenResponse; + } + return; + } + /** + * Returns true if a token is expired or will expire within + * eagerRefreshThresholdMillismilliseconds. + * If there is no expiry time, assumes the token is not expired or expiring. + */ + isTokenExpiring() { + const expiryDate = this.credentials.expiry_date; + return expiryDate + ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis + : false; + } +} +exports.OAuth2Client = OAuth2Client; +OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; +/** + * The base URL for auth endpoints. + */ +OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth'; +/** + * The base endpoint for token retrieval. + */ +OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token'; +/** + * The base endpoint to revoke tokens. + */ +OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke'; +/** + * Google Sign on certificates in PEM format. + */ +OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs'; +/** + * Google Sign on certificates in JWK format. + */ +OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs'; +/** + * Google Sign on certificates in JWK format. + */ +OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key'; +/** + * Clock skew - five minutes in seconds + */ +OAuth2Client.CLOCK_SKEW_SECS_ = 300; +/** + * Max Token Lifetime is one day in seconds + */ +OAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400; +/** + * The allowed oauth token issuers. + */ +OAuth2Client.ISSUERS_ = [ + 'accounts.google.com', + 'https://accounts.google.com', +]; +//# sourceMappingURL=oauth2client.js.map + +/***/ }), + +/***/ 4454: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var Stream = _interopDefault(__webpack_require__(2413)); +var http = _interopDefault(__webpack_require__(8605)); +var Url = _interopDefault(__webpack_require__(8835)); +var whatwgUrl = _interopDefault(__webpack_require__(5176)); +var https = _interopDefault(__webpack_require__(7211)); +var zlib = _interopDefault(__webpack_require__(8761)); + +// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + +// fix for "Readable" isn't a named export issue +const Readable = Stream.Readable; + +const BUFFER = Symbol('buffer'); +const TYPE = Symbol('type'); + +class Blob { + constructor() { + this[TYPE] = ''; + + const blobParts = arguments[0]; + const options = arguments[1]; + + const buffers = []; + let size = 0; + + if (blobParts) { + const a = blobParts; + const length = Number(a.length); + for (let i = 0; i < length; i++) { + const element = a[i]; + let buffer; + if (element instanceof Buffer) { + buffer = element; + } else if (ArrayBuffer.isView(element)) { + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); + } else if (element instanceof ArrayBuffer) { + buffer = Buffer.from(element); + } else if (element instanceof Blob) { + buffer = element[BUFFER]; + } else { + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); + } + size += buffer.length; + buffers.push(buffer); + } + } + + this[BUFFER] = Buffer.concat(buffers); + + let type = options && options.type !== undefined && String(options.type).toLowerCase(); + if (type && !/[^\u0020-\u007E]/.test(type)) { + this[TYPE] = type; + } + } + get size() { + return this[BUFFER].length; + } + get type() { + return this[TYPE]; + } + text() { + return Promise.resolve(this[BUFFER].toString()); + } + arrayBuffer() { + const buf = this[BUFFER]; + const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + return Promise.resolve(ab); + } + stream() { + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; + } + toString() { + return '[object Blob]'; + } + slice() { + const size = this.size; + + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; + if (start === undefined) { + relativeStart = 0; + } else if (start < 0) { + relativeStart = Math.max(size + start, 0); + } else { + relativeStart = Math.min(start, size); + } + if (end === undefined) { + relativeEnd = size; + } else if (end < 0) { + relativeEnd = Math.max(size + end, 0); + } else { + relativeEnd = Math.min(end, size); + } + const span = Math.max(relativeEnd - relativeStart, 0); + + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; + } +} + +Object.defineProperties(Blob.prototype, { + size: { enumerable: true }, + type: { enumerable: true }, + slice: { enumerable: true } +}); + +Object.defineProperty(Blob.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * fetch-error.js + * + * FetchError interface for operational errors + */ + +/** + * Create FetchError instance + * + * @param String message Error message for human + * @param String type Error type for machine + * @param String systemError For Node.js system error + * @return FetchError + */ +function FetchError(message, type, systemError) { + Error.call(this, message); + + this.message = message; + this.type = type; + + // when err.type is `system`, err.code contains system error code + if (systemError) { + this.code = this.errno = systemError.code; + } + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +FetchError.prototype = Object.create(Error.prototype); +FetchError.prototype.constructor = FetchError; +FetchError.prototype.name = 'FetchError'; + +let convert; +try { + convert = __webpack_require__(1018).convert; +} catch (e) {} + +const INTERNALS = Symbol('Body internals'); + +// fix an issue where "PassThrough" isn't a named export for node <10 +const PassThrough = Stream.PassThrough; + +/** + * Body mixin + * + * Ref: https://fetch.spec.whatwg.org/#body + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +function Body(body) { + var _this = this; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$size = _ref.size; + + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + + if (body == null) { + // body is undefined or null + body = null; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + body = Buffer.from(body.toString()); + } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { + // body is ArrayBuffer + body = Buffer.from(body); + } else if (ArrayBuffer.isView(body)) { + // body is ArrayBufferView + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); + } else if (body instanceof Stream) ; else { + // none of the above + // coerce to string then buffer + body = Buffer.from(String(body)); + } + this[INTERNALS] = { + body, + disturbed: false, + error: null + }; + this.size = size; + this.timeout = timeout; + + if (body instanceof Stream) { + body.on('error', function (err) { + const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); + _this[INTERNALS].error = error; + }); + } +} + +Body.prototype = { + get body() { + return this[INTERNALS].body; + }, + + get bodyUsed() { + return this[INTERNALS].disturbed; + }, + + /** + * Decode response as ArrayBuffer + * + * @return Promise + */ + arrayBuffer() { + return consumeBody.call(this).then(function (buf) { + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + }); + }, + + /** + * Return raw response as Blob + * + * @return Promise + */ + blob() { + let ct = this.headers && this.headers.get('content-type') || ''; + return consumeBody.call(this).then(function (buf) { + return Object.assign( + // Prevent copying + new Blob([], { + type: ct.toLowerCase() + }), { + [BUFFER]: buf + }); + }); + }, + + /** + * Decode response as json + * + * @return Promise + */ + json() { + var _this2 = this; + + return consumeBody.call(this).then(function (buffer) { + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); + } + }); + }, + + /** + * Decode response as text + * + * @return Promise + */ + text() { + return consumeBody.call(this).then(function (buffer) { + return buffer.toString(); + }); + }, + + /** + * Decode response as buffer (non-spec api) + * + * @return Promise + */ + buffer() { + return consumeBody.call(this); + }, + + /** + * Decode response as text, while automatically detecting the encoding and + * trying to decode to UTF-8 (non-spec api) + * + * @return Promise + */ + textConverted() { + var _this3 = this; + + return consumeBody.call(this).then(function (buffer) { + return convertBody(buffer, _this3.headers); + }); + } +}; + +// In browsers, all properties are enumerable. +Object.defineProperties(Body.prototype, { + body: { enumerable: true }, + bodyUsed: { enumerable: true }, + arrayBuffer: { enumerable: true }, + blob: { enumerable: true }, + json: { enumerable: true }, + text: { enumerable: true } +}); + +Body.mixIn = function (proto) { + for (const name of Object.getOwnPropertyNames(Body.prototype)) { + // istanbul ignore else: future proof + if (!(name in proto)) { + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); + } + } +}; + +/** + * Consume and convert an entire Body to a Buffer. + * + * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body + * + * @return Promise + */ +function consumeBody() { + var _this4 = this; + + if (this[INTERNALS].disturbed) { + return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + } + + this[INTERNALS].disturbed = true; + + if (this[INTERNALS].error) { + return Body.Promise.reject(this[INTERNALS].error); + } + + let body = this.body; + + // body is null + if (body === null) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is blob + if (isBlob(body)) { + body = body.stream(); + } + + // body is buffer + if (Buffer.isBuffer(body)) { + return Body.Promise.resolve(body); + } + + // istanbul ignore if: should never happen + if (!(body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is stream + // get ready to actually consume the body + let accum = []; + let accumBytes = 0; + let abort = false; + + return new Body.Promise(function (resolve, reject) { + let resTimeout; + + // allow timeout on slow response body + if (_this4.timeout) { + resTimeout = setTimeout(function () { + abort = true; + reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); + }, _this4.timeout); + } + + // handle stream errors + body.on('error', function (err) { + if (err.name === 'AbortError') { + // if the request was aborted, reject with this Error + abort = true; + reject(err); + } else { + // other errors, such as incorrect content-encoding + reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + + body.on('data', function (chunk) { + if (abort || chunk === null) { + return; + } + + if (_this4.size && accumBytes + chunk.length > _this4.size) { + abort = true; + reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); + return; + } + + accumBytes += chunk.length; + accum.push(chunk); + }); + + body.on('end', function () { + if (abort) { + return; + } + + clearTimeout(resTimeout); + + try { + resolve(Buffer.concat(accum, accumBytes)); + } catch (err) { + // handle streams that have accumulated too much data (issue #414) + reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + }); +} + +/** + * Detect buffer encoding and convert to target encoding + * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding + * + * @param Buffer buffer Incoming buffer + * @param String encoding Target encoding + * @return String + */ +function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; + + // header + if (ct) { + res = /charset=([^;]*)/i.exec(ct); + } + + // no charset in content type, peek at response body for at most 1024 bytes + str = buffer.slice(0, 1024).toString(); + + // html5 + if (!res && str) { + res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; + + this[MAP] = Object.create(null); + + if (init instanceof Headers) { + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); + + for (const headerName of headerNames) { + for (const value of rawHeaders[headerName]) { + this.append(headerName, value); + } + } + + return; + } + + // We don't worry about converting prop to ByteString here as append() + // will handle it. + if (init == null) ; else if (typeof init === 'object') { + const method = init[Symbol.iterator]; + if (method != null) { + if (typeof method !== 'function') { + throw new TypeError('Header pairs must be iterable'); + } + + // sequence> + // Note: per spec we have to first exhaust the lists then process them + const pairs = []; + for (const pair of init) { + if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { + throw new TypeError('Each header pair must be iterable'); + } + pairs.push(Array.from(pair)); + } + + for (const pair of pairs) { + if (pair.length !== 2) { + throw new TypeError('Each header pair must be a name/value tuple'); + } + this.append(pair[0], pair[1]); + } + } else { + // record + for (const key of Object.keys(init)) { + const value = init[key]; + this.append(key, value); + } + } + } else { + throw new TypeError('Provided initializer must be an object'); + } + } + + /** + * Return combined header value given name + * + * @param String name Header name + * @return Mixed + */ + get(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key === undefined) { + return null; + } + + return this[MAP][key].join(', '); + } + + /** + * Iterate over all headers + * + * @param Function callback Executed for each item with parameters (value, name, thisArg) + * @param Boolean thisArg `this` context for callback function + * @return Void + */ + forEach(callback) { + let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + + let pairs = getHeaders(this); + let i = 0; + while (i < pairs.length) { + var _pairs$i = pairs[i]; + const name = _pairs$i[0], + value = _pairs$i[1]; + + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; + } + } + + /** + * Overwrite header values given name + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + set(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; + } + + /** + * Append a value onto existing header + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + append(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + if (key !== undefined) { + this[MAP][key].push(value); + } else { + this[MAP][name] = [value]; + } + } + + /** + * Check for header name existence + * + * @param String name Header name + * @return Boolean + */ + has(name) { + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; + } + + /** + * Delete all header values given name + * + * @param String name Header name + * @return Void + */ + delete(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key !== undefined) { + delete this[MAP][key]; + } + } + + /** + * Return raw headers (non-spec api) + * + * @return Object + */ + raw() { + return this[MAP]; + } + + /** + * Get an iterator on keys. + * + * @return Iterator + */ + keys() { + return createHeadersIterator(this, 'key'); + } + + /** + * Get an iterator on values. + * + * @return Iterator + */ + values() { + return createHeadersIterator(this, 'value'); + } + + /** + * Get an iterator on entries. + * + * This is the default iterator of the Headers object. + * + * @return Iterator + */ + [Symbol.iterator]() { + return createHeadersIterator(this, 'key+value'); + } +} +Headers.prototype.entries = Headers.prototype[Symbol.iterator]; + +Object.defineProperty(Headers.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Headers.prototype, { + get: { enumerable: true }, + forEach: { enumerable: true }, + set: { enumerable: true }, + append: { enumerable: true }, + has: { enumerable: true }, + delete: { enumerable: true }, + keys: { enumerable: true }, + values: { enumerable: true }, + entries: { enumerable: true } +}); + +function getHeaders(headers) { + let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; + + const keys = Object.keys(headers[MAP]).sort(); + return keys.map(kind === 'key' ? function (k) { + return k.toLowerCase(); + } : kind === 'value' ? function (k) { + return headers[MAP][k].join(', '); + } : function (k) { + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }); +} + +const INTERNAL = Symbol('internal'); + +function createHeadersIterator(target, kind) { + const iterator = Object.create(HeadersIteratorPrototype); + iterator[INTERNAL] = { + target, + kind, + index: 0 + }; + return iterator; +} + +const HeadersIteratorPrototype = Object.setPrototypeOf({ + next() { + // istanbul ignore if + if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { + throw new TypeError('Value of `this` is not a HeadersIterator'); + } + + var _INTERNAL = this[INTERNAL]; + const target = _INTERNAL.target, + kind = _INTERNAL.kind, + index = _INTERNAL.index; + + const values = getHeaders(target, kind); + const len = values.length; + if (index >= len) { + return { + value: undefined, + done: true + }; + } + + this[INTERNAL].index = index + 1; + + return { + value: values[index], + done: false + }; + } +}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); + +Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * Export the Headers object in a form that Node.js can consume. + * + * @param Headers headers + * @return Object + */ +function exportNodeCompatibleHeaders(headers) { + const obj = Object.assign({ __proto__: null }, headers[MAP]); + + // http.request() only supports string as Host header. This hack makes + // specifying custom Host header possible. + const hostHeaderKey = find(headers[MAP], 'Host'); + if (hostHeaderKey !== undefined) { + obj[hostHeaderKey] = obj[hostHeaderKey][0]; + } + + return obj; +} + +/** + * Create a Headers object from an object of headers, ignoring those that do + * not conform to HTTP grammar productions. + * + * @param Object obj Object of headers + * @return Headers + */ +function createHeadersLenient(obj) { + const headers = new Headers(); + for (const name of Object.keys(obj)) { + if (invalidTokenRegex.test(name)) { + continue; + } + if (Array.isArray(obj[name])) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { + continue; + } + if (headers[MAP][name] === undefined) { + headers[MAP][name] = [val]; + } else { + headers[MAP][name].push(val); + } + } + } else if (!invalidHeaderCharRegex.test(obj[name])) { + headers[MAP][name] = [obj[name]]; + } + } + return headers; +} + +const INTERNALS$1 = Symbol('Response internals'); + +// fix an issue where "STATUS_CODES" aren't a named export for node <10 +const STATUS_CODES = http.STATUS_CODES; + +/** + * Response class + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +class Response { + constructor() { + let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + Body.call(this, body, opts); + + const status = opts.status || 200; + const headers = new Headers(opts.headers); + + if (body != null && !headers.has('Content-Type')) { + const contentType = extractContentType(body); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + this[INTERNALS$1] = { + url: opts.url, + status, + statusText: opts.statusText || STATUS_CODES[status], + headers, + counter: opts.counter + }; + } + + get url() { + return this[INTERNALS$1].url || ''; + } + + get status() { + return this[INTERNALS$1].status; + } + + /** + * Convenience property representing if the request ended normally + */ + get ok() { + return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; + } + + get redirected() { + return this[INTERNALS$1].counter > 0; + } + + get statusText() { + return this[INTERNALS$1].statusText; + } + + get headers() { + return this[INTERNALS$1].headers; + } + + /** + * Clone this response + * + * @return Response + */ + clone() { + return new Response(clone(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected + }); + } +} + +Body.mixIn(Response.prototype); + +Object.defineProperties(Response.prototype, { + url: { enumerable: true }, + status: { enumerable: true }, + ok: { enumerable: true }, + redirected: { enumerable: true }, + statusText: { enumerable: true }, + headers: { enumerable: true }, + clone: { enumerable: true } +}); + +Object.defineProperty(Response.prototype, Symbol.toStringTag, { + value: 'Response', + writable: false, + enumerable: false, + configurable: true +}); + +const INTERNALS$2 = Symbol('Request internals'); +const URL = Url.URL || whatwgUrl.URL; + +// fix an issue where "format", "parse" aren't a named export for node <10 +const parse_url = Url.parse; +const format_url = Url.format; + +/** + * Wrapper around `new URL` to handle arbitrary URLs + * + * @param {string} urlStr + * @return {void} + */ +function parseURL(urlStr) { + /* + Check whether the URL is absolute or not + Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 + Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 + */ + if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { + urlStr = new URL(urlStr).toString(); + } + + // Fallback to old implementation for arbitrary URLs + return parse_url(urlStr); +} + +const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; + +/** + * Check if a value is an instance of Request. + * + * @param Mixed input + * @return Boolean + */ +function isRequest(input) { + return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; +} + +function isAbortSignal(signal) { + const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); +} + +/** + * Request class + * + * @param Mixed input Url or Request instance + * @param Object init Custom options + * @return Void + */ +class Request { + constructor(input) { + let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + let parsedURL; + + // normalize input + if (!isRequest(input)) { + if (input && input.href) { + // in order to support Node.js' Url objects; though WHATWG's URL objects + // will fall into this branch also (since their `toString()` will return + // `href` property anyway) + parsedURL = parseURL(input.href); + } else { + // coerce input to a string before attempting to parse + parsedURL = parseURL(`${input}`); + } + input = {}; + } else { + parsedURL = parseURL(input.url); + } + + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); + + if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { + throw new TypeError('Request with GET/HEAD method cannot have body'); + } + + let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; + + Body.call(this, inputBody, { + timeout: init.timeout || input.timeout || 0, + size: init.size || input.size || 0 + }); + + const headers = new Headers(init.headers || input.headers || {}); + + if (inputBody != null && !headers.has('Content-Type')) { + const contentType = extractContentType(inputBody); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; + + if (signal != null && !isAbortSignal(signal)) { + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + } + + this[INTERNALS$2] = { + method, + redirect: init.redirect || input.redirect || 'follow', + headers, + parsedURL, + signal + }; + + // node-fetch-only options + this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; + this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; + } + + get method() { + return this[INTERNALS$2].method; + } + + get url() { + return format_url(this[INTERNALS$2].parsedURL); + } + + get headers() { + return this[INTERNALS$2].headers; + } + + get redirect() { + return this[INTERNALS$2].redirect; + } + + get signal() { + return this[INTERNALS$2].signal; + } + + /** + * Clone this request + * + * @return Request + */ + clone() { + return new Request(this); + } +} + +Body.mixIn(Request.prototype); + +Object.defineProperty(Request.prototype, Symbol.toStringTag, { + value: 'Request', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Request.prototype, { + method: { enumerable: true }, + url: { enumerable: true }, + headers: { enumerable: true }, + redirect: { enumerable: true }, + clone: { enumerable: true }, + signal: { enumerable: true } +}); + +/** + * Convert a Request to Node.js http request options. + * + * @param Request A Request instance + * @return Object The options object to be passed to http.request + */ +function getNodeRequestOptions(request) { + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); + + // fetch step 1.3 + if (!headers.has('Accept')) { + headers.set('Accept', '*/*'); + } + + // Basic fetch + if (!parsedURL.protocol || !parsedURL.hostname) { + throw new TypeError('Only absolute URLs are supported'); + } + + if (!/^https?:$/.test(parsedURL.protocol)) { + throw new TypeError('Only HTTP(S) protocols are supported'); + } + + if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + } + + // HTTP-network-or-cache fetch steps 2.4-2.7 + let contentLengthValue = null; + if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { + contentLengthValue = '0'; + } + if (request.body != null) { + const totalBytes = getTotalBytes(request); + if (typeof totalBytes === 'number') { + contentLengthValue = String(totalBytes); + } + } + if (contentLengthValue) { + headers.set('Content-Length', contentLengthValue); + } + + // HTTP-network-or-cache fetch step 2.11 + if (!headers.has('User-Agent')) { + headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); + } + + // HTTP-network-or-cache fetch step 2.15 + if (request.compress && !headers.has('Accept-Encoding')) { + headers.set('Accept-Encoding', 'gzip,deflate'); + } + + let agent = request.agent; + if (typeof agent === 'function') { + agent = agent(parsedURL); + } + + if (!headers.has('Connection') && !agent) { + headers.set('Connection', 'close'); + } + + // HTTP-network fetch step 4.2 + // chunked encoding is handled by Node.js + + return Object.assign({}, parsedURL, { + method: request.method, + headers: exportNodeCompatibleHeaders(headers), + agent + }); +} + +/** + * abort-error.js + * + * AbortError interface for cancelled requests + */ + +/** + * Create AbortError instance + * + * @param String message Error message for human + * @return AbortError + */ +function AbortError(message) { + Error.call(this, message); + + this.type = 'aborted'; + this.message = message; + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +AbortError.prototype = Object.create(Error.prototype); +AbortError.prototype.constructor = AbortError; +AbortError.prototype.name = 'AbortError'; + +const URL$1 = Url.URL || whatwgUrl.URL; + +// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 +const PassThrough$1 = Stream.PassThrough; + +const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { + const orig = new URL$1(original).hostname; + const dest = new URL$1(destination).hostname; + + return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); +}; + +/** + * isSameProtocol reports whether the two provided URLs use the same protocol. + * + * Both domains must already be in canonical form. + * @param {string|URL} original + * @param {string|URL} destination + */ +const isSameProtocol = function isSameProtocol(destination, original) { + const orig = new URL$1(original).protocol; + const dest = new URL$1(destination).protocol; + + return orig === dest; +}; + +/** + * Fetch function + * + * @param Mixed url Absolute url or Request instance + * @param Object opts Fetch options + * @return Promise + */ +function fetch(url, opts) { + + // allow custom promise + if (!fetch.Promise) { + throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + } + + Body.Promise = fetch.Promise; + + // wrap http.request into fetch + return new fetch.Promise(function (resolve, reject) { + // build request object + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); + + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; + + let response = null; + + const abort = function abort() { + let error = new AbortError('The user aborted a request.'); + reject(error); + if (request.body && request.body instanceof Stream.Readable) { + destroyStream(request.body, error); + } + if (!response || !response.body) return; + response.body.emit('error', error); + }; + + if (signal && signal.aborted) { + abort(); + return; + } + + const abortAndFinalize = function abortAndFinalize() { + abort(); + finalize(); + }; + + // send request + const req = send(options); + let reqTimeout; + + if (signal) { + signal.addEventListener('abort', abortAndFinalize); + } + + function finalize() { + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); + } + + if (request.timeout) { + req.once('socket', function (socket) { + reqTimeout = setTimeout(function () { + reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); + finalize(); + }, request.timeout); + }); + } + + req.on('error', function (err) { + reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + + if (response && response.body) { + destroyStream(response.body, err); + } + + finalize(); + }); + + fixResponseChunkedTransferBadEnding(req, function (err) { + if (signal && signal.aborted) { + return; + } + + if (response && response.body) { + destroyStream(response.body, err); + } + }); + + /* c8 ignore next 18 */ + if (parseInt(process.version.substring(1)) < 14) { + // Before Node.js 14, pipeline() does not fully support async iterators and does not always + // properly handle when the socket close/end events are out of order. + req.on('socket', function (s) { + s.addListener('close', function (hadError) { + // if a data listener is still present we didn't end cleanly + const hasDataListener = s.listenerCount('data') > 0; + + // if end happened before close but the socket didn't emit an error, do it now + if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { + const err = new Error('Premature close'); + err.code = 'ERR_STREAM_PREMATURE_CLOSE'; + response.body.emit('error', err); + } + }); + }); + } + + req.on('response', function (res) { + clearTimeout(reqTimeout); + + const headers = createHeadersLenient(res.headers); + + // HTTP fetch step 5 + if (fetch.isRedirect(res.statusCode)) { + // HTTP fetch step 5.2 + const location = headers.get('Location'); + + // HTTP fetch step 5.3 + let locationURL = null; + try { + locationURL = location === null ? null : new URL$1(location, request.url).toString(); + } catch (err) { + // error here can only be invalid URL in Location: header + // do not throw when options.redirect == manual + // let the user extract the errorneous redirect URL + if (request.redirect !== 'manual') { + reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); + finalize(); + return; + } + } + + // HTTP fetch step 5.5 + switch (request.redirect) { + case 'error': + reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); + finalize(); + return; + case 'manual': + // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. + if (locationURL !== null) { + // handle corrupted header + try { + headers.set('Location', locationURL); + } catch (err) { + // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request + reject(err); + } + } + break; + case 'follow': + // HTTP-redirect fetch step 2 + if (locationURL === null) { + break; + } + + // HTTP-redirect fetch step 5 + if (request.counter >= request.follow) { + reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 6 (counter increment) + // Create a new Request object. + const requestOpts = { + headers: new Headers(request.headers), + follow: request.follow, + counter: request.counter + 1, + agent: request.agent, + compress: request.compress, + method: request.method, + body: request.body, + signal: request.signal, + timeout: request.timeout, + size: request.size + }; + + if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { + for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { + requestOpts.headers.delete(name); + } + } + + // HTTP-redirect fetch step 9 + if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { + reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 11 + if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; + } + } + + // prepare response + res.once('end', function () { + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); + + const response_options = { + url: request.url, + status: res.statusCode, + statusText: res.statusMessage, + headers: headers, + size: request.size, + timeout: request.timeout, + counter: request.counter + }; + + // HTTP-network fetch step 12.1.1.3 + const codings = headers.get('Content-Encoding'); + + // HTTP-network fetch step 12.1.1.4: handle content codings + + // in following scenarios we ignore compression support + // 1. compression support is disabled + // 2. HEAD request + // 3. no Content-Encoding header + // 4. no content response (204) + // 5. content not modified response (304) + if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { + response = new Response(body, response_options); + resolve(response); + return; + } + + // For Node v6+ + // Be less strict when decoding compressed responses, since sometimes + // servers send slightly invalid responses that are still accepted + // by common browsers. + // Always using Z_SYNC_FLUSH is what cURL does. + const zlibOptions = { + flush: zlib.Z_SYNC_FLUSH, + finishFlush: zlib.Z_SYNC_FLUSH + }; + + // for gzip + if (codings == 'gzip' || codings == 'x-gzip') { + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; + } + + // for deflate + if (codings == 'deflate' || codings == 'x-deflate') { + // handle the infamous raw deflate response from old servers + // a hack for old IIS and Apache servers + const raw = res.pipe(new PassThrough$1()); + raw.once('data', function (chunk) { + // see http://stackoverflow.com/questions/37519828 + if ((chunk[0] & 0x0F) === 0x08) { + body = body.pipe(zlib.createInflate()); + } else { + body = body.pipe(zlib.createInflateRaw()); + } + response = new Response(body, response_options); + resolve(response); + }); + raw.on('end', function () { + // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. + if (!response) { + response = new Response(body, response_options); + resolve(response); + } + }); + return; + } + + // for br + if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; + } + + // otherwise, use response as-is + response = new Response(body, response_options); + resolve(response); + }); + + writeToStream(req, request); + }); +} +function fixResponseChunkedTransferBadEnding(request, errorCallback) { + let socket; + + request.on('socket', function (s) { + socket = s; + }); + + request.on('response', function (response) { + const headers = response.headers; + + if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { + response.once('close', function (hadError) { + // if a data listener is still present we didn't end cleanly + const hasDataListener = socket.listenerCount('data') > 0; + + if (hasDataListener && !hadError) { + const err = new Error('Premature close'); + err.code = 'ERR_STREAM_PREMATURE_CLOSE'; + errorCallback(err); + } + }); + } + }); +} + +function destroyStream(stream, err) { + if (stream.destroy) { + stream.destroy(err); + } else { + // node < 8 + stream.emit('error', err); + stream.end(); + } +} + +/** + * Redirect code matching + * + * @param Number code Status code + * @return Boolean + */ +fetch.isRedirect = function (code) { + return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +}; + +// expose Promise +fetch.Promise = global.Promise; + +module.exports = exports = fetch; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = exports; +exports.Headers = Headers; +exports.Request = Request; +exports.Response = Response; +exports.FetchError = FetchError; + + +/***/ }), + +/***/ 4460: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/** + * Copyright 2022 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.detectGCPResidency = exports.isGoogleComputeEngine = exports.isGoogleComputeEngineMACAddress = exports.isGoogleComputeEngineLinux = exports.isGoogleCloudServerless = exports.GCE_LINUX_BIOS_PATHS = void 0; +const fs_1 = __webpack_require__(5747); +const os_1 = __webpack_require__(2087); +/** + * Known paths unique to Google Compute Engine Linux instances + */ +exports.GCE_LINUX_BIOS_PATHS = { + BIOS_DATE: '/sys/class/dmi/id/bios_date', + BIOS_VENDOR: '/sys/class/dmi/id/bios_vendor', +}; +const GCE_MAC_ADDRESS_REGEX = /^42:01/; +/** + * Determines if the process is running on a Google Cloud Serverless environment (Cloud Run or Cloud Functions instance). + * + * Uses the: + * - {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. + * - {@link https://cloud.google.com/functions/docs/env-var Cloud Functions environment variables}. + * + * @returns {boolean} `true` if the process is running on GCP serverless, `false` otherwise. + */ +function isGoogleCloudServerless() { + /** + * `CLOUD_RUN_JOB` is used for Cloud Run Jobs + * - See {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. + * + * `FUNCTION_NAME` is used in older Cloud Functions environments: + * - See {@link https://cloud.google.com/functions/docs/env-var Python 3.7 and Go 1.11}. + * + * `K_SERVICE` is used in Cloud Run and newer Cloud Functions environments: + * - See {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. + * - See {@link https://cloud.google.com/functions/docs/env-var Cloud Functions newer runtimes}. + */ + const isGFEnvironment = process.env.CLOUD_RUN_JOB || + process.env.FUNCTION_NAME || + process.env.K_SERVICE; + return !!isGFEnvironment; +} +exports.isGoogleCloudServerless = isGoogleCloudServerless; +/** + * Determines if the process is running on a Linux Google Compute Engine instance. + * + * @returns {boolean} `true` if the process is running on Linux GCE, `false` otherwise. + */ +function isGoogleComputeEngineLinux() { + if ((0, os_1.platform)() !== 'linux') + return false; + try { + // ensure this file exist + (0, fs_1.statSync)(exports.GCE_LINUX_BIOS_PATHS.BIOS_DATE); + // ensure this file exist and matches + const biosVendor = (0, fs_1.readFileSync)(exports.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR, 'utf8'); + return /Google/.test(biosVendor); + } + catch (_a) { + return false; + } +} +exports.isGoogleComputeEngineLinux = isGoogleComputeEngineLinux; +/** + * Determines if the process is running on a Google Compute Engine instance with a known + * MAC address. + * + * @returns {boolean} `true` if the process is running on GCE (as determined by MAC address), `false` otherwise. + */ +function isGoogleComputeEngineMACAddress() { + const interfaces = (0, os_1.networkInterfaces)(); + for (const item of Object.values(interfaces)) { + if (!item) + continue; + for (const { mac } of item) { + if (GCE_MAC_ADDRESS_REGEX.test(mac)) { + return true; + } + } + } + return false; +} +exports.isGoogleComputeEngineMACAddress = isGoogleComputeEngineMACAddress; +/** + * Determines if the process is running on a Google Compute Engine instance. + * + * @returns {boolean} `true` if the process is running on GCE, `false` otherwise. + */ +function isGoogleComputeEngine() { + return isGoogleComputeEngineLinux() || isGoogleComputeEngineMACAddress(); +} +exports.isGoogleComputeEngine = isGoogleComputeEngine; +/** + * Determines if the process is running on Google Cloud Platform. + * + * @returns {boolean} `true` if the process is running on GCP, `false` otherwise. + */ +function detectGCPResidency() { + return isGoogleCloudServerless() || isGoogleComputeEngine(); +} +exports.detectGCPResidency = detectGCPResidency; +//# sourceMappingURL=gcp-residency.js.map + +/***/ }), + +/***/ 4488: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.realtimebidding_v1alpha = exports.realtimebidding_v1 = exports.auth = exports.realtimebidding = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2862); +Object.defineProperty(exports, "realtimebidding_v1", { enumerable: true, get: function () { return v1_1.realtimebidding_v1; } }); +const v1alpha_1 = __webpack_require__(7465); +Object.defineProperty(exports, "realtimebidding_v1alpha", { enumerable: true, get: function () { return v1alpha_1.realtimebidding_v1alpha; } }); +exports.VERSIONS = { + v1: v1_1.realtimebidding_v1.Realtimebidding, + v1alpha: v1alpha_1.realtimebidding_v1alpha.Realtimebidding, +}; +function realtimebidding(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('realtimebidding', versionOrOptions, exports.VERSIONS, this); +} +exports.realtimebidding = realtimebidding; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4491: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.doubleclickbidmanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var doubleclickbidmanager_v2; +(function (doubleclickbidmanager_v2) { + /** + * DoubleClick Bid Manager API + * + * DoubleClick Bid Manager API allows users to manage and create campaigns and reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v2'); + * ``` + */ + class Doubleclickbidmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.queries = new Resource$Queries(this.context); + } + } + doubleclickbidmanager_v2.Doubleclickbidmanager = Doubleclickbidmanager; + class Resource$Queries { + constructor(context) { + this.context = context; + this.reports = new Resource$Queries$Reports(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries/{queryId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclickbidmanager_v2.Resource$Queries = Resource$Queries; + class Resource$Queries$Reports { + 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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries/{queryId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId', 'reportId'], + pathParams: ['queryId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclickbidmanager_v2.Resource$Queries$Reports = Resource$Queries$Reports; +})(doubleclickbidmanager_v2 = exports.doubleclickbidmanager_v2 || (exports.doubleclickbidmanager_v2 = {})); + + +/***/ }), + +/***/ 4505: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gamesConfiguration_v1configuration = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gamesConfiguration_v1configuration; +(function (gamesConfiguration_v1configuration) { + /** + * Google Play Game Services Publishing API + * + * The Google Play Game Services Publishing API allows developers to configure their games in Game Services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gamesConfiguration = google.gamesConfiguration('v1configuration'); + * ``` + */ + class Gamesconfiguration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.achievementConfigurations = new Resource$Achievementconfigurations(this.context); + this.leaderboardConfigurations = new Resource$Leaderboardconfigurations(this.context); + } + } + gamesConfiguration_v1configuration.Gamesconfiguration = Gamesconfiguration; + class Resource$Achievementconfigurations { + 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gamesConfiguration_v1configuration.Resource$Achievementconfigurations = Resource$Achievementconfigurations; + class Resource$Leaderboardconfigurations { + 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gamesconfiguration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gamesConfiguration_v1configuration.Resource$Leaderboardconfigurations = Resource$Leaderboardconfigurations; +})(gamesConfiguration_v1configuration = exports.gamesConfiguration_v1configuration || (exports.gamesConfiguration_v1configuration = {})); + + +/***/ }), + +/***/ 4533: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.searchads360_v0 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var searchads360_v0; +(function (searchads360_v0) { + /** + * Search Ads 360 Reporting API + * + * The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const searchads360 = google.searchads360('v0'); + * ``` + */ + class Searchads360 { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.searchAds360Fields = new Resource$Searchads360fields(this.context); + } + } + searchads360_v0.Searchads360 = Searchads360; + class Resource$Customers { + constructor(context) { + this.context = context; + this.customColumns = new Resource$Customers$Customcolumns(this.context); + this.searchAds360 = new Resource$Customers$Searchads360(this.context); + } + } + searchads360_v0.Resource$Customers = Resource$Customers; + class Resource$Customers$Customcolumns { + 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://searchads360.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://searchads360.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v0/customers/{+customerId}/customColumns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + searchads360_v0.Resource$Customers$Customcolumns = Resource$Customers$Customcolumns; + class Resource$Customers$Searchads360 { + constructor(context) { + this.context = context; + } + search(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://searchads360.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v0/customers/{+customerId}/searchAds360:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchStream(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://searchads360.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v0/customers/{+customerId}/searchAds360:searchStream').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + searchads360_v0.Resource$Customers$Searchads360 = Resource$Customers$Searchads360; + class Resource$Searchads360fields { + 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://searchads360.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://searchads360.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v0/searchAds360Fields:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + searchads360_v0.Resource$Searchads360fields = Resource$Searchads360fields; +})(searchads360_v0 = exports.searchads360_v0 || (exports.searchads360_v0 = {})); + + +/***/ }), + +/***/ 4541: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.videointelligence_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var videointelligence_v1p1beta1; +(function (videointelligence_v1p1beta1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1p1beta1'); + * ``` + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1p1beta1.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(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://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + videointelligence_v1p1beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p1beta1 = exports.videointelligence_v1p1beta1 || (exports.videointelligence_v1p1beta1 = {})); + + +/***/ }), + +/***/ 4548: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.adexperiencereport_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var adexperiencereport_v1; +(function (adexperiencereport_v1) { + /** + * Ad Experience Report API + * + * Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adexperiencereport = google.adexperiencereport('v1'); + * ``` + */ + class Adexperiencereport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.sites = new Resource$Sites(this.context); + this.violatingSites = new Resource$Violatingsites(this.context); + } + } + adexperiencereport_v1.Adexperiencereport = Adexperiencereport; + class Resource$Sites { + 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://adexperiencereport.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexperiencereport_v1.Resource$Sites = Resource$Sites; + class Resource$Violatingsites { + 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://adexperiencereport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; +})(adexperiencereport_v1 = exports.adexperiencereport_v1 || (exports.adexperiencereport_v1 = {})); + + +/***/ }), + +/***/ 4563: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = getPreviousPage + +const getPage = __webpack_require__(3265) + +function getPreviousPage (octokit, link, headers) { + return getPage(octokit, link, 'prev', headers) +} + + +/***/ }), + +/***/ 4577: +/***/ (function(module) { + +module.exports = getPageLinks + +function getPageLinks (link) { + link = link.link || link.headers.link || '' + + const links = {} + + // link format: + // '; rel="next", ; rel="last"' + link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { + links[type] = uri + }) + + return links +} + + +/***/ }), + +/***/ 4596: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.iam_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var iam_v2beta; +(function (iam_v2beta) { + /** + * Identity and Access Management (IAM) API + * + * Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const iam = google.iam('v2beta'); + * ``` + */ + class Iam { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.policies = new Resource$Policies(this.context); + } + } + iam_v2beta.Iam = Iam; + class Resource$Policies { + constructor(context) { + this.context = context; + this.operations = new Resource$Policies$Operations(this.context); + } + createPolicy(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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPolicies(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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iam_v2beta.Resource$Policies = Resource$Policies; + class Resource$Policies$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://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iam_v2beta.Resource$Policies$Operations = Resource$Policies$Operations; +})(iam_v2beta = exports.iam_v2beta || (exports.iam_v2beta = {})); + + +/***/ }), + +/***/ 4599: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudasset_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudasset_v1beta1; +(function (cloudasset_v1beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudasset_v1beta1.Cloudasset = Cloudasset; + class Resource$Folders { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Operations(this.context); + } + exportAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Folders$Operations = Resource$Folders$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Operations(this.context); + } + batchGetAssetsHistory(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + } + batchGetAssetsHistory(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(cloudasset_v1beta1 = exports.cloudasset_v1beta1 || (exports.cloudasset_v1beta1 = {})); + + +/***/ }), + +/***/ 4613: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.youtubereporting_v1 = exports.auth = exports.youtubereporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2222); +Object.defineProperty(exports, "youtubereporting_v1", { enumerable: true, get: function () { return v1_1.youtubereporting_v1; } }); +exports.VERSIONS = { + v1: v1_1.youtubereporting_v1.Youtubereporting, +}; +function youtubereporting(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('youtubereporting', versionOrOptions, exports.VERSIONS, this); +} +exports.youtubereporting = youtubereporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4616: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.paymentsresellersubscription_v1 = exports.auth = exports.paymentsresellersubscription = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8657); +Object.defineProperty(exports, "paymentsresellersubscription_v1", { enumerable: true, get: function () { return v1_1.paymentsresellersubscription_v1; } }); +exports.VERSIONS = { + v1: v1_1.paymentsresellersubscription_v1.Paymentsresellersubscription, +}; +function paymentsresellersubscription(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('paymentsresellersubscription', versionOrOptions, exports.VERSIONS, this); +} +exports.paymentsresellersubscription = paymentsresellersubscription; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4618: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datastore_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datastore_v1; +(function (datastore_v1) { + /** + * Cloud Datastore API + * + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datastore = google.datastore('v1'); + * ``` + */ + class Datastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datastore_v1.Datastore = Datastore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.indexes = new Resource$Projects$Indexes(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + allocateIds(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + beginTransaction(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + commit(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lookup(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reserveIds(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runAggregationQuery(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runQuery(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastore_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Indexes { + 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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'indexId'], + pathParams: ['indexId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'indexId'], + pathParams: ['indexId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastore_v1.Resource$Projects$Indexes = Resource$Projects$Indexes; + class Resource$Projects$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://datastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datastore_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(datastore_v1 = exports.datastore_v1 || (exports.datastore_v1 = {})); + + +/***/ }), + +/***/ 4622: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.iamcredentials_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var iamcredentials_v1; +(function (iamcredentials_v1) { + /** + * IAM Service Account Credentials API + * + * Creates short-lived credentials for impersonating IAM service accounts. To enable this API, you must enable the IAM API (iam.googleapis.com). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const iamcredentials = google.iamcredentials('v1'); + * ``` + */ + class Iamcredentials { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + iamcredentials_v1.Iamcredentials = Iamcredentials; + class Resource$Projects { + constructor(context) { + this.context = context; + this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); + } + } + iamcredentials_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Serviceaccounts { + constructor(context) { + this.context = context; + } + generateAccessToken(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://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateIdToken(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://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateIdToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signBlob(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://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signJwt(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://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iamcredentials_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; +})(iamcredentials_v1 = exports.iamcredentials_v1 || (exports.iamcredentials_v1 = {})); + + +/***/ }), + +/***/ 4633: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.youtubeAnalytics_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var youtubeAnalytics_v2; +(function (youtubeAnalytics_v2) { + /** + * YouTube Analytics API + * + * Retrieves your YouTube Analytics data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const youtubeAnalytics = google.youtubeAnalytics('v2'); + * ``` + */ + class Youtubeanalytics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.groupItems = new Resource$Groupitems(this.context); + this.groups = new Resource$Groups(this.context); + this.reports = new Resource$Reports(this.context); + } + } + youtubeAnalytics_v2.Youtubeanalytics = Youtubeanalytics; + class Resource$Groupitems { + 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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubeAnalytics_v2.Resource$Groupitems = Resource$Groupitems; + class Resource$Groups { + 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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubeAnalytics_v2.Resource$Groups = Resource$Groups; + class Resource$Reports { + constructor(context) { + this.context = context; + } + query(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://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + youtubeAnalytics_v2.Resource$Reports = Resource$Reports; +})(youtubeAnalytics_v2 = exports.youtubeAnalytics_v2 || (exports.youtubeAnalytics_v2 = {})); + + +/***/ }), + +/***/ 4654: +/***/ (function(module) { + +// This is not the set of all possible signals. +// +// It IS, however, the set of all signals that trigger +// an exit on either Linux or BSD systems. Linux is a +// superset of the signal names supported on BSD, and +// the unknown signals just fail to register, so we can +// catch that easily enough. +// +// Don't bother with SIGKILL. It's uncatchable, which +// means that we can't fire any callbacks anyway. +// +// If a user does happen to register a handler on a non- +// fatal signal like SIGWINCH or something, and then +// exit, it'll end up firing `process.emit('exit')`, so +// the handler will be fired anyway. +// +// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised +// artificially, inherently leave the process in a +// state from which it is not safe to try and enter JS +// listeners. +module.exports = [ + 'SIGABRT', + 'SIGALRM', + 'SIGHUP', + 'SIGINT', + 'SIGTERM' +] + +if (process.platform !== 'win32') { + module.exports.push( + 'SIGVTALRM', + 'SIGXCPU', + 'SIGXFSZ', + 'SIGUSR2', + 'SIGTRAP', + 'SIGSYS', + 'SIGQUIT', + 'SIGIOT' + // should detect profiler and enable/disable accordingly. + // see #21 + // 'SIGPROF' + ) +} + +if (process.platform === 'linux') { + module.exports.push( + 'SIGIO', + 'SIGPOLL', + 'SIGPWR', + 'SIGSTKFLT', + 'SIGUNUSED' + ) +} + + +/***/ }), + +/***/ 4656: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.eventarc_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var eventarc_v1; +(function (eventarc_v1) { + /** + * Eventarc API + * + * Build event-driven applications on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const eventarc = google.eventarc('v1'); + * ``` + */ + class Eventarc { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + eventarc_v1.Eventarc = Eventarc; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + eventarc_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.channelConnections = + new Resource$Projects$Locations$Channelconnections(this.context); + this.channels = new Resource$Projects$Locations$Channels(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.providers = new Resource$Projects$Locations$Providers(this.context); + this.triggers = new Resource$Projects$Locations$Triggers(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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getGoogleChannelConfig(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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateGoogleChannelConfig(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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Channelconnections { + 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/channelConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/channelConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1.Resource$Projects$Locations$Channelconnections = Resource$Projects$Locations$Channelconnections; + class Resource$Projects$Locations$Channels { + 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1.Resource$Projects$Locations$Channels = Resource$Projects$Locations$Channels; + 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Providers { + 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1.Resource$Projects$Locations$Providers = Resource$Projects$Locations$Providers; + class Resource$Projects$Locations$Triggers { + 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://eventarc.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + eventarc_v1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; +})(eventarc_v1 = exports.eventarc_v1 || (exports.eventarc_v1 = {})); + + +/***/ }), + +/***/ 4666: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vision_v1p2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vision_v1p2beta1; +(function (vision_v1p2beta1) { + /** + * Cloud Vision API + * + * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vision = google.vision('v1p2beta1'); + * ``` + */ + class Vision { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.projects = new Resource$Projects(this.context); + } + } + vision_v1p2beta1.Vision = Vision; + class Resource$Files { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1p2beta1.Resource$Files = Resource$Files; + class Resource$Images { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1p2beta1.Resource$Images = Resource$Images; + class Resource$Projects { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Files(this.context); + this.images = new Resource$Projects$Images(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + vision_v1p2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Files { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Files = Resource$Projects$Files; + class Resource$Projects$Images { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Images = Resource$Projects$Images; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Files(this.context); + this.images = new Resource$Projects$Locations$Images(this.context); + } + } + vision_v1p2beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Files { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { + constructor(context) { + this.context = context; + } + annotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asyncBatchAnnotate(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://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; +})(vision_v1p2beta1 = exports.vision_v1p2beta1 || (exports.vision_v1p2beta1 = {})); + + +/***/ }), + +/***/ 4675: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const path = __webpack_require__(5622); +const childProcess = __webpack_require__(3129); +const crossSpawn = __webpack_require__(8400); +const stripEof = __webpack_require__(3768); +const npmRunPath = __webpack_require__(7406); +const isStream = __webpack_require__(2781); +const _getStream = __webpack_require__(760); +const pFinally = __webpack_require__(8697); +const onExit = __webpack_require__(5260); +const errname = __webpack_require__(9418); +const stdio = __webpack_require__(1151); + +const TEN_MEGABYTES = 1000 * 1000 * 10; + +function handleArgs(cmd, args, opts) { + let parsed; + + opts = Object.assign({ + extendEnv: true, + env: {} + }, opts); + + if (opts.extendEnv) { + opts.env = Object.assign({}, process.env, opts.env); + } + + if (opts.__winShell === true) { + delete opts.__winShell; + parsed = { + command: cmd, + args, + options: opts, + file: cmd, + original: { + cmd, + args + } + }; + } else { + parsed = crossSpawn._parse(cmd, args, opts); + } + + opts = Object.assign({ + maxBuffer: TEN_MEGABYTES, + buffer: true, + stripEof: true, + preferLocal: true, + localDir: parsed.options.cwd || process.cwd(), + encoding: 'utf8', + reject: true, + cleanup: true + }, parsed.options); + + opts.stdio = stdio(opts); + + if (opts.preferLocal) { + opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir})); + } + + if (opts.detached) { + // #115 + opts.cleanup = false; + } + + if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') { + // #116 + parsed.args.unshift('/q'); + } + + return { + cmd: parsed.command, + args: parsed.args, + opts, + parsed + }; +} + +function handleInput(spawned, input) { + if (input === null || input === undefined) { + return; + } + + if (isStream(input)) { + input.pipe(spawned.stdin); + } else { + spawned.stdin.end(input); + } +} + +function handleOutput(opts, val) { + if (val && opts.stripEof) { + val = stripEof(val); + } + + return val; +} + +function handleShell(fn, cmd, opts) { + let file = '/bin/sh'; + let args = ['-c', cmd]; + + opts = Object.assign({}, opts); + + if (process.platform === 'win32') { + opts.__winShell = true; + file = process.env.comspec || 'cmd.exe'; + args = ['/s', '/c', `"${cmd}"`]; + opts.windowsVerbatimArguments = true; + } + + if (opts.shell) { + file = opts.shell; + delete opts.shell; + } + + return fn(file, args, opts); +} + +function getStream(process, stream, {encoding, buffer, maxBuffer}) { + if (!process[stream]) { + return null; + } + + let ret; + + if (!buffer) { + // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10 + ret = new Promise((resolve, reject) => { + process[stream] + .once('end', resolve) + .once('error', reject); + }); + } else if (encoding) { + ret = _getStream(process[stream], { + encoding, + maxBuffer + }); + } else { + ret = _getStream.buffer(process[stream], {maxBuffer}); + } + + return ret.catch(err => { + err.stream = stream; + err.message = `${stream} ${err.message}`; + throw err; + }); +} + +function makeError(result, options) { + const {stdout, stderr} = result; + + let err = result.error; + const {code, signal} = result; + + const {parsed, joinedCmd} = options; + const timedOut = options.timedOut || false; + + if (!err) { + let output = ''; + + if (Array.isArray(parsed.opts.stdio)) { + if (parsed.opts.stdio[2] !== 'inherit') { + output += output.length > 0 ? stderr : `\n${stderr}`; + } + + if (parsed.opts.stdio[1] !== 'inherit') { + output += `\n${stdout}`; + } + } else if (parsed.opts.stdio !== 'inherit') { + output = `\n${stderr}${stdout}`; + } + + err = new Error(`Command failed: ${joinedCmd}${output}`); + err.code = code < 0 ? errname(code) : code; + } + + err.stdout = stdout; + err.stderr = stderr; + err.failed = true; + err.signal = signal || null; + err.cmd = joinedCmd; + err.timedOut = timedOut; + + return err; +} + +function joinCmd(cmd, args) { + let joinedCmd = cmd; + + if (Array.isArray(args) && args.length > 0) { + joinedCmd += ' ' + args.join(' '); + } + + return joinedCmd; +} + +module.exports = (cmd, args, opts) => { + const parsed = handleArgs(cmd, args, opts); + const {encoding, buffer, maxBuffer} = parsed.opts; + const joinedCmd = joinCmd(cmd, args); + + let spawned; + try { + spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts); + } catch (err) { + return Promise.reject(err); + } + + let removeExitHandler; + if (parsed.opts.cleanup) { + removeExitHandler = onExit(() => { + spawned.kill(); + }); + } + + let timeoutId = null; + let timedOut = false; + + const cleanup = () => { + if (timeoutId) { + clearTimeout(timeoutId); + timeoutId = null; + } + + if (removeExitHandler) { + removeExitHandler(); + } + }; + + if (parsed.opts.timeout > 0) { + timeoutId = setTimeout(() => { + timeoutId = null; + timedOut = true; + spawned.kill(parsed.opts.killSignal); + }, parsed.opts.timeout); + } + + const processDone = new Promise(resolve => { + spawned.on('exit', (code, signal) => { + cleanup(); + resolve({code, signal}); + }); + + spawned.on('error', err => { + cleanup(); + resolve({error: err}); + }); + + if (spawned.stdin) { + spawned.stdin.on('error', err => { + cleanup(); + resolve({error: err}); + }); + } + }); + + function destroy() { + if (spawned.stdout) { + spawned.stdout.destroy(); + } + + if (spawned.stderr) { + spawned.stderr.destroy(); + } + } + + const handlePromise = () => pFinally(Promise.all([ + processDone, + getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}), + getStream(spawned, 'stderr', {encoding, buffer, maxBuffer}) + ]).then(arr => { + const result = arr[0]; + result.stdout = arr[1]; + result.stderr = arr[2]; + + if (result.error || result.code !== 0 || result.signal !== null) { + const err = makeError(result, { + joinedCmd, + parsed, + timedOut + }); + + // TODO: missing some timeout logic for killed + // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203 + // err.killed = spawned.killed || killed; + err.killed = err.killed || spawned.killed; + + if (!parsed.opts.reject) { + return err; + } + + throw err; + } + + return { + stdout: handleOutput(parsed.opts, result.stdout), + stderr: handleOutput(parsed.opts, result.stderr), + code: 0, + failed: false, + killed: false, + signal: null, + cmd: joinedCmd, + timedOut: false + }; + }), destroy); + + crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed); + + handleInput(spawned, parsed.opts.input); + + spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected); + spawned.catch = onrejected => handlePromise().catch(onrejected); + + return spawned; +}; + +// TODO: set `stderr: 'ignore'` when that option is implemented +module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout); + +// TODO: set `stdout: 'ignore'` when that option is implemented +module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr); + +module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts); + +module.exports.sync = (cmd, args, opts) => { + const parsed = handleArgs(cmd, args, opts); + const joinedCmd = joinCmd(cmd, args); + + if (isStream(parsed.opts.input)) { + throw new TypeError('The `input` option cannot be a stream in sync mode'); + } + + const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts); + result.code = result.status; + + if (result.error || result.status !== 0 || result.signal !== null) { + const err = makeError(result, { + joinedCmd, + parsed + }); + + if (!parsed.opts.reject) { + return err; + } + + throw err; + } + + return { + stdout: handleOutput(parsed.opts, result.stdout), + stderr: handleOutput(parsed.opts, result.stderr), + code: 0, + failed: false, + signal: null, + cmd: joinedCmd, + timedOut: false + }; +}; + +module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts); + + +/***/ }), + +/***/ 4693: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networkconnectivity_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networkconnectivity_v1alpha1; +(function (networkconnectivity_v1alpha1) { + /** + * Network Connectivity API + * + * This API enables connectivity with and between Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networkconnectivity = google.networkconnectivity('v1alpha1'); + * ``` + */ + class Networkconnectivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networkconnectivity_v1alpha1.Networkconnectivity = Networkconnectivity; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networkconnectivity_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + this.internalRanges = new Resource$Projects$Locations$Internalranges(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.spokes = new Resource$Projects$Locations$Spokes(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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkconnectivity_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.hubs = new Resource$Projects$Locations$Global$Hubs(this.context); + } + } + networkconnectivity_v1alpha1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Hubs { + 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkconnectivity_v1alpha1.Resource$Projects$Locations$Global$Hubs = Resource$Projects$Locations$Global$Hubs; + class Resource$Projects$Locations$Internalranges { + 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkconnectivity_v1alpha1.Resource$Projects$Locations$Internalranges = Resource$Projects$Locations$Internalranges; + 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkconnectivity_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Spokes { + 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkconnectivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkconnectivity_v1alpha1.Resource$Projects$Locations$Spokes = Resource$Projects$Locations$Spokes; +})(networkconnectivity_v1alpha1 = exports.networkconnectivity_v1alpha1 || (exports.networkconnectivity_v1alpha1 = {})); + + +/***/ }), + +/***/ 4695: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datafusion_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datafusion_v1beta1; +(function (datafusion_v1beta1) { + /** + * Cloud Data Fusion API + * + * Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datafusion = google.datafusion('v1beta1'); + * ``` + */ + class Datafusion { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datafusion_v1beta1.Datafusion = Datafusion; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datafusion_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.versions = new Resource$Projects$Locations$Versions(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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeIamPolicy(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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + this.dnsPeerings = new Resource$Projects$Locations$Instances$Dnspeerings(this.context); + this.namespaces = new Resource$Projects$Locations$Instances$Namespaces(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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Dnspeerings { + 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Instances$Dnspeerings = Resource$Projects$Locations$Instances$Dnspeerings; + class Resource$Projects$Locations$Instances$Namespaces { + constructor(context) { + this.context = context; + } + 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Instances$Namespaces = Resource$Projects$Locations$Instances$Namespaces; + 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Versions { + 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://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Versions = Resource$Projects$Locations$Versions; +})(datafusion_v1beta1 = exports.datafusion_v1beta1 || (exports.datafusion_v1beta1 = {})); + + +/***/ }), + +/***/ 4701: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(4915); +var callBound = __webpack_require__(8630); +var inspect = __webpack_require__(3026); + +var $TypeError = GetIntrinsic('%TypeError%'); +var $WeakMap = GetIntrinsic('%WeakMap%', true); +var $Map = GetIntrinsic('%Map%', true); + +var $weakMapGet = callBound('WeakMap.prototype.get', true); +var $weakMapSet = callBound('WeakMap.prototype.set', true); +var $weakMapHas = callBound('WeakMap.prototype.has', true); +var $mapGet = callBound('Map.prototype.get', true); +var $mapSet = callBound('Map.prototype.set', true); +var $mapHas = callBound('Map.prototype.has', true); + +/* + * This function traverses the list returning the node corresponding to the + * given key. + * + * That node is also moved to the head of the list, so that if it's accessed + * again we don't need to traverse the whole list. By doing so, all the recently + * used nodes can be accessed relatively quickly. + */ +var listGetNode = function (list, key) { // eslint-disable-line consistent-return + for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { + if (curr.key === key) { + prev.next = curr.next; + curr.next = list.next; + list.next = curr; // eslint-disable-line no-param-reassign + return curr; + } + } +}; + +var listGet = function (objects, key) { + var node = listGetNode(objects, key); + return node && node.value; +}; +var listSet = function (objects, key, value) { + var node = listGetNode(objects, key); + if (node) { + node.value = value; + } else { + // Prepend the new node to the beginning of the list + objects.next = { // eslint-disable-line no-param-reassign + key: key, + next: objects.next, + value: value + }; + } +}; +var listHas = function (objects, key) { + return !!listGetNode(objects, key); +}; + +module.exports = function getSideChannel() { + var $wm; + var $m; + var $o; + var channel = { + assert: function (key) { + if (!channel.has(key)) { + throw new $TypeError('Side channel does not contain ' + inspect(key)); + } + }, + get: function (key) { // eslint-disable-line consistent-return + if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { + if ($wm) { + return $weakMapGet($wm, key); + } + } else if ($Map) { + if ($m) { + return $mapGet($m, key); + } + } else { + if ($o) { // eslint-disable-line no-lonely-if + return listGet($o, key); + } + } + }, + has: function (key) { + if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { + if ($wm) { + return $weakMapHas($wm, key); + } + } else if ($Map) { + if ($m) { + return $mapHas($m, key); + } + } else { + if ($o) { // eslint-disable-line no-lonely-if + return listHas($o, key); + } + } + return false; + }, + set: function (key, value) { + if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { + if (!$wm) { + $wm = new $WeakMap(); + } + $weakMapSet($wm, key, value); + } else if ($Map) { + if (!$m) { + $m = new $Map(); + } + $mapSet($m, key, value); + } else { + if (!$o) { + /* + * Initialize the linked list as an empty node, so that we don't have + * to special-case handling of the first node: we can always refer to + * it as (previous node).next, instead of something like (list).head + */ + $o = { key: {}, next: null }; + } + listSet($o, key, value); + } + } + }; + return channel; +}; + + +/***/ }), + +/***/ 4712: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.displayvideo_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var displayvideo_v2; +(function (displayvideo_v2) { + /** + * Display & Video 360 API + * + * Display & Video 360 API allows users to automate complex Display & Video 360 workflows, such as creating insertion orders and setting targeting options for individual line items. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const displayvideo = google.displayvideo('v2'); + * ``` + */ + class Displayvideo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.advertisers = new Resource$Advertisers(this.context); + this.combinedAudiences = new Resource$Combinedaudiences(this.context); + this.customBiddingAlgorithms = new Resource$Custombiddingalgorithms(this.context); + this.customLists = new Resource$Customlists(this.context); + this.firstAndThirdPartyAudiences = + new Resource$Firstandthirdpartyaudiences(this.context); + this.floodlightGroups = new Resource$Floodlightgroups(this.context); + this.googleAudiences = new Resource$Googleaudiences(this.context); + this.guaranteedOrders = new Resource$Guaranteedorders(this.context); + this.inventorySourceGroups = new Resource$Inventorysourcegroups(this.context); + this.inventorySources = new Resource$Inventorysources(this.context); + this.media = new Resource$Media(this.context); + this.partners = new Resource$Partners(this.context); + this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); + this.targetingTypes = new Resource$Targetingtypes(this.context); + this.users = new Resource$Users(this.context); + } + } + displayvideo_v2.Displayvideo = Displayvideo; + class Resource$Advertisers { + constructor(context) { + this.context = context; + this.assets = new Resource$Advertisers$Assets(this.context); + this.campaigns = new Resource$Advertisers$Campaigns(this.context); + this.channels = new Resource$Advertisers$Channels(this.context); + this.creatives = new Resource$Advertisers$Creatives(this.context); + this.insertionOrders = new Resource$Advertisers$Insertionorders(this.context); + this.invoices = new Resource$Advertisers$Invoices(this.context); + this.lineItems = new Resource$Advertisers$Lineitems(this.context); + this.locationLists = new Resource$Advertisers$Locationlists(this.context); + this.manualTriggers = new Resource$Advertisers$Manualtriggers(this.context); + this.negativeKeywordLists = new Resource$Advertisers$Negativekeywordlists(this.context); + this.targetingTypes = new Resource$Advertisers$Targetingtypes(this.context); + this.youtubeAdGroupAds = new Resource$Advertisers$Youtubeadgroupads(this.context); + this.youtubeAdGroups = new Resource$Advertisers$Youtubeadgroups(this.context); + } + audit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}:audit').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}:editAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers = Resource$Advertisers; + class Resource$Advertisers$Assets { + constructor(context) { + this.context = context; + } + upload(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v2/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Assets = Resource$Advertisers$Assets; + class Resource$Advertisers$Campaigns { + constructor(context) { + this.context = context; + this.targetingTypes = new Resource$Advertisers$Campaigns$Targetingtypes(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Campaigns = Resource$Advertisers$Campaigns; + class Resource$Advertisers$Campaigns$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v2.Resource$Advertisers$Campaigns$Targetingtypes = Resource$Advertisers$Campaigns$Targetingtypes; + class Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'campaignId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'campaignId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId', 'targetingType'], + pathParams: ['advertiserId', 'campaignId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Channels { + constructor(context) { + this.context = context; + this.sites = new Resource$Advertisers$Channels$Sites(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Channels = Resource$Advertisers$Channels; + class Resource$Advertisers$Channels$Sites { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'channelId', 'urlOrAppId'], + pathParams: ['advertiserId', 'channelId', 'urlOrAppId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replace(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Channels$Sites = Resource$Advertisers$Channels$Sites; + class Resource$Advertisers$Creatives { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Creatives = Resource$Advertisers$Creatives; + class Resource$Advertisers$Insertionorders { + constructor(context) { + this.context = context; + this.targetingTypes = + new Resource$Advertisers$Insertionorders$Targetingtypes(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Insertionorders = Resource$Advertisers$Insertionorders; + class Resource$Advertisers$Insertionorders$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v2.Resource$Advertisers$Insertionorders$Targetingtypes = Resource$Advertisers$Insertionorders$Targetingtypes; + class Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'insertionOrderId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'insertionOrderId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'insertionOrderId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'insertionOrderId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Invoices { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + lookupInvoiceCurrency(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/invoices:lookupInvoiceCurrency').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Invoices = Resource$Advertisers$Invoices; + class Resource$Advertisers$Lineitems { + constructor(context) { + this.context = context; + this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); + } + bulkEditAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems:bulkEditAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkListAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems:bulkListAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkUpdate(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems:bulkUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + duplicate(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}:duplicate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDefault(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems:generateDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Lineitems = Resource$Advertisers$Lineitems; + class Resource$Advertisers$Lineitems$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v2.Resource$Advertisers$Lineitems$Targetingtypes = Resource$Advertisers$Lineitems$Targetingtypes; + class Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Locationlists { + constructor(context) { + this.context = context; + this.assignedLocations = + new Resource$Advertisers$Locationlists$Assignedlocations(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/locationLists/{locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Locationlists = Resource$Advertisers$Locationlists; + class Resource$Advertisers$Locationlists$Assignedlocations { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'locationListId', + 'assignedLocationId', + ], + pathParams: ['advertiserId', 'assignedLocationId', 'locationListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Locationlists$Assignedlocations = Resource$Advertisers$Locationlists$Assignedlocations; + class Resource$Advertisers$Manualtriggers { + constructor(context) { + this.context = context; + } + activate(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deactivate(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Manualtriggers = Resource$Advertisers$Manualtriggers; + class Resource$Advertisers$Negativekeywordlists { + constructor(context) { + this.context = context; + this.negativeKeywords = + new Resource$Advertisers$Negativekeywordlists$Negativekeywords(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Negativekeywordlists = Resource$Advertisers$Negativekeywordlists; + class Resource$Advertisers$Negativekeywordlists$Negativekeywords { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'negativeKeywordListId', + 'keywordValue', + ], + pathParams: ['advertiserId', 'keywordValue', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replace(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Negativekeywordlists$Negativekeywords = Resource$Advertisers$Negativekeywordlists$Negativekeywords; + class Resource$Advertisers$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v2.Resource$Advertisers$Targetingtypes = Resource$Advertisers$Targetingtypes; + class Resource$Advertisers$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Youtubeadgroupads { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroupAds/{+youtubeAdGroupAdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'youtubeAdGroupAdId'], + pathParams: ['advertiserId', 'youtubeAdGroupAdId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/youtubeAdGroupAds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Youtubeadgroupads = Resource$Advertisers$Youtubeadgroupads; + class Resource$Advertisers$Youtubeadgroups { + constructor(context) { + this.context = context; + this.targetingTypes = + new Resource$Advertisers$Youtubeadgroups$Targetingtypes(this.context); + } + bulkListAdGroupAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'youtubeAdGroupId'], + pathParams: ['advertiserId', 'youtubeAdGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/advertisers/{+advertiserId}/youtubeAdGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Youtubeadgroups = Resource$Advertisers$Youtubeadgroups; + class Resource$Advertisers$Youtubeadgroups$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Advertisers$Youtubeadgroups$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v2.Resource$Advertisers$Youtubeadgroups$Targetingtypes = Resource$Advertisers$Youtubeadgroups$Targetingtypes; + class Resource$Advertisers$Youtubeadgroups$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'youtubeAdGroupId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + 'youtubeAdGroupId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'youtubeAdGroupId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType', 'youtubeAdGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Advertisers$Youtubeadgroups$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Youtubeadgroups$Targetingtypes$Assignedtargetingoptions; + class Resource$Combinedaudiences { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['combinedAudienceId'], + pathParams: ['combinedAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Combinedaudiences = Resource$Combinedaudiences; + class Resource$Custombiddingalgorithms { + constructor(context) { + this.context = context; + this.scripts = new Resource$Custombiddingalgorithms$Scripts(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + uploadScript(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Custombiddingalgorithms = Resource$Custombiddingalgorithms; + class Resource$Custombiddingalgorithms$Scripts { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], + pathParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Custombiddingalgorithms$Scripts = Resource$Custombiddingalgorithms$Scripts; + class Resource$Customlists { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customListId'], + pathParams: ['customListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/customLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Customlists = Resource$Customlists; + class Resource$Firstandthirdpartyaudiences { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editCustomerMatchMembers(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Firstandthirdpartyaudiences = Resource$Firstandthirdpartyaudiences; + class Resource$Floodlightgroups { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Floodlightgroups = Resource$Floodlightgroups; + class Resource$Googleaudiences { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['googleAudienceId'], + pathParams: ['googleAudienceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Googleaudiences = Resource$Googleaudiences; + class Resource$Guaranteedorders { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editGuaranteedOrderReadAccessors(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Guaranteedorders = Resource$Guaranteedorders; + class Resource$Inventorysourcegroups { + constructor(context) { + this.context = context; + this.assignedInventorySources = + new Resource$Inventorysourcegroups$Assignedinventorysources(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySourceGroups/{inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Inventorysourcegroups = Resource$Inventorysourcegroups; + class Resource$Inventorysourcegroups$Assignedinventorysources { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['inventorySourceGroupId', 'assignedInventorySourceId'], + pathParams: ['assignedInventorySourceId', 'inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Inventorysourcegroups$Assignedinventorysources = Resource$Inventorysourcegroups$Assignedinventorysources; + class Resource$Inventorysources { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + editInventorySourceReadWriteAccessors(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Inventorysources = Resource$Inventorysources; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Media = Resource$Media; + class Resource$Partners { + constructor(context) { + this.context = context; + this.channels = new Resource$Partners$Channels(this.context); + this.targetingTypes = new Resource$Partners$Targetingtypes(this.context); + } + editAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}:editAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Partners = Resource$Partners; + class Resource$Partners$Channels { + constructor(context) { + this.context = context; + this.sites = new Resource$Partners$Channels$Sites(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Partners$Channels = Resource$Partners$Channels; + class Resource$Partners$Channels$Sites { + constructor(context) { + this.context = context; + } + bulkEdit(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['partnerId', 'channelId', 'urlOrAppId'], + pathParams: ['channelId', 'partnerId', 'urlOrAppId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/partners/{+partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replace(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{partnerId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Partners$Channels$Sites = Resource$Partners$Channels$Sites; + class Resource$Partners$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = + new Resource$Partners$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v2.Resource$Partners$Targetingtypes = Resource$Partners$Targetingtypes; + class Resource$Partners$Targetingtypes$Assignedtargetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Partners$Targetingtypes$Assignedtargetingoptions = Resource$Partners$Targetingtypes$Assignedtargetingoptions; + class Resource$Sdfdownloadtasks { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtasks$Operations(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; + class Resource$Sdfdownloadtasks$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://displayvideo.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; + class Resource$Targetingtypes { + constructor(context) { + this.context = context; + this.targetingOptions = new Resource$Targetingtypes$Targetingoptions(this.context); + } + } + displayvideo_v2.Resource$Targetingtypes = Resource$Targetingtypes; + class Resource$Targetingtypes$Targetingoptions { + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['targetingType', 'targetingOptionId'], + pathParams: ['targetingOptionId', 'targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['targetingType'], + pathParams: ['targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/targetingTypes/{+targetingType}/targetingOptions:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['targetingType'], + pathParams: ['targetingType'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Targetingtypes$Targetingoptions = Resource$Targetingtypes$Targetingoptions; + class Resource$Users { + constructor(context) { + this.context = context; + } + bulkEditAssignedUserRoles(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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{+userId}:bulkEditAssignedUserRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + displayvideo_v2.Resource$Users = Resource$Users; +})(displayvideo_v2 = exports.displayvideo_v2 || (exports.displayvideo_v2 = {})); + + +/***/ }), + +/***/ 4714: +/***/ (function(module) { + +(function (root, factory) { + if (true) { + module.exports = factory(); + } else {} +}(this, function () { + /** + * @constructor + */ + function UrlTemplate() { + } + + /** + * @private + * @param {string} str + * @return {string} + */ + UrlTemplate.prototype.encodeReserved = function (str) { + return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { + if (!/%[0-9A-Fa-f]/.test(part)) { + part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); + } + return part; + }).join(''); + }; + + /** + * @private + * @param {string} str + * @return {string} + */ + UrlTemplate.prototype.encodeUnreserved = function (str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return '%' + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + + /** + * @private + * @param {string} operator + * @param {string} value + * @param {string} key + * @return {string} + */ + UrlTemplate.prototype.encodeValue = function (operator, value, key) { + value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : this.encodeUnreserved(value); + + if (key) { + return this.encodeUnreserved(key) + '=' + value; + } else { + return value; + } + }; + + /** + * @private + * @param {*} value + * @return {boolean} + */ + UrlTemplate.prototype.isDefined = function (value) { + return value !== undefined && value !== null; + }; + + /** + * @private + * @param {string} + * @return {boolean} + */ + UrlTemplate.prototype.isKeyOperator = function (operator) { + return operator === ';' || operator === '&' || operator === '?'; + }; + + /** + * @private + * @param {Object} context + * @param {string} operator + * @param {string} key + * @param {string} modifier + */ + UrlTemplate.prototype.getValues = function (context, operator, key, modifier) { + var value = context[key], + result = []; + + if (this.isDefined(value) && value !== '') { + if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { + value = value.toString(); + + if (modifier && modifier !== '*') { + value = value.substring(0, parseInt(modifier, 10)); + } + + result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); + } else { + if (modifier === '*') { + if (Array.isArray(value)) { + value.filter(this.isDefined).forEach(function (value) { + result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); + }, this); + } else { + Object.keys(value).forEach(function (k) { + if (this.isDefined(value[k])) { + result.push(this.encodeValue(operator, value[k], k)); + } + }, this); + } + } else { + var tmp = []; + + if (Array.isArray(value)) { + value.filter(this.isDefined).forEach(function (value) { + tmp.push(this.encodeValue(operator, value)); + }, this); + } else { + Object.keys(value).forEach(function (k) { + if (this.isDefined(value[k])) { + tmp.push(this.encodeUnreserved(k)); + tmp.push(this.encodeValue(operator, value[k].toString())); + } + }, this); + } + + if (this.isKeyOperator(operator)) { + result.push(this.encodeUnreserved(key) + '=' + tmp.join(',')); + } else if (tmp.length !== 0) { + result.push(tmp.join(',')); + } + } + } + } else { + if (operator === ';') { + if (this.isDefined(value)) { + result.push(this.encodeUnreserved(key)); + } + } else if (value === '' && (operator === '&' || operator === '?')) { + result.push(this.encodeUnreserved(key) + '='); + } else if (value === '') { + result.push(''); + } + } + return result; + }; + + /** + * @param {string} template + * @return {function(Object):string} + */ + UrlTemplate.prototype.parse = function (template) { + var that = this; + var operators = ['+', '#', '.', '/', ';', '?', '&']; + + return { + expand: function (context) { + return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { + if (expression) { + var operator = null, + values = []; + + if (operators.indexOf(expression.charAt(0)) !== -1) { + operator = expression.charAt(0); + expression = expression.substr(1); + } + + expression.split(/,/g).forEach(function (variable) { + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); + values.push.apply(values, that.getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + }); + + if (operator && operator !== '+') { + var separator = ','; + + if (operator === '?') { + separator = '&'; + } else if (operator !== '#') { + separator = operator; + } + return (values.length !== 0 ? operator : '') + values.join(separator); + } else { + return values.join(','); + } + } else { + return that.encodeReserved(literal); + } + }); + } + }; + }; + + return new UrlTemplate(); +})); + + +/***/ }), + +/***/ 4720: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudasset_v1p7beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudasset_v1p7beta1; +(function (cloudasset_v1p7beta1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p7beta1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.v1p7beta1 = new Resource$V1p7beta1(this.context); + } + } + cloudasset_v1p7beta1.Cloudasset = Cloudasset; + class Resource$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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p7beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p7beta1.Resource$Operations = Resource$Operations; + class Resource$V1p7beta1 { + constructor(context) { + this.context = context; + } + exportAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p7beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1p7beta1.Resource$V1p7beta1 = Resource$V1p7beta1; +})(cloudasset_v1p7beta1 = exports.cloudasset_v1p7beta1 || (exports.cloudasset_v1p7beta1 = {})); + + +/***/ }), + +/***/ 4743: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.readerrevenuesubscriptionlinking_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var readerrevenuesubscriptionlinking_v1; +(function (readerrevenuesubscriptionlinking_v1) { + /** + * Reader Revenue Subscription Linking API + * + * readerrevenuesubscriptionlinking.googleapis.com API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const readerrevenuesubscriptionlinking = google.readerrevenuesubscriptionlinking('v1'); + * ``` + */ + class Readerrevenuesubscriptionlinking { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.publications = new Resource$Publications(this.context); + } + } + readerrevenuesubscriptionlinking_v1.Readerrevenuesubscriptionlinking = Readerrevenuesubscriptionlinking; + class Resource$Publications { + constructor(context) { + this.context = context; + this.readers = new Resource$Publications$Readers(this.context); + } + } + readerrevenuesubscriptionlinking_v1.Resource$Publications = Resource$Publications; + class Resource$Publications$Readers { + 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://readerrevenuesubscriptionlinking.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://readerrevenuesubscriptionlinking.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEntitlements(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://readerrevenuesubscriptionlinking.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateEntitlements(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://readerrevenuesubscriptionlinking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + readerrevenuesubscriptionlinking_v1.Resource$Publications$Readers = Resource$Publications$Readers; +})(readerrevenuesubscriptionlinking_v1 = exports.readerrevenuesubscriptionlinking_v1 || (exports.readerrevenuesubscriptionlinking_v1 = {})); + + +/***/ }), + +/***/ 4748: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.chromemanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var chromemanagement_v1; +(function (chromemanagement_v1) { + /** + * Chrome Management API + * + * The Chrome Management API is a suite of services that allows Chrome administrators to view, manage and gain insights on their Chrome OS and Chrome Browser devices. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const chromemanagement = google.chromemanagement('v1'); + * ``` + */ + class Chromemanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + } + } + chromemanagement_v1.Chromemanagement = Chromemanagement; + class Resource$Customers { + constructor(context) { + this.context = context; + this.apps = new Resource$Customers$Apps(this.context); + this.reports = new Resource$Customers$Reports(this.context); + this.telemetry = new Resource$Customers$Telemetry(this.context); + } + } + chromemanagement_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Apps { + constructor(context) { + this.context = context; + this.android = new Resource$Customers$Apps$Android(this.context); + this.chrome = new Resource$Customers$Apps$Chrome(this.context); + this.web = new Resource$Customers$Apps$Web(this.context); + } + countChromeAppRequests(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/apps:countChromeAppRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps = Resource$Customers$Apps; + class Resource$Customers$Apps$Android { + 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://chromemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps$Android = Resource$Customers$Apps$Android; + class Resource$Customers$Apps$Chrome { + 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://chromemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps$Chrome = Resource$Customers$Apps$Chrome; + class Resource$Customers$Apps$Web { + 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://chromemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Apps$Web = Resource$Customers$Apps$Web; + class Resource$Customers$Reports { + constructor(context) { + this.context = context; + } + countChromeBrowsersNeedingAttention(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeBrowsersNeedingAttention').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeDevicesReachingAutoExpirationDate(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeDevicesThatNeedAttention(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeDevicesThatNeedAttention').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeHardwareFleetDevices(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+customer}/reports:countChromeHardwareFleetDevices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countChromeVersions(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countChromeVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countInstalledApps(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countInstalledApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countPrintJobsByPrinter(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + countPrintJobsByUser(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + findInstalledAppDevices(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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/reports:findInstalledAppDevices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Reports = Resource$Customers$Reports; + class Resource$Customers$Telemetry { + constructor(context) { + this.context = context; + this.devices = new Resource$Customers$Telemetry$Devices(this.context); + this.events = new Resource$Customers$Telemetry$Events(this.context); + this.users = new Resource$Customers$Telemetry$Users(this.context); + } + } + chromemanagement_v1.Resource$Customers$Telemetry = Resource$Customers$Telemetry; + class Resource$Customers$Telemetry$Devices { + 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://chromemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Devices = Resource$Customers$Telemetry$Devices; + class Resource$Customers$Telemetry$Events { + 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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Events = Resource$Customers$Telemetry$Events; + class Resource$Customers$Telemetry$Users { + 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://chromemanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chromemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/telemetry/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chromemanagement_v1.Resource$Customers$Telemetry$Users = Resource$Customers$Telemetry$Users; +})(chromemanagement_v1 = exports.chromemanagement_v1 || (exports.chromemanagement_v1 = {})); + + +/***/ }), + +/***/ 4773: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.metastore_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var metastore_v1; +(function (metastore_v1) { + /** + * Dataproc Metastore API + * + * The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const metastore = google.metastore('v1'); + * ``` + */ + class Metastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + metastore_v1.Metastore = Metastore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + metastore_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.federations = new Resource$Projects$Locations$Federations(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.services = new Resource$Projects$Locations$Services(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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Federations { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1.Resource$Projects$Locations$Federations = Resource$Projects$Locations$Federations; + 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Services$Backups(this.context); + this.metadataImports = + new Resource$Projects$Locations$Services$Metadataimports(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportMetadata(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Backups { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1.Resource$Projects$Locations$Services$Backups = Resource$Projects$Locations$Services$Backups; + class Resource$Projects$Locations$Services$Metadataimports { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; +})(metastore_v1 = exports.metastore_v1 || (exports.metastore_v1 = {})); + + +/***/ }), + +/***/ 4784: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Detect Electron renderer / nwjs process, which is node, but we should + * treat as a browser. + */ + +if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { + module.exports = __webpack_require__(3794); +} else { + module.exports = __webpack_require__(3081); +} + + +/***/ }), + +/***/ 4803: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(__webpack_require__(6417)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports.default = _default; + +/***/ }), + +/***/ 4810: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.websecurityscanner_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var websecurityscanner_v1alpha; +(function (websecurityscanner_v1alpha) { + /** + * Web Security Scanner API + * + * Scans your Compute and App Engine apps for common web vulnerabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const websecurityscanner = google.websecurityscanner('v1alpha'); + * ``` + */ + class Websecurityscanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + websecurityscanner_v1alpha.Websecurityscanner = Websecurityscanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + websecurityscanner_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Projects$Scanconfigs$Scanruns { + constructor(context) { + this.context = context; + this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); + this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); + this.findingTypeStats = + new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; + class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + 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://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1alpha = exports.websecurityscanner_v1alpha || (exports.websecurityscanner_v1alpha = {})); + + +/***/ }), + +/***/ 4813: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2018 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.getEnv = exports.clear = exports.GCPEnv = void 0; +const gcpMetadata = __webpack_require__(1479); +var GCPEnv; +(function (GCPEnv) { + GCPEnv["APP_ENGINE"] = "APP_ENGINE"; + GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; + GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; + GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; + GCPEnv["CLOUD_RUN"] = "CLOUD_RUN"; + GCPEnv["NONE"] = "NONE"; +})(GCPEnv = exports.GCPEnv || (exports.GCPEnv = {})); +let envPromise; +function clear() { + envPromise = undefined; +} +exports.clear = clear; +async function getEnv() { + if (envPromise) { + return envPromise; + } + envPromise = getEnvMemoized(); + return envPromise; +} +exports.getEnv = getEnv; +async function getEnvMemoized() { + let env = GCPEnv.NONE; + if (isAppEngine()) { + env = GCPEnv.APP_ENGINE; + } + else if (isCloudFunction()) { + env = GCPEnv.CLOUD_FUNCTIONS; + } + else if (await isComputeEngine()) { + if (await isKubernetesEngine()) { + env = GCPEnv.KUBERNETES_ENGINE; + } + else if (isCloudRun()) { + env = GCPEnv.CLOUD_RUN; + } + else { + env = GCPEnv.COMPUTE_ENGINE; + } + } + else { + env = GCPEnv.NONE; + } + return env; +} +function isAppEngine() { + return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); +} +function isCloudFunction() { + return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); +} +/** + * This check only verifies that the environment is running knative. + * This must be run *after* checking for Kubernetes, otherwise it will + * return a false positive. + */ +function isCloudRun() { + return !!process.env.K_CONFIGURATION; +} +async function isKubernetesEngine() { + try { + await gcpMetadata.instance('attributes/cluster-name'); + return true; + } + catch (e) { + return false; + } +} +async function isComputeEngine() { + return gcpMetadata.isAvailable(); +} +//# sourceMappingURL=envDetect.js.map + +/***/ }), + +/***/ 4822: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.apigateway_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var apigateway_v1beta; +(function (apigateway_v1beta) { + /** + * API Gateway API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apigateway = google.apigateway('v1beta'); + * ``` + */ + class Apigateway { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apigateway_v1beta.Apigateway = Apigateway; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apigateway_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.apis = new Resource$Projects$Locations$Apis(this.context); + this.gateways = new Resource$Projects$Locations$Gateways(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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Apis { + constructor(context) { + this.context = context; + this.configs = new Resource$Projects$Locations$Apis$Configs(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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; + class Resource$Projects$Locations$Apis$Configs { + 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Apis$Configs = Resource$Projects$Locations$Apis$Configs; + class Resource$Projects$Locations$Gateways { + 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigateway_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apigateway_v1beta = exports.apigateway_v1beta || (exports.apigateway_v1beta = {})); + + +/***/ }), + +/***/ 4837: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Copyright 2021 The Oppia Authors. All Rights Reserved. +// +// 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. + +/** + * @fileoverview File to handle checks when a pull request is labeled. + */ + +const core = __webpack_require__(6470); +const { context, GitHub } = __webpack_require__(1469); +const DONT_MERGE_LABEL_PREFIX = "PR: don't merge"; + +const checkLabels = async () => { + core.info('Checking newly added label...'); + const token = core.getInput('repo-token'); + const label = context.payload.label; + const octokit = new GitHub(token); + + if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { + await handleDontMergeLabel(octokit, label.name); + } +}; + +/** + * Handles cases when a good first issue gets added by a non whitelisted user. + * + * @param {import('@actions/github').GitHub} octokit + */ +const handleDontMergeLabel = async (octokit, label) => { + core.setFailed( + 'This PR should not be merged because it has a ' + label + ' label.' + ); +}; + +/** + * Handles cases when a good first issue gets added by a non whitelisted user. + * + * @param {import('@actions/github').GitHub} octokit + */ +const handleDontMergeLabelRemoved = async(octokit) => { + const {data: pullRequest} = await octokit.pulls.get({ + pull_number: context.payload.pull_request.number, + owner: context.payload.repository.owner.login, + repo: context.payload.repository.name, + }); + + const labelNames = pullRequest.labels.map(label => label.name); + + const dontMergeLabel = labelNames.find( + label => label.startsWith(DONT_MERGE_LABEL_PREFIX) + ); + + if (dontMergeLabel) { + await handleDontMergeLabel(octokit, dontMergeLabel); + } else { + core.info("This PR does not contain a PR don't merge label"); + } +}; + +const checkUnLabeled = async () => { + core.info('Checking newly removed label...'); + const token = core.getInput('repo-token'); + const label = context.payload.label; + const octokit = new GitHub(token); + + if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { + await handleDontMergeLabelRemoved(octokit, label.name); + } +}; + +module.exports = { + checkLabels, + checkUnLabeled, +}; + + +/***/ }), + +/***/ 4838: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.speech_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var speech_v1; +(function (speech_v1) { + /** + * Cloud Speech-to-Text API + * + * Converts audio to text by applying powerful neural network models. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const speech = google.speech('v1'); + * ``` + */ + class Speech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.speech = new Resource$Speech(this.context); + } + } + speech_v1.Speech = Speech; + class Resource$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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + speech_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + speech_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.customClasses = new Resource$Projects$Locations$Customclasses(this.context); + this.phraseSets = new Resource$Projects$Locations$Phrasesets(this.context); + } + } + speech_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Customclasses { + 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + speech_v1.Resource$Projects$Locations$Customclasses = Resource$Projects$Locations$Customclasses; + class Resource$Projects$Locations$Phrasesets { + 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + speech_v1.Resource$Projects$Locations$Phrasesets = Resource$Projects$Locations$Phrasesets; + class Resource$Speech { + constructor(context) { + this.context = context; + } + longrunningrecognize(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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recognize(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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + speech_v1.Resource$Speech = Resource$Speech; +})(speech_v1 = exports.speech_v1 || (exports.speech_v1 = {})); + + +/***/ }), + +/***/ 4843: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebasehosting_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebasehosting_v1; +(function (firebasehosting_v1) { + /** + * Firebase Hosting API + * + * The Firebase Hosting REST API enables programmatic and customizable management and deployments to your Firebase-hosted sites. Use this REST API to create and manage channels and sites as well as to deploy new or updated hosting configurations and content files. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebasehosting = google.firebasehosting('v1'); + * ``` + */ + class Firebasehosting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + firebasehosting_v1.Firebasehosting = Firebasehosting; + class Resource$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://firebasehosting.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebasehosting.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasehosting_v1.Resource$Operations = Resource$Operations; +})(firebasehosting_v1 = exports.firebasehosting_v1 || (exports.firebasehosting_v1 = {})); + + +/***/ }), + +/***/ 4863: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.policyanalyzer_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var policyanalyzer_v1beta1; +(function (policyanalyzer_v1beta1) { + /** + * Policy Analyzer API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const policyanalyzer = google.policyanalyzer('v1beta1'); + * ``` + */ + class Policyanalyzer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + policyanalyzer_v1beta1.Policyanalyzer = Policyanalyzer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + policyanalyzer_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.activityTypes = new Resource$Projects$Locations$Activitytypes(this.context); + } + } + policyanalyzer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Activitytypes { + constructor(context) { + this.context = context; + this.activities = + new Resource$Projects$Locations$Activitytypes$Activities(this.context); + } + } + policyanalyzer_v1beta1.Resource$Projects$Locations$Activitytypes = Resource$Projects$Locations$Activitytypes; + class Resource$Projects$Locations$Activitytypes$Activities { + constructor(context) { + this.context = context; + } + query(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://policyanalyzer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/activities:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policyanalyzer_v1beta1.Resource$Projects$Locations$Activitytypes$Activities = Resource$Projects$Locations$Activitytypes$Activities; +})(policyanalyzer_v1beta1 = exports.policyanalyzer_v1beta1 || (exports.policyanalyzer_v1beta1 = {})); + + +/***/ }), + +/***/ 4896: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.migrationcenter_v1alpha1 = exports.auth = exports.migrationcenter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(8066); +Object.defineProperty(exports, "migrationcenter_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.migrationcenter_v1alpha1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.migrationcenter_v1alpha1.Migrationcenter, +}; +function migrationcenter(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('migrationcenter', versionOrOptions, exports.VERSIONS, this); +} +exports.migrationcenter = migrationcenter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4898: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +var request = __webpack_require__(1753); +var universalUserAgent = __webpack_require__(6796); + +const VERSION = "4.8.0"; + +function _buildMessageForResponseErrors(data) { + return `Request failed due to following response errors:\n` + data.errors.map(e => ` - ${e.message}`).join("\n"); +} + +class GraphqlResponseError extends Error { + constructor(request, headers, response) { + super(_buildMessageForResponseErrors(response)); + this.request = request; + this.headers = headers; + this.response = response; + this.name = "GraphqlResponseError"; // Expose the errors and response data in their shorthand properties. + + this.errors = response.errors; + this.data = response.data; // Maintains proper stack trace (only available on V8) + + /* istanbul ignore next */ + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } + +} + +const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query", "mediaType"]; +const FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"]; +const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/; +function graphql(request, query, options) { + if (options) { + if (typeof query === "string" && "query" in options) { + return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`)); + } + + for (const key in options) { + if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue; + return Promise.reject(new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`)); + } + } + + const parsedOptions = typeof query === "string" ? Object.assign({ + query + }, options) : query; + const requestOptions = Object.keys(parsedOptions).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = parsedOptions[key]; + return result; + } + + if (!result.variables) { + result.variables = {}; + } + + result.variables[key] = parsedOptions[key]; + return result; + }, {}); // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix + // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451 + + const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl; + + if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) { + requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql"); + } + + return request(requestOptions).then(response => { + if (response.data.errors) { + const headers = {}; + + for (const key of Object.keys(response.headers)) { + headers[key] = response.headers[key]; + } + + throw new GraphqlResponseError(requestOptions, headers, response.data); + } + + return response.data.data; + }); +} + +function withDefaults(request$1, newDefaults) { + const newRequest = request$1.defaults(newDefaults); + + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: request.request.endpoint + }); +} + +const graphql$1 = withDefaults(request.request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}` + }, + method: "POST", + url: "/graphql" +}); +function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql" + }); +} + +exports.GraphqlResponseError = GraphqlResponseError; +exports.graphql = graphql$1; +exports.withCustomRequest = withCustomRequest; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 4913: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +/** + * Copyright (c) 2019 Digital Bazaar, Inc. + */ + +var forge = __webpack_require__(239); +__webpack_require__(1431); +var asn1 = forge.asn1; + +exports.privateKeyValidator = { + // PrivateKeyInfo + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'PrivateKeyInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // privateKeyAlgorithm + name: 'PrivateKeyInfo.privateKeyAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'privateKeyOid' + }] + }, { + // PrivateKey + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'privateKey' + }] +}; + +exports.publicKeyValidator = { + name: 'SubjectPublicKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'subjectPublicKeyInfo', + value: [{ + name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'publicKeyOid' + }] + }, + // capture group for ed25519PublicKey + { + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + composed: true, + captureBitStringValue: 'ed25519PublicKey' + } + // FIXME: this is capture group for rsaPublicKey, use it in this API or + // discard? + /* { + // subjectPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + value: [{ + // RSAPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'rsaPublicKey' + }] + } */ + ] +}; + + +/***/ }), + +/***/ 4915: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var undefined; + +var $SyntaxError = SyntaxError; +var $Function = Function; +var $TypeError = TypeError; + +// eslint-disable-next-line consistent-return +var getEvalledConstructor = function (expressionSyntax) { + try { + return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); + } catch (e) {} +}; + +var $gOPD = Object.getOwnPropertyDescriptor; +if ($gOPD) { + try { + $gOPD({}, ''); + } catch (e) { + $gOPD = null; // this is IE 8, which has a broken gOPD + } +} + +var throwTypeError = function () { + throw new $TypeError(); +}; +var ThrowTypeError = $gOPD + ? (function () { + try { + // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties + arguments.callee; // IE 8 does not throw here + return throwTypeError; + } catch (calleeThrows) { + try { + // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') + return $gOPD(arguments, 'callee').get; + } catch (gOPDthrows) { + return throwTypeError; + } + } + }()) + : throwTypeError; + +var hasSymbols = __webpack_require__(9559)(); +var hasProto = __webpack_require__(7674)(); + +var getProto = Object.getPrototypeOf || ( + hasProto + ? function (x) { return x.__proto__; } // eslint-disable-line no-proto + : null +); + +var needsEval = {}; + +var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); + +var INTRINSICS = { + '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, + '%Array%': Array, + '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, + '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, + '%AsyncFromSyncIteratorPrototype%': undefined, + '%AsyncFunction%': needsEval, + '%AsyncGenerator%': needsEval, + '%AsyncGeneratorFunction%': needsEval, + '%AsyncIteratorPrototype%': needsEval, + '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, + '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, + '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, + '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, + '%Boolean%': Boolean, + '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, + '%Date%': Date, + '%decodeURI%': decodeURI, + '%decodeURIComponent%': decodeURIComponent, + '%encodeURI%': encodeURI, + '%encodeURIComponent%': encodeURIComponent, + '%Error%': Error, + '%eval%': eval, // eslint-disable-line no-eval + '%EvalError%': EvalError, + '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, + '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, + '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, + '%Function%': $Function, + '%GeneratorFunction%': needsEval, + '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, + '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, + '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, + '%isFinite%': isFinite, + '%isNaN%': isNaN, + '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%JSON%': typeof JSON === 'object' ? JSON : undefined, + '%Map%': typeof Map === 'undefined' ? undefined : Map, + '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), + '%Math%': Math, + '%Number%': Number, + '%Object%': Object, + '%parseFloat%': parseFloat, + '%parseInt%': parseInt, + '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, + '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, + '%RangeError%': RangeError, + '%ReferenceError%': ReferenceError, + '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, + '%RegExp%': RegExp, + '%Set%': typeof Set === 'undefined' ? undefined : Set, + '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), + '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, + '%String%': String, + '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, + '%Symbol%': hasSymbols ? Symbol : undefined, + '%SyntaxError%': $SyntaxError, + '%ThrowTypeError%': ThrowTypeError, + '%TypedArray%': TypedArray, + '%TypeError%': $TypeError, + '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, + '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, + '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, + '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, + '%URIError%': URIError, + '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, + '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, + '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet +}; + +if (getProto) { + try { + null.error; // eslint-disable-line no-unused-expressions + } catch (e) { + // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 + var errorProto = getProto(getProto(e)); + INTRINSICS['%Error.prototype%'] = errorProto; + } +} + +var doEval = function doEval(name) { + var value; + if (name === '%AsyncFunction%') { + value = getEvalledConstructor('async function () {}'); + } else if (name === '%GeneratorFunction%') { + value = getEvalledConstructor('function* () {}'); + } else if (name === '%AsyncGeneratorFunction%') { + value = getEvalledConstructor('async function* () {}'); + } else if (name === '%AsyncGenerator%') { + var fn = doEval('%AsyncGeneratorFunction%'); + if (fn) { + value = fn.prototype; + } + } else if (name === '%AsyncIteratorPrototype%') { + var gen = doEval('%AsyncGenerator%'); + if (gen && getProto) { + value = getProto(gen.prototype); + } + } + + INTRINSICS[name] = value; + + return value; +}; + +var LEGACY_ALIASES = { + '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], + '%ArrayPrototype%': ['Array', 'prototype'], + '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], + '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], + '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], + '%ArrayProto_values%': ['Array', 'prototype', 'values'], + '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], + '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], + '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], + '%BooleanPrototype%': ['Boolean', 'prototype'], + '%DataViewPrototype%': ['DataView', 'prototype'], + '%DatePrototype%': ['Date', 'prototype'], + '%ErrorPrototype%': ['Error', 'prototype'], + '%EvalErrorPrototype%': ['EvalError', 'prototype'], + '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], + '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], + '%FunctionPrototype%': ['Function', 'prototype'], + '%Generator%': ['GeneratorFunction', 'prototype'], + '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], + '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], + '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], + '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], + '%JSONParse%': ['JSON', 'parse'], + '%JSONStringify%': ['JSON', 'stringify'], + '%MapPrototype%': ['Map', 'prototype'], + '%NumberPrototype%': ['Number', 'prototype'], + '%ObjectPrototype%': ['Object', 'prototype'], + '%ObjProto_toString%': ['Object', 'prototype', 'toString'], + '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], + '%PromisePrototype%': ['Promise', 'prototype'], + '%PromiseProto_then%': ['Promise', 'prototype', 'then'], + '%Promise_all%': ['Promise', 'all'], + '%Promise_reject%': ['Promise', 'reject'], + '%Promise_resolve%': ['Promise', 'resolve'], + '%RangeErrorPrototype%': ['RangeError', 'prototype'], + '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], + '%RegExpPrototype%': ['RegExp', 'prototype'], + '%SetPrototype%': ['Set', 'prototype'], + '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], + '%StringPrototype%': ['String', 'prototype'], + '%SymbolPrototype%': ['Symbol', 'prototype'], + '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], + '%TypedArrayPrototype%': ['TypedArray', 'prototype'], + '%TypeErrorPrototype%': ['TypeError', 'prototype'], + '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], + '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], + '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], + '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], + '%URIErrorPrototype%': ['URIError', 'prototype'], + '%WeakMapPrototype%': ['WeakMap', 'prototype'], + '%WeakSetPrototype%': ['WeakSet', 'prototype'] +}; + +var bind = __webpack_require__(5739); +var hasOwn = __webpack_require__(454); +var $concat = bind.call(Function.call, Array.prototype.concat); +var $spliceApply = bind.call(Function.apply, Array.prototype.splice); +var $replace = bind.call(Function.call, String.prototype.replace); +var $strSlice = bind.call(Function.call, String.prototype.slice); +var $exec = bind.call(Function.call, RegExp.prototype.exec); + +/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ +var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; +var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ +var stringToPath = function stringToPath(string) { + var first = $strSlice(string, 0, 1); + var last = $strSlice(string, -1); + if (first === '%' && last !== '%') { + throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); + } else if (last === '%' && first !== '%') { + throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); + } + var result = []; + $replace(string, rePropName, function (match, number, quote, subString) { + result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; + }); + return result; +}; +/* end adaptation */ + +var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { + var intrinsicName = name; + var alias; + if (hasOwn(LEGACY_ALIASES, intrinsicName)) { + alias = LEGACY_ALIASES[intrinsicName]; + intrinsicName = '%' + alias[0] + '%'; + } + + if (hasOwn(INTRINSICS, intrinsicName)) { + var value = INTRINSICS[intrinsicName]; + if (value === needsEval) { + value = doEval(intrinsicName); + } + if (typeof value === 'undefined' && !allowMissing) { + throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + } + + return { + alias: alias, + name: intrinsicName, + value: value + }; + } + + throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); +}; + +module.exports = function GetIntrinsic(name, allowMissing) { + if (typeof name !== 'string' || name.length === 0) { + throw new $TypeError('intrinsic name must be a non-empty string'); + } + if (arguments.length > 1 && typeof allowMissing !== 'boolean') { + throw new $TypeError('"allowMissing" argument must be a boolean'); + } + + if ($exec(/^%?[^%]*%?$/, name) === null) { + throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); + } + var parts = stringToPath(name); + var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; + + var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); + var intrinsicRealName = intrinsic.name; + var value = intrinsic.value; + var skipFurtherCaching = false; + + var alias = intrinsic.alias; + if (alias) { + intrinsicBaseName = alias[0]; + $spliceApply(parts, $concat([0, 1], alias)); + } + + for (var i = 1, isOwn = true; i < parts.length; i += 1) { + var part = parts[i]; + var first = $strSlice(part, 0, 1); + var last = $strSlice(part, -1); + if ( + ( + (first === '"' || first === "'" || first === '`') + || (last === '"' || last === "'" || last === '`') + ) + && first !== last + ) { + throw new $SyntaxError('property names with quotes must have matching quotes'); + } + if (part === 'constructor' || !isOwn) { + skipFurtherCaching = true; + } + + intrinsicBaseName += '.' + part; + intrinsicRealName = '%' + intrinsicBaseName + '%'; + + if (hasOwn(INTRINSICS, intrinsicRealName)) { + value = INTRINSICS[intrinsicRealName]; + } else if (value != null) { + if (!(part in value)) { + if (!allowMissing) { + throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); + } + return void undefined; + } + if ($gOPD && (i + 1) >= parts.length) { + var desc = $gOPD(value, part); + isOwn = !!desc; + + // By convention, when a data property is converted to an accessor + // property to emulate a data property that does not suffer from + // the override mistake, that accessor's getter is marked with + // an `originalValue` property. Here, when we detect this, we + // uphold the illusion by pretending to see that original data + // property, i.e., returning the value rather than the getter + // itself. + if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { + value = desc.get; + } else { + value = value[part]; + } + } else { + isOwn = hasOwn(value, part); + value = value[part]; + } + + if (isOwn && !skipFurtherCaching) { + INTRINSICS[intrinsicRealName] = value; + } + } + } + return value; +}; + + +/***/ }), + +/***/ 4922: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports.default = _default; + +/***/ }), + +/***/ 4933: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.alertcenter_v1beta1 = exports.auth = exports.alertcenter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(359); +Object.defineProperty(exports, "alertcenter_v1beta1", { enumerable: true, get: function () { return v1beta1_1.alertcenter_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.alertcenter_v1beta1.Alertcenter, +}; +function alertcenter(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('alertcenter', versionOrOptions, exports.VERSIONS, this); +} +exports.alertcenter = alertcenter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 4937: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.domainsrdap_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var domainsrdap_v1; +(function (domainsrdap_v1) { + /** + * Domains RDAP API + * + * Read-only public API that lets users search for information about domain names. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const domainsrdap = google.domainsrdap('v1'); + * ``` + */ + class Domainsrdap { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.autnum = new Resource$Autnum(this.context); + this.domain = new Resource$Domain(this.context); + this.entity = new Resource$Entity(this.context); + this.ip = new Resource$Ip(this.context); + this.nameserver = new Resource$Nameserver(this.context); + this.v1 = new Resource$V1(this.context); + } + } + domainsrdap_v1.Domainsrdap = Domainsrdap; + class Resource$Autnum { + 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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/autnum/{autnumId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['autnumId'], + pathParams: ['autnumId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domainsrdap_v1.Resource$Autnum = Resource$Autnum; + class Resource$Domain { + 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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/domain/{+domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['domainName'], + pathParams: ['domainName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domainsrdap_v1.Resource$Domain = Resource$Domain; + class Resource$Entity { + 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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/entity/{entityId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['entityId'], + pathParams: ['entityId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domainsrdap_v1.Resource$Entity = Resource$Entity; + class Resource$Ip { + 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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/ip/{ipId}/{ipId1}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ipId', 'ipId1'], + pathParams: ['ipId', 'ipId1'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domainsrdap_v1.Resource$Ip = Resource$Ip; + class Resource$Nameserver { + 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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/nameserver/{nameserverId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['nameserverId'], + pathParams: ['nameserverId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domainsrdap_v1.Resource$Nameserver = Resource$Nameserver; + class Resource$V1 { + constructor(context) { + this.context = context; + } + getDomains(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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEntities(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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHelp(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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/help').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIp(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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/ip').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNameservers(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://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/nameservers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domainsrdap_v1.Resource$V1 = Resource$V1; +})(domainsrdap_v1 = exports.domainsrdap_v1 || (exports.domainsrdap_v1 = {})); + + +/***/ }), + +/***/ 4952: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.certificatemanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var certificatemanager_v1; +(function (certificatemanager_v1) { + /** + * Certificate Manager API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const certificatemanager = google.certificatemanager('v1'); + * ``` + */ + class Certificatemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + certificatemanager_v1.Certificatemanager = Certificatemanager; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + certificatemanager_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.certificateIssuanceConfigs = + new Resource$Projects$Locations$Certificateissuanceconfigs(this.context); + this.certificateMaps = new Resource$Projects$Locations$Certificatemaps(this.context); + this.certificates = new Resource$Projects$Locations$Certificates(this.context); + this.dnsAuthorizations = + new Resource$Projects$Locations$Dnsauthorizations(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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Certificateissuanceconfigs { + 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificateissuanceconfigs = Resource$Projects$Locations$Certificateissuanceconfigs; + class Resource$Projects$Locations$Certificatemaps { + constructor(context) { + this.context = context; + this.certificateMapEntries = + new Resource$Projects$Locations$Certificatemaps$Certificatemapentries(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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificatemaps = Resource$Projects$Locations$Certificatemaps; + class Resource$Projects$Locations$Certificatemaps$Certificatemapentries { + 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificatemaps$Certificatemapentries = Resource$Projects$Locations$Certificatemaps$Certificatemapentries; + class Resource$Projects$Locations$Certificates { + 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Certificates = Resource$Projects$Locations$Certificates; + class Resource$Projects$Locations$Dnsauthorizations { + 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Dnsauthorizations = Resource$Projects$Locations$Dnsauthorizations; + 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://certificatemanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + certificatemanager_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(certificatemanager_v1 = exports.certificatemanager_v1 || (exports.certificatemanager_v1 = {})); + + +/***/ }), + +/***/ 4954: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dataflow_v1b3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dataflow_v1b3; +(function (dataflow_v1b3) { + /** + * Dataflow API + * + * Manages Google Cloud Dataflow projects on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dataflow = google.dataflow('v1b3'); + * ``` + */ + class Dataflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dataflow_v1b3.Dataflow = Dataflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Jobs(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.snapshots = new Resource$Projects$Snapshots(this.context); + this.templates = new Resource$Projects$Templates(this.context); + } + deleteSnapshots(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + workerMessages(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects = Resource$Projects; + class Resource$Projects$Jobs { + constructor(context) { + this.context = context; + this.debug = new Resource$Projects$Jobs$Debug(this.context); + this.messages = new Resource$Projects$Jobs$Messages(this.context); + this.workItems = new Resource$Projects$Jobs$Workitems(this.context); + } + aggregated(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs:aggregated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getMetrics(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + snapshot(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs = Resource$Projects$Jobs; + class Resource$Projects$Jobs$Debug { + constructor(context) { + this.context = context; + } + getConfig(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendCapture(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs$Debug = Resource$Projects$Jobs$Debug; + class Resource$Projects$Jobs$Messages { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs$Messages = Resource$Projects$Jobs$Messages; + class Resource$Projects$Jobs$Workitems { + constructor(context) { + this.context = context; + } + lease(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs$Workitems = Resource$Projects$Jobs$Workitems; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.flexTemplates = new Resource$Projects$Locations$Flextemplates(this.context); + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.snapshots = new Resource$Projects$Locations$Snapshots(this.context); + this.templates = new Resource$Projects$Locations$Templates(this.context); + } + workerMessages(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Flextemplates { + constructor(context) { + this.context = context; + } + launch(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Flextemplates = Resource$Projects$Locations$Flextemplates; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + this.debug = new Resource$Projects$Locations$Jobs$Debug(this.context); + this.messages = new Resource$Projects$Locations$Jobs$Messages(this.context); + this.snapshots = new Resource$Projects$Locations$Jobs$Snapshots(this.context); + this.stages = new Resource$Projects$Locations$Jobs$Stages(this.context); + this.workItems = new Resource$Projects$Locations$Jobs$Workitems(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getExecutionDetails(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/executionDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getMetrics(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + snapshot(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobs$Debug { + constructor(context) { + this.context = context; + } + getConfig(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendCapture(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Debug = Resource$Projects$Locations$Jobs$Debug; + class Resource$Projects$Locations$Jobs$Messages { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Messages = Resource$Projects$Locations$Jobs$Messages; + class Resource$Projects$Locations$Jobs$Snapshots { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Snapshots = Resource$Projects$Locations$Jobs$Snapshots; + class Resource$Projects$Locations$Jobs$Stages { + constructor(context) { + this.context = context; + } + getExecutionDetails(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/stages/{stageId}/executionDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId', 'stageId'], + pathParams: ['jobId', 'location', 'projectId', 'stageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Stages = Resource$Projects$Locations$Jobs$Stages; + class Resource$Projects$Locations$Jobs$Workitems { + constructor(context) { + this.context = context; + } + lease(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Workitems = Resource$Projects$Locations$Jobs$Workitems; + class Resource$Projects$Locations$Snapshots { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'location', 'snapshotId'], + pathParams: ['location', 'projectId', 'snapshotId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'snapshotId'], + pathParams: ['location', 'projectId', 'snapshotId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Snapshots = Resource$Projects$Locations$Snapshots; + class Resource$Projects$Locations$Templates { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + launch(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Templates = Resource$Projects$Locations$Templates; + class Resource$Projects$Snapshots { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'snapshotId'], + pathParams: ['projectId', 'snapshotId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Snapshots = Resource$Projects$Snapshots; + class Resource$Projects$Templates { + 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + launch(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://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Templates = Resource$Projects$Templates; +})(dataflow_v1b3 = exports.dataflow_v1b3 || (exports.dataflow_v1b3 = {})); + + +/***/ }), + +/***/ 4955: +/***/ (function(module) { + +module.exports = {"releaseCoordinators":["aks681","vojtechjelinek","DubeySandeep","BenHenning","kevintab95","seanlip","U8NWXD","gp201","Priyansh61","SanjaySajuJacob","sagangwee","chris7716"],"goodFirstIssue":["U8NWXD","kevintab95","seanlip","ankita240796","DubeySandeep","bansalnitish","vojtechjelinek","marianazangrossi","brianrodri","nithusha21","aks681","srijanreddy98"],"teamLeads":{"onboardingTeam":"DubeySandeep","releaseTeam":"vojtechjelinek","welfareTeam":"DubeySandeep"},"oppiaMaintainers":"oppia/core-maintainers","oppiaReleaseCoordinators":"oppia/release-coordinators","oppiaDevWorkflowTeam":"oppia/dev-workflow-team","serverJobAdmins":["vojtechjelinek","DubeySandeep","kevintab95"]}; + +/***/ }), + +/***/ 4956: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebaseappcheck_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebaseappcheck_v1; +(function (firebaseappcheck_v1) { + /** + * Firebase App Check API + * + * Firebase App Check works alongside other Firebase services to help protect your backend resources from abuse, such as billing fraud or phishing. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebaseappcheck = google.firebaseappcheck('v1'); + * ``` + */ + class Firebaseappcheck { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.jwks = new Resource$Jwks(this.context); + this.projects = new Resource$Projects(this.context); + } + } + firebaseappcheck_v1.Firebaseappcheck = Firebaseappcheck; + class Resource$Jwks { + 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Jwks = Resource$Jwks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.apps = new Resource$Projects$Apps(this.context); + this.services = new Resource$Projects$Services(this.context); + } + } + firebaseappcheck_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Apps { + constructor(context) { + this.context = context; + this.appAttestConfig = new Resource$Projects$Apps$Appattestconfig(this.context); + this.debugTokens = new Resource$Projects$Apps$Debugtokens(this.context); + this.deviceCheckConfig = new Resource$Projects$Apps$Devicecheckconfig(this.context); + this.playIntegrityConfig = new Resource$Projects$Apps$Playintegrityconfig(this.context); + this.recaptchaEnterpriseConfig = + new Resource$Projects$Apps$Recaptchaenterpriseconfig(this.context); + this.recaptchaV3Config = new Resource$Projects$Apps$Recaptchav3config(this.context); + this.safetyNetConfig = new Resource$Projects$Apps$Safetynetconfig(this.context); + } + exchangeAppAttestAssertion(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeAppAttestAssertion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeAppAttestAttestation(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeAppAttestAttestation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeCustomToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeCustomToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeDebugToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeDebugToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeDeviceCheckToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeDeviceCheckToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangePlayIntegrityToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangePlayIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeRecaptchaEnterpriseToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeRecaptchaEnterpriseToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeRecaptchaV3Token(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeRecaptchaV3Token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exchangeSafetyNetToken(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:exchangeSafetyNetToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateAppAttestChallenge(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:generateAppAttestChallenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generatePlayIntegrityChallenge(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}:generatePlayIntegrityChallenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps = Resource$Projects$Apps; + class Resource$Projects$Apps$Appattestconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apps/-/appAttestConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Appattestconfig = Resource$Projects$Apps$Appattestconfig; + class Resource$Projects$Apps$Debugtokens { + 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Debugtokens = Resource$Projects$Apps$Debugtokens; + class Resource$Projects$Apps$Devicecheckconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apps/-/deviceCheckConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Devicecheckconfig = Resource$Projects$Apps$Devicecheckconfig; + class Resource$Projects$Apps$Playintegrityconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apps/-/playIntegrityConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Playintegrityconfig = Resource$Projects$Apps$Playintegrityconfig; + class Resource$Projects$Apps$Recaptchaenterpriseconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Recaptchaenterpriseconfig = Resource$Projects$Apps$Recaptchaenterpriseconfig; + class Resource$Projects$Apps$Recaptchav3config { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apps/-/recaptchaV3Config:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Recaptchav3config = Resource$Projects$Apps$Recaptchav3config; + class Resource$Projects$Apps$Safetynetconfig { + constructor(context) { + this.context = context; + } + batchGet(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apps/-/safetyNetConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Apps$Safetynetconfig = Resource$Projects$Apps$Safetynetconfig; + class Resource$Projects$Services { + constructor(context) { + this.context = context; + } + batchUpdate(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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseappcheck.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappcheck_v1.Resource$Projects$Services = Resource$Projects$Services; +})(firebaseappcheck_v1 = exports.firebaseappcheck_v1 || (exports.firebaseappcheck_v1 = {})); + + +/***/ }), + +/***/ 4959: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.drive_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var drive_v3; +(function (drive_v3) { + /** + * Drive API + * + * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const drive = google.drive('v3'); + * ``` + */ + class Drive { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.about = new Resource$About(this.context); + this.changes = new Resource$Changes(this.context); + this.channels = new Resource$Channels(this.context); + this.comments = new Resource$Comments(this.context); + this.drives = new Resource$Drives(this.context); + this.files = new Resource$Files(this.context); + this.permissions = new Resource$Permissions(this.context); + this.replies = new Resource$Replies(this.context); + this.revisions = new Resource$Revisions(this.context); + this.teamdrives = new Resource$Teamdrives(this.context); + } + } + drive_v3.Drive = Drive; + class Resource$About { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/about').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$About = Resource$About; + class Resource$Changes { + constructor(context) { + this.context = context; + } + getStartPageToken(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['pageToken'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/changes/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pageToken'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Changes = Resource$Changes; + class Resource$Channels { + constructor(context) { + this.context = context; + } + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Channels = Resource$Channels; + class Resource$Comments { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Comments = Resource$Comments; + class Resource$Drives { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['requestId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + hide(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unhide(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Drives = Resource$Drives; + class Resource$Files { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + emptyTrash(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'mimeType'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateIds(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listLabels(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/listLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyLabels(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/modifyLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + mediaUrl: (rootUrl + '/upload/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Files = Resource$Files; + class Resource$Permissions { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Permissions = Resource$Permissions; + class Resource$Replies { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Replies = Resource$Replies; + class Resource$Revisions { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Revisions = Resource$Revisions; + class Resource$Teamdrives { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['requestId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + drive_v3.Resource$Teamdrives = Resource$Teamdrives; +})(drive_v3 = exports.drive_v3 || (exports.drive_v3 = {})); + + +/***/ }), + +/***/ 4968: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dialogflow_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dialogflow_v2; +(function (dialogflow_v2) { + /** + * Dialogflow API + * + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dialogflow = google.dialogflow('v2'); + * ``` + */ + class Dialogflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dialogflow_v2.Dialogflow = Dialogflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Agent(this.context); + this.answerRecords = new Resource$Projects$Answerrecords(this.context); + this.conversationDatasets = new Resource$Projects$Conversationdatasets(this.context); + this.conversationModels = new Resource$Projects$Conversationmodels(this.context); + this.conversationProfiles = new Resource$Projects$Conversationprofiles(this.context); + this.conversations = new Resource$Projects$Conversations(this.context); + this.knowledgeBases = new Resource$Projects$Knowledgebases(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + deleteAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Agent$Environments(this.context); + this.intents = new Resource$Projects$Agent$Intents(this.context); + this.knowledgeBases = new Resource$Projects$Agent$Knowledgebases(this.context); + this.sessions = new Resource$Projects$Agent$Sessions(this.context); + this.versions = new Resource$Projects$Agent$Versions(this.context); + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFulfillment(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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getValidationResult(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + train(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateFulfillment(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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent = Resource$Projects$Agent; + class Resource$Projects$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; + class Resource$Projects$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; + class Resource$Projects$Agent$Environments { + constructor(context) { + this.context = context; + this.intents = new Resource$Projects$Agent$Environments$Intents(this.context); + this.users = new Resource$Projects$Agent$Environments$Users(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHistory(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments = Resource$Projects$Agent$Environments; + class Resource$Projects$Agent$Environments$Intents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Intents = Resource$Projects$Agent$Environments$Intents; + class Resource$Projects$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users = Resource$Projects$Agent$Environments$Users; + class Resource$Projects$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = + new Resource$Projects$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = + new Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; + class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; + class Resource$Projects$Agent$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Agent$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Knowledgebases = Resource$Projects$Agent$Knowledgebases; + class Resource$Projects$Agent$Knowledgebases$Documents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reload(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Knowledgebases$Documents = Resource$Projects$Agent$Knowledgebases$Documents; + class Resource$Projects$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Agent$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; + class Resource$Projects$Agent$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; + class Resource$Projects$Agent$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; + class Resource$Projects$Agent$Versions { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Versions = Resource$Projects$Agent$Versions; + class Resource$Projects$Answerrecords { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Answerrecords = Resource$Projects$Answerrecords; + class Resource$Projects$Conversationdatasets { + 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importConversationData(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:importConversationData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversationdatasets = Resource$Projects$Conversationdatasets; + class Resource$Projects$Conversationmodels { + constructor(context) { + this.context = context; + this.evaluations = new Resource$Projects$Conversationmodels$Evaluations(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deploy(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeploy(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversationmodels = Resource$Projects$Conversationmodels; + class Resource$Projects$Conversationmodels$Evaluations { + 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversationmodels$Evaluations = Resource$Projects$Conversationmodels$Evaluations; + class Resource$Projects$Conversationprofiles { + constructor(context) { + this.context = context; + } + clearSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversationprofiles = Resource$Projects$Conversationprofiles; + class Resource$Projects$Conversations { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Conversations$Messages(this.context); + this.participants = new Resource$Projects$Conversations$Participants(this.context); + this.suggestions = new Resource$Projects$Conversations$Suggestions(this.context); + } + complete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversations = Resource$Projects$Conversations; + class Resource$Projects$Conversations$Messages { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversations$Messages = Resource$Projects$Conversations$Messages; + class Resource$Projects$Conversations$Participants { + constructor(context) { + this.context = context; + this.suggestions = + new Resource$Projects$Conversations$Participants$Suggestions(this.context); + } + analyzeContent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['participant'], + pathParams: ['participant'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversations$Participants = Resource$Projects$Conversations$Participants; + class Resource$Projects$Conversations$Participants$Suggestions { + constructor(context) { + this.context = context; + } + suggestArticles(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestFaqAnswers(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestSmartReplies(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversations$Participants$Suggestions = Resource$Projects$Conversations$Participants$Suggestions; + class Resource$Projects$Conversations$Suggestions { + constructor(context) { + this.context = context; + } + suggestConversationSummary(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversation'], + pathParams: ['conversation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Conversations$Suggestions = Resource$Projects$Conversations$Suggestions; + class Resource$Projects$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Knowledgebases = Resource$Projects$Knowledgebases; + class Resource$Projects$Knowledgebases$Documents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reload(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Knowledgebases$Documents = Resource$Projects$Knowledgebases$Documents; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Locations$Agent(this.context); + this.answerRecords = new Resource$Projects$Locations$Answerrecords(this.context); + this.conversationDatasets = + new Resource$Projects$Locations$Conversationdatasets(this.context); + this.conversationModels = + new Resource$Projects$Locations$Conversationmodels(this.context); + this.conversationProfiles = + new Resource$Projects$Locations$Conversationprofiles(this.context); + this.conversations = new Resource$Projects$Locations$Conversations(this.context); + this.knowledgeBases = new Resource$Projects$Locations$Knowledgebases(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + deleteAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAgent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Locations$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Locations$Agent$Environments(this.context); + this.intents = new Resource$Projects$Locations$Agent$Intents(this.context); + this.sessions = new Resource$Projects$Locations$Agent$Sessions(this.context); + this.versions = new Resource$Projects$Locations$Agent$Versions(this.context); + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFulfillment(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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getValidationResult(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + train(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateFulfillment(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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent = Resource$Projects$Locations$Agent; + class Resource$Projects$Locations$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = + new Resource$Projects$Locations$Agent$Entitytypes$Entities(this.context); + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; + class Resource$Projects$Locations$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Entitytypes$Entities = Resource$Projects$Locations$Agent$Entitytypes$Entities; + class Resource$Projects$Locations$Agent$Environments { + constructor(context) { + this.context = context; + this.intents = new Resource$Projects$Locations$Agent$Environments$Intents(this.context); + this.users = new Resource$Projects$Locations$Agent$Environments$Users(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getHistory(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Environments = Resource$Projects$Locations$Agent$Environments; + class Resource$Projects$Locations$Agent$Environments$Intents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Environments$Intents = Resource$Projects$Locations$Agent$Environments$Intents; + class Resource$Projects$Locations$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = + new Resource$Projects$Locations$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Environments$Users = Resource$Projects$Locations$Agent$Environments$Users; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = + new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = + new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Environments$Users$Sessions = Resource$Projects$Locations$Agent$Environments$Users$Sessions; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Locations$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Intents = Resource$Projects$Locations$Agent$Intents; + class Resource$Projects$Locations$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Locations$Agent$Sessions$Contexts(this.context); + this.entityTypes = + new Resource$Projects$Locations$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + detectIntent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Sessions = Resource$Projects$Locations$Agent$Sessions; + class Resource$Projects$Locations$Agent$Sessions$Contexts { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Sessions$Contexts = Resource$Projects$Locations$Agent$Sessions$Contexts; + class Resource$Projects$Locations$Agent$Sessions$Entitytypes { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Sessions$Entitytypes; + class Resource$Projects$Locations$Agent$Versions { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Agent$Versions = Resource$Projects$Locations$Agent$Versions; + class Resource$Projects$Locations$Answerrecords { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Answerrecords = Resource$Projects$Locations$Answerrecords; + class Resource$Projects$Locations$Conversationdatasets { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + importConversationData(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:importConversationData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversationdatasets = Resource$Projects$Locations$Conversationdatasets; + class Resource$Projects$Locations$Conversationmodels { + constructor(context) { + this.context = context; + this.evaluations = + new Resource$Projects$Locations$Conversationmodels$Evaluations(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deploy(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeploy(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversationmodels = Resource$Projects$Locations$Conversationmodels; + class Resource$Projects$Locations$Conversationmodels$Evaluations { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversationmodels$Evaluations = Resource$Projects$Locations$Conversationmodels$Evaluations; + class Resource$Projects$Locations$Conversationprofiles { + constructor(context) { + this.context = context; + } + clearSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSuggestionFeatureConfig(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversationprofiles = Resource$Projects$Locations$Conversationprofiles; + class Resource$Projects$Locations$Conversations { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Locations$Conversations$Messages(this.context); + this.participants = + new Resource$Projects$Locations$Conversations$Participants(this.context); + this.suggestions = + new Resource$Projects$Locations$Conversations$Suggestions(this.context); + } + complete(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversations = Resource$Projects$Locations$Conversations; + class Resource$Projects$Locations$Conversations$Messages { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversations$Messages = Resource$Projects$Locations$Conversations$Messages; + class Resource$Projects$Locations$Conversations$Participants { + constructor(context) { + this.context = context; + this.suggestions = + new Resource$Projects$Locations$Conversations$Participants$Suggestions(this.context); + } + analyzeContent(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['participant'], + pathParams: ['participant'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversations$Participants = Resource$Projects$Locations$Conversations$Participants; + class Resource$Projects$Locations$Conversations$Participants$Suggestions { + constructor(context) { + this.context = context; + } + suggestArticles(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestFaqAnswers(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suggestSmartReplies(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversations$Participants$Suggestions = Resource$Projects$Locations$Conversations$Participants$Suggestions; + class Resource$Projects$Locations$Conversations$Suggestions { + constructor(context) { + this.context = context; + } + suggestConversationSummary(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['conversation'], + pathParams: ['conversation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Conversations$Suggestions = Resource$Projects$Locations$Conversations$Suggestions; + class Resource$Projects$Locations$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Locations$Knowledgebases$Documents(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Knowledgebases = Resource$Projects$Locations$Knowledgebases; + class Resource$Projects$Locations$Knowledgebases$Documents { + 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reload(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://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Knowledgebases$Documents = Resource$Projects$Locations$Knowledgebases$Documents; + 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dialogflow.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v2 = exports.dialogflow_v2 || (exports.dialogflow_v2 = {})); + + +/***/ }), + +/***/ 4973: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudkms_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudkms_v1; +(function (cloudkms_v1) { + /** + * Cloud Key Management Service (KMS) API + * + * Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudkms = google.cloudkms('v1'); + * ``` + */ + class Cloudkms { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudkms_v1.Cloudkms = Cloudkms; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudkms_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.ekmConfig = new Resource$Projects$Locations$Ekmconfig(this.context); + this.ekmConnections = new Resource$Projects$Locations$Ekmconnections(this.context); + this.keyRings = new Resource$Projects$Locations$Keyrings(this.context); + } + generateRandomBytes(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}:generateRandomBytes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getEkmConfig(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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateEkmConfig(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Ekmconfig { + constructor(context) { + this.context = context; + } + 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Ekmconfig = Resource$Projects$Locations$Ekmconfig; + class Resource$Projects$Locations$Ekmconnections { + 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Ekmconnections = Resource$Projects$Locations$Ekmconnections; + class Resource$Projects$Locations$Keyrings { + constructor(context) { + this.context = context; + this.cryptoKeys = new Resource$Projects$Locations$Keyrings$Cryptokeys(this.context); + this.importJobs = new Resource$Projects$Locations$Keyrings$Importjobs(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; + class Resource$Projects$Locations$Keyrings$Cryptokeys { + constructor(context) { + this.context = context; + this.cryptoKeyVersions = + new Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + decrypt(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + encrypt(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePrimaryVersion(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:updatePrimaryVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; + class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { + constructor(context) { + this.context = context; + } + asymmetricDecrypt(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:asymmetricDecrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + asymmetricSign(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:asymmetricSign').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + destroy(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPublicKey(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/publicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + macSign(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:macSign').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + macVerify(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:macVerify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions = Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions; + class Resource$Projects$Locations$Keyrings$Importjobs { + 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudkms.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Importjobs = Resource$Projects$Locations$Keyrings$Importjobs; +})(cloudkms_v1 = exports.cloudkms_v1 || (exports.cloudkms_v1 = {})); + + +/***/ }), + +/***/ 4974: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.language_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var language_v1; +(function (language_v1) { + /** + * Cloud Natural Language API + * + * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const language = google.language('v1'); + * ``` + */ + class Language { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + language_v1.Language = Language; + class Resource$Documents { + constructor(context) { + this.context = context; + } + analyzeEntities(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeEntitySentiment(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeSentiment(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeSyntax(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + annotateText(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + classifyText(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://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + language_v1.Resource$Documents = Resource$Documents; +})(language_v1 = exports.language_v1 || (exports.language_v1 = {})); + + +/***/ }), + +/***/ 4976: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.URL = exports.DNS = void 0; +exports.default = v35; + +var _stringify = __webpack_require__(4106); + +var _parse = _interopRequireDefault(__webpack_require__(4205)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function v35(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + var _namespace; + + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = (0, _parse.default)(namespace); + } + + if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return (0, _stringify.unsafeStringify)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} + +/***/ }), + +/***/ 4979: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +/*global exports*/ +var SignStream = __webpack_require__(662); +var VerifyStream = __webpack_require__(5307); + +var ALGORITHMS = [ + 'HS256', 'HS384', 'HS512', + 'RS256', 'RS384', 'RS512', + 'PS256', 'PS384', 'PS512', + 'ES256', 'ES384', 'ES512' +]; + +exports.ALGORITHMS = ALGORITHMS; +exports.sign = SignStream.sign; +exports.verify = VerifyStream.verify; +exports.decode = VerifyStream.decode; +exports.isValid = VerifyStream.isValid; +exports.createSign = function createSign(opts) { + return new SignStream(opts); +}; +exports.createVerify = function createVerify(opts) { + return new VerifyStream(opts); +}; + + +/***/ }), + +/***/ 4983: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const http = __webpack_require__(8605); +const https = __webpack_require__(7211); +const pm = __webpack_require__(9044); +let tunnel; +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return new Promise(async (resolve, reject) => { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + let parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + } + get(requestUrl, additionalHeaders) { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + } + del(requestUrl, additionalHeaders) { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + } + post(requestUrl, data, additionalHeaders) { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + } + patch(requestUrl, data, additionalHeaders) { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + } + put(requestUrl, data, additionalHeaders) { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + } + head(requestUrl, additionalHeaders) { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return this.request(verb, requestUrl, stream, additionalHeaders); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + async getJson(requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + let res = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async postJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async putJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async patchJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + async request(verb, requestUrl, data, headers) { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + let parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + while (numTries < maxTries) { + response = await this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (let i = 0; i < this.handlers.length; i++) { + if (this.handlers[i].canHandleAuthentication(response)) { + authenticationHandler = this.handlers[i]; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + let parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol == 'https:' && + parsedUrl.protocol != parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + await response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (let header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = await this.requestRaw(info, data); + redirectsRemaining--; + } + if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + await response.readBody(); + await this._performExponentialBackoff(numTries); + } + } + return response; + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return new Promise((resolve, reject) => { + let callbackForResult = function (err, res) { + if (err) { + reject(err); + } + resolve(res); + }; + this.requestRawWithCallback(info, data, callbackForResult); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + let socket; + if (typeof data === 'string') { + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + let handleResult = (err, res) => { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + }; + let req = info.httpModule.request(info.options, (msg) => { + let res = new HttpClientResponse(msg); + handleResult(null, res); + }); + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error('Request timeout: ' + info.options.path), null); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err, null); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + let parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + this.handlers.forEach(handler => { + handler.prepareRequest(info.options); + }); + } + return info; + } + _mergeHeaders(headers) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + let proxyUrl = pm.getProxyUrl(parsedUrl); + let useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (!!agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (!!this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + if (useProxy) { + // If using proxy, need tunnel + if (!tunnel) { + tunnel = __webpack_require__(7413); + } + const agentOptions = { + maxSockets: maxSockets, + keepAlive: this._keepAlive, + proxy: { + ...((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), + host: proxyUrl.hostname, + port: proxyUrl.port + } + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if reusing agent across request and tunneling agent isn't assigned create a new agent + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets: maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + // if not using private agent and tunnel agent isn't setup then use global agent + if (!agent) { + agent = usingSsl ? https.globalAgent : http.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + } + static dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + let a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + async _processResponse(res, options) { + return new Promise(async (resolve, reject) => { + const statusCode = res.message.statusCode; + const response = { + statusCode: statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode == HttpCodes.NotFound) { + resolve(response); + } + let obj; + let contents; + // get the result from the body + try { + contents = await res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = 'Failed request: (' + statusCode + ')'; + } + let err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + }); + } +} +exports.HttpClient = HttpClient; + + +/***/ }), + +/***/ 4988: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.securitycenter_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var securitycenter_v1; +(function (securitycenter_v1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1'); + * ``` + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + securitycenter_v1.Securitycenter = Securitycenter; + class Resource$Folders { + constructor(context) { + this.context = context; + this.assets = new Resource$Folders$Assets(this.context); + this.bigQueryExports = new Resource$Folders$Bigqueryexports(this.context); + this.findings = new Resource$Folders$Findings(this.context); + this.muteConfigs = new Resource$Folders$Muteconfigs(this.context); + this.notificationConfigs = new Resource$Folders$Notificationconfigs(this.context); + this.securityHealthAnalyticsSettings = + new Resource$Folders$Securityhealthanalyticssettings(this.context); + this.sources = new Resource$Folders$Sources(this.context); + } + } + securitycenter_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Assets { + constructor(context) { + this.context = context; + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Assets = Resource$Folders$Assets; + class Resource$Folders$Bigqueryexports { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Bigqueryexports = Resource$Folders$Bigqueryexports; + class Resource$Folders$Findings { + constructor(context) { + this.context = context; + } + bulkMute(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Findings = Resource$Folders$Findings; + class Resource$Folders$Muteconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Muteconfigs = Resource$Folders$Muteconfigs; + class Resource$Folders$Notificationconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Notificationconfigs = Resource$Folders$Notificationconfigs; + class Resource$Folders$Securityhealthanalyticssettings { + constructor(context) { + this.context = context; + this.customModules = + new Resource$Folders$Securityhealthanalyticssettings$Custommodules(this.context); + this.effectiveCustomModules = + new Resource$Folders$Securityhealthanalyticssettings$Effectivecustommodules(this.context); + } + } + securitycenter_v1.Resource$Folders$Securityhealthanalyticssettings = Resource$Folders$Securityhealthanalyticssettings; + class Resource$Folders$Securityhealthanalyticssettings$Custommodules { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listDescendant(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Securityhealthanalyticssettings$Custommodules = Resource$Folders$Securityhealthanalyticssettings$Custommodules; + class Resource$Folders$Securityhealthanalyticssettings$Effectivecustommodules { + 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Securityhealthanalyticssettings$Effectivecustommodules = Resource$Folders$Securityhealthanalyticssettings$Effectivecustommodules; + class Resource$Folders$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Folders$Sources$Findings(this.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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Sources = Resource$Folders$Sources; + class Resource$Folders$Sources$Findings { + constructor(context) { + this.context = context; + this.externalSystems = + new Resource$Folders$Sources$Findings$Externalsystems(this.context); + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMute(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setState(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Sources$Findings = Resource$Folders$Sources$Findings; + class Resource$Folders$Sources$Findings$Externalsystems { + constructor(context) { + this.context = context; + } + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Folders$Sources$Findings$Externalsystems = Resource$Folders$Sources$Findings$Externalsystems; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.assets = new Resource$Organizations$Assets(this.context); + this.bigQueryExports = new Resource$Organizations$Bigqueryexports(this.context); + this.findings = new Resource$Organizations$Findings(this.context); + this.muteConfigs = new Resource$Organizations$Muteconfigs(this.context); + this.notificationConfigs = new Resource$Organizations$Notificationconfigs(this.context); + this.operations = new Resource$Organizations$Operations(this.context); + this.securityHealthAnalyticsSettings = + new Resource$Organizations$Securityhealthanalyticssettings(this.context); + this.sources = new Resource$Organizations$Sources(this.context); + } + getOrganizationSettings(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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateOrganizationSettings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Assets { + constructor(context) { + this.context = context; + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runDiscovery(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Bigqueryexports { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Bigqueryexports = Resource$Organizations$Bigqueryexports; + class Resource$Organizations$Findings { + constructor(context) { + this.context = context; + } + bulkMute(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Findings = Resource$Organizations$Findings; + class Resource$Organizations$Muteconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Muteconfigs = Resource$Organizations$Muteconfigs; + class Resource$Organizations$Notificationconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; + class Resource$Organizations$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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Organizations$Securityhealthanalyticssettings { + constructor(context) { + this.context = context; + this.customModules = + new Resource$Organizations$Securityhealthanalyticssettings$Custommodules(this.context); + this.effectiveCustomModules = + new Resource$Organizations$Securityhealthanalyticssettings$Effectivecustommodules(this.context); + } + } + securitycenter_v1.Resource$Organizations$Securityhealthanalyticssettings = Resource$Organizations$Securityhealthanalyticssettings; + class Resource$Organizations$Securityhealthanalyticssettings$Custommodules { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listDescendant(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Securityhealthanalyticssettings$Custommodules = Resource$Organizations$Securityhealthanalyticssettings$Custommodules; + class Resource$Organizations$Securityhealthanalyticssettings$Effectivecustommodules { + 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Securityhealthanalyticssettings$Effectivecustommodules = Resource$Organizations$Securityhealthanalyticssettings$Effectivecustommodules; + class Resource$Organizations$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Organizations$Sources$Findings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Sources = Resource$Organizations$Sources; + class Resource$Organizations$Sources$Findings { + constructor(context) { + this.context = context; + this.externalSystems = + new Resource$Organizations$Sources$Findings$Externalsystems(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMute(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setState(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; + class Resource$Organizations$Sources$Findings$Externalsystems { + constructor(context) { + this.context = context; + } + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Sources$Findings$Externalsystems = Resource$Organizations$Sources$Findings$Externalsystems; + class Resource$Projects { + constructor(context) { + this.context = context; + this.assets = new Resource$Projects$Assets(this.context); + this.bigQueryExports = new Resource$Projects$Bigqueryexports(this.context); + this.findings = new Resource$Projects$Findings(this.context); + this.muteConfigs = new Resource$Projects$Muteconfigs(this.context); + this.notificationConfigs = new Resource$Projects$Notificationconfigs(this.context); + this.securityHealthAnalyticsSettings = + new Resource$Projects$Securityhealthanalyticssettings(this.context); + this.sources = new Resource$Projects$Sources(this.context); + } + } + securitycenter_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Assets { + constructor(context) { + this.context = context; + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Assets = Resource$Projects$Assets; + class Resource$Projects$Bigqueryexports { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Bigqueryexports = Resource$Projects$Bigqueryexports; + class Resource$Projects$Findings { + constructor(context) { + this.context = context; + } + bulkMute(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Findings = Resource$Projects$Findings; + class Resource$Projects$Muteconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Muteconfigs = Resource$Projects$Muteconfigs; + class Resource$Projects$Notificationconfigs { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Notificationconfigs = Resource$Projects$Notificationconfigs; + class Resource$Projects$Securityhealthanalyticssettings { + constructor(context) { + this.context = context; + this.customModules = + new Resource$Projects$Securityhealthanalyticssettings$Custommodules(this.context); + this.effectiveCustomModules = + new Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules(this.context); + } + } + securitycenter_v1.Resource$Projects$Securityhealthanalyticssettings = Resource$Projects$Securityhealthanalyticssettings; + class Resource$Projects$Securityhealthanalyticssettings$Custommodules { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listDescendant(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Securityhealthanalyticssettings$Custommodules = Resource$Projects$Securityhealthanalyticssettings$Custommodules; + class Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules { + 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://securitycenter.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules = Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules; + class Resource$Projects$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Projects$Sources$Findings(this.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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Sources = Resource$Projects$Sources; + class Resource$Projects$Sources$Findings { + constructor(context) { + this.context = context; + this.externalSystems = + new Resource$Projects$Sources$Findings$Externalsystems(this.context); + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMute(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setState(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Sources$Findings = Resource$Projects$Sources$Findings; + class Resource$Projects$Sources$Findings$Externalsystems { + constructor(context) { + this.context = context; + } + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1.Resource$Projects$Sources$Findings$Externalsystems = Resource$Projects$Sources$Findings$Externalsystems; +})(securitycenter_v1 = exports.securitycenter_v1 || (exports.securitycenter_v1 = {})); + + +/***/ }), + +/***/ 4997: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.orgpolicy_v2 = exports.auth = exports.orgpolicy = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(1046); +Object.defineProperty(exports, "orgpolicy_v2", { enumerable: true, get: function () { return v2_1.orgpolicy_v2; } }); +exports.VERSIONS = { + v2: v2_1.orgpolicy_v2.Orgpolicy, +}; +function orgpolicy(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('orgpolicy', versionOrOptions, exports.VERSIONS, this); +} +exports.orgpolicy = orgpolicy; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5006: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.pagespeedonline_v5 = exports.auth = exports.pagespeedonline = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v5_1 = __webpack_require__(2638); +Object.defineProperty(exports, "pagespeedonline_v5", { enumerable: true, get: function () { return v5_1.pagespeedonline_v5; } }); +exports.VERSIONS = { + v5: v5_1.pagespeedonline_v5.Pagespeedonline, +}; +function pagespeedonline(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('pagespeedonline', versionOrOptions, exports.VERSIONS, this); +} +exports.pagespeedonline = pagespeedonline; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5010: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudasset_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudasset_v1; +(function (cloudasset_v1) { + /** + * Cloud Asset API + * + * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1'); + * ``` + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assets = new Resource$Assets(this.context); + this.effectiveIamPolicies = new Resource$Effectiveiampolicies(this.context); + this.feeds = new Resource$Feeds(this.context); + this.operations = new Resource$Operations(this.context); + this.savedQueries = new Resource$Savedqueries(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudasset_v1.Cloudasset = Cloudasset; + class Resource$Assets { + 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Assets = Resource$Assets; + class Resource$Effectiveiampolicies { + constructor(context) { + this.context = context; + } + batchGet(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}/effectiveIamPolicies:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Effectiveiampolicies = Resource$Effectiveiampolicies; + class Resource$Feeds { + 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Feeds = Resource$Feeds; + class Resource$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://cloudasset.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Operations = Resource$Operations; + class Resource$Savedqueries { + 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$Savedqueries = Resource$Savedqueries; + class Resource$V1 { + constructor(context) { + this.context = context; + } + analyzeIamPolicy(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeIamPolicyLongrunning(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeIamPolicyLongrunning').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeMove(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:analyzeMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeOrgPolicies(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeOrgPolicyGovernedAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + analyzeOrgPolicyGovernedContainers(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedContainers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchGetAssetsHistory(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryAssets(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:queryAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAllIamPolicies(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:searchAllIamPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAllResources(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://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}:searchAllResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudasset_v1.Resource$V1 = Resource$V1; +})(cloudasset_v1 = exports.cloudasset_v1 || (exports.cloudasset_v1 = {})); + + +/***/ }), + +/***/ 5011: +/***/ (function(module) { + +// Returns a wrapper function that returns a wrapped callback +// The wrapper function should do some stuff, and return a +// presumably different callback function. +// This makes sure that own properties are retained, so that +// decorations and such are not lost along the way. +module.exports = wrappy +function wrappy (fn, cb) { + if (fn && cb) return wrappy(fn)(cb) + + if (typeof fn !== 'function') + throw new TypeError('need wrapper function') + + Object.keys(fn).forEach(function (k) { + wrapper[k] = fn[k] + }) + + return wrapper + + function wrapper() { + var args = new Array(arguments.length) + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i] + } + var ret = fn.apply(this, args) + var cb = args[args.length-1] + if (typeof ret === 'function' && ret !== cb) { + Object.keys(cb).forEach(function (k) { + ret[k] = cb[k] + }) + } + return ret + } +} + + +/***/ }), + +/***/ 5017: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.apigeeregistry_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var apigeeregistry_v1; +(function (apigeeregistry_v1) { + /** + * Apigee Registry API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apigeeregistry = google.apigeeregistry('v1'); + * ``` + */ + class Apigeeregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apigeeregistry_v1.Apigeeregistry = Apigeeregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apigeeregistry_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.apis = new Resource$Projects$Locations$Apis(this.context); + this.artifacts = new Resource$Projects$Locations$Artifacts(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtime = new Resource$Projects$Locations$Runtime(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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Apis { + constructor(context) { + this.context = context; + this.artifacts = new Resource$Projects$Locations$Apis$Artifacts(this.context); + this.deployments = new Resource$Projects$Locations$Apis$Deployments(this.context); + this.versions = new Resource$Projects$Locations$Apis$Versions(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; + class Resource$Projects$Locations$Apis$Artifacts { + 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Artifacts = Resource$Projects$Locations$Apis$Artifacts; + class Resource$Projects$Locations$Apis$Deployments { + constructor(context) { + this.context = context; + this.artifacts = + new Resource$Projects$Locations$Apis$Deployments$Artifacts(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteRevision(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRevisions(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + tagRevision(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Deployments = Resource$Projects$Locations$Apis$Deployments; + class Resource$Projects$Locations$Apis$Deployments$Artifacts { + 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Deployments$Artifacts = Resource$Projects$Locations$Apis$Deployments$Artifacts; + class Resource$Projects$Locations$Apis$Versions { + constructor(context) { + this.context = context; + this.artifacts = new Resource$Projects$Locations$Apis$Versions$Artifacts(this.context); + this.specs = new Resource$Projects$Locations$Apis$Versions$Specs(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions = Resource$Projects$Locations$Apis$Versions; + class Resource$Projects$Locations$Apis$Versions$Artifacts { + 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Artifacts = Resource$Projects$Locations$Apis$Versions$Artifacts; + class Resource$Projects$Locations$Apis$Versions$Specs { + constructor(context) { + this.context = context; + this.artifacts = + new Resource$Projects$Locations$Apis$Versions$Specs$Artifacts(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteRevision(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listRevisions(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + tagRevision(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Specs = Resource$Projects$Locations$Apis$Versions$Specs; + class Resource$Projects$Locations$Apis$Versions$Specs$Artifacts { + 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Specs$Artifacts = Resource$Projects$Locations$Apis$Versions$Specs$Artifacts; + class Resource$Projects$Locations$Artifacts { + 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getContents(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceArtifact(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://apigeeregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Artifacts = Resource$Projects$Locations$Artifacts; + 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtime { + constructor(context) { + this.context = context; + } + 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigeeregistry.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + apigeeregistry_v1.Resource$Projects$Locations$Runtime = Resource$Projects$Locations$Runtime; +})(apigeeregistry_v1 = exports.apigeeregistry_v1 || (exports.apigeeregistry_v1 = {})); + + +/***/ }), + +/***/ 5020: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dialogflow_v3beta1 = exports.dialogflow_v3 = exports.dialogflow_v2beta1 = exports.dialogflow_v2 = exports.auth = exports.dialogflow = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(4968); +Object.defineProperty(exports, "dialogflow_v2", { enumerable: true, get: function () { return v2_1.dialogflow_v2; } }); +const v2beta1_1 = __webpack_require__(3080); +Object.defineProperty(exports, "dialogflow_v2beta1", { enumerable: true, get: function () { return v2beta1_1.dialogflow_v2beta1; } }); +const v3_1 = __webpack_require__(335); +Object.defineProperty(exports, "dialogflow_v3", { enumerable: true, get: function () { return v3_1.dialogflow_v3; } }); +const v3beta1_1 = __webpack_require__(4401); +Object.defineProperty(exports, "dialogflow_v3beta1", { enumerable: true, get: function () { return v3beta1_1.dialogflow_v3beta1; } }); +exports.VERSIONS = { + v2: v2_1.dialogflow_v2.Dialogflow, + v2beta1: v2beta1_1.dialogflow_v2beta1.Dialogflow, + v3: v3_1.dialogflow_v3.Dialogflow, + v3beta1: v3beta1_1.dialogflow_v3beta1.Dialogflow, +}; +function dialogflow(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dialogflow', versionOrOptions, exports.VERSIONS, this); +} +exports.dialogflow = dialogflow; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5024: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.webrisk_v1 = exports.auth = exports.webrisk = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7430); +Object.defineProperty(exports, "webrisk_v1", { enumerable: true, get: function () { return v1_1.webrisk_v1; } }); +exports.VERSIONS = { + v1: v1_1.webrisk_v1.Webrisk, +}; +function webrisk(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('webrisk', versionOrOptions, exports.VERSIONS, this); +} +exports.webrisk = webrisk; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5052: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudtasks_v2beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudtasks_v2beta3; +(function (cloudtasks_v2beta3) { + /** + * Cloud Tasks API + * + * Manages the execution of large numbers of distributed requests. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudtasks = google.cloudtasks('v2beta3'); + * ``` + */ + class Cloudtasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtasks_v2beta3.Cloudtasks = Cloudtasks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudtasks_v2beta3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.queues = new Resource$Projects$Locations$Queues(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + purge(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + buffer(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta3 = exports.cloudtasks_v2beta3 || (exports.cloudtasks_v2beta3 = {})); + + +/***/ }), + +/***/ 5075: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.androidenterprise_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var androidenterprise_v1; +(function (androidenterprise_v1) { + /** + * Google Play EMM API + * + * Manages the deployment of apps to Android Enterprise devices. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const androidenterprise = google.androidenterprise('v1'); + * ``` + */ + class Androidenterprise { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.devices = new Resource$Devices(this.context); + this.enterprises = new Resource$Enterprises(this.context); + this.entitlements = new Resource$Entitlements(this.context); + this.grouplicenses = new Resource$Grouplicenses(this.context); + this.grouplicenseusers = new Resource$Grouplicenseusers(this.context); + this.installs = new Resource$Installs(this.context); + this.managedconfigurationsfordevice = + new Resource$Managedconfigurationsfordevice(this.context); + this.managedconfigurationsforuser = + new Resource$Managedconfigurationsforuser(this.context); + this.managedconfigurationssettings = + new Resource$Managedconfigurationssettings(this.context); + this.permissions = new Resource$Permissions(this.context); + this.products = new Resource$Products(this.context); + this.serviceaccountkeys = new Resource$Serviceaccountkeys(this.context); + this.storelayoutclusters = new Resource$Storelayoutclusters(this.context); + this.storelayoutpages = new Resource$Storelayoutpages(this.context); + this.users = new Resource$Users(this.context); + this.webapps = new Resource$Webapps(this.context); + } + } + androidenterprise_v1.Androidenterprise = Androidenterprise; + class Resource$Devices { + constructor(context) { + this.context = context; + } + forceReportUpload(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getState(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setState(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Devices = Resource$Devices; + class Resource$Enterprises { + constructor(context) { + this.context = context; + } + acknowledgeNotificationSet(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/acknowledgeNotificationSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + completeSignup(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/completeSignup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createEnrollmentToken(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createWebToken(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/createWebToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enroll(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/enroll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['token'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateSignupUrl(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/signupUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getServiceAccount(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getStoreLayout(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['domain'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pullNotificationSet(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/pullNotificationSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + sendTestPushNotification(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAccount(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/account').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setStoreLayout(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unenroll(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/unenroll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Enterprises = Resource$Enterprises; + class Resource$Entitlements { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'entitlementId'], + pathParams: ['enterpriseId', 'entitlementId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'entitlementId'], + pathParams: ['enterpriseId', 'entitlementId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'entitlementId'], + pathParams: ['enterpriseId', 'entitlementId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Entitlements = Resource$Entitlements; + class Resource$Grouplicenses { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'groupLicenseId'], + pathParams: ['enterpriseId', 'groupLicenseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Grouplicenses = Resource$Grouplicenses; + class Resource$Grouplicenseusers { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'groupLicenseId'], + pathParams: ['enterpriseId', 'groupLicenseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Grouplicenseusers = Resource$Grouplicenseusers; + class Resource$Installs { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], + pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], + pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], + pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Installs = Resource$Installs; + class Resource$Managedconfigurationsfordevice { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'deviceId', + 'managedConfigurationForDeviceId', + ], + pathParams: [ + 'deviceId', + 'enterpriseId', + 'managedConfigurationForDeviceId', + 'userId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'deviceId', + 'managedConfigurationForDeviceId', + ], + pathParams: [ + 'deviceId', + 'enterpriseId', + 'managedConfigurationForDeviceId', + 'userId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'deviceId', + 'managedConfigurationForDeviceId', + ], + pathParams: [ + 'deviceId', + 'enterpriseId', + 'managedConfigurationForDeviceId', + 'userId', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Managedconfigurationsfordevice = Resource$Managedconfigurationsfordevice; + class Resource$Managedconfigurationsforuser { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'managedConfigurationForUserId', + ], + pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'managedConfigurationForUserId', + ], + pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'managedConfigurationForUserId', + ], + pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Managedconfigurationsforuser = Resource$Managedconfigurationsforuser; + class Resource$Managedconfigurationssettings { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Managedconfigurationssettings = Resource$Managedconfigurationssettings; + class Resource$Permissions { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['permissionId'], + pathParams: ['permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Permissions = Resource$Permissions; + class Resource$Products { + constructor(context) { + this.context = context; + } + approve(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateApprovalUrl(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAppRestrictionsSchema(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getPermissions(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unapprove(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/unapprove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Products = Resource$Products; + class Resource$Serviceaccountkeys { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'keyId'], + pathParams: ['enterpriseId', 'keyId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Serviceaccountkeys = Resource$Serviceaccountkeys; + class Resource$Storelayoutclusters { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId', 'clusterId'], + pathParams: ['clusterId', 'enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId', 'clusterId'], + pathParams: ['clusterId', 'enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId', 'clusterId'], + pathParams: ['clusterId', 'enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Storelayoutclusters = Resource$Storelayoutclusters; + class Resource$Storelayoutpages { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Storelayoutpages = Resource$Storelayoutpages; + class Resource$Users { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateAuthenticationToken(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/authenticationToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAvailableProductSet(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'email'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revokeDeviceAccess(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/deviceAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAvailableProductSet(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Users = Resource$Users; + class Resource$Webapps { + 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'webAppId'], + pathParams: ['enterpriseId', 'webAppId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'webAppId'], + pathParams: ['enterpriseId', 'webAppId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidenterprise.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'webAppId'], + pathParams: ['enterpriseId', 'webAppId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidenterprise_v1.Resource$Webapps = Resource$Webapps; +})(androidenterprise_v1 = exports.androidenterprise_v1 || (exports.androidenterprise_v1 = {})); + + +/***/ }), + +/***/ 5082: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toCommandProperties = exports.toCommandValue = void 0; +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +/** + * + * @param annotationProperties + * @returns The command properties to send with the actual annotation command + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 + */ +function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; +} +exports.toCommandProperties = toCommandProperties; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 5093: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networksecurity_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networksecurity_v1; +(function (networksecurity_v1) { + /** + * Network Security API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networksecurity = google.networksecurity('v1'); + * ``` + */ + class Networksecurity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networksecurity_v1.Networksecurity = Networksecurity; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networksecurity_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.authorizationPolicies = + new Resource$Projects$Locations$Authorizationpolicies(this.context); + this.clientTlsPolicies = + new Resource$Projects$Locations$Clienttlspolicies(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serverTlsPolicies = + new Resource$Projects$Locations$Servertlspolicies(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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networksecurity_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Authorizationpolicies { + 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/authorizationPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/authorizationPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networksecurity_v1.Resource$Projects$Locations$Authorizationpolicies = Resource$Projects$Locations$Authorizationpolicies; + class Resource$Projects$Locations$Clienttlspolicies { + 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clientTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clientTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networksecurity_v1.Resource$Projects$Locations$Clienttlspolicies = Resource$Projects$Locations$Clienttlspolicies; + 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networksecurity_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Servertlspolicies { + 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/serverTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/serverTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networksecurity_v1.Resource$Projects$Locations$Servertlspolicies = Resource$Projects$Locations$Servertlspolicies; +})(networksecurity_v1 = exports.networksecurity_v1 || (exports.networksecurity_v1 = {})); + + +/***/ }), + +/***/ 5099: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.playdeveloperreporting_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var playdeveloperreporting_v1alpha1; +(function (playdeveloperreporting_v1alpha1) { + /** + * Google Play Developer Reporting API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const playdeveloperreporting = google.playdeveloperreporting('v1alpha1'); + * ``` + */ + class Playdeveloperreporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.anomalies = new Resource$Anomalies(this.context); + this.vitals = new Resource$Vitals(this.context); + } + } + playdeveloperreporting_v1alpha1.Playdeveloperreporting = Playdeveloperreporting; + class Resource$Anomalies { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/anomalies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Anomalies = Resource$Anomalies; + class Resource$Vitals { + constructor(context) { + this.context = context; + this.anrrate = new Resource$Vitals$Anrrate(this.context); + this.crashrate = new Resource$Vitals$Crashrate(this.context); + this.errors = new Resource$Vitals$Errors(this.context); + this.excessivewakeuprate = new Resource$Vitals$Excessivewakeuprate(this.context); + this.slowrenderingrate = new Resource$Vitals$Slowrenderingrate(this.context); + this.slowstartrate = new Resource$Vitals$Slowstartrate(this.context); + this.stuckbackgroundwakelockrate = + new Resource$Vitals$Stuckbackgroundwakelockrate(this.context); + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals = Resource$Vitals; + class Resource$Vitals$Anrrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Anrrate = Resource$Vitals$Anrrate; + class Resource$Vitals$Crashrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Crashrate = Resource$Vitals$Crashrate; + class Resource$Vitals$Errors { + constructor(context) { + this.context = context; + this.counts = new Resource$Vitals$Errors$Counts(this.context); + this.issues = new Resource$Vitals$Errors$Issues(this.context); + this.reports = new Resource$Vitals$Errors$Reports(this.context); + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Errors = Resource$Vitals$Errors; + class Resource$Vitals$Errors$Counts { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Errors$Counts = Resource$Vitals$Errors$Counts; + class Resource$Vitals$Errors$Issues { + constructor(context) { + this.context = context; + } + search(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/errorIssues:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Errors$Issues = Resource$Vitals$Errors$Issues; + class Resource$Vitals$Errors$Reports { + constructor(context) { + this.context = context; + } + search(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/errorReports:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Errors$Reports = Resource$Vitals$Errors$Reports; + class Resource$Vitals$Excessivewakeuprate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Excessivewakeuprate = Resource$Vitals$Excessivewakeuprate; + class Resource$Vitals$Slowrenderingrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Slowrenderingrate = Resource$Vitals$Slowrenderingrate; + class Resource$Vitals$Slowstartrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Slowstartrate = Resource$Vitals$Slowstartrate; + class Resource$Vitals$Stuckbackgroundwakelockrate { + 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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + query(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://playdeveloperreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Stuckbackgroundwakelockrate = Resource$Vitals$Stuckbackgroundwakelockrate; +})(playdeveloperreporting_v1alpha1 = exports.playdeveloperreporting_v1alpha1 || (exports.playdeveloperreporting_v1alpha1 = {})); + + +/***/ }), + +/***/ 5114: +/***/ (function(__unusedmodule, exports) { + +"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.isBrowser = void 0; +function isBrowser() { + return typeof window !== 'undefined'; +} +exports.isBrowser = isBrowser; +//# sourceMappingURL=isbrowser.js.map + +/***/ }), + +/***/ 5122: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.datafusion_v1beta1 = exports.datafusion_v1 = exports.auth = exports.datafusion = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4121); +Object.defineProperty(exports, "datafusion_v1", { enumerable: true, get: function () { return v1_1.datafusion_v1; } }); +const v1beta1_1 = __webpack_require__(4695); +Object.defineProperty(exports, "datafusion_v1beta1", { enumerable: true, get: function () { return v1beta1_1.datafusion_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.datafusion_v1.Datafusion, + v1beta1: v1beta1_1.datafusion_v1beta1.Datafusion, +}; +function datafusion(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datafusion', versionOrOptions, exports.VERSIONS, this); +} +exports.datafusion = datafusion; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5132: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.accessapproval_v1beta1 = exports.accessapproval_v1 = exports.auth = exports.accessapproval = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(42); +Object.defineProperty(exports, "accessapproval_v1", { enumerable: true, get: function () { return v1_1.accessapproval_v1; } }); +const v1beta1_1 = __webpack_require__(7780); +Object.defineProperty(exports, "accessapproval_v1beta1", { enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.accessapproval_v1.Accessapproval, + v1beta1: v1beta1_1.accessapproval_v1beta1.Accessapproval, +}; +function accessapproval(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('accessapproval', versionOrOptions, exports.VERSIONS, this); +} +exports.accessapproval = accessapproval; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5136: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.gmail_v1 = exports.auth = exports.gmail = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1034); +Object.defineProperty(exports, "gmail_v1", { enumerable: true, get: function () { return v1_1.gmail_v1; } }); +exports.VERSIONS = { + v1: v1_1.gmail_v1.Gmail, +}; +function gmail(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gmail', versionOrOptions, exports.VERSIONS, this); +} +exports.gmail = gmail; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5140: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.baremetalsolution_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var baremetalsolution_v1; +(function (baremetalsolution_v1) { + /** + * Bare Metal Solution API + * + * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const baremetalsolution = google.baremetalsolution('v1'); + * ``` + */ + class Baremetalsolution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + baremetalsolution_v1.Baremetalsolution = Baremetalsolution; + class Resource$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://baremetalsolution.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://baremetalsolution.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://baremetalsolution.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://baremetalsolution.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + baremetalsolution_v1.Resource$Operations = Resource$Operations; +})(baremetalsolution_v1 = exports.baremetalsolution_v1 || (exports.baremetalsolution_v1 = {})); + + +/***/ }), + +/***/ 5141: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.genomics_v2alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var genomics_v2alpha1; +(function (genomics_v2alpha1) { + /** + * Genomics API + * + * Uploads, processes, queries, and searches Genomics data in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const genomics = google.genomics('v2alpha1'); + * ``` + */ + class Genomics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.pipelines = new Resource$Pipelines(this.context); + this.projects = new Resource$Projects(this.context); + this.workers = new Resource$Workers(this.context); + } + } + genomics_v2alpha1.Genomics = Genomics; + class Resource$Pipelines { + constructor(context) { + this.context = context; + } + run(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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + genomics_v2alpha1.Resource$Pipelines = Resource$Pipelines; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + this.workers = new Resource$Projects$Workers(this.context); + } + } + genomics_v2alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + genomics_v2alpha1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Workers { + constructor(context) { + this.context = context; + } + checkIn(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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + genomics_v2alpha1.Resource$Projects$Workers = Resource$Projects$Workers; + class Resource$Workers { + constructor(context) { + this.context = context; + } + checkIn(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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/workers/{id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + genomics_v2alpha1.Resource$Workers = Resource$Workers; +})(genomics_v2alpha1 = exports.genomics_v2alpha1 || (exports.genomics_v2alpha1 = {})); + + +/***/ }), + +/***/ 5165: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.Endpoint = void 0; +const apirequest_1 = __webpack_require__(5421); +class Endpoint { + constructor(options) { + this._options = options || {}; + } + /** + * Given a schema, add methods and resources to a target. + * + * @param {object} target The target to which to apply the schema. + * @param {object} rootSchema The top-level schema, so we don't lose track of it + * during recursion. + * @param {object} schema The current schema from which to extract methods and + * resources. + * @param {object} context The context to add to each method. + */ + applySchema(target, rootSchema, schema, context) { + this.applyMethodsFromSchema(target, rootSchema, schema, context); + if (schema.resources) { + for (const resourceName in schema.resources) { + if (Object.prototype.hasOwnProperty.call(schema.resources, resourceName)) { + const resource = schema.resources[resourceName]; + if (!target[resourceName]) { + target[resourceName] = {}; + } + this.applySchema(target[resourceName], rootSchema, resource, context); + } + } + } + } + /** + * Given a schema, add methods to a target. + * + * @param {object} target The target to which to apply the methods. + * @param {object} rootSchema The top-level schema, so we don't lose track of it + * during recursion. + * @param {object} schema The current schema from which to extract methods. + * @param {object} context The context to add to each method. + */ + applyMethodsFromSchema(target, rootSchema, schema, context) { + if (schema.methods) { + for (const name in schema.methods) { + if (Object.prototype.hasOwnProperty.call(schema.methods, name)) { + const method = schema.methods[name]; + target[name] = this.makeMethod(rootSchema, method, context); + } + } + } + } + /** + * Given a method schema, add a method to a target. + * + * @param target The target to which to add the method. + * @param schema The top-level schema that contains the rootUrl, etc. + * @param method The method schema from which to generate the method. + * @param context The context to add to the method. + */ + makeMethod(schema, method, context) { + return (paramsOrCallback, callback) => { + const params = typeof paramsOrCallback === 'function' ? {} : paramsOrCallback; + callback = + typeof paramsOrCallback === 'function' + ? paramsOrCallback + : callback; + const schemaUrl = buildurl(schema.rootUrl + schema.servicePath + method.path); + const parameters = { + options: { + url: schemaUrl.substring(1, schemaUrl.length - 1), + method: method.httpMethod, + }, + params, + requiredParams: method.parameterOrder || [], + pathParams: this.getPathParams(method.parameters), + context, + }; + if (method.mediaUpload && + method.mediaUpload.protocols && + method.mediaUpload.protocols.simple && + method.mediaUpload.protocols.simple.path) { + const mediaUrl = buildurl(schema.rootUrl + method.mediaUpload.protocols.simple.path); + parameters.mediaUrl = mediaUrl.substring(1, mediaUrl.length - 1); + } + if (!callback) { + return (0, apirequest_1.createAPIRequest)(parameters); + } + (0, apirequest_1.createAPIRequest)(parameters, callback); + return; + }; + } + getPathParams(params) { + const pathParams = new Array(); + if (typeof params !== 'object') { + params = {}; + } + Object.keys(params).forEach(key => { + if (params[key].location === 'path') { + pathParams.push(key); + } + }); + return pathParams; + } +} +exports.Endpoint = Endpoint; +/** + * Build a string used to create a URL from the discovery doc provided URL. + * replace double slashes with single slash (except in https://) + * @private + * @param input URL to build from + * @return Resulting built URL + */ +function buildurl(input) { + return input ? `'${input}'`.replace(/([^:]\/)\/+/g, '$1') : ''; +} +//# sourceMappingURL=endpoint.js.map + +/***/ }), + +/***/ 5166: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.factchecktools_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var factchecktools_v1alpha1; +(function (factchecktools_v1alpha1) { + /** + * Fact Check Tools API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const factchecktools = google.factchecktools('v1alpha1'); + * ``` + */ + class Factchecktools { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.claims = new Resource$Claims(this.context); + this.pages = new Resource$Pages(this.context); + } + } + factchecktools_v1alpha1.Factchecktools = Factchecktools; + class Resource$Claims { + constructor(context) { + this.context = context; + } + search(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://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/claims:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + factchecktools_v1alpha1.Resource$Claims = Resource$Claims; + class Resource$Pages { + 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://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + factchecktools_v1alpha1.Resource$Pages = Resource$Pages; +})(factchecktools_v1alpha1 = exports.factchecktools_v1alpha1 || (exports.factchecktools_v1alpha1 = {})); + + +/***/ }), + +/***/ 5174: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.ideahub_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var ideahub_v1alpha; +(function (ideahub_v1alpha) { + /** + * Idea Hub API + * + * This is an invitation-only API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const ideahub = google.ideahub('v1alpha'); + * ``` + */ + class Ideahub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.ideas = new Resource$Ideas(this.context); + this.platforms = new Resource$Platforms(this.context); + } + } + ideahub_v1alpha.Ideahub = Ideahub; + class Resource$Ideas { + 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://ideahub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/ideas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ideahub_v1alpha.Resource$Ideas = Resource$Ideas; + class Resource$Platforms { + constructor(context) { + this.context = context; + this.properties = new Resource$Platforms$Properties(this.context); + } + } + ideahub_v1alpha.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Properties { + constructor(context) { + this.context = context; + this.ideaActivities = new Resource$Platforms$Properties$Ideaactivities(this.context); + this.ideas = new Resource$Platforms$Properties$Ideas(this.context); + this.ideaStates = new Resource$Platforms$Properties$Ideastates(this.context); + this.locales = new Resource$Platforms$Properties$Locales(this.context); + this.topicStates = new Resource$Platforms$Properties$Topicstates(this.context); + } + } + ideahub_v1alpha.Resource$Platforms$Properties = Resource$Platforms$Properties; + class Resource$Platforms$Properties$Ideaactivities { + 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://ideahub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/ideaActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ideahub_v1alpha.Resource$Platforms$Properties$Ideaactivities = Resource$Platforms$Properties$Ideaactivities; + class Resource$Platforms$Properties$Ideas { + 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://ideahub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/ideas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ideahub_v1alpha.Resource$Platforms$Properties$Ideas = Resource$Platforms$Properties$Ideas; + class Resource$Platforms$Properties$Ideastates { + constructor(context) { + this.context = context; + } + 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://ideahub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ideahub_v1alpha.Resource$Platforms$Properties$Ideastates = Resource$Platforms$Properties$Ideastates; + class Resource$Platforms$Properties$Locales { + 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://ideahub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/locales').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ideahub_v1alpha.Resource$Platforms$Properties$Locales = Resource$Platforms$Properties$Locales; + class Resource$Platforms$Properties$Topicstates { + constructor(context) { + this.context = context; + } + 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://ideahub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ideahub_v1alpha.Resource$Platforms$Properties$Topicstates = Resource$Platforms$Properties$Topicstates; +})(ideahub_v1alpha = exports.ideahub_v1alpha || (exports.ideahub_v1alpha = {})); + + +/***/ }), + +/***/ 5176: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +exports.URL = __webpack_require__(2880).interface; +exports.serializeURL = __webpack_require__(856).serializeURL; +exports.serializeURLOrigin = __webpack_require__(856).serializeURLOrigin; +exports.basicURLParse = __webpack_require__(856).basicURLParse; +exports.setTheUsername = __webpack_require__(856).setTheUsername; +exports.setThePassword = __webpack_require__(856).setThePassword; +exports.serializeHost = __webpack_require__(856).serializeHost; +exports.serializeInteger = __webpack_require__(856).serializeInteger; +exports.parseURL = __webpack_require__(856).parseURL; + + +/***/ }), + +/***/ 5178: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.beyondcorp_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var beyondcorp_v1alpha; +(function (beyondcorp_v1alpha) { + /** + * BeyondCorp API + * + * Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity solutions. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const beyondcorp = google.beyondcorp('v1alpha'); + * ``` + */ + class Beyondcorp { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + beyondcorp_v1alpha.Beyondcorp = Beyondcorp; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + beyondcorp_v1alpha.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.insights = new Resource$Organizations$Locations$Insights(this.context); + this.subscriptions = new Resource$Organizations$Locations$Subscriptions(this.context); + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Insights { + constructor(context) { + this.context = context; + } + configuredInsight(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['insight'], + pathParams: ['insight'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Insights = Resource$Organizations$Locations$Insights; + class Resource$Organizations$Locations$Subscriptions { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Organizations$Locations$Subscriptions = Resource$Organizations$Locations$Subscriptions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + beyondcorp_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.appConnections = new Resource$Projects$Locations$Appconnections(this.context); + this.appConnectors = new Resource$Projects$Locations$Appconnectors(this.context); + this.appGateways = new Resource$Projects$Locations$Appgateways(this.context); + this.applications = new Resource$Projects$Locations$Applications(this.context); + this.clientConnectorServices = + new Resource$Projects$Locations$Clientconnectorservices(this.context); + this.clientGateways = new Resource$Projects$Locations$Clientgateways(this.context); + this.connections = new Resource$Projects$Locations$Connections(this.context); + this.connectors = new Resource$Projects$Locations$Connectors(this.context); + this.insights = new Resource$Projects$Locations$Insights(this.context); + this.netConnections = new Resource$Projects$Locations$Netconnections(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Appconnections { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Appconnections = Resource$Projects$Locations$Appconnections; + class Resource$Projects$Locations$Appconnectors { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolveInstanceConfig(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appConnector'], + pathParams: ['appConnector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Appconnectors = Resource$Projects$Locations$Appconnectors; + class Resource$Projects$Locations$Appgateways { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; + class Resource$Projects$Locations$Applications { + constructor(context) { + this.context = context; + } + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Clientconnectorservices { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Clientconnectorservices = Resource$Projects$Locations$Clientconnectorservices; + class Resource$Projects$Locations$Clientgateways { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; + class Resource$Projects$Locations$Connections { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolve(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connectors { + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reportStatus(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+connector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['connector'], + pathParams: ['connector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resolveInstanceConfig(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+connector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['connector'], + pathParams: ['connector'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Connectors = Resource$Projects$Locations$Connectors; + class Resource$Projects$Locations$Insights { + constructor(context) { + this.context = context; + } + configuredInsight(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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['insight'], + pathParams: ['insight'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Insights = Resource$Projects$Locations$Insights; + class Resource$Projects$Locations$Netconnections { + constructor(context) { + this.context = context; + } + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Netconnections = Resource$Projects$Locations$Netconnections; + 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://beyondcorp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + beyondcorp_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(beyondcorp_v1alpha = exports.beyondcorp_v1alpha || (exports.beyondcorp_v1alpha = {})); + + +/***/ }), + +/***/ 5190: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.clouderrorreporting_v1beta1 = exports.auth = exports.clouderrorreporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(3313); +Object.defineProperty(exports, "clouderrorreporting_v1beta1", { enumerable: true, get: function () { return v1beta1_1.clouderrorreporting_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.clouderrorreporting_v1beta1.Clouderrorreporting, +}; +function clouderrorreporting(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('clouderrorreporting', versionOrOptions, exports.VERSIONS, this); +} +exports.clouderrorreporting = clouderrorreporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5197: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +const usm = __webpack_require__(856); + +exports.implementation = class URLImpl { + constructor(constructorArgs) { + const url = constructorArgs[0]; + const base = constructorArgs[1]; + + let parsedBase = null; + if (base !== undefined) { + parsedBase = usm.basicURLParse(base); + if (parsedBase === "failure") { + throw new TypeError("Invalid base URL"); + } + } + + const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase }); + if (parsedURL === "failure") { + throw new TypeError("Invalid URL"); + } + + this._url = parsedURL; + + // TODO: query stuff + } + + get href() { + return usm.serializeURL(this._url); + } + + set href(v) { + const parsedURL = usm.basicURLParse(v); + if (parsedURL === "failure") { + throw new TypeError("Invalid URL"); + } + + this._url = parsedURL; + } + + get origin() { + return usm.serializeURLOrigin(this._url); + } + + get protocol() { + return this._url.scheme + ":"; + } + + set protocol(v) { + usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" }); + } + + get username() { + return this._url.username; + } + + set username(v) { + if (usm.cannotHaveAUsernamePasswordPort(this._url)) { + return; + } + + usm.setTheUsername(this._url, v); + } + + get password() { + return this._url.password; + } + + set password(v) { + if (usm.cannotHaveAUsernamePasswordPort(this._url)) { + return; + } + + usm.setThePassword(this._url, v); + } + + get host() { + const url = this._url; + + if (url.host === null) { + return ""; + } + + if (url.port === null) { + return usm.serializeHost(url.host); + } + + return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port); + } + + set host(v) { + if (this._url.cannotBeABaseURL) { + return; + } + + usm.basicURLParse(v, { url: this._url, stateOverride: "host" }); + } + + get hostname() { + if (this._url.host === null) { + return ""; + } + + return usm.serializeHost(this._url.host); + } + + set hostname(v) { + if (this._url.cannotBeABaseURL) { + return; + } + + usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" }); + } + + get port() { + if (this._url.port === null) { + return ""; + } + + return usm.serializeInteger(this._url.port); + } + + set port(v) { + if (usm.cannotHaveAUsernamePasswordPort(this._url)) { + return; + } + + if (v === "") { + this._url.port = null; + } else { + usm.basicURLParse(v, { url: this._url, stateOverride: "port" }); + } + } + + get pathname() { + if (this._url.cannotBeABaseURL) { + return this._url.path[0]; + } + + if (this._url.path.length === 0) { + return ""; + } + + return "/" + this._url.path.join("/"); + } + + set pathname(v) { + if (this._url.cannotBeABaseURL) { + return; + } + + this._url.path = []; + usm.basicURLParse(v, { url: this._url, stateOverride: "path start" }); + } + + get search() { + if (this._url.query === null || this._url.query === "") { + return ""; + } + + return "?" + this._url.query; + } + + set search(v) { + // TODO: query stuff + + const url = this._url; + + if (v === "") { + url.query = null; + return; + } + + const input = v[0] === "?" ? v.substring(1) : v; + url.query = ""; + usm.basicURLParse(input, { url, stateOverride: "query" }); + } + + get hash() { + if (this._url.fragment === null || this._url.fragment === "") { + return ""; + } + + return "#" + this._url.fragment; + } + + set hash(v) { + if (v === "") { + this._url.fragment = null; + return; + } + + const input = v[0] === "#" ? v.substring(1) : v; + this._url.fragment = ""; + usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" }); + } + + toJSON() { + return this.href; + } +}; + + +/***/ }), + +/***/ 5209: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(__webpack_require__(4212)); + +var _md = _interopRequireDefault(__webpack_require__(4803)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports.default = _default; + +/***/ }), + +/***/ 5216: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datapipelines_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datapipelines_v1; +(function (datapipelines_v1) { + /** + * Data pipelines API + * + * Data Pipelines provides an interface for creating, updating, and managing recurring Data Analytics jobs. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datapipelines = google.datapipelines('v1'); + * ``` + */ + class Datapipelines { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datapipelines_v1.Datapipelines = Datapipelines; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datapipelines_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.pipelines = new Resource$Projects$Locations$Pipelines(this.context); + } + } + datapipelines_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Pipelines { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Pipelines$Jobs(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://datapipelines.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datapipelines.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datapipelines.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datapipelines.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datapipelines.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://datapipelines.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datapipelines.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datapipelines_v1.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; + class Resource$Projects$Locations$Pipelines$Jobs { + 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://datapipelines.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datapipelines_v1.Resource$Projects$Locations$Pipelines$Jobs = Resource$Projects$Locations$Pipelines$Jobs; +})(datapipelines_v1 = exports.datapipelines_v1 || (exports.datapipelines_v1 = {})); + + +/***/ }), + +/***/ 5237: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(1220); +__webpack_require__(7152); + +var md5 = module.exports = forge.md5 = forge.md5 || {}; +forge.md.md5 = forge.md.algorithms.md5 = md5; + +/** + * Creates an MD5 message digest object. + * + * @return a message digest object. + */ +md5.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + // MD5 state contains four 32-bit integers + var _state = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for word storage + var _w = new Array(16); + + // message digest object + var md = { + algorithm: 'md5', + blockLength: 64, + digestLength: 16, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x67452301, + h1: 0xEFCDAB89, + h2: 0x98BADCFE, + h3: 0x10325476 + }; + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = (len[1] / 0x100000000) >>> 0; + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_state, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate MD5 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in little-endian order; since length + // is stored in bytes we multiply by 8 and add carry + var bits, carry = 0; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + bits = md.fullMessageLength[i] * 8 + carry; + carry = (bits / 0x100000000) >>> 0; + finalBlock.putInt32Le(bits >>> 0); + } + + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32Le(s2.h0); + rval.putInt32Le(s2.h1); + rval.putInt32Le(s2.h2); + rval.putInt32Le(s2.h3); + return rval; + }; + + return md; +}; + +// padding, constant tables for calculating md5 +var _padding = null; +var _g = null; +var _r = null; +var _k = null; +var _initialized = false; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + + // g values + _g = [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, + 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, + 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9]; + + // rounds table + _r = [ + 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, + 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, + 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, + 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]; + + // get the result of abs(sin(i + 1)) as a 32-bit integer + _k = new Array(64); + for(var i = 0; i < 64; ++i) { + _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000); + } + + // now initialized + _initialized = true; +} + +/** + * Updates an MD5 state with the given byte buffer. + * + * @param s the MD5 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t, a, b, c, d, f, r, i; + var len = bytes.length(); + while(len >= 64) { + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + + // round 1 + for(i = 0; i < 16; ++i) { + w[i] = bytes.getInt32Le(); + f = d ^ (b & (c ^ d)); + t = (a + f + _k[i] + w[i]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 2 + for(; i < 32; ++i) { + f = c ^ (d & (b ^ c)); + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 3 + for(; i < 48; ++i) { + f = b ^ c ^ d; + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 4 + for(; i < 64; ++i) { + f = c ^ (b | ~d); + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + + len -= 64; + } +} + + +/***/ }), + +/***/ 5238: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.policyanalyzer_v1beta1 = exports.policyanalyzer_v1 = exports.auth = exports.policyanalyzer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6013); +Object.defineProperty(exports, "policyanalyzer_v1", { enumerable: true, get: function () { return v1_1.policyanalyzer_v1; } }); +const v1beta1_1 = __webpack_require__(4863); +Object.defineProperty(exports, "policyanalyzer_v1beta1", { enumerable: true, get: function () { return v1beta1_1.policyanalyzer_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.policyanalyzer_v1.Policyanalyzer, + v1beta1: v1beta1_1.policyanalyzer_v1beta1.Policyanalyzer, +}; +function policyanalyzer(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('policyanalyzer', versionOrOptions, exports.VERSIONS, this); +} +exports.policyanalyzer = policyanalyzer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5240: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.streetviewpublish_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var streetviewpublish_v1; +(function (streetviewpublish_v1) { + /** + * Street View Publish API + * + * Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const streetviewpublish = google.streetviewpublish('v1'); + * ``` + */ + class Streetviewpublish { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.photo = new Resource$Photo(this.context); + this.photos = new Resource$Photos(this.context); + this.photoSequence = new Resource$Photosequence(this.context); + this.photoSequences = new Resource$Photosequences(this.context); + } + } + streetviewpublish_v1.Streetviewpublish = Streetviewpublish; + class Resource$Photo { + 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['photoId'], + pathParams: ['photoId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['photoId'], + pathParams: ['photoId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startUpload(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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo:startUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + streetviewpublish_v1.Resource$Photo = Resource$Photo; + class Resource$Photos { + constructor(context) { + this.context = context; + } + batchDelete(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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchGet(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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + streetviewpublish_v1.Resource$Photos = Resource$Photos; + class Resource$Photosequence { + 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photoSequence').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photoSequence/{sequenceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['sequenceId'], + pathParams: ['sequenceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photoSequence/{sequenceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['sequenceId'], + pathParams: ['sequenceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startUpload(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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photoSequence:startUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + streetviewpublish_v1.Resource$Photosequence = Resource$Photosequence; + class Resource$Photosequences { + 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://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photoSequences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + streetviewpublish_v1.Resource$Photosequences = Resource$Photosequences; +})(streetviewpublish_v1 = exports.streetviewpublish_v1 || (exports.streetviewpublish_v1 = {})); + + +/***/ }), + +/***/ 5246: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.translate_v3beta1 = exports.translate_v3 = exports.translate_v2 = exports.auth = exports.translate = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(5504); +Object.defineProperty(exports, "translate_v2", { enumerable: true, get: function () { return v2_1.translate_v2; } }); +const v3_1 = __webpack_require__(1076); +Object.defineProperty(exports, "translate_v3", { enumerable: true, get: function () { return v3_1.translate_v3; } }); +const v3beta1_1 = __webpack_require__(9730); +Object.defineProperty(exports, "translate_v3beta1", { enumerable: true, get: function () { return v3beta1_1.translate_v3beta1; } }); +exports.VERSIONS = { + v2: v2_1.translate_v2.Translate, + v3: v3_1.translate_v3.Translate, + v3beta1: v3beta1_1.translate_v3beta1.Translate, +}; +function translate(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('translate', versionOrOptions, exports.VERSIONS, this); +} +exports.translate = translate; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5247: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const os = __webpack_require__(2087); +const tty = __webpack_require__(3867); +const hasFlag = __webpack_require__(1364); + +const {env} = process; + +let forceColor; +if (hasFlag('no-color') || + hasFlag('no-colors') || + hasFlag('color=false') || + hasFlag('color=never')) { + forceColor = 0; +} else if (hasFlag('color') || + hasFlag('colors') || + hasFlag('color=true') || + hasFlag('color=always')) { + forceColor = 1; +} + +if ('FORCE_COLOR' in env) { + if (env.FORCE_COLOR === 'true') { + forceColor = 1; + } else if (env.FORCE_COLOR === 'false') { + forceColor = 0; + } else { + forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3); + } +} + +function translateLevel(level) { + if (level === 0) { + return false; + } + + return { + level, + hasBasic: true, + has256: level >= 2, + has16m: level >= 3 + }; +} + +function supportsColor(haveStream, streamIsTTY) { + if (forceColor === 0) { + return 0; + } + + if (hasFlag('color=16m') || + hasFlag('color=full') || + hasFlag('color=truecolor')) { + return 3; + } + + if (hasFlag('color=256')) { + return 2; + } + + if (haveStream && !streamIsTTY && forceColor === undefined) { + return 0; + } + + const min = forceColor || 0; + + if (env.TERM === 'dumb') { + return min; + } + + if (process.platform === 'win32') { + // Windows 10 build 10586 is the first Windows release that supports 256 colors. + // Windows 10 build 14931 is the first release that supports 16m/TrueColor. + const osRelease = os.release().split('.'); + if ( + Number(osRelease[0]) >= 10 && + Number(osRelease[2]) >= 10586 + ) { + return Number(osRelease[2]) >= 14931 ? 3 : 2; + } + + return 1; + } + + if ('CI' in env) { + if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { + return 1; + } + + return min; + } + + if ('TEAMCITY_VERSION' in env) { + return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; + } + + if (env.COLORTERM === 'truecolor') { + return 3; + } + + if ('TERM_PROGRAM' in env) { + const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); + + switch (env.TERM_PROGRAM) { + case 'iTerm.app': + return version >= 3 ? 3 : 2; + case 'Apple_Terminal': + return 2; + // No default + } + } + + if (/-256(color)?$/i.test(env.TERM)) { + return 2; + } + + if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { + return 1; + } + + if ('COLORTERM' in env) { + return 1; + } + + return min; +} + +function getSupportLevel(stream) { + const level = supportsColor(stream, stream && stream.isTTY); + return translateLevel(level); +} + +module.exports = { + supportsColor: getSupportLevel, + stdout: translateLevel(supportsColor(true, tty.isatty(1))), + stderr: translateLevel(supportsColor(true, tty.isatty(2))) +}; + + +/***/ }), + +/***/ 5260: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Note: since nyc uses this module to output coverage, any lines +// that are in the direct sync flow of nyc's outputCoverage are +// ignored, since we can never get coverage for them. +// grab a reference to node's real process object right away +var process = global.process + +const processOk = function (process) { + return process && + typeof process === 'object' && + typeof process.removeListener === 'function' && + typeof process.emit === 'function' && + typeof process.reallyExit === 'function' && + typeof process.listeners === 'function' && + typeof process.kill === 'function' && + typeof process.pid === 'number' && + typeof process.on === 'function' +} + +// some kind of non-node environment, just no-op +/* istanbul ignore if */ +if (!processOk(process)) { + module.exports = function () { + return function () {} + } +} else { + var assert = __webpack_require__(2357) + var signals = __webpack_require__(4654) + var isWin = /^win/i.test(process.platform) + + var EE = __webpack_require__(8614) + /* istanbul ignore if */ + if (typeof EE !== 'function') { + EE = EE.EventEmitter + } + + var emitter + if (process.__signal_exit_emitter__) { + emitter = process.__signal_exit_emitter__ + } else { + emitter = process.__signal_exit_emitter__ = new EE() + emitter.count = 0 + emitter.emitted = {} + } + + // Because this emitter is a global, we have to check to see if a + // previous version of this library failed to enable infinite listeners. + // I know what you're about to say. But literally everything about + // signal-exit is a compromise with evil. Get used to it. + if (!emitter.infinite) { + emitter.setMaxListeners(Infinity) + emitter.infinite = true + } + + module.exports = function (cb, opts) { + /* istanbul ignore if */ + if (!processOk(global.process)) { + return function () {} + } + assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') + + if (loaded === false) { + load() + } + + var ev = 'exit' + if (opts && opts.alwaysLast) { + ev = 'afterexit' + } + + var remove = function () { + emitter.removeListener(ev, cb) + if (emitter.listeners('exit').length === 0 && + emitter.listeners('afterexit').length === 0) { + unload() + } + } + emitter.on(ev, cb) + + return remove + } + + var unload = function unload () { + if (!loaded || !processOk(global.process)) { + return + } + loaded = false + + signals.forEach(function (sig) { + try { + process.removeListener(sig, sigListeners[sig]) + } catch (er) {} + }) + process.emit = originalProcessEmit + process.reallyExit = originalProcessReallyExit + emitter.count -= 1 + } + module.exports.unload = unload + + var emit = function emit (event, code, signal) { + /* istanbul ignore if */ + if (emitter.emitted[event]) { + return + } + emitter.emitted[event] = true + emitter.emit(event, code, signal) + } + + // { : , ... } + var sigListeners = {} + signals.forEach(function (sig) { + sigListeners[sig] = function listener () { + /* istanbul ignore if */ + if (!processOk(global.process)) { + return + } + // If there are no other listeners, an exit is coming! + // Simplest way: remove us and then re-send the signal. + // We know that this will kill the process, so we can + // safely emit now. + var listeners = process.listeners(sig) + if (listeners.length === emitter.count) { + unload() + emit('exit', null, sig) + /* istanbul ignore next */ + emit('afterexit', null, sig) + /* istanbul ignore next */ + if (isWin && sig === 'SIGHUP') { + // "SIGHUP" throws an `ENOSYS` error on Windows, + // so use a supported signal instead + sig = 'SIGINT' + } + /* istanbul ignore next */ + process.kill(process.pid, sig) + } + } + }) + + module.exports.signals = function () { + return signals + } + + var loaded = false + + var load = function load () { + if (loaded || !processOk(global.process)) { + return + } + loaded = true + + // This is the number of onSignalExit's that are in play. + // It's important so that we can count the correct number of + // listeners on signals, and don't wait for the other one to + // handle it instead of us. + emitter.count += 1 + + signals = signals.filter(function (sig) { + try { + process.on(sig, sigListeners[sig]) + return true + } catch (er) { + return false + } + }) + + process.emit = processEmit + process.reallyExit = processReallyExit + } + module.exports.load = load + + var originalProcessReallyExit = process.reallyExit + var processReallyExit = function processReallyExit (code) { + /* istanbul ignore if */ + if (!processOk(global.process)) { + return + } + process.exitCode = code || /* istanbul ignore next */ 0 + emit('exit', process.exitCode, null) + /* istanbul ignore next */ + emit('afterexit', process.exitCode, null) + /* istanbul ignore next */ + originalProcessReallyExit.call(process, process.exitCode) + } + + var originalProcessEmit = process.emit + var processEmit = function processEmit (ev, arg) { + if (ev === 'exit' && processOk(global.process)) { + /* istanbul ignore else */ + if (arg !== undefined) { + process.exitCode = arg + } + var ret = originalProcessEmit.apply(this, arguments) + /* istanbul ignore next */ + emit('exit', process.exitCode, null) + /* istanbul ignore next */ + emit('afterexit', process.exitCode, null) + /* istanbul ignore next */ + return ret + } else { + return originalProcessEmit.apply(this, arguments) + } + } +} + + +/***/ }), + +/***/ 5283: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.ondemandscanning_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var ondemandscanning_v1; +(function (ondemandscanning_v1) { + /** + * On-Demand Scanning API + * + * A service to scan container images for vulnerabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const ondemandscanning = google.ondemandscanning('v1'); + * ``` + */ + class Ondemandscanning { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + ondemandscanning_v1.Ondemandscanning = Ondemandscanning; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + ondemandscanning_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.scans = new Resource$Projects$Locations$Scans(this.context); + } + } + ondemandscanning_v1.Resource$Projects$Locations = Resource$Projects$Locations; + 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://ondemandscanning.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ondemandscanning.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ondemandscanning.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://ondemandscanning.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(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://ondemandscanning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ondemandscanning_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scans { + constructor(context) { + this.context = context; + this.vulnerabilities = + new Resource$Projects$Locations$Scans$Vulnerabilities(this.context); + } + analyzePackages(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://ondemandscanning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scans:analyzePackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ondemandscanning_v1.Resource$Projects$Locations$Scans = Resource$Projects$Locations$Scans; + class Resource$Projects$Locations$Scans$Vulnerabilities { + 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://ondemandscanning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/vulnerabilities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + ondemandscanning_v1.Resource$Projects$Locations$Scans$Vulnerabilities = Resource$Projects$Locations$Scans$Vulnerabilities; +})(ondemandscanning_v1 = exports.ondemandscanning_v1 || (exports.ondemandscanning_v1 = {})); + + +/***/ }), + +/***/ 5285: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.androidpublisher_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var androidpublisher_v3; +(function (androidpublisher_v3) { + /** + * Google Play Android Developer API + * + * Lets Android application developers access their Google Play accounts. At a high level, the expected workflow is to "insert" an Edit, make changes as necessary, and then "commit" it. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v3'); + * ``` + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.applications = new Resource$Applications(this.context); + this.edits = new Resource$Edits(this.context); + this.externaltransactions = new Resource$Externaltransactions(this.context); + this.generatedapks = new Resource$Generatedapks(this.context); + this.grants = new Resource$Grants(this.context); + this.inappproducts = new Resource$Inappproducts(this.context); + this.internalappsharingartifacts = + new Resource$Internalappsharingartifacts(this.context); + this.monetization = new Resource$Monetization(this.context); + this.orders = new Resource$Orders(this.context); + this.purchases = new Resource$Purchases(this.context); + this.reviews = new Resource$Reviews(this.context); + this.systemapks = new Resource$Systemapks(this.context); + this.users = new Resource$Users(this.context); + } + } + androidpublisher_v3.Androidpublisher = Androidpublisher; + class Resource$Applications { + constructor(context) { + this.context = context; + this.deviceTierConfigs = new Resource$Applications$Devicetierconfigs(this.context); + } + } + androidpublisher_v3.Resource$Applications = Resource$Applications; + class Resource$Applications$Devicetierconfigs { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/deviceTierConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'deviceTierConfigId'], + pathParams: ['deviceTierConfigId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/deviceTierConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Applications$Devicetierconfigs = Resource$Applications$Devicetierconfigs; + class Resource$Edits { + constructor(context) { + this.context = context; + this.apks = new Resource$Edits$Apks(this.context); + this.bundles = new Resource$Edits$Bundles(this.context); + this.countryavailability = new Resource$Edits$Countryavailability(this.context); + this.deobfuscationfiles = new Resource$Edits$Deobfuscationfiles(this.context); + this.details = new Resource$Edits$Details(this.context); + this.expansionfiles = new Resource$Edits$Expansionfiles(this.context); + this.images = new Resource$Edits$Images(this.context); + this.listings = new Resource$Edits$Listings(this.context); + this.testers = new Resource$Edits$Testers(this.context); + this.tracks = new Resource$Edits$Tracks(this.context); + } + commit(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/applications/{packageName}/edits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits = Resource$Edits; + class Resource$Edits$Apks { + constructor(context) { + this.context = context; + } + addexternallyhosted(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Apks = Resource$Edits$Apks; + class Resource$Edits$Bundles { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Bundles = Resource$Edits$Bundles; + class Resource$Edits$Countryavailability { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Countryavailability = Resource$Edits$Countryavailability; + class Resource$Edits$Deobfuscationfiles { + constructor(context) { + this.context = context; + } + upload(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'deobfuscationFileType', + ], + pathParams: [ + 'apkVersionCode', + 'deobfuscationFileType', + 'editId', + 'packageName', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Deobfuscationfiles = Resource$Edits$Deobfuscationfiles; + class Resource$Edits$Details { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Details = Resource$Edits$Details; + class Resource$Edits$Expansionfiles { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Expansionfiles = Resource$Edits$Expansionfiles; + class Resource$Edits$Images { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'language', + 'imageType', + 'imageId', + ], + pathParams: [ + 'editId', + 'imageId', + 'imageType', + 'language', + 'packageName', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteall(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language', 'imageType'], + pathParams: ['editId', 'imageType', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language', 'imageType'], + pathParams: ['editId', 'imageType', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + upload(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName', 'editId', 'language', 'imageType'], + pathParams: ['editId', 'imageType', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Images = Resource$Edits$Images; + class Resource$Edits$Listings { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteall(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Listings = Resource$Edits$Listings; + class Resource$Edits$Testers { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Testers = Resource$Edits$Testers; + class Resource$Edits$Tracks { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Tracks = Resource$Edits$Tracks; + class Resource$Externaltransactions { + constructor(context) { + this.context = context; + } + createexternaltransaction(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+parent}/externalTransactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getexternaltransaction(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + refundexternaltransaction(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+name}:refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Externaltransactions = Resource$Externaltransactions; + class Resource$Generatedapks { + constructor(context) { + this.context = context; + } + download(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode', 'downloadId'], + pathParams: ['downloadId', 'packageName', 'versionCode'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode'], + pathParams: ['packageName', 'versionCode'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Generatedapks = Resource$Generatedapks; + class Resource$Grants { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+parent}/grants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Grants = Resource$Grants; + class Resource$Inappproducts { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Inappproducts = Resource$Inappproducts; + class Resource$Internalappsharingartifacts { + constructor(context) { + this.context = context; + } + uploadapk(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + uploadbundle(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Internalappsharingartifacts = Resource$Internalappsharingartifacts; + class Resource$Monetization { + constructor(context) { + this.context = context; + this.subscriptions = new Resource$Monetization$Subscriptions(this.context); + } + convertRegionPrices(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Monetization = Resource$Monetization; + class Resource$Monetization$Subscriptions { + constructor(context) { + this.context = context; + this.basePlans = new Resource$Monetization$Subscriptions$Baseplans(this.context); + } + archive(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId'], + pathParams: ['packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'productId'], + pathParams: ['packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId'], + pathParams: ['packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'productId'], + pathParams: ['packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Monetization$Subscriptions = Resource$Monetization$Subscriptions; + class Resource$Monetization$Subscriptions$Baseplans { + constructor(context) { + this.context = context; + this.offers = new Resource$Monetization$Subscriptions$Baseplans$Offers(this.context); + } + activate(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId'], + pathParams: ['basePlanId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deactivate(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId'], + pathParams: ['basePlanId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId'], + pathParams: ['basePlanId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + migratePrices(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId'], + pathParams: ['basePlanId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Monetization$Subscriptions$Baseplans = Resource$Monetization$Subscriptions$Baseplans; + class Resource$Monetization$Subscriptions$Baseplans$Offers { + constructor(context) { + this.context = context; + } + activate(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], + pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId'], + pathParams: ['basePlanId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deactivate(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], + pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], + pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], + pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId'], + pathParams: ['basePlanId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], + pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Monetization$Subscriptions$Baseplans$Offers = Resource$Monetization$Subscriptions$Baseplans$Offers; + class Resource$Orders { + constructor(context) { + this.context = context; + } + refund(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'orderId'], + pathParams: ['orderId', 'packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Orders = Resource$Orders; + class Resource$Purchases { + constructor(context) { + this.context = context; + this.products = new Resource$Purchases$Products(this.context); + this.subscriptions = new Resource$Purchases$Subscriptions(this.context); + this.subscriptionsv2 = new Resource$Purchases$Subscriptionsv2(this.context); + this.voidedpurchases = new Resource$Purchases$Voidedpurchases(this.context); + } + } + androidpublisher_v3.Resource$Purchases = Resource$Purchases; + class Resource$Purchases$Products { + constructor(context) { + this.context = context; + } + acknowledge(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + consume(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Products = Resource$Purchases$Products; + class Resource$Purchases$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + defer(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + refund(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revoke(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Subscriptions = Resource$Purchases$Subscriptions; + class Resource$Purchases$Subscriptionsv2 { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'token'], + pathParams: ['packageName', 'token'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Subscriptionsv2 = Resource$Purchases$Subscriptionsv2; + class Resource$Purchases$Voidedpurchases { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Voidedpurchases = Resource$Purchases$Voidedpurchases; + class Resource$Reviews { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'reviewId'], + pathParams: ['packageName', 'reviewId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/reviews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reply(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'reviewId'], + pathParams: ['packageName', 'reviewId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Reviews = Resource$Reviews; + class Resource$Systemapks { + constructor(context) { + this.context = context; + this.variants = new Resource$Systemapks$Variants(this.context); + } + } + androidpublisher_v3.Resource$Systemapks = Resource$Systemapks; + class Resource$Systemapks$Variants { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'versionCode'], + pathParams: ['packageName', 'versionCode'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + download(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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode', 'variantId'], + pathParams: ['packageName', 'variantId', 'versionCode'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode', 'variantId'], + pathParams: ['packageName', 'variantId', 'versionCode'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode'], + pathParams: ['packageName', 'versionCode'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Systemapks$Variants = Resource$Systemapks$Variants; + class Resource$Users { + 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://androidpublisher.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androidpublisher_v3.Resource$Users = Resource$Users; +})(androidpublisher_v3 = exports.androidpublisher_v3 || (exports.androidpublisher_v3 = {})); + + +/***/ }), + +/***/ 5287: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudshell_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudshell_v1; +(function (cloudshell_v1) { + /** + * Cloud Shell API + * + * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudshell = google.cloudshell('v1'); + * ``` + */ + class Cloudshell { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.users = new Resource$Users(this.context); + } + } + cloudshell_v1.Cloudshell = Cloudshell; + class Resource$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://cloudshell.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1.Resource$Operations = Resource$Operations; + class Resource$Users { + constructor(context) { + this.context = context; + this.environments = new Resource$Users$Environments(this.context); + } + } + cloudshell_v1.Resource$Users = Resource$Users; + class Resource$Users$Environments { + constructor(context) { + this.context = context; + } + addPublicKey(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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+environment}:addPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + authorize(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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removePublicKey(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://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+environment}:removePublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudshell.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudshell_v1.Resource$Users$Environments = Resource$Users$Environments; +})(cloudshell_v1 = exports.cloudshell_v1 || (exports.cloudshell_v1 = {})); + + +/***/ }), + +/***/ 5303: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.blogger_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var blogger_v3; +(function (blogger_v3) { + /** + * Blogger API + * + * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const blogger = google.blogger('v3'); + * ``` + */ + class Blogger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.blogs = new Resource$Blogs(this.context); + this.blogUserInfos = new Resource$Bloguserinfos(this.context); + this.comments = new Resource$Comments(this.context); + this.pages = new Resource$Pages(this.context); + this.pageViews = new Resource$Pageviews(this.context); + this.posts = new Resource$Posts(this.context); + this.postUserInfos = new Resource$Postuserinfos(this.context); + this.users = new Resource$Users(this.context); + } + } + blogger_v3.Blogger = Blogger; + class Resource$Blogs { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getByUrl(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/byurl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['url'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listByUser(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Blogs = Resource$Blogs; + class Resource$Bloguserinfos { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'blogId'], + pathParams: ['blogId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Bloguserinfos = Resource$Bloguserinfos; + class Resource$Comments { + constructor(context) { + this.context = context; + } + approve(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listByBlog(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAsSpam(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/spam').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeContent(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Comments = Resource$Comments; + class Resource$Pages { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revert(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Pages = Resource$Pages; + class Resource$Pageviews { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pageviews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Pageviews = Resource$Pageviews; + class Resource$Posts { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getByPath(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/bypath').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'path'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revert(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'q'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Posts = Resource$Posts; + class Resource$Postuserinfos { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'blogId', 'postId'], + pathParams: ['blogId', 'postId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'blogId'], + pathParams: ['blogId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Postuserinfos = Resource$Postuserinfos; + class Resource$Users { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v3.Resource$Users = Resource$Users; +})(blogger_v3 = exports.blogger_v3 || (exports.blogger_v3 = {})); + + +/***/ }), + +/***/ 5304: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinessaccountmanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinessaccountmanagement_v1; +(function (mybusinessaccountmanagement_v1) { + /** + * My Business Account Management API + * + * The My Business Account Management API provides an interface for managing access to a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessaccountmanagement = google.mybusinessaccountmanagement('v1'); + * ``` + */ + class Mybusinessaccountmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.locations = new Resource$Locations(this.context); + } + } + mybusinessaccountmanagement_v1.Mybusinessaccountmanagement = Mybusinessaccountmanagement; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.admins = new Resource$Accounts$Admins(this.context); + this.invitations = new Resource$Accounts$Invitations(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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessaccountmanagement_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Admins { + 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessaccountmanagement_v1.Resource$Accounts$Admins = Resource$Accounts$Admins; + class Resource$Accounts$Invitations { + constructor(context) { + this.context = context; + } + accept(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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + decline(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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:decline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessaccountmanagement_v1.Resource$Accounts$Invitations = Resource$Accounts$Invitations; + class Resource$Locations { + constructor(context) { + this.context = context; + this.admins = new Resource$Locations$Admins(this.context); + } + transfer(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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessaccountmanagement_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Admins { + 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessaccountmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessaccountmanagement_v1.Resource$Locations$Admins = Resource$Locations$Admins; +})(mybusinessaccountmanagement_v1 = exports.mybusinessaccountmanagement_v1 || (exports.mybusinessaccountmanagement_v1 = {})); + + +/***/ }), + +/***/ 5307: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/*global module*/ +var Buffer = __webpack_require__(4149).Buffer; +var DataStream = __webpack_require__(7032); +var jwa = __webpack_require__(1108); +var Stream = __webpack_require__(2413); +var toString = __webpack_require__(8975); +var util = __webpack_require__(1669); +var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; + +function isObject(thing) { + return Object.prototype.toString.call(thing) === '[object Object]'; +} + +function safeJsonParse(thing) { + if (isObject(thing)) + return thing; + try { return JSON.parse(thing); } + catch (e) { return undefined; } +} + +function headerFromJWS(jwsSig) { + var encodedHeader = jwsSig.split('.', 1)[0]; + return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); +} + +function securedInputFromJWS(jwsSig) { + return jwsSig.split('.', 2).join('.'); +} + +function signatureFromJWS(jwsSig) { + return jwsSig.split('.')[2]; +} + +function payloadFromJWS(jwsSig, encoding) { + encoding = encoding || 'utf8'; + var payload = jwsSig.split('.')[1]; + return Buffer.from(payload, 'base64').toString(encoding); +} + +function isValidJws(string) { + return JWS_REGEX.test(string) && !!headerFromJWS(string); +} + +function jwsVerify(jwsSig, algorithm, secretOrKey) { + if (!algorithm) { + var err = new Error("Missing algorithm parameter for jws.verify"); + err.code = "MISSING_ALGORITHM"; + throw err; + } + jwsSig = toString(jwsSig); + var signature = signatureFromJWS(jwsSig); + var securedInput = securedInputFromJWS(jwsSig); + var algo = jwa(algorithm); + return algo.verify(securedInput, signature, secretOrKey); +} + +function jwsDecode(jwsSig, opts) { + opts = opts || {}; + jwsSig = toString(jwsSig); + + if (!isValidJws(jwsSig)) + return null; + + var header = headerFromJWS(jwsSig); + + if (!header) + return null; + + var payload = payloadFromJWS(jwsSig); + if (header.typ === 'JWT' || opts.json) + payload = JSON.parse(payload, opts.encoding); + + return { + header: header, + payload: payload, + signature: signatureFromJWS(jwsSig) + }; +} + +function VerifyStream(opts) { + opts = opts || {}; + var secretOrKey = opts.secret||opts.publicKey||opts.key; + var secretStream = new DataStream(secretOrKey); + this.readable = true; + this.algorithm = opts.algorithm; + this.encoding = opts.encoding; + this.secret = this.publicKey = this.key = secretStream; + this.signature = new DataStream(opts.signature); + this.secret.once('close', function () { + if (!this.signature.writable && this.readable) + this.verify(); + }.bind(this)); + + this.signature.once('close', function () { + if (!this.secret.writable && this.readable) + this.verify(); + }.bind(this)); +} +util.inherits(VerifyStream, Stream); +VerifyStream.prototype.verify = function verify() { + try { + var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); + var obj = jwsDecode(this.signature.buffer, this.encoding); + this.emit('done', valid, obj); + this.emit('data', valid); + this.emit('end'); + this.readable = false; + return valid; + } catch (e) { + this.readable = false; + this.emit('error', e); + this.emit('close'); + } +}; + +VerifyStream.decode = jwsDecode; +VerifyStream.isValid = isValidJws; +VerifyStream.verify = jwsVerify; + +module.exports = VerifyStream; + + +/***/ }), + +/***/ 5312: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.games_v1 = exports.auth = exports.games = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7013); +Object.defineProperty(exports, "games_v1", { enumerable: true, get: function () { return v1_1.games_v1; } }); +exports.VERSIONS = { + v1: v1_1.games_v1.Games, +}; +function games(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('games', versionOrOptions, exports.VERSIONS, this); +} +exports.games = games; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5340: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vpcaccess_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vpcaccess_v1; +(function (vpcaccess_v1) { + /** + * Serverless VPC Access API + * + * API for managing VPC access connectors. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vpcaccess = google.vpcaccess('v1'); + * ``` + */ + class Vpcaccess { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + vpcaccess_v1.Vpcaccess = Vpcaccess; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + vpcaccess_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connectors = new Resource$Projects$Locations$Connectors(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.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://vpcaccess.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vpcaccess_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectors { + 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://vpcaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vpcaccess.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vpcaccess.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vpcaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vpcaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vpcaccess_v1.Resource$Projects$Locations$Connectors = Resource$Projects$Locations$Connectors; + class Resource$Projects$Locations$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://vpcaccess.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vpcaccess.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + vpcaccess_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(vpcaccess_v1 = exports.vpcaccess_v1 || (exports.vpcaccess_v1 = {})); + + +/***/ }), + +/***/ 5356: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + +function isObject(o) { + return Object.prototype.toString.call(o) === '[object Object]'; +} + +function isPlainObject(o) { + var ctor,prot; + + if (isObject(o) === false) return false; + + // If has modified constructor + ctor = o.constructor; + if (ctor === undefined) return true; + + // If has modified prototype + prot = ctor.prototype; + if (isObject(prot) === false) return false; + + // If constructor does not have an Object-specific method + if (prot.hasOwnProperty('isPrototypeOf') === false) { + return false; + } + + // Most likely a plain Object + return true; +} + +exports.isPlainObject = isPlainObject; + + +/***/ }), + +/***/ 5358: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.analyticshub_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var analyticshub_v1; +(function (analyticshub_v1) { + /** + * Analytics Hub API + * + * Exchange data and analytics assets securely and efficiently. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticshub = google.analyticshub('v1'); + * ``` + */ + class Analyticshub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + analyticshub_v1.Analyticshub = Analyticshub; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + analyticshub_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.dataExchanges = new Resource$Organizations$Locations$Dataexchanges(this.context); + } + } + analyticshub_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Dataexchanges { + 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+organization}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['organization'], + pathParams: ['organization'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticshub_v1.Resource$Organizations$Locations$Dataexchanges = Resource$Organizations$Locations$Dataexchanges; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + analyticshub_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.dataExchanges = new Resource$Projects$Locations$Dataexchanges(this.context); + } + } + analyticshub_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Dataexchanges { + constructor(context) { + this.context = context; + this.listings = new Resource$Projects$Locations$Dataexchanges$Listings(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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticshub_v1.Resource$Projects$Locations$Dataexchanges = Resource$Projects$Locations$Dataexchanges; + class Resource$Projects$Locations$Dataexchanges$Listings { + 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/listings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/listings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + subscribe(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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticshub.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticshub_v1.Resource$Projects$Locations$Dataexchanges$Listings = Resource$Projects$Locations$Dataexchanges$Listings; +})(analyticshub_v1 = exports.analyticshub_v1 || (exports.analyticshub_v1 = {})); + + +/***/ }), + +/***/ 5360: +/***/ (function(module) { + +module.exports = {"name":"googleapis-common","version":"6.0.4","description":"A common tooling library used by the googleapis npm module. You probably don't want to use this directly.","repository":"googleapis/nodejs-googleapis-common","main":"build/src/index.js","types":"build/src/index.d.ts","files":["build/src","!build/src/**/*.map"],"scripts":{"prebenchmark":"npm run compile","benchmark":"node build/benchmark/bench.js","compile":"tsc -p .","test":"c8 mocha build/test","system-test":"c8 mocha build/system-test --timeout 600000","presystem-test":"npm run compile","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile","lint":"gts check","samples-test":"mocha build/samples-test","docs":"compodoc src/","docs-test":"linkinator docs","webpack":"webpack","browser-test":"karma start","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","clean":"gts clean","precompile":"gts clean"},"keywords":[],"author":"Google LLC","license":"Apache-2.0","dependencies":{"extend":"^3.0.2","gaxios":"^5.0.1","google-auth-library":"^8.0.2","qs":"^6.7.0","url-template":"^2.0.8","uuid":"^9.0.0"},"devDependencies":{"@compodoc/compodoc":"^1.1.9","@types/execa":"^0.9.0","@types/extend":"^3.0.1","@types/mocha":"^9.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/nock":"^10.0.3","@types/proxyquire":"^1.3.28","@types/qs":"^6.5.3","@types/sinon":"^10.0.0","@types/tmp":"0.2.3","@types/url-template":"^2.0.28","@types/uuid":"^8.0.0","c8":"^7.0.0","codecov":"^3.5.0","execa":"^5.0.0","gts":"^3.1.0","http2spy":"^2.0.0","is-docker":"^2.0.0","karma":"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","linkinator":"^3.1.0","mocha":"^9.2.2","mv":"^2.1.1","ncp":"^2.0.0","nock":"^13.0.0","null-loader":"^4.0.0","proxyquire":"^2.1.3","puppeteer":"^18.2.1","sinon":"^14.0.0","tmp":"^0.2.0","ts-loader":"^8.0.0","typescript":"^4.6.4","webpack":"^5.30.0","webpack-cli":"^4.0.0"},"engines":{"node":">=12.0.0"}}; + +/***/ }), + +/***/ 5369: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkehub_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkehub_v1alpha2; +(function (gkehub_v1alpha2) { + /** + * GKE Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkehub = google.gkehub('v1alpha2'); + * ``` + */ + class Gkehub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gkehub_v1alpha2.Gkehub = Gkehub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gkehub_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + this.memberships = new Resource$Projects$Locations$Memberships(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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.memberships = new Resource$Projects$Locations$Global$Memberships(this.context); + } + } + gkehub_v1alpha2.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Memberships { + constructor(context) { + this.context = context; + } + initializeHub(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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+project}:initializeHub').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1alpha2.Resource$Projects$Locations$Global$Memberships = Resource$Projects$Locations$Global$Memberships; + class Resource$Projects$Locations$Memberships { + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateConnectManifest(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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1alpha2.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; + 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://gkehub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + gkehub_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gkehub_v1alpha2 = exports.gkehub_v1alpha2 || (exports.gkehub_v1alpha2 = {})); + + +/***/ }), + +/***/ 5374: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.plus_v1 = exports.auth = exports.plus = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6615); +Object.defineProperty(exports, "plus_v1", { enumerable: true, get: function () { return v1_1.plus_v1; } }); +exports.VERSIONS = { + v1: v1_1.plus_v1.Plus, +}; +function plus(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('plus', versionOrOptions, exports.VERSIONS, this); +} +exports.plus = plus; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5383: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.travelimpactmodel_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var travelimpactmodel_v1; +(function (travelimpactmodel_v1) { + /** + * Travel Impact Model API + * + * Travel Impact Model API lets you query travel carbon emission estimates. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const travelimpactmodel = google.travelimpactmodel('v1'); + * ``` + */ + class Travelimpactmodel { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.flights = new Resource$Flights(this.context); + } + } + travelimpactmodel_v1.Travelimpactmodel = Travelimpactmodel; + class Resource$Flights { + constructor(context) { + this.context = context; + } + computeFlightEmissions(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://travelimpactmodel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/flights:computeFlightEmissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + travelimpactmodel_v1.Resource$Flights = Resource$Flights; +})(travelimpactmodel_v1 = exports.travelimpactmodel_v1 || (exports.travelimpactmodel_v1 = {})); + + +/***/ }), + +/***/ 5397: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +exports.byteLength = byteLength +exports.toByteArray = toByteArray +exports.fromByteArray = fromByteArray + +var lookup = [] +var revLookup = [] +var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array + +var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' +for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i] + revLookup[code.charCodeAt(i)] = i +} + +// Support decoding URL-safe base64 strings, as Node.js does. +// See: https://en.wikipedia.org/wiki/Base64#URL_applications +revLookup['-'.charCodeAt(0)] = 62 +revLookup['_'.charCodeAt(0)] = 63 + +function getLens (b64) { + var len = b64.length + + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4') + } + + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 + var validLen = b64.indexOf('=') + if (validLen === -1) validLen = len + + var placeHoldersLen = validLen === len + ? 0 + : 4 - (validLen % 4) + + return [validLen, placeHoldersLen] +} + +// base64 is 4/3 + up to two characters of the original data +function byteLength (b64) { + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} + +function _byteLength (b64, validLen, placeHoldersLen) { + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} + +function toByteArray (b64) { + var tmp + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) + + var curByte = 0 + + // if there are placeholders, only get up to the last complete 4 chars + var len = placeHoldersLen > 0 + ? validLen - 4 + : validLen + + var i + for (i = 0; i < len; i += 4) { + tmp = + (revLookup[b64.charCodeAt(i)] << 18) | + (revLookup[b64.charCodeAt(i + 1)] << 12) | + (revLookup[b64.charCodeAt(i + 2)] << 6) | + revLookup[b64.charCodeAt(i + 3)] + arr[curByte++] = (tmp >> 16) & 0xFF + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } + + if (placeHoldersLen === 2) { + tmp = + (revLookup[b64.charCodeAt(i)] << 2) | + (revLookup[b64.charCodeAt(i + 1)] >> 4) + arr[curByte++] = tmp & 0xFF + } + + if (placeHoldersLen === 1) { + tmp = + (revLookup[b64.charCodeAt(i)] << 10) | + (revLookup[b64.charCodeAt(i + 1)] << 4) | + (revLookup[b64.charCodeAt(i + 2)] >> 2) + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } + + return arr +} + +function tripletToBase64 (num) { + return lookup[num >> 18 & 0x3F] + + lookup[num >> 12 & 0x3F] + + lookup[num >> 6 & 0x3F] + + lookup[num & 0x3F] +} + +function encodeChunk (uint8, start, end) { + var tmp + var output = [] + for (var i = start; i < end; i += 3) { + tmp = + ((uint8[i] << 16) & 0xFF0000) + + ((uint8[i + 1] << 8) & 0xFF00) + + (uint8[i + 2] & 0xFF) + output.push(tripletToBase64(tmp)) + } + return output.join('') +} + +function fromByteArray (uint8) { + var tmp + var len = uint8.length + var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes + var parts = [] + var maxChunkLength = 16383 // must be multiple of 3 + + // go through the array every three bytes, we'll deal with trailing stuff later + for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { + parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) + } + + // pad the end with zeros, but make sure to not forget the extra bytes + if (extraBytes === 1) { + tmp = uint8[len - 1] + parts.push( + lookup[tmp >> 2] + + lookup[(tmp << 4) & 0x3F] + + '==' + ) + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1] + parts.push( + lookup[tmp >> 10] + + lookup[(tmp >> 4) & 0x3F] + + lookup[(tmp << 2) & 0x3F] + + '=' + ) + } + + return parts.join('') +} + + +/***/ }), + +/***/ 5402: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = Octokit; + +const { request } = __webpack_require__(1753); +const Hook = __webpack_require__(3523); + +const parseClientOptions = __webpack_require__(8294); + +function Octokit(plugins, options) { + options = options || {}; + const hook = new Hook.Collection(); + const log = Object.assign( + { + debug: () => {}, + info: () => {}, + warn: console.warn, + error: console.error + }, + options && options.log + ); + const api = { + hook, + log, + request: request.defaults(parseClientOptions(options, log, hook)) + }; + + plugins.forEach(pluginFunction => pluginFunction(api, options)); + + return api; +} + + +/***/ }), + +/***/ 5421: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.createAPIRequest = void 0; +const google_auth_library_1 = __webpack_require__(3668); +const qs = __webpack_require__(7386); +const stream = __webpack_require__(2413); +const urlTemplate = __webpack_require__(4714); +const uuid = __webpack_require__(177); +const extend = __webpack_require__(9374); +const isbrowser_1 = __webpack_require__(5114); +const h2 = __webpack_require__(2322); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __webpack_require__(5360); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function isReadableStream(obj) { + return (obj !== null && + typeof obj === 'object' && + typeof obj.pipe === 'function' && + obj.readable !== false && + typeof obj._read === 'function' && + typeof obj._readableState === 'object'); +} +function getMissingParams(params, required) { + const missing = new Array(); + required.forEach(param => { + // Is the required param in the params object? + if (params[param] === undefined) { + missing.push(param); + } + }); + // If there are any required params missing, return their names in array, + // otherwise return null + return missing.length > 0 ? missing : null; +} +function createAPIRequest(parameters, callback) { + if (callback) { + createAPIRequestAsync(parameters).then(r => callback(null, r), callback); + } + else { + return createAPIRequestAsync(parameters); + } +} +exports.createAPIRequest = createAPIRequest; +async function createAPIRequestAsync(parameters) { + var _a; + // Combine the GaxiosOptions options passed with this specific + // API call with the global options configured at the API Context + // level, or at the global level. + const options = extend(true, {}, // Ensure we don't leak settings upstream + ((_a = parameters.context.google) === null || _a === void 0 ? void 0 : _a._options) || {}, // Google level options + parameters.context._options || {}, // Per-API options + parameters.options // API call params + ); + const params = extend(true, {}, // New base object + options.params, // Combined global/per-api params + parameters.params // API call params + ); + options.userAgentDirectives = options.userAgentDirectives || []; + const media = params.media || {}; + /** + * In a previous version of this API, the request body was stuffed in a field + * named `resource`. This caused lots of problems, because it's not uncommon + * to have an actual named parameter required which is also named `resource`. + * This meant that users would have to use `resource_` in those cases, which + * pretty much nobody figures out on their own. The request body is now + * documented as being in the `requestBody` property, but we also need to keep + * using `resource` for reasons of back-compat. Cases that need to be covered + * here: + * - user provides just a `resource` with a request body + * - user provides both a `resource` and a `resource_` + * - user provides just a `requestBody` + * - user provides both a `requestBody` and a `resource` + */ + let resource = params.requestBody; + if (!params.requestBody && + params.resource && + (!parameters.requiredParams.includes('resource') || + typeof params.resource !== 'string')) { + resource = params.resource; + delete params.resource; + } + delete params.requestBody; + let authClient = params.auth || options.auth; + const defaultMime = typeof media.body === 'string' ? 'text/plain' : 'application/octet-stream'; + delete params.media; + delete params.auth; + // Grab headers from user provided options + const headers = params.headers || {}; + populateAPIHeader(headers); + delete params.headers; + // Un-alias parameters that were modified due to conflicts with reserved names + Object.keys(params).forEach(key => { + if (key.slice(-1) === '_') { + const newKey = key.slice(0, -1); + params[newKey] = params[key]; + delete params[key]; + } + }); + // Check for missing required parameters in the API request + const missingParams = getMissingParams(params, parameters.requiredParams); + if (missingParams) { + // Some params are missing - stop further operations and inform the + // developer which required params are not included in the request + throw new Error('Missing required parameters: ' + missingParams.join(', ')); + } + // Parse urls + if (options.url) { + options.url = urlTemplate.parse(options.url).expand(params); + } + if (parameters.mediaUrl) { + parameters.mediaUrl = urlTemplate.parse(parameters.mediaUrl).expand(params); + } + // Rewrite url if rootUrl is globally set + if (parameters.context._options.rootUrl !== undefined && + options.url !== undefined) { + const originalUrl = new URL(options.url); + const path = originalUrl.href.substr(originalUrl.origin.length); + options.url = new URL(path, parameters.context._options.rootUrl).href; + } + // When forming the querystring, override the serializer so that array + // values are serialized like this: + // myParams: ['one', 'two'] ---> 'myParams=one&myParams=two' + // This serializer also encodes spaces in the querystring as `%20`, + // whereas the default serializer in gaxios encodes to a `+`. + options.paramsSerializer = params => { + return qs.stringify(params, { arrayFormat: 'repeat' }); + }; + // delete path params from the params object so they do not end up in query + parameters.pathParams.forEach(param => delete params[param]); + // if authClient is actually a string, use it as an API KEY + if (typeof authClient === 'string') { + params.key = params.key || authClient; + authClient = undefined; + } + function multipartUpload(multipart) { + const boundary = uuid.v4(); + const finale = `--${boundary}--`; + const rStream = new stream.PassThrough({ + flush(callback) { + this.push('\r\n'); + this.push(finale); + callback(); + }, + }); + const pStream = new ProgressStream(); + const isStream = isReadableStream(multipart[1].body); + headers['content-type'] = `multipart/related; boundary=${boundary}`; + for (const part of multipart) { + const preamble = `--${boundary}\r\ncontent-type: ${part['content-type']}\r\n\r\n`; + rStream.push(preamble); + if (typeof part.body === 'string') { + rStream.push(part.body); + rStream.push('\r\n'); + } + else { + // Gaxios does not natively support onUploadProgress in node.js. + // Pipe through the pStream first to read the number of bytes read + // for the purpose of tracking progress. + pStream.on('progress', bytesRead => { + if (options.onUploadProgress) { + options.onUploadProgress({ bytesRead }); + } + }); + part.body.pipe(pStream).pipe(rStream); + } + } + if (!isStream) { + rStream.push(finale); + rStream.push(null); + } + options.data = rStream; + } + function browserMultipartUpload(multipart) { + const boundary = uuid.v4(); + const finale = `--${boundary}--`; + headers['content-type'] = `multipart/related; boundary=${boundary}`; + let content = ''; + for (const part of multipart) { + const preamble = `--${boundary}\r\ncontent-type: ${part['content-type']}\r\n\r\n`; + content += preamble; + if (typeof part.body === 'string') { + content += part.body; + content += '\r\n'; + } + } + content += finale; + options.data = content; + } + if (parameters.mediaUrl && media.body) { + options.url = parameters.mediaUrl; + if (resource) { + params.uploadType = 'multipart'; + const multipart = [ + { 'content-type': 'application/json', body: JSON.stringify(resource) }, + { + 'content-type': media.mimeType || (resource && resource.mimeType) || defaultMime, + body: media.body, + }, + ]; + if (!(0, isbrowser_1.isBrowser)()) { + // gaxios doesn't support multipart/related uploads, so it has to + // be implemented here. + multipartUpload(multipart); + } + else { + browserMultipartUpload(multipart); + } + } + else { + params.uploadType = 'media'; + Object.assign(headers, { 'content-type': media.mimeType || defaultMime }); + options.data = media.body; + } + } + else { + options.data = resource || undefined; + } + options.headers = extend(true, options.headers || {}, headers); + options.params = params; + if (!(0, isbrowser_1.isBrowser)()) { + options.headers['Accept-Encoding'] = 'gzip'; + options.userAgentDirectives.push({ + product: 'google-api-nodejs-client', + version: pkg.version, + comment: 'gzip', + }); + const userAgent = options.userAgentDirectives + .map(d => { + let line = `${d.product}/${d.version}`; + if (d.comment) { + line += ` (${d.comment})`; + } + return line; + }) + .join(' '); + options.headers['User-Agent'] = userAgent; + } + // By default gaxios treats any 2xx as valid, and all non 2xx status + // codes as errors. This is a problem for HTTP 304s when used along + // with an eTag. + if (!options.validateStatus) { + options.validateStatus = status => { + return (status >= 200 && status < 300) || status === 304; + }; + } + // Retry by default + options.retry = options.retry === undefined ? true : options.retry; + delete options.auth; // is overridden by our auth code + // Perform the HTTP request. NOTE: this function used to return a + // mikeal/request object. Since the transition to Axios, the method is + // now void. This may be a source of confusion for users upgrading from + // version 24.0 -> 25.0 or up. + if (authClient && typeof authClient === 'object') { + if (options.http2) { + const authHeaders = await authClient.getRequestHeaders(options.url); + const mooOpts = Object.assign({}, options); + mooOpts.headers = Object.assign(mooOpts.headers, authHeaders); + return h2.request(mooOpts); + } + else { + return authClient.request(options); + } + } + else { + return new google_auth_library_1.DefaultTransporter().request(options); + } +} +/** + * Basic Passthrough Stream that records the number of bytes read + * every time the cursor is moved. + */ +class ProgressStream extends stream.Transform { + constructor() { + super(...arguments); + this.bytesRead = 0; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + _transform(chunk, encoding, callback) { + this.bytesRead += chunk.length; + this.emit('progress', this.bytesRead); + this.push(chunk); + callback(); + } +} +function populateAPIHeader(headers) { + // TODO: we should eventually think about adding browser support for this + // populating the gl-web header (web support should also be added to + // google-auth-library-nodejs). + if (!(0, isbrowser_1.isBrowser)()) { + headers['x-goog-api-client'] = `gdcl/${pkg.version} gl-node/${process.versions.node}`; + } +} +//# sourceMappingURL=apirequest.js.map + +/***/ }), + +/***/ 5424: +/***/ (function(__unusedmodule, exports) { + +"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.doubleclickbidmanager_v1 = void 0; +var doubleclickbidmanager_v1; +(function (doubleclickbidmanager_v1) { + /** + * DoubleClick Bid Manager API + * + * DoubleClick Bid Manager API allows users to manage and create campaigns and reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v1'); + * ``` + */ + class Doubleclickbidmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + doubleclickbidmanager_v1.Doubleclickbidmanager = Doubleclickbidmanager; +})(doubleclickbidmanager_v1 = exports.doubleclickbidmanager_v1 || (exports.doubleclickbidmanager_v1 = {})); + + +/***/ }), + +/***/ 5453: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var once = __webpack_require__(6049) +var eos = __webpack_require__(3009) +var fs = __webpack_require__(5747) // we only need fs to get the ReadStream and WriteStream prototypes + +var noop = function () {} +var ancient = /^v?\.0/.test(process.version) + +var isFn = function (fn) { + return typeof fn === 'function' +} + +var isFS = function (stream) { + if (!ancient) return false // newer node version do not need to care about fs is a special way + if (!fs) return false // browser + return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close) +} + +var isRequest = function (stream) { + return stream.setHeader && isFn(stream.abort) +} + +var destroyer = function (stream, reading, writing, callback) { + callback = once(callback) + + var closed = false + stream.on('close', function () { + closed = true + }) + + eos(stream, {readable: reading, writable: writing}, function (err) { + if (err) return callback(err) + closed = true + callback() + }) + + var destroyed = false + return function (err) { + if (closed) return + if (destroyed) return + destroyed = true + + if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks + if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want + + if (isFn(stream.destroy)) return stream.destroy() + + callback(err || new Error('stream was destroyed')) + } +} + +var call = function (fn) { + fn() +} + +var pipe = function (from, to) { + return from.pipe(to) +} + +var pump = function () { + var streams = Array.prototype.slice.call(arguments) + var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop + + if (Array.isArray(streams[0])) streams = streams[0] + if (streams.length < 2) throw new Error('pump requires two streams per minimum') + + var error + var destroys = streams.map(function (stream, i) { + var reading = i < streams.length - 1 + var writing = i > 0 + return destroyer(stream, reading, writing, function (err) { + if (!error) error = err + if (err) destroys.forEach(call) + if (reading) return + destroys.forEach(call) + callback(error) + }) + }) + + return streams.reduce(pipe) +} + +module.exports = pump + + +/***/ }), + +/***/ 5458: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.serviceusage_v1beta1 = exports.serviceusage_v1 = exports.auth = exports.serviceusage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2644); +Object.defineProperty(exports, "serviceusage_v1", { enumerable: true, get: function () { return v1_1.serviceusage_v1; } }); +const v1beta1_1 = __webpack_require__(735); +Object.defineProperty(exports, "serviceusage_v1beta1", { enumerable: true, get: function () { return v1beta1_1.serviceusage_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.serviceusage_v1.Serviceusage, + v1beta1: v1beta1_1.serviceusage_v1beta1.Serviceusage, +}; +function serviceusage(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('serviceusage', versionOrOptions, exports.VERSIONS, this); +} +exports.serviceusage = serviceusage; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5461: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudtrace_v2beta1 = exports.cloudtrace_v2 = exports.cloudtrace_v1 = exports.auth = exports.cloudtrace = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6845); +Object.defineProperty(exports, "cloudtrace_v1", { enumerable: true, get: function () { return v1_1.cloudtrace_v1; } }); +const v2_1 = __webpack_require__(790); +Object.defineProperty(exports, "cloudtrace_v2", { enumerable: true, get: function () { return v2_1.cloudtrace_v2; } }); +const v2beta1_1 = __webpack_require__(9131); +Object.defineProperty(exports, "cloudtrace_v2beta1", { enumerable: true, get: function () { return v2beta1_1.cloudtrace_v2beta1; } }); +exports.VERSIONS = { + v1: v1_1.cloudtrace_v1.Cloudtrace, + v2: v2_1.cloudtrace_v2.Cloudtrace, + v2beta1: v2beta1_1.cloudtrace_v2beta1.Cloudtrace, +}; +function cloudtrace(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudtrace', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudtrace = cloudtrace; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5477: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.siteVerification_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var siteVerification_v1; +(function (siteVerification_v1) { + /** + * Google Site Verification API + * + * Verifies ownership of websites or domains with Google. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const siteVerification = google.siteVerification('v1'); + * ``` + */ + class Siteverification { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.webResource = new Resource$Webresource(this.context); + } + } + siteVerification_v1.Siteverification = Siteverification; + class Resource$Webresource { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getToken(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['verificationMethod'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + siteVerification_v1.Resource$Webresource = Resource$Webresource; +})(siteVerification_v1 = exports.siteVerification_v1 || (exports.siteVerification_v1 = {})); + + +/***/ }), + +/***/ 5489: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.doubleclickbidmanager_v2 = exports.doubleclickbidmanager_v1 = exports.doubleclickbidmanager_v1_1 = exports.auth = exports.doubleclickbidmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1_1 = __webpack_require__(6339); +Object.defineProperty(exports, "doubleclickbidmanager_v1_1", { enumerable: true, get: function () { return v1_1_1.doubleclickbidmanager_v1_1; } }); +const v1_1 = __webpack_require__(5424); +Object.defineProperty(exports, "doubleclickbidmanager_v1", { enumerable: true, get: function () { return v1_1.doubleclickbidmanager_v1; } }); +const v2_1 = __webpack_require__(4491); +Object.defineProperty(exports, "doubleclickbidmanager_v2", { enumerable: true, get: function () { return v2_1.doubleclickbidmanager_v2; } }); +exports.VERSIONS = { + 'v1.1': v1_1_1.doubleclickbidmanager_v1_1.Doubleclickbidmanager, + v1: v1_1.doubleclickbidmanager_v1.Doubleclickbidmanager, + v2: v2_1.doubleclickbidmanager_v2.Doubleclickbidmanager, +}; +function doubleclickbidmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('doubleclickbidmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.doubleclickbidmanager = doubleclickbidmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5504: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.translate_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var translate_v2; +(function (translate_v2) { + /** + * Google Cloud Translation API + * + * The Google Cloud Translation API lets websites and programs integrate with + * Google Translate programmatically. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const translate = google.translate('v2'); + * ``` + */ + class Translate { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.detections = new Resource$Detections(this.context); + this.languages = new Resource$Languages(this.context); + this.translations = new Resource$Translations(this.context); + } + } + translate_v2.Translate = Translate; + class Resource$Detections { + constructor(context) { + this.context = context; + } + detect(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://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['q'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + translate_v2.Resource$Detections = Resource$Detections; + class Resource$Languages { + 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://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + translate_v2.Resource$Languages = Resource$Languages; + class Resource$Translations { + 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://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['q', 'target'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + translate(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://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + translate_v2.Resource$Translations = Resource$Translations; +})(translate_v2 = exports.translate_v2 || (exports.translate_v2 = {})); + + +/***/ }), + +/***/ 5515: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudbilling_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudbilling_v1beta; +(function (cloudbilling_v1beta) { + /** + * Cloud Billing API + * + * Allows developers to manage billing for their Google Cloud Platform projects programmatically. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbilling = google.cloudbilling('v1beta'); + * ``` + */ + class Cloudbilling { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.v1beta = new Resource$V1beta(this.context); + } + } + cloudbilling_v1beta.Cloudbilling = Cloudbilling; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + } + estimateCostScenario(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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+billingAccount}:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['billingAccount'], + pathParams: ['billingAccount'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$V1beta { + constructor(context) { + this.context = context; + } + estimateCostScenario(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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1beta.Resource$V1beta = Resource$V1beta; +})(cloudbilling_v1beta = exports.cloudbilling_v1beta || (exports.cloudbilling_v1beta = {})); + + +/***/ }), + +/***/ 5516: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.domains_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var domains_v1beta1; +(function (domains_v1beta1) { + /** + * Cloud Domains API + * + * Enables management and configuration of domain names. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const domains = google.domains('v1beta1'); + * ``` + */ + class Domains { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + domains_v1beta1.Domains = Domains; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + domains_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.registrations = new Resource$Projects$Locations$Registrations(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domains_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domains_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Registrations { + constructor(context) { + this.context = context; + } + configureContactSettings(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + configureDnsSettings(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + configureManagementSettings(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetAuthorizationCode(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveAuthorizationCode(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['registration'], + pathParams: ['registration'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveImportableDomains(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveRegisterParameters(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveTransferParameters(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchDomains(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + transfer(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://domains.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + domains_v1beta1.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; +})(domains_v1beta1 = exports.domains_v1beta1 || (exports.domains_v1beta1 = {})); + + +/***/ }), + +/***/ 5525: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sheets_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sheets_v4; +(function (sheets_v4) { + /** + * Google Sheets API + * + * Reads and writes Google Sheets. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sheets = google.sheets('v4'); + * ``` + */ + class Sheets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.spreadsheets = new Resource$Spreadsheets(this.context); + } + } + sheets_v4.Sheets = Sheets; + class Resource$Spreadsheets { + constructor(context) { + this.context = context; + this.developerMetadata = new Resource$Spreadsheets$Developermetadata(this.context); + this.sheets = new Resource$Spreadsheets$Sheets(this.context); + this.values = new Resource$Spreadsheets$Values(this.context); + } + batchUpdate(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getByDataFilter(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:getByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets = Resource$Spreadsheets; + class Resource$Spreadsheets$Developermetadata { + 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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId', 'metadataId'], + pathParams: ['metadataId', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/developerMetadata:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets$Developermetadata = Resource$Spreadsheets$Developermetadata; + class Resource$Spreadsheets$Sheets { + constructor(context) { + this.context = context; + } + copyTo(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId', 'sheetId'], + pathParams: ['sheetId', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets$Sheets = Resource$Spreadsheets$Sheets; + class Resource$Spreadsheets$Values { + constructor(context) { + this.context = context; + } + append(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:append').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchClear(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchClear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchClearByDataFilter(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchGet(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchGetByDataFilter(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdate(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchUpdateByDataFilter(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clear(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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets$Values = Resource$Spreadsheets$Values; +})(sheets_v4 = exports.sheets_v4 || (exports.sheets_v4 = {})); + + +/***/ }), + +/***/ 5529: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebaseml_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebaseml_v1beta2; +(function (firebaseml_v1beta2) { + /** + * Firebase ML API + * + * Access custom machine learning models hosted via Firebase ML. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebaseml = google.firebaseml('v1beta2'); + * ``` + */ + class Firebaseml { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firebaseml_v1beta2.Firebaseml = Firebaseml; + class Resource$Projects { + constructor(context) { + this.context = context; + this.models = new Resource$Projects$Models(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + firebaseml_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Models { + 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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + download(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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseml_v1beta2.Resource$Projects$Models = Resource$Projects$Models; + class Resource$Projects$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://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseml_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations; +})(firebaseml_v1beta2 = exports.firebaseml_v1beta2 || (exports.firebaseml_v1beta2 = {})); + + +/***/ }), + +/***/ 5534: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudbilling_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudbilling_v1; +(function (cloudbilling_v1) { + /** + * Cloud Billing API + * + * Allows developers to manage billing for their Google Cloud Platform projects programmatically. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbilling = google.cloudbilling('v1'); + * ``` + */ + class Cloudbilling { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.projects = new Resource$Projects(this.context); + this.services = new Resource$Services(this.context); + } + } + cloudbilling_v1.Cloudbilling = Cloudbilling; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.projects = new Resource$Billingaccounts$Projects(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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbilling.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbilling.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbilling.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbilling.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Projects { + 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts$Projects = Resource$Billingaccounts$Projects; + class Resource$Projects { + constructor(context) { + this.context = context; + } + getBillingInfo(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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBillingInfo(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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Projects = Resource$Projects; + class Resource$Services { + constructor(context) { + this.context = context; + this.skus = new Resource$Services$Skus(this.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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Services = Resource$Services; + class Resource$Services$Skus { + 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://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbilling_v1.Resource$Services$Skus = Resource$Services$Skus; +})(cloudbilling_v1 = exports.cloudbilling_v1 || (exports.cloudbilling_v1 = {})); + + +/***/ }), + +/***/ 5551: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.accesscontextmanager_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var accesscontextmanager_v1beta; +(function (accesscontextmanager_v1beta) { + /** + * Access Context Manager API + * + * An API for setting attribute based access control to requests to Google Cloud services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const accesscontextmanager = google.accesscontextmanager('v1beta'); + * ``` + */ + class Accesscontextmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accessPolicies = new Resource$Accesspolicies(this.context); + this.operations = new Resource$Operations(this.context); + } + } + accesscontextmanager_v1beta.Accesscontextmanager = Accesscontextmanager; + class Resource$Accesspolicies { + constructor(context) { + this.context = context; + this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context); + this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Accesspolicies = Resource$Accesspolicies; + class Resource$Accesspolicies$Accesslevels { + 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; + class Resource$Accesspolicies$Serviceperimeters { + 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; + class Resource$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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Operations = Resource$Operations; +})(accesscontextmanager_v1beta = exports.accesscontextmanager_v1beta || (exports.accesscontextmanager_v1beta = {})); + + +/***/ }), + +/***/ 5552: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dfareporting_v3_4 = 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 = __webpack_require__(927); +var dfareporting_v3_4; +(function (dfareporting_v3_4) { + /** + * Campaign Manager 360 API + * + * Build applications to efficiently manage large or complex trafficking, reporting, and attribution workflows for Campaign Manager 360. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dfareporting = google.dfareporting('v3.4'); + * ``` + */ + class Dfareporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); + this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); + this.accountPermissions = new Resource$Accountpermissions(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); + this.ads = new Resource$Ads(this.context); + this.advertiserGroups = new Resource$Advertisergroups(this.context); + this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); + this.advertisers = new Resource$Advertisers(this.context); + this.browsers = new Resource$Browsers(this.context); + this.campaignCreativeAssociations = + new Resource$Campaigncreativeassociations(this.context); + this.campaigns = new Resource$Campaigns(this.context); + this.changeLogs = new Resource$Changelogs(this.context); + this.cities = new Resource$Cities(this.context); + this.connectionTypes = new Resource$Connectiontypes(this.context); + this.contentCategories = new Resource$Contentcategories(this.context); + this.conversions = new Resource$Conversions(this.context); + this.countries = new Resource$Countries(this.context); + this.creativeAssets = new Resource$Creativeassets(this.context); + this.creativeFields = new Resource$Creativefields(this.context); + this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); + this.creativeGroups = new Resource$Creativegroups(this.context); + this.creatives = new Resource$Creatives(this.context); + this.customEvents = new Resource$Customevents(this.context); + this.dimensionValues = new Resource$Dimensionvalues(this.context); + this.directorySites = new Resource$Directorysites(this.context); + this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); + this.eventTags = new Resource$Eventtags(this.context); + this.files = new Resource$Files(this.context); + this.floodlightActivities = new Resource$Floodlightactivities(this.context); + this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); + this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); + this.inventoryItems = new Resource$Inventoryitems(this.context); + this.languages = new Resource$Languages(this.context); + this.metros = new Resource$Metros(this.context); + this.mobileApps = new Resource$Mobileapps(this.context); + this.mobileCarriers = new Resource$Mobilecarriers(this.context); + this.operatingSystems = new Resource$Operatingsystems(this.context); + this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); + this.orderDocuments = new Resource$Orderdocuments(this.context); + this.orders = new Resource$Orders(this.context); + this.placementGroups = new Resource$Placementgroups(this.context); + this.placements = new Resource$Placements(this.context); + this.placementStrategies = new Resource$Placementstrategies(this.context); + this.platformTypes = new Resource$Platformtypes(this.context); + this.postalCodes = new Resource$Postalcodes(this.context); + this.projects = new Resource$Projects(this.context); + this.regions = new Resource$Regions(this.context); + this.remarketingLists = new Resource$Remarketinglists(this.context); + this.remarketingListShares = new Resource$Remarketinglistshares(this.context); + this.reports = new Resource$Reports(this.context); + this.sites = new Resource$Sites(this.context); + this.sizes = new Resource$Sizes(this.context); + this.subaccounts = new Resource$Subaccounts(this.context); + this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); + this.targetingTemplates = new Resource$Targetingtemplates(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); + this.userRolePermissions = new Resource$Userrolepermissions(this.context); + this.userRoles = new Resource$Userroles(this.context); + this.videoFormats = new Resource$Videoformats(this.context); + } + } + dfareporting_v3_4.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountpermissions = Resource$Accountpermissions; + class Resource$Accounts { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserlandingpages { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Advertisers = Resource$Advertisers; + class Resource$Browsers { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { + constructor(context) { + this.context = context; + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Campaigns = Resource$Campaigns; + class Resource$Changelogs { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Changelogs = Resource$Changelogs; + class Resource$Cities { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { + constructor(context) { + this.context = context; + } + batchinsert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchupdate(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Conversions = Resource$Conversions; + class Resource$Countries { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { + constructor(context) { + this.context = context; + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativegroups = Resource$Creativegroups; + class Resource$Creatives { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Creatives = Resource$Creatives; + class Resource$Customevents { + constructor(context) { + this.context = context; + } + batchinsert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/customEvents/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Customevents = Resource$Customevents; + class Resource$Dimensionvalues { + constructor(context) { + this.context = context; + } + query(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Eventtags = Resource$Eventtags; + class Resource$Files { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generatetag(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Languages = Resource$Languages; + class Resource$Metros { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { + constructor(context) { + this.context = context; + } + generatetags(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Postalcodes = Resource$Postalcodes; + class Resource$Projects { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Projects = Resource$Projects; + class Resource$Regions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Remarketinglistshares = Resource$Remarketinglistshares; + class Resource$Reports { + constructor(context) { + this.context = context; + this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); + this.files = new Resource$Reports$Files(this.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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { + constructor(context) { + this.context = context; + } + query(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Sites = Resource$Sites; + class Resource$Sizes { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userrolepermissiongroups { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Userrolepermissions = Resource$Userrolepermissions; + class Resource$Userroles { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { + 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://dfareporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + dfareporting_v3_4.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_4 = exports.dfareporting_v3_4 || (exports.dfareporting_v3_4 = {})); + + +/***/ }), + +/***/ 5554: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.kmsinventory_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var kmsinventory_v1; +(function (kmsinventory_v1) { + /** + * KMS Inventory API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const kmsinventory = google.kmsinventory('v1'); + * ``` + */ + class Kmsinventory { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + kmsinventory_v1.Kmsinventory = Kmsinventory; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.protectedResources = new Resource$Organizations$Protectedresources(this.context); + } + } + kmsinventory_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Protectedresources { + constructor(context) { + this.context = context; + } + search(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://kmsinventory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+scope}/protectedResources:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + kmsinventory_v1.Resource$Organizations$Protectedresources = Resource$Organizations$Protectedresources; + class Resource$Projects { + constructor(context) { + this.context = context; + this.cryptoKeys = new Resource$Projects$Cryptokeys(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + kmsinventory_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Cryptokeys { + 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://kmsinventory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + kmsinventory_v1.Resource$Projects$Cryptokeys = Resource$Projects$Cryptokeys; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.keyRings = new Resource$Projects$Locations$Keyrings(this.context); + } + } + kmsinventory_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Keyrings { + constructor(context) { + this.context = context; + this.cryptoKeys = new Resource$Projects$Locations$Keyrings$Cryptokeys(this.context); + } + } + kmsinventory_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; + class Resource$Projects$Locations$Keyrings$Cryptokeys { + constructor(context) { + this.context = context; + } + getProtectedResourcesSummary(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://kmsinventory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/protectedResourcesSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + kmsinventory_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; +})(kmsinventory_v1 = exports.kmsinventory_v1 || (exports.kmsinventory_v1 = {})); + + +/***/ }), + +/***/ 5560: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.workflowexecutions_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var workflowexecutions_v1; +(function (workflowexecutions_v1) { + /** + * Workflow Executions API + * + * Execute workflows created with Workflows API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const workflowexecutions = google.workflowexecutions('v1'); + * ``` + */ + class Workflowexecutions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + workflowexecutions_v1.Workflowexecutions = Workflowexecutions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + workflowexecutions_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.workflows = new Resource$Projects$Locations$Workflows(this.context); + } + } + workflowexecutions_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Workflows { + constructor(context) { + this.context = context; + this.executions = new Resource$Projects$Locations$Workflows$Executions(this.context); + } + triggerPubsubExecution(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://workflowexecutions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+workflow}:triggerPubsubExecution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['workflow'], + pathParams: ['workflow'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflowexecutions_v1.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows; + class Resource$Projects$Locations$Workflows$Executions { + 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://workflowexecutions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://workflowexecutions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflowexecutions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflowexecutions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflowexecutions_v1.Resource$Projects$Locations$Workflows$Executions = Resource$Projects$Locations$Workflows$Executions; +})(workflowexecutions_v1 = exports.workflowexecutions_v1 || (exports.workflowexecutions_v1 = {})); + + +/***/ }), + +/***/ 5561: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// Copyright 2022 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.InvalidSubjectTokenError = exports.InvalidMessageFieldError = exports.InvalidCodeFieldError = exports.InvalidTokenTypeFieldError = exports.InvalidExpirationTimeFieldError = exports.InvalidSuccessFieldError = exports.InvalidVersionFieldError = exports.ExecutableResponseError = exports.ExecutableResponse = void 0; +const SAML_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:saml2'; +const OIDC_SUBJECT_TOKEN_TYPE1 = 'urn:ietf:params:oauth:token-type:id_token'; +const OIDC_SUBJECT_TOKEN_TYPE2 = 'urn:ietf:params:oauth:token-type:jwt'; +/** + * Defines the response of a 3rd party executable run by the pluggable auth client. + */ +class ExecutableResponse { + /** + * Instantiates an ExecutableResponse instance using the provided JSON object + * from the output of the executable. + * @param responseJson Response from a 3rd party executable, loaded from a + * run of the executable or a cached output file. + */ + constructor(responseJson) { + // Check that the required fields exist in the json response. + if (!responseJson.version) { + throw new InvalidVersionFieldError("Executable response must contain a 'version' field."); + } + if (responseJson.success === undefined) { + throw new InvalidSuccessFieldError("Executable response must contain a 'success' field."); + } + this.version = responseJson.version; + this.success = responseJson.success; + // Validate required fields for a successful response. + if (this.success) { + this.expirationTime = responseJson.expiration_time; + this.tokenType = responseJson.token_type; + // Validate token type field. + if (this.tokenType !== SAML_SUBJECT_TOKEN_TYPE && + this.tokenType !== OIDC_SUBJECT_TOKEN_TYPE1 && + this.tokenType !== OIDC_SUBJECT_TOKEN_TYPE2) { + throw new InvalidTokenTypeFieldError("Executable response must contain a 'token_type' field when successful " + + `and it must be one of ${OIDC_SUBJECT_TOKEN_TYPE1}, ${OIDC_SUBJECT_TOKEN_TYPE2}, or ${SAML_SUBJECT_TOKEN_TYPE}.`); + } + // Validate subject token. + if (this.tokenType === SAML_SUBJECT_TOKEN_TYPE) { + if (!responseJson.saml_response) { + throw new InvalidSubjectTokenError(`Executable response must contain a 'saml_response' field when token_type=${SAML_SUBJECT_TOKEN_TYPE}.`); + } + this.subjectToken = responseJson.saml_response; + } + else { + if (!responseJson.id_token) { + throw new InvalidSubjectTokenError("Executable response must contain a 'id_token' field when " + + `token_type=${OIDC_SUBJECT_TOKEN_TYPE1} or ${OIDC_SUBJECT_TOKEN_TYPE2}.`); + } + this.subjectToken = responseJson.id_token; + } + } + else { + // Both code and message must be provided for unsuccessful responses. + if (!responseJson.code) { + throw new InvalidCodeFieldError("Executable response must contain a 'code' field when unsuccessful."); + } + if (!responseJson.message) { + throw new InvalidMessageFieldError("Executable response must contain a 'message' field when unsuccessful."); + } + this.errorCode = responseJson.code; + this.errorMessage = responseJson.message; + } + } + /** + * @return A boolean representing if the response has a valid token. Returns + * true when the response was successful and the token is not expired. + */ + isValid() { + return !this.isExpired() && this.success; + } + /** + * @return A boolean representing if the response is expired. Returns true if the + * provided timeout has passed. + */ + isExpired() { + return (this.expirationTime !== undefined && + this.expirationTime < Math.round(Date.now() / 1000)); + } +} +exports.ExecutableResponse = ExecutableResponse; +/** + * An error thrown by the ExecutableResponse class. + */ +class ExecutableResponseError extends Error { + constructor(message) { + super(message); + Object.setPrototypeOf(this, new.target.prototype); + } +} +exports.ExecutableResponseError = ExecutableResponseError; +/** + * An error thrown when the 'version' field in an executable response is missing or invalid. + */ +class InvalidVersionFieldError extends ExecutableResponseError { +} +exports.InvalidVersionFieldError = InvalidVersionFieldError; +/** + * An error thrown when the 'success' field in an executable response is missing or invalid. + */ +class InvalidSuccessFieldError extends ExecutableResponseError { +} +exports.InvalidSuccessFieldError = InvalidSuccessFieldError; +/** + * An error thrown when the 'expiration_time' field in an executable response is missing or invalid. + */ +class InvalidExpirationTimeFieldError extends ExecutableResponseError { +} +exports.InvalidExpirationTimeFieldError = InvalidExpirationTimeFieldError; +/** + * An error thrown when the 'token_type' field in an executable response is missing or invalid. + */ +class InvalidTokenTypeFieldError extends ExecutableResponseError { +} +exports.InvalidTokenTypeFieldError = InvalidTokenTypeFieldError; +/** + * An error thrown when the 'code' field in an executable response is missing or invalid. + */ +class InvalidCodeFieldError extends ExecutableResponseError { +} +exports.InvalidCodeFieldError = InvalidCodeFieldError; +/** + * An error thrown when the 'message' field in an executable response is missing or invalid. + */ +class InvalidMessageFieldError extends ExecutableResponseError { +} +exports.InvalidMessageFieldError = InvalidMessageFieldError; +/** + * An error thrown when the subject token in an executable response is missing or invalid. + */ +class InvalidSubjectTokenError extends ExecutableResponseError { +} +exports.InvalidSubjectTokenError = InvalidSubjectTokenError; +//# sourceMappingURL=executable-response.js.map + +/***/ }), + +/***/ 5573: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; +const path = __importStar(__webpack_require__(5622)); +/** + * toPosixPath converts the given path to the posix form. On Windows, \\ will be + * replaced with /. + * + * @param pth. Path to transform. + * @return string Posix path. + */ +function toPosixPath(pth) { + return pth.replace(/[\\]/g, '/'); +} +exports.toPosixPath = toPosixPath; +/** + * toWin32Path converts the given path to the win32 form. On Linux, / will be + * replaced with \\. + * + * @param pth. Path to transform. + * @return string Win32 path. + */ +function toWin32Path(pth) { + return pth.replace(/[/]/g, '\\'); +} +exports.toWin32Path = toWin32Path; +/** + * toPlatformPath converts the given path to a platform-specific path. It does + * this by replacing instances of / and \ with the platform-specific path + * separator. + * + * @param pth The path to platformize. + * @return string The platform-specific path. + */ +function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); +} +exports.toPlatformPath = toPlatformPath; +//# sourceMappingURL=path-utils.js.map + +/***/ }), + +/***/ 5582: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const {PassThrough} = __webpack_require__(2413); + +module.exports = options => { + options = Object.assign({}, options); + + const {array} = options; + let {encoding} = options; + const buffer = encoding === 'buffer'; + let objectMode = false; + + if (array) { + objectMode = !(encoding || buffer); + } else { + encoding = encoding || 'utf8'; + } + + if (buffer) { + encoding = null; + } + + let len = 0; + const ret = []; + const stream = new PassThrough({objectMode}); + + if (encoding) { + stream.setEncoding(encoding); + } + + stream.on('data', chunk => { + ret.push(chunk); + + if (objectMode) { + len = ret.length; + } else { + len += chunk.length; + } + }); + + stream.getBufferedValue = () => { + if (array) { + return ret; + } + + return buffer ? Buffer.concat(ret, len) : ret.join(''); + }; + + stream.getBufferedLength = () => len; + + return stream; +}; + + +/***/ }), + +/***/ 5585: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinessbusinessinformation_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinessbusinessinformation_v1; +(function (mybusinessbusinessinformation_v1) { + /** + * My Business Business Information API + * + * The My Business Business Information API provides an interface for managing business information. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessbusinessinformation = google.mybusinessbusinessinformation('v1'); + * ``` + */ + class Mybusinessbusinessinformation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.attributes = new Resource$Attributes(this.context); + this.categories = new Resource$Categories(this.context); + this.chains = new Resource$Chains(this.context); + this.googleLocations = new Resource$Googlelocations(this.context); + this.locations = new Resource$Locations(this.context); + } + } + mybusinessbusinessinformation_v1.Mybusinessbusinessinformation = Mybusinessbusinessinformation; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.locations = new Resource$Accounts$Locations(this.context); + } + } + mybusinessbusinessinformation_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Locations { + 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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Accounts$Locations = Resource$Accounts$Locations; + class Resource$Attributes { + 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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/attributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Attributes = Resource$Attributes; + class Resource$Categories { + constructor(context) { + this.context = context; + } + batchGet(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/categories:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/categories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Categories = Resource$Categories; + class Resource$Chains { + 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://mybusinessbusinessinformation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/chains:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Chains = Resource$Chains; + class Resource$Googlelocations { + constructor(context) { + this.context = context; + } + search(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleLocations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Googlelocations = Resource$Googlelocations; + class Resource$Locations { + constructor(context) { + this.context = context; + this.attributes = new Resource$Locations$Attributes(this.context); + } + associate(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:associate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clearLocationAssociation(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:clearLocationAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessbusinessinformation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessbusinessinformation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAttributes(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://mybusinessbusinessinformation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getGoogleUpdated(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAttributes(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Attributes { + constructor(context) { + this.context = context; + } + getGoogleUpdated(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://mybusinessbusinessinformation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessbusinessinformation_v1.Resource$Locations$Attributes = Resource$Locations$Attributes; +})(mybusinessbusinessinformation_v1 = exports.mybusinessbusinessinformation_v1 || (exports.mybusinessbusinessinformation_v1 = {})); + + +/***/ }), + +/***/ 5586: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigquerydatatransfer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var bigquerydatatransfer_v1; +(function (bigquerydatatransfer_v1) { + /** + * BigQuery Data Transfer API + * + * Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigquerydatatransfer = google.bigquerydatatransfer('v1'); + * ``` + */ + class Bigquerydatatransfer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigquerydatatransfer_v1.Bigquerydatatransfer = Bigquerydatatransfer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.dataSources = new Resource$Projects$Datasources(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.transferConfigs = new Resource$Projects$Transferconfigs(this.context); + } + enrollDataSources(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enrollDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Datasources { + constructor(context) { + this.context = context; + } + checkValidCreds(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Datasources = Resource$Projects$Datasources; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.dataSources = new Resource$Projects$Locations$Datasources(this.context); + this.transferConfigs = new Resource$Projects$Locations$Transferconfigs(this.context); + } + enrollDataSources(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enrollDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasources { + constructor(context) { + this.context = context; + } + checkValidCreds(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Datasources = Resource$Projects$Locations$Datasources; + class Resource$Projects$Locations$Transferconfigs { + constructor(context) { + this.context = context; + this.runs = new Resource$Projects$Locations$Transferconfigs$Runs(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + scheduleRuns(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startManualRuns(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs = Resource$Projects$Locations$Transferconfigs; + class Resource$Projects$Locations$Transferconfigs$Runs { + constructor(context) { + this.context = context; + this.transferLogs = + new Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs(this.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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs = Resource$Projects$Locations$Transferconfigs$Runs; + class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { + 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs = Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; + class Resource$Projects$Transferconfigs { + constructor(context) { + this.context = context; + this.runs = new Resource$Projects$Transferconfigs$Runs(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + scheduleRuns(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startManualRuns(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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs = Resource$Projects$Transferconfigs; + class Resource$Projects$Transferconfigs$Runs { + constructor(context) { + this.context = context; + this.transferLogs = + new Resource$Projects$Transferconfigs$Runs$Transferlogs(this.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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs = Resource$Projects$Transferconfigs$Runs; + class Resource$Projects$Transferconfigs$Runs$Transferlogs { + 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://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs$Transferlogs = Resource$Projects$Transferconfigs$Runs$Transferlogs; +})(bigquerydatatransfer_v1 = exports.bigquerydatatransfer_v1 || (exports.bigquerydatatransfer_v1 = {})); + + +/***/ }), + +/***/ 5597: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.iamcredentials_v1 = exports.auth = exports.iamcredentials = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4622); +Object.defineProperty(exports, "iamcredentials_v1", { enumerable: true, get: function () { return v1_1.iamcredentials_v1; } }); +exports.VERSIONS = { + v1: v1_1.iamcredentials_v1.Iamcredentials, +}; +function iamcredentials(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('iamcredentials', versionOrOptions, exports.VERSIONS, this); +} +exports.iamcredentials = iamcredentials; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5616: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2012 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.AuthClient = void 0; +const events_1 = __webpack_require__(8614); +const transporters_1 = __webpack_require__(2974); +class AuthClient extends events_1.EventEmitter { + constructor() { + super(...arguments); + this.transporter = new transporters_1.DefaultTransporter(); + this.credentials = {}; + this.eagerRefreshThresholdMillis = 5 * 60 * 1000; + this.forceRefreshOnFailure = false; + } + /** + * Sets the auth credentials. + */ + setCredentials(credentials) { + this.credentials = credentials; + } + /** + * Append additional headers, e.g., x-goog-user-project, shared across the + * classes inheriting AuthClient. This method should be used by any method + * that overrides getRequestMetadataAsync(), which is a shared helper for + * setting request information in both gRPC and HTTP API calls. + * + * @param headers object to append additional headers to. + */ + addSharedMetadataHeaders(headers) { + // quota_project_id, stored in application_default_credentials.json, is set in + // the x-goog-user-project header, to indicate an alternate account for + // billing and quota: + if (!headers['x-goog-user-project'] && // don't override a value the user sets. + this.quotaProjectId) { + headers['x-goog-user-project'] = this.quotaProjectId; + } + return headers; + } +} +exports.AuthClient = AuthClient; +//# sourceMappingURL=authclient.js.map + +/***/ }), + +/***/ 5622: +/***/ (function(module) { + +module.exports = require("path"); + +/***/ }), + +/***/ 5625: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.iap_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var iap_v1; +(function (iap_v1) { + /** + * Cloud Identity-Aware Proxy API + * + * Controls access to cloud applications running on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const iap = google.iap('v1'); + * ``` + */ + class Iap { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.v1 = new Resource$V1(this.context); + } + } + iap_v1.Iap = Iap; + class Resource$Projects { + constructor(context) { + this.context = context; + this.brands = new Resource$Projects$Brands(this.context); + this.iap_tunnel = new Resource$Projects$Iap_tunnel(this.context); + } + } + iap_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Brands { + constructor(context) { + this.context = context; + this.identityAwareProxyClients = + new Resource$Projects$Brands$Identityawareproxyclients(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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iap_v1.Resource$Projects$Brands = Resource$Projects$Brands; + class Resource$Projects$Brands$Identityawareproxyclients { + 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetSecret(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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resetSecret').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iap_v1.Resource$Projects$Brands$Identityawareproxyclients = Resource$Projects$Brands$Identityawareproxyclients; + class Resource$Projects$Iap_tunnel { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Iap_tunnel$Locations(this.context); + } + } + iap_v1.Resource$Projects$Iap_tunnel = Resource$Projects$Iap_tunnel; + class Resource$Projects$Iap_tunnel$Locations { + constructor(context) { + this.context = context; + this.destGroups = new Resource$Projects$Iap_tunnel$Locations$Destgroups(this.context); + } + } + iap_v1.Resource$Projects$Iap_tunnel$Locations = Resource$Projects$Iap_tunnel$Locations; + class Resource$Projects$Iap_tunnel$Locations$Destgroups { + 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/destGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/destGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iap_v1.Resource$Projects$Iap_tunnel$Locations$Destgroups = Resource$Projects$Iap_tunnel$Locations$Destgroups; + class Resource$V1 { + constructor(context) { + this.context = context; + } + 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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getIapSettings(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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://iap.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateIapSettings(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://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + iap_v1.Resource$V1 = Resource$V1; +})(iap_v1 = exports.iap_v1 || (exports.iap_v1 = {})); + + +/***/ }), + +/***/ 5643: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.eventarc_v1beta1 = exports.eventarc_v1 = exports.auth = exports.eventarc = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4656); +Object.defineProperty(exports, "eventarc_v1", { enumerable: true, get: function () { return v1_1.eventarc_v1; } }); +const v1beta1_1 = __webpack_require__(4018); +Object.defineProperty(exports, "eventarc_v1beta1", { enumerable: true, get: function () { return v1beta1_1.eventarc_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.eventarc_v1.Eventarc, + v1beta1: v1beta1_1.eventarc_v1beta1.Eventarc, +}; +function eventarc(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('eventarc', versionOrOptions, exports.VERSIONS, this); +} +exports.eventarc = eventarc; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5644: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.mybusinesslodging_v1 = exports.auth = exports.mybusinesslodging = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7834); +Object.defineProperty(exports, "mybusinesslodging_v1", { enumerable: true, get: function () { return v1_1.mybusinesslodging_v1; } }); +exports.VERSIONS = { + v1: v1_1.mybusinesslodging_v1.Mybusinesslodging, +}; +function mybusinesslodging(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinesslodging', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinesslodging = mybusinesslodging; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5648: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.datacatalog_v1beta1 = exports.datacatalog_v1 = exports.auth = exports.datacatalog = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(542); +Object.defineProperty(exports, "datacatalog_v1", { enumerable: true, get: function () { return v1_1.datacatalog_v1; } }); +const v1beta1_1 = __webpack_require__(5654); +Object.defineProperty(exports, "datacatalog_v1beta1", { enumerable: true, get: function () { return v1beta1_1.datacatalog_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.datacatalog_v1.Datacatalog, + v1beta1: v1beta1_1.datacatalog_v1beta1.Datacatalog, +}; +function datacatalog(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datacatalog', versionOrOptions, exports.VERSIONS, this); +} +exports.datacatalog = datacatalog; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5654: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datacatalog_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datacatalog_v1beta1; +(function (datacatalog_v1beta1) { + /** + * Google Cloud Data Catalog API + * + * A fully managed and highly scalable data discovery and metadata management service. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datacatalog = google.datacatalog('v1beta1'); + * ``` + */ + class Datacatalog { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.catalog = new Resource$Catalog(this.context); + this.entries = new Resource$Entries(this.context); + this.projects = new Resource$Projects(this.context); + } + } + datacatalog_v1beta1.Datacatalog = Datacatalog; + class Resource$Catalog { + constructor(context) { + this.context = context; + } + search(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Catalog = Resource$Catalog; + class Resource$Entries { + constructor(context) { + this.context = context; + } + lookup(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Entries = Resource$Entries; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datacatalog_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.entryGroups = new Resource$Projects$Locations$Entrygroups(this.context); + this.tagTemplates = new Resource$Projects$Locations$Tagtemplates(this.context); + this.taxonomies = new Resource$Projects$Locations$Taxonomies(this.context); + } + } + datacatalog_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Entrygroups { + constructor(context) { + this.context = context; + this.entries = new Resource$Projects$Locations$Entrygroups$Entries(this.context); + this.tags = new Resource$Projects$Locations$Entrygroups$Tags(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; + class Resource$Projects$Locations$Entrygroups$Entries { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; + class Resource$Projects$Locations$Entrygroups$Entries$Tags { + 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries$Tags = Resource$Projects$Locations$Entrygroups$Entries$Tags; + class Resource$Projects$Locations$Entrygroups$Tags { + 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Tags = Resource$Projects$Locations$Entrygroups$Tags; + class Resource$Projects$Locations$Tagtemplates { + constructor(context) { + this.context = context; + this.fields = new Resource$Projects$Locations$Tagtemplates$Fields(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates = Resource$Projects$Locations$Tagtemplates; + class Resource$Projects$Locations$Tagtemplates$Fields { + constructor(context) { + this.context = context; + this.enumValues = + new Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rename(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates$Fields = Resource$Projects$Locations$Tagtemplates$Fields; + class Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues { + constructor(context) { + this.context = context; + } + rename(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues = Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues; + class Resource$Projects$Locations$Taxonomies { + constructor(context) { + this.context = context; + this.policyTags = new Resource$Projects$Locations$Taxonomies$Policytags(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies = Resource$Projects$Locations$Taxonomies; + class Resource$Projects$Locations$Taxonomies$Policytags { + 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; +})(datacatalog_v1beta1 = exports.datacatalog_v1beta1 || (exports.datacatalog_v1beta1 = {})); + + +/***/ }), + +/***/ 5660: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.osconfig_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var osconfig_v1beta; +(function (osconfig_v1beta) { + /** + * OS Config API + * + * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const osconfig = google.osconfig('v1beta'); + * ``` + */ + class Osconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + osconfig_v1beta.Osconfig = Osconfig; + class Resource$Projects { + constructor(context) { + this.context = context; + this.guestPolicies = new Resource$Projects$Guestpolicies(this.context); + this.patchDeployments = new Resource$Projects$Patchdeployments(this.context); + this.patchJobs = new Resource$Projects$Patchjobs(this.context); + this.zones = new Resource$Projects$Zones(this.context); + } + } + osconfig_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Guestpolicies { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Guestpolicies = Resource$Projects$Guestpolicies; + class Resource$Projects$Patchdeployments { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Patchdeployments = Resource$Projects$Patchdeployments; + class Resource$Projects$Patchjobs { + constructor(context) { + this.context = context; + this.instanceDetails = new Resource$Projects$Patchjobs$Instancedetails(this.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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + execute(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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; + class Resource$Projects$Patchjobs$Instancedetails { + 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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; + class Resource$Projects$Zones { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Zones$Instances(this.context); + } + } + osconfig_v1beta.Resource$Projects$Zones = Resource$Projects$Zones; + class Resource$Projects$Zones$Instances { + constructor(context) { + this.context = context; + } + lookupEffectiveGuestPolicy(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://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+instance}:lookupEffectiveGuestPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instance'], + pathParams: ['instance'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Zones$Instances = Resource$Projects$Zones$Instances; +})(osconfig_v1beta = exports.osconfig_v1beta || (exports.osconfig_v1beta = {})); + + +/***/ }), + +/***/ 5664: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.networksecurity_v1beta1 = exports.networksecurity_v1 = exports.auth = exports.networksecurity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5093); +Object.defineProperty(exports, "networksecurity_v1", { enumerable: true, get: function () { return v1_1.networksecurity_v1; } }); +const v1beta1_1 = __webpack_require__(8963); +Object.defineProperty(exports, "networksecurity_v1beta1", { enumerable: true, get: function () { return v1beta1_1.networksecurity_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.networksecurity_v1.Networksecurity, + v1beta1: v1beta1_1.networksecurity_v1beta1.Networksecurity, +}; +function networksecurity(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('networksecurity', versionOrOptions, exports.VERSIONS, this); +} +exports.networksecurity = networksecurity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5675: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.policytroubleshooter_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var policytroubleshooter_v1beta; +(function (policytroubleshooter_v1beta) { + /** + * Policy Troubleshooter API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const policytroubleshooter = google.policytroubleshooter('v1beta'); + * ``` + */ + class Policytroubleshooter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iam = new Resource$Iam(this.context); + } + } + policytroubleshooter_v1beta.Policytroubleshooter = Policytroubleshooter; + class Resource$Iam { + constructor(context) { + this.context = context; + } + troubleshoot(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://policytroubleshooter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policytroubleshooter_v1beta.Resource$Iam = Resource$Iam; +})(policytroubleshooter_v1beta = exports.policytroubleshooter_v1beta || (exports.policytroubleshooter_v1beta = {})); + + +/***/ }), + +/***/ 5678: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.discoveryengine_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var discoveryengine_v1alpha; +(function (discoveryengine_v1alpha) { + /** + * Discovery Engine API + * + * Discovery Engine API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1alpha'); + * ``` + */ + class Discoveryengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + discoveryengine_v1alpha.Discoveryengine = Discoveryengine; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.collections = new Resource$Projects$Locations$Collections(this.context); + this.dataStores = new Resource$Projects$Locations$Datastores(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Collections { + constructor(context) { + this.context = context; + this.dataStores = new Resource$Projects$Locations$Collections$Datastores(this.context); + this.operations = new Resource$Projects$Locations$Collections$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections = Resource$Projects$Locations$Collections; + class Resource$Projects$Locations$Collections$Datastores { + constructor(context) { + this.context = context; + this.branches = + new Resource$Projects$Locations$Collections$Datastores$Branches(this.context); + this.models = + new Resource$Projects$Locations$Collections$Datastores$Models(this.context); + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Operations(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Collections$Datastores$Servingconfigs(this.context); + this.userEvents = + new Resource$Projects$Locations$Collections$Datastores$Userevents(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores = Resource$Projects$Locations$Collections$Datastores; + class Resource$Projects$Locations$Collections$Datastores$Branches { + constructor(context) { + this.context = context; + this.documents = + new Resource$Projects$Locations$Collections$Datastores$Branches$Documents(this.context); + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Branches$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Branches = Resource$Projects$Locations$Collections$Datastores$Branches; + class Resource$Projects$Locations$Collections$Datastores$Branches$Documents { + 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Branches$Documents = Resource$Projects$Locations$Collections$Datastores$Branches$Documents; + class Resource$Projects$Locations$Collections$Datastores$Branches$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Branches$Operations = Resource$Projects$Locations$Collections$Datastores$Branches$Operations; + class Resource$Projects$Locations$Collections$Datastores$Models { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Models$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Models = Resource$Projects$Locations$Collections$Datastores$Models; + class Resource$Projects$Locations$Collections$Datastores$Models$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Models$Operations = Resource$Projects$Locations$Collections$Datastores$Models$Operations; + class Resource$Projects$Locations$Collections$Datastores$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Operations = Resource$Projects$Locations$Collections$Datastores$Operations; + class Resource$Projects$Locations$Collections$Datastores$Servingconfigs { + constructor(context) { + this.context = context; + } + recommend(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Servingconfigs = Resource$Projects$Locations$Collections$Datastores$Servingconfigs; + class Resource$Projects$Locations$Collections$Datastores$Userevents { + constructor(context) { + this.context = context; + } + collect(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Userevents = Resource$Projects$Locations$Collections$Datastores$Userevents; + class Resource$Projects$Locations$Collections$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Operations = Resource$Projects$Locations$Collections$Operations; + class Resource$Projects$Locations$Datastores { + constructor(context) { + this.context = context; + this.branches = new Resource$Projects$Locations$Datastores$Branches(this.context); + this.models = new Resource$Projects$Locations$Datastores$Models(this.context); + this.operations = new Resource$Projects$Locations$Datastores$Operations(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Datastores$Servingconfigs(this.context); + this.userEvents = new Resource$Projects$Locations$Datastores$Userevents(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores = Resource$Projects$Locations$Datastores; + class Resource$Projects$Locations$Datastores$Branches { + constructor(context) { + this.context = context; + this.documents = + new Resource$Projects$Locations$Datastores$Branches$Documents(this.context); + this.operations = + new Resource$Projects$Locations$Datastores$Branches$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Branches = Resource$Projects$Locations$Datastores$Branches; + class Resource$Projects$Locations$Datastores$Branches$Documents { + 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Branches$Documents = Resource$Projects$Locations$Datastores$Branches$Documents; + class Resource$Projects$Locations$Datastores$Branches$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Branches$Operations = Resource$Projects$Locations$Datastores$Branches$Operations; + class Resource$Projects$Locations$Datastores$Models { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Datastores$Models$Operations(this.context); + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Models = Resource$Projects$Locations$Datastores$Models; + class Resource$Projects$Locations$Datastores$Models$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Models$Operations = Resource$Projects$Locations$Datastores$Models$Operations; + class Resource$Projects$Locations$Datastores$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Operations = Resource$Projects$Locations$Datastores$Operations; + class Resource$Projects$Locations$Datastores$Servingconfigs { + constructor(context) { + this.context = context; + } + recommend(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Servingconfigs = Resource$Projects$Locations$Datastores$Servingconfigs; + class Resource$Projects$Locations$Datastores$Userevents { + constructor(context) { + this.context = context; + } + collect(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Userevents = Resource$Projects$Locations$Datastores$Userevents; + class Resource$Projects$Locations$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://discoveryengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + discoveryengine_v1alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(discoveryengine_v1alpha = exports.discoveryengine_v1alpha || (exports.discoveryengine_v1alpha = {})); + + +/***/ }), + +/***/ 5682: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudfunctions_v1beta2 = 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 = __webpack_require__(927); +var cloudfunctions_v1beta2; +(function (cloudfunctions_v1beta2) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v1beta2'); + * + * @namespace cloudfunctions + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Cloudfunctions + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v1beta2.Cloudfunctions = Cloudfunctions; + class Resource$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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + call(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1beta2 = exports.cloudfunctions_v1beta2 || (exports.cloudfunctions_v1beta2 = {})); + + +/***/ }), + +/***/ 5691: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.retail_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var retail_v2beta; +(function (retail_v2beta) { + /** + * Retail API + * + * Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const retail = google.retail('v2beta'); + * ``` + */ + class Retail { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + retail_v2beta.Retail = Retail; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + retail_v2beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + retail_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Catalogs { + constructor(context) { + this.context = context; + this.attributesConfig = + new Resource$Projects$Locations$Catalogs$Attributesconfig(this.context); + this.branches = new Resource$Projects$Locations$Catalogs$Branches(this.context); + this.completionData = + new Resource$Projects$Locations$Catalogs$Completiondata(this.context); + this.controls = new Resource$Projects$Locations$Catalogs$Controls(this.context); + this.models = new Resource$Projects$Locations$Catalogs$Models(this.context); + this.operations = new Resource$Projects$Locations$Catalogs$Operations(this.context); + this.placements = new Resource$Projects$Locations$Catalogs$Placements(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Catalogs$Servingconfigs(this.context); + this.userEvents = new Resource$Projects$Locations$Catalogs$Userevents(this.context); + } + completeQuery(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['catalog'], + pathParams: ['catalog'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getAttributesConfig(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getCompletionConfig(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDefaultBranch(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['catalog'], + pathParams: ['catalog'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setDefaultBranch(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['catalog'], + pathParams: ['catalog'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAttributesConfig(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCompletionConfig(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; + class Resource$Projects$Locations$Catalogs$Attributesconfig { + constructor(context) { + this.context = context; + } + addCatalogAttribute(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchRemoveCatalogAttributes(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta/{+attributesConfig}:batchRemoveCatalogAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeCatalogAttribute(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceCatalogAttribute(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Attributesconfig = Resource$Projects$Locations$Catalogs$Attributesconfig; + class Resource$Projects$Locations$Catalogs$Branches { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Catalogs$Branches$Operations(this.context); + this.products = + new Resource$Projects$Locations$Catalogs$Branches$Products(this.context); + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Branches = Resource$Projects$Locations$Catalogs$Branches; + class Resource$Projects$Locations$Catalogs$Branches$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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Branches$Operations = Resource$Projects$Locations$Catalogs$Branches$Operations; + class Resource$Projects$Locations$Catalogs$Branches$Products { + constructor(context) { + this.context = context; + } + addFulfillmentPlaces(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['product'], + pathParams: ['product'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addLocalInventories(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['product'], + pathParams: ['product'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/products:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeFulfillmentPlaces(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['product'], + pathParams: ['product'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeLocalInventories(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['product'], + pathParams: ['product'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInventory(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Branches$Products = Resource$Projects$Locations$Catalogs$Branches$Products; + class Resource$Projects$Locations$Catalogs$Completiondata { + constructor(context) { + this.context = context; + } + import(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Completiondata = Resource$Projects$Locations$Catalogs$Completiondata; + class Resource$Projects$Locations$Catalogs$Controls { + 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; + class Resource$Projects$Locations$Catalogs$Models { + 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + tune(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Models = Resource$Projects$Locations$Catalogs$Models; + class Resource$Projects$Locations$Catalogs$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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; + class Resource$Projects$Locations$Catalogs$Placements { + constructor(context) { + this.context = context; + } + predict(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['placement'], + pathParams: ['placement'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['placement'], + pathParams: ['placement'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Placements = Resource$Projects$Locations$Catalogs$Placements; + class Resource$Projects$Locations$Catalogs$Servingconfigs { + constructor(context) { + this.context = context; + } + addControl(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + predict(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['placement'], + pathParams: ['placement'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeControl(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['placement'], + pathParams: ['placement'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Servingconfigs = Resource$Projects$Locations$Catalogs$Servingconfigs; + class Resource$Projects$Locations$Catalogs$Userevents { + constructor(context) { + this.context = context; + } + collect(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + purge(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rejoin(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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; + class Resource$Projects$Locations$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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + retail_v2beta.Resource$Projects$Operations = Resource$Projects$Operations; +})(retail_v2beta = exports.retail_v2beta || (exports.retail_v2beta = {})); + + +/***/ }), + +/***/ 5707: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * An API for getting cryptographically-secure random bytes. The bytes are + * generated using the Fortuna algorithm devised by Bruce Schneier and + * Niels Ferguson. + * + * Getting strong random bytes is not yet easy to do in javascript. The only + * truish random entropy that can be collected is from the mouse, keyboard, or + * from timing with respect to page loads, etc. This generator makes a poor + * attempt at providing random bytes when those sources haven't yet provided + * enough entropy to initially seed or to reseed the PRNG. + * + * @author Dave Longley + * + * Copyright (c) 2009-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(828); +__webpack_require__(12); +__webpack_require__(4114); +__webpack_require__(7152); + +(function() { + +// forge.random already defined +if(forge.random && forge.random.getBytes) { + module.exports = forge.random; + return; +} + +(function(jQuery) { + +// the default prng plugin, uses AES-128 +var prng_aes = {}; +var _prng_aes_output = new Array(4); +var _prng_aes_buffer = forge.util.createBuffer(); +prng_aes.formatKey = function(key) { + // convert the key into 32-bit integers + var tmp = forge.util.createBuffer(key); + key = new Array(4); + key[0] = tmp.getInt32(); + key[1] = tmp.getInt32(); + key[2] = tmp.getInt32(); + key[3] = tmp.getInt32(); + + // return the expanded key + return forge.aes._expandKey(key, false); +}; +prng_aes.formatSeed = function(seed) { + // convert seed into 32-bit integers + var tmp = forge.util.createBuffer(seed); + seed = new Array(4); + seed[0] = tmp.getInt32(); + seed[1] = tmp.getInt32(); + seed[2] = tmp.getInt32(); + seed[3] = tmp.getInt32(); + return seed; +}; +prng_aes.cipher = function(key, seed) { + forge.aes._updateBlock(key, seed, _prng_aes_output, false); + _prng_aes_buffer.putInt32(_prng_aes_output[0]); + _prng_aes_buffer.putInt32(_prng_aes_output[1]); + _prng_aes_buffer.putInt32(_prng_aes_output[2]); + _prng_aes_buffer.putInt32(_prng_aes_output[3]); + return _prng_aes_buffer.getBytes(); +}; +prng_aes.increment = function(seed) { + // FIXME: do we care about carry or signed issues? + ++seed[3]; + return seed; +}; +prng_aes.md = forge.md.sha256; + +/** + * Creates a new PRNG. + */ +function spawnPrng() { + var ctx = forge.prng.create(prng_aes); + + /** + * Gets random bytes. If a native secure crypto API is unavailable, this + * method tries to make the bytes more unpredictable by drawing from data that + * can be collected from the user of the browser, eg: mouse movement. + * + * If a callback is given, this method will be called asynchronously. + * + * @param count the number of random bytes to get. + * @param [callback(err, bytes)] called once the operation completes. + * + * @return the random bytes in a string. + */ + ctx.getBytes = function(count, callback) { + return ctx.generate(count, callback); + }; + + /** + * Gets random bytes asynchronously. If a native secure crypto API is + * unavailable, this method tries to make the bytes more unpredictable by + * drawing from data that can be collected from the user of the browser, + * eg: mouse movement. + * + * @param count the number of random bytes to get. + * + * @return the random bytes in a string. + */ + ctx.getBytesSync = function(count) { + return ctx.generate(count); + }; + + return ctx; +} + +// create default prng context +var _ctx = spawnPrng(); + +// add other sources of entropy only if window.crypto.getRandomValues is not +// available -- otherwise this source will be automatically used by the prng +var getRandomValues = null; +var globalScope = forge.util.globalScope; +var _crypto = globalScope.crypto || globalScope.msCrypto; +if(_crypto && _crypto.getRandomValues) { + getRandomValues = function(arr) { + return _crypto.getRandomValues(arr); + }; +} + +if(forge.options.usePureJavaScript || + (!forge.util.isNodejs && !getRandomValues)) { + // if this is a web worker, do not use weak entropy, instead register to + // receive strong entropy asynchronously from the main thread + if(typeof window === 'undefined' || window.document === undefined) { + // FIXME: + } + + // get load time entropy + _ctx.collectInt(+new Date(), 32); + + // add some entropy from navigator object + if(typeof(navigator) !== 'undefined') { + var _navBytes = ''; + for(var key in navigator) { + try { + if(typeof(navigator[key]) == 'string') { + _navBytes += navigator[key]; + } + } catch(e) { + /* Some navigator keys might not be accessible, e.g. the geolocation + attribute throws an exception if touched in Mozilla chrome:// + context. + + Silently ignore this and just don't use this as a source of + entropy. */ + } + } + _ctx.collect(_navBytes); + _navBytes = null; + } + + // add mouse and keyboard collectors if jquery is available + if(jQuery) { + // set up mouse entropy capture + jQuery().mousemove(function(e) { + // add mouse coords + _ctx.collectInt(e.clientX, 16); + _ctx.collectInt(e.clientY, 16); + }); + + // set up keyboard entropy capture + jQuery().keypress(function(e) { + _ctx.collectInt(e.charCode, 8); + }); + } +} + +/* Random API */ +if(!forge.random) { + forge.random = _ctx; +} else { + // extend forge.random with _ctx + for(var key in _ctx) { + forge.random[key] = _ctx[key]; + } +} + +// expose spawn PRNG +forge.random.createInstance = spawnPrng; + +module.exports = forge.random; + +})(typeof(jQuery) !== 'undefined' ? jQuery : null); + +})(); + + +/***/ }), + +/***/ 5713: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.contentwarehouse_v1 = exports.auth = exports.contentwarehouse = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2247); +Object.defineProperty(exports, "contentwarehouse_v1", { enumerable: true, get: function () { return v1_1.contentwarehouse_v1; } }); +exports.VERSIONS = { + v1: v1_1.contentwarehouse_v1.Contentwarehouse, +}; +function contentwarehouse(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('contentwarehouse', versionOrOptions, exports.VERSIONS, this); +} +exports.contentwarehouse = contentwarehouse; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5732: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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.StsCredentials = void 0; +const gaxios_1 = __webpack_require__(3597); +const querystring = __webpack_require__(1191); +const transporters_1 = __webpack_require__(2974); +const oauth2common_1 = __webpack_require__(6937); +/** + * Implements the OAuth 2.0 token exchange based on + * https://tools.ietf.org/html/rfc8693 + */ +class StsCredentials extends oauth2common_1.OAuthClientAuthHandler { + /** + * Initializes an STS credentials instance. + * @param tokenExchangeEndpoint The token exchange endpoint. + * @param clientAuthentication The client authentication credentials if + * available. + */ + constructor(tokenExchangeEndpoint, clientAuthentication) { + super(clientAuthentication); + this.tokenExchangeEndpoint = tokenExchangeEndpoint; + this.transporter = new transporters_1.DefaultTransporter(); + } + /** + * Exchanges the provided token for another type of token based on the + * rfc8693 spec. + * @param stsCredentialsOptions The token exchange options used to populate + * the token exchange request. + * @param additionalHeaders Optional additional headers to pass along the + * request. + * @param options Optional additional GCP-specific non-spec defined options + * to send with the request. + * Example: `&options=${encodeUriComponent(JSON.stringified(options))}` + * @return A promise that resolves with the token exchange response containing + * the requested token and its expiration time. + */ + async exchangeToken(stsCredentialsOptions, additionalHeaders, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + options) { + var _a, _b, _c; + const values = { + grant_type: stsCredentialsOptions.grantType, + resource: stsCredentialsOptions.resource, + audience: stsCredentialsOptions.audience, + scope: (_a = stsCredentialsOptions.scope) === null || _a === void 0 ? void 0 : _a.join(' '), + requested_token_type: stsCredentialsOptions.requestedTokenType, + subject_token: stsCredentialsOptions.subjectToken, + subject_token_type: stsCredentialsOptions.subjectTokenType, + actor_token: (_b = stsCredentialsOptions.actingParty) === null || _b === void 0 ? void 0 : _b.actorToken, + actor_token_type: (_c = stsCredentialsOptions.actingParty) === null || _c === void 0 ? void 0 : _c.actorTokenType, + // Non-standard GCP-specific options. + options: options && JSON.stringify(options), + }; + // Remove undefined fields. + Object.keys(values).forEach(key => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof values[key] === 'undefined') { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + delete values[key]; + } + }); + const headers = { + 'Content-Type': 'application/x-www-form-urlencoded', + }; + // Inject additional STS headers if available. + Object.assign(headers, additionalHeaders || {}); + const opts = { + url: this.tokenExchangeEndpoint, + method: 'POST', + headers, + data: querystring.stringify(values), + responseType: 'json', + }; + // Apply OAuth client authentication. + this.applyClientAuthenticationOptions(opts); + try { + const response = await this.transporter.request(opts); + // Successful response. + const stsSuccessfulResponse = response.data; + stsSuccessfulResponse.res = response; + return stsSuccessfulResponse; + } + catch (error) { + // Translate error to OAuthError. + if (error instanceof gaxios_1.GaxiosError && error.response) { + throw (0, oauth2common_1.getErrorFromOAuthErrorResponse)(error.response.data, + // Preserve other fields from the original error. + error); + } + // Request could fail before the server responds. + throw error; + } + } +} +exports.StsCredentials = StsCredentials; +//# sourceMappingURL=stscredentials.js.map + +/***/ }), + +/***/ 5738: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var json_stringify = __webpack_require__(9278).stringify; +var json_parse = __webpack_require__(337); + +module.exports = function(options) { + return { + parse: json_parse(options), + stringify: json_stringify + } +}; +//create the default method members with no options applied for backwards compatibility +module.exports.parse = json_parse(); +module.exports.stringify = json_stringify; + + +/***/ }), + +/***/ 5739: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(9353); + +module.exports = Function.prototype.bind || implementation; + + +/***/ }), + +/***/ 5747: +/***/ (function(module) { + +module.exports = require("fs"); + +/***/ }), + +/***/ 5748: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.classroom_v1 = exports.auth = exports.classroom = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6217); +Object.defineProperty(exports, "classroom_v1", { enumerable: true, get: function () { return v1_1.classroom_v1; } }); +exports.VERSIONS = { + v1: v1_1.classroom_v1.Classroom, +}; +function classroom(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('classroom', versionOrOptions, exports.VERSIONS, this); +} +exports.classroom = classroom; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5751: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.container_v1beta1 = exports.container_v1 = exports.auth = exports.container = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8840); +Object.defineProperty(exports, "container_v1", { enumerable: true, get: function () { return v1_1.container_v1; } }); +const v1beta1_1 = __webpack_require__(6389); +Object.defineProperty(exports, "container_v1beta1", { enumerable: true, get: function () { return v1beta1_1.container_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.container_v1.Container, + v1beta1: v1beta1_1.container_v1beta1.Container, +}; +function container(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('container', versionOrOptions, exports.VERSIONS, this); +} +exports.container = container; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5760: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebaseappcheck_v1beta = exports.firebaseappcheck_v1 = exports.auth = exports.firebaseappcheck = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4956); +Object.defineProperty(exports, "firebaseappcheck_v1", { enumerable: true, get: function () { return v1_1.firebaseappcheck_v1; } }); +const v1beta_1 = __webpack_require__(1657); +Object.defineProperty(exports, "firebaseappcheck_v1beta", { enumerable: true, get: function () { return v1beta_1.firebaseappcheck_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.firebaseappcheck_v1.Firebaseappcheck, + v1beta: v1beta_1.firebaseappcheck_v1beta.Firebaseappcheck, +}; +function firebaseappcheck(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebaseappcheck', versionOrOptions, exports.VERSIONS, this); +} +exports.firebaseappcheck = firebaseappcheck; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5762: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.recommender_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var recommender_v1; +(function (recommender_v1) { + /** + * Recommender API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const recommender = google.recommender('v1'); + * ``` + */ + class Recommender { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + recommender_v1.Recommender = Recommender; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.locations = new Resource$Billingaccounts$Locations(this.context); + } + } + recommender_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Billingaccounts$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Billingaccounts$Locations$Recommenders(this.context); + } + } + recommender_v1.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; + class Resource$Billingaccounts$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = + new Resource$Billingaccounts$Locations$Insighttypes$Insights(this.context); + } + getConfig(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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Billingaccounts$Locations$Insighttypes = Resource$Billingaccounts$Locations$Insighttypes; + class Resource$Billingaccounts$Locations$Insighttypes$Insights { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAccepted(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Billingaccounts$Locations$Insighttypes$Insights = Resource$Billingaccounts$Locations$Insighttypes$Insights; + class Resource$Billingaccounts$Locations$Recommenders { + constructor(context) { + this.context = context; + this.recommendations = + new Resource$Billingaccounts$Locations$Recommenders$Recommendations(this.context); + } + getConfig(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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Billingaccounts$Locations$Recommenders = Resource$Billingaccounts$Locations$Recommenders; + class Resource$Billingaccounts$Locations$Recommenders$Recommendations { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markClaimed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markDismissed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markFailed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markSucceeded(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Billingaccounts$Locations$Recommenders$Recommendations = Resource$Billingaccounts$Locations$Recommenders$Recommendations; + class Resource$Folders { + constructor(context) { + this.context = context; + this.locations = new Resource$Folders$Locations(this.context); + } + } + recommender_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Folders$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Folders$Locations$Recommenders(this.context); + } + } + recommender_v1.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = new Resource$Folders$Locations$Insighttypes$Insights(this.context); + } + } + recommender_v1.Resource$Folders$Locations$Insighttypes = Resource$Folders$Locations$Insighttypes; + class Resource$Folders$Locations$Insighttypes$Insights { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAccepted(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Folders$Locations$Insighttypes$Insights = Resource$Folders$Locations$Insighttypes$Insights; + class Resource$Folders$Locations$Recommenders { + constructor(context) { + this.context = context; + this.recommendations = + new Resource$Folders$Locations$Recommenders$Recommendations(this.context); + } + } + recommender_v1.Resource$Folders$Locations$Recommenders = Resource$Folders$Locations$Recommenders; + class Resource$Folders$Locations$Recommenders$Recommendations { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markClaimed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markDismissed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markFailed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markSucceeded(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Folders$Locations$Recommenders$Recommendations = Resource$Folders$Locations$Recommenders$Recommendations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + recommender_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Organizations$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Organizations$Locations$Recommenders(this.context); + } + } + recommender_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = + new Resource$Organizations$Locations$Insighttypes$Insights(this.context); + } + getConfig(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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Organizations$Locations$Insighttypes = Resource$Organizations$Locations$Insighttypes; + class Resource$Organizations$Locations$Insighttypes$Insights { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAccepted(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Organizations$Locations$Insighttypes$Insights = Resource$Organizations$Locations$Insighttypes$Insights; + class Resource$Organizations$Locations$Recommenders { + constructor(context) { + this.context = context; + this.recommendations = + new Resource$Organizations$Locations$Recommenders$Recommendations(this.context); + } + getConfig(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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Organizations$Locations$Recommenders = Resource$Organizations$Locations$Recommenders; + class Resource$Organizations$Locations$Recommenders$Recommendations { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markClaimed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markDismissed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markFailed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markSucceeded(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Organizations$Locations$Recommenders$Recommendations = Resource$Organizations$Locations$Recommenders$Recommendations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + recommender_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Projects$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Projects$Locations$Recommenders(this.context); + } + } + recommender_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = new Resource$Projects$Locations$Insighttypes$Insights(this.context); + } + getConfig(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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Projects$Locations$Insighttypes = Resource$Projects$Locations$Insighttypes; + class Resource$Projects$Locations$Insighttypes$Insights { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAccepted(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Projects$Locations$Insighttypes$Insights = Resource$Projects$Locations$Insighttypes$Insights; + class Resource$Projects$Locations$Recommenders { + constructor(context) { + this.context = context; + this.recommendations = + new Resource$Projects$Locations$Recommenders$Recommendations(this.context); + } + getConfig(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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Projects$Locations$Recommenders = Resource$Projects$Locations$Recommenders; + class Resource$Projects$Locations$Recommenders$Recommendations { + 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://recommender.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markClaimed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markDismissed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markFailed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markSucceeded(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1.Resource$Projects$Locations$Recommenders$Recommendations = Resource$Projects$Locations$Recommenders$Recommendations; +})(recommender_v1 = exports.recommender_v1 || (exports.recommender_v1 = {})); + + +/***/ }), + +/***/ 5765: +/***/ (function(__unusedmodule, exports) { + +"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.genomics_v1 = void 0; +var genomics_v1; +(function (genomics_v1) { + /** + * Genomics API + * + * Uploads, processes, queries, and searches Genomics data in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const genomics = google.genomics('v1'); + * ``` + */ + class Genomics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + genomics_v1.Genomics = Genomics; +})(genomics_v1 = exports.genomics_v1 || (exports.genomics_v1 = {})); + + +/***/ }), + +/***/ 5766: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.businessprofileperformance_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var businessprofileperformance_v1; +(function (businessprofileperformance_v1) { + /** + * Business Profile Performance API + * + * The Business Profile Performance API allows merchants to fetch performance reports about their business profile on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const businessprofileperformance = google.businessprofileperformance('v1'); + * ``` + */ + class Businessprofileperformance { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + } + } + businessprofileperformance_v1.Businessprofileperformance = Businessprofileperformance; + class Resource$Locations { + constructor(context) { + this.context = context; + this.searchkeywords = new Resource$Locations$Searchkeywords(this.context); + } + fetchMultiDailyMetricsTimeSeries(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://businessprofileperformance.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}:fetchMultiDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDailyMetricsTimeSeries(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://businessprofileperformance.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + businessprofileperformance_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Searchkeywords { + constructor(context) { + this.context = context; + this.impressions = new Resource$Locations$Searchkeywords$Impressions(this.context); + } + } + businessprofileperformance_v1.Resource$Locations$Searchkeywords = Resource$Locations$Searchkeywords; + class Resource$Locations$Searchkeywords$Impressions { + constructor(context) { + this.context = context; + this.monthly = new Resource$Locations$Searchkeywords$Impressions$Monthly(this.context); + } + } + businessprofileperformance_v1.Resource$Locations$Searchkeywords$Impressions = Resource$Locations$Searchkeywords$Impressions; + class Resource$Locations$Searchkeywords$Impressions$Monthly { + 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://businessprofileperformance.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/searchkeywords/impressions/monthly').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + businessprofileperformance_v1.Resource$Locations$Searchkeywords$Impressions$Monthly = Resource$Locations$Searchkeywords$Impressions$Monthly; +})(businessprofileperformance_v1 = exports.businessprofileperformance_v1 || (exports.businessprofileperformance_v1 = {})); + + +/***/ }), + +/***/ 5772: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sasportal_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sasportal_v1alpha1; +(function (sasportal_v1alpha1) { + /** + * SAS Portal API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sasportal = google.sasportal('v1alpha1'); + * ``` + */ + class Sasportal { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.deployments = new Resource$Deployments(this.context); + this.installer = new Resource$Installer(this.context); + this.nodes = new Resource$Nodes(this.context); + this.policies = new Resource$Policies(this.context); + } + } + sasportal_v1alpha1.Sasportal = Sasportal; + class Resource$Customers { + constructor(context) { + this.context = context; + this.deployments = new Resource$Customers$Deployments(this.context); + this.devices = new Resource$Customers$Devices(this.context); + this.nodes = new Resource$Customers$Nodes(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + provisionDeployment(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/customers:provisionDeployment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers = Resource$Customers; + class Resource$Customers$Deployments { + constructor(context) { + this.context = context; + this.devices = new Resource$Customers$Deployments$Devices(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Deployments = Resource$Customers$Deployments; + class Resource$Customers$Deployments$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Deployments$Devices = Resource$Customers$Deployments$Devices; + class Resource$Customers$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signDevice(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Nodes { + constructor(context) { + this.context = context; + this.deployments = new Resource$Customers$Nodes$Deployments(this.context); + this.devices = new Resource$Customers$Nodes$Devices(this.context); + this.nodes = new Resource$Customers$Nodes$Nodes(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; + class Resource$Customers$Nodes$Deployments { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Nodes$Deployments = Resource$Customers$Nodes$Deployments; + class Resource$Customers$Nodes$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Nodes$Devices = Resource$Customers$Nodes$Devices; + class Resource$Customers$Nodes$Nodes { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Nodes$Nodes = Resource$Customers$Nodes$Nodes; + class Resource$Deployments { + constructor(context) { + this.context = context; + this.devices = new Resource$Deployments$Devices(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Deployments = Resource$Deployments; + class Resource$Deployments$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signDevice(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Deployments$Devices = Resource$Deployments$Devices; + class Resource$Installer { + constructor(context) { + this.context = context; + } + generateSecret(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Installer = Resource$Installer; + class Resource$Nodes { + constructor(context) { + this.context = context; + this.deployments = new Resource$Nodes$Deployments(this.context); + this.devices = new Resource$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes = Resource$Nodes; + class Resource$Nodes$Deployments { + constructor(context) { + this.context = context; + this.devices = new Resource$Nodes$Deployments$Devices(this.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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Deployments = Resource$Nodes$Deployments; + class Resource$Nodes$Deployments$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Deployments$Devices = Resource$Nodes$Deployments$Devices; + class Resource$Nodes$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signDevice(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Devices = Resource$Nodes$Devices; + class Resource$Nodes$Nodes { + constructor(context) { + this.context = context; + this.deployments = new Resource$Nodes$Nodes$Deployments(this.context); + this.devices = new Resource$Nodes$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes$Nodes(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes = Resource$Nodes$Nodes; + class Resource$Nodes$Nodes$Deployments { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes$Deployments = Resource$Nodes$Nodes$Deployments; + class Resource$Nodes$Nodes$Devices { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSigned(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; + class Resource$Nodes$Nodes$Nodes { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; + class Resource$Policies { + 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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + set(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + test(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://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sasportal_v1alpha1.Resource$Policies = Resource$Policies; +})(sasportal_v1alpha1 = exports.sasportal_v1alpha1 || (exports.sasportal_v1alpha1 = {})); + + +/***/ }), + +/***/ 5794: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigqueryreservation_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var bigqueryreservation_v1; +(function (bigqueryreservation_v1) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1'); + * ``` + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.capacityCommitments = + new Resource$Projects$Locations$Capacitycommitments(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + getBiReservation(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://bigqueryreservation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAllAssignments(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:searchAllAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAssignments(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBiReservation(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + merge(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + split(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.assignments = + new Resource$Projects$Locations$Reservations$Assignments(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1 = exports.bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = {})); + + +/***/ }), + +/***/ 5830: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2018 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. +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Gaxios = void 0; +const extend_1 = __importDefault(__webpack_require__(9374)); +const https_1 = __webpack_require__(7211); +const node_fetch_1 = __importDefault(__webpack_require__(4454)); +const querystring_1 = __importDefault(__webpack_require__(1191)); +const is_stream_1 = __importDefault(__webpack_require__(323)); +const url_1 = __webpack_require__(8835); +const common_1 = __webpack_require__(2259); +const retry_1 = __webpack_require__(9642); +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fetch = hasFetch() ? window.fetch : node_fetch_1.default; +function hasWindow() { + return typeof window !== 'undefined' && !!window; +} +function hasFetch() { + return hasWindow() && !!window.fetch; +} +function hasBuffer() { + return typeof Buffer !== 'undefined'; +} +function hasHeader(options, header) { + return !!getHeader(options, header); +} +function getHeader(options, header) { + header = header.toLowerCase(); + for (const key of Object.keys((options === null || options === void 0 ? void 0 : options.headers) || {})) { + if (header === key.toLowerCase()) { + return options.headers[key]; + } + } + return undefined; +} +let HttpsProxyAgent; +function loadProxy() { + var _a, _b, _c, _d; + const proxy = ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.HTTPS_PROXY) || + ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.https_proxy) || + ((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c.HTTP_PROXY) || + ((_d = process === null || process === void 0 ? void 0 : process.env) === null || _d === void 0 ? void 0 : _d.http_proxy); + if (proxy) { + HttpsProxyAgent = __webpack_require__(338); + } + return proxy; +} +loadProxy(); +function skipProxy(url) { + var _a; + const noProxyEnv = (_a = process.env.NO_PROXY) !== null && _a !== void 0 ? _a : process.env.no_proxy; + if (!noProxyEnv) { + return false; + } + const noProxyUrls = noProxyEnv.split(','); + const parsedURL = new url_1.URL(url); + return !!noProxyUrls.find(url => { + if (url.startsWith('*.') || url.startsWith('.')) { + url = url.replace(/^\*\./, '.'); + return parsedURL.hostname.endsWith(url); + } + else { + return url === parsedURL.origin || url === parsedURL.hostname; + } + }); +} +// Figure out if we should be using a proxy. Only if it's required, load +// the https-proxy-agent module as it adds startup cost. +function getProxy(url) { + // If there is a match between the no_proxy env variables and the url, then do not proxy + if (skipProxy(url)) { + return undefined; + // If there is not a match between the no_proxy env variables and the url, check to see if there should be a proxy + } + else { + return loadProxy(); + } +} +class Gaxios { + /** + * The Gaxios class is responsible for making HTTP requests. + * @param defaults The default set of options to be used for this instance. + */ + constructor(defaults) { + this.agentCache = new Map(); + this.defaults = defaults || {}; + } + /** + * Perform an HTTP request with the given options. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async request(opts = {}) { + opts = this.validateOpts(opts); + return this._request(opts); + } + async _defaultAdapter(opts) { + const fetchImpl = opts.fetchImplementation || fetch; + const res = (await fetchImpl(opts.url, opts)); + const data = await this.getResponseData(opts, res); + return this.translateResponse(opts, res, data); + } + /** + * Internal, retryable version of the `request` method. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async _request(opts = {}) { + try { + let translatedResponse; + if (opts.adapter) { + translatedResponse = await opts.adapter(opts, this._defaultAdapter.bind(this)); + } + else { + translatedResponse = await this._defaultAdapter(opts); + } + if (!opts.validateStatus(translatedResponse.status)) { + throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); + } + return translatedResponse; + } + catch (e) { + const err = e; + err.config = opts; + const { shouldRetry, config } = await (0, retry_1.getRetryConfig)(err); + if (shouldRetry && config) { + err.config.retryConfig.currentRetryAttempt = + config.retryConfig.currentRetryAttempt; + return this._request(err.config); + } + throw err; + } + } + async getResponseData(opts, res) { + switch (opts.responseType) { + case 'stream': + return res.body; + case 'json': { + let data = await res.text(); + try { + data = JSON.parse(data); + } + catch (_a) { + // continue + } + return data; + } + case 'arraybuffer': + return res.arrayBuffer(); + case 'blob': + return res.blob(); + default: + return res.text(); + } + } + /** + * Validates the options, and merges them with defaults. + * @param opts The original options passed from the client. + */ + validateOpts(options) { + const opts = (0, extend_1.default)(true, {}, this.defaults, options); + if (!opts.url) { + throw new Error('URL is required.'); + } + // baseUrl has been deprecated, remove in 2.0 + const baseUrl = opts.baseUrl || opts.baseURL; + if (baseUrl) { + opts.url = baseUrl + opts.url; + } + opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; + if (opts.params && Object.keys(opts.params).length > 0) { + let additionalQueryParams = opts.paramsSerializer(opts.params); + if (additionalQueryParams.startsWith('?')) { + additionalQueryParams = additionalQueryParams.slice(1); + } + const prefix = opts.url.includes('?') ? '&' : '?'; + opts.url = opts.url + prefix + additionalQueryParams; + } + if (typeof options.maxContentLength === 'number') { + opts.size = options.maxContentLength; + } + if (typeof options.maxRedirects === 'number') { + opts.follow = options.maxRedirects; + } + opts.headers = opts.headers || {}; + if (opts.data) { + const isFormData = typeof FormData === 'undefined' + ? false + : (opts === null || opts === void 0 ? void 0 : opts.data) instanceof FormData; + if (is_stream_1.default.readable(opts.data)) { + opts.body = opts.data; + } + else if (hasBuffer() && Buffer.isBuffer(opts.data)) { + // Do not attempt to JSON.stringify() a Buffer: + opts.body = opts.data; + if (!hasHeader(opts, 'Content-Type')) { + opts.headers['Content-Type'] = 'application/json'; + } + } + else if (typeof opts.data === 'object') { + // If www-form-urlencoded content type has been set, but data is + // provided as an object, serialize the content using querystring: + if (!isFormData) { + if (getHeader(opts, 'content-type') === + 'application/x-www-form-urlencoded') { + opts.body = opts.paramsSerializer(opts.data); + } + else { + // } else if (!(opts.data instanceof FormData)) { + if (!hasHeader(opts, 'Content-Type')) { + opts.headers['Content-Type'] = 'application/json'; + } + opts.body = JSON.stringify(opts.data); + } + } + } + else { + opts.body = opts.data; + } + } + opts.validateStatus = opts.validateStatus || this.validateStatus; + opts.responseType = opts.responseType || 'json'; + if (!opts.headers['Accept'] && opts.responseType === 'json') { + opts.headers['Accept'] = 'application/json'; + } + opts.method = opts.method || 'GET'; + const proxy = getProxy(opts.url); + if (proxy) { + if (this.agentCache.has(proxy)) { + opts.agent = this.agentCache.get(proxy); + } + else { + // Proxy is being used in conjunction with mTLS. + if (opts.cert && opts.key) { + const parsedURL = new url_1.URL(proxy); + opts.agent = new HttpsProxyAgent({ + port: parsedURL.port, + host: parsedURL.host, + protocol: parsedURL.protocol, + cert: opts.cert, + key: opts.key, + }); + } + else { + opts.agent = new HttpsProxyAgent(proxy); + } + this.agentCache.set(proxy, opts.agent); + } + } + else if (opts.cert && opts.key) { + // Configure client for mTLS: + if (this.agentCache.has(opts.key)) { + opts.agent = this.agentCache.get(opts.key); + } + else { + opts.agent = new https_1.Agent({ + cert: opts.cert, + key: opts.key, + }); + this.agentCache.set(opts.key, opts.agent); + } + } + return opts; + } + /** + * By default, throw for any non-2xx status code + * @param status status code from the HTTP response + */ + validateStatus(status) { + return status >= 200 && status < 300; + } + /** + * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) + * @param params key value pars to encode + */ + paramsSerializer(params) { + return querystring_1.default.stringify(params); + } + translateResponse(opts, res, data) { + // headers need to be converted from a map to an obj + const headers = {}; + res.headers.forEach((value, key) => { + headers[key] = value; + }); + return { + config: opts, + data: data, + headers, + status: res.status, + statusText: res.statusText, + // XMLHttpRequestLike + request: { + responseURL: res.url, + }, + }; + } +} +exports.Gaxios = Gaxios; +//# sourceMappingURL=gaxios.js.map + +/***/ }), + +/***/ 5840: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.appengine_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var appengine_v1; +(function (appengine_v1) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1'); + * ``` + */ + class Appengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apps = new Resource$Apps(this.context); + this.projects = new Resource$Projects(this.context); + } + } + appengine_v1.Appengine = Appengine; + class Resource$Apps { + constructor(context) { + this.context = context; + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.firewall = new Resource$Apps$Firewall(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); + this.services = new Resource$Apps$Services(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + repair(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Firewall { + constructor(context) { + this.context = context; + this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); + } + } + appengine_v1.Resource$Apps$Firewall = Resource$Apps$Firewall; + class Resource$Apps$Firewall$Ingressrules { + constructor(context) { + this.context = context; + } + batchUpdate(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Apps$Services { + constructor(context) { + this.context = context; + this.versions = new Resource$Apps$Services$Versions(this.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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Services = Resource$Apps$Services; + class Resource$Apps$Services$Versions { + constructor(context) { + this.context = context; + this.instances = new Resource$Apps$Services$Versions$Instances(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; + class Resource$Apps$Services$Versions$Instances { + constructor(context) { + this.context = context; + } + debug(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + appengine_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.applications = new Resource$Projects$Locations$Applications(this.context); + } + } + appengine_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectsId}/locations/{locationsId}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; +})(appengine_v1 = exports.appengine_v1 || (exports.appengine_v1 = {})); + + +/***/ }), + +/***/ 5845: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.adexchangebuyer_v1_3 = 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 = __webpack_require__(927); +var adexchangebuyer_v1_3; +(function (adexchangebuyer_v1_3) { + /** + * Ad Exchange Buyer API + * + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adexchangebuyer = google.adexchangebuyer('v1.3'); + * ``` + */ + class Adexchangebuyer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.billingInfo = new Resource$Billinginfo(this.context); + this.budget = new Resource$Budget(this.context); + this.creatives = new Resource$Creatives(this.context); + this.directDeals = new Resource$Directdeals(this.context); + this.performanceReport = new Resource$Performancereport(this.context); + this.pretargetingConfig = new Resource$Pretargetingconfig(this.context); + } + } + adexchangebuyer_v1_3.Adexchangebuyer = Adexchangebuyer; + class Resource$Accounts { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Accounts = Resource$Accounts; + class Resource$Billinginfo { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Billinginfo = Resource$Billinginfo; + class Resource$Budget { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Budget = Resource$Budget; + class Resource$Creatives { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Creatives = Resource$Creatives; + class Resource$Directdeals { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/directdeals/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/directdeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Directdeals = Resource$Directdeals; + class Resource$Performancereport { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/performancereport').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'endDateTime', 'startDateTime'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Performancereport = Resource$Performancereport; + class Resource$Pretargetingconfig { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Pretargetingconfig = Resource$Pretargetingconfig; +})(adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_3 || (exports.adexchangebuyer_v1_3 = {})); + + +/***/ }), + +/***/ 5854: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.securitycenter_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var securitycenter_v1beta1; +(function (securitycenter_v1beta1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1beta1'); + * ``` + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1beta1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.assets = new Resource$Organizations$Assets(this.context); + this.operations = new Resource$Organizations$Operations(this.context); + this.sources = new Resource$Organizations$Sources(this.context); + } + getOrganizationSettings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateOrganizationSettings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Assets { + constructor(context) { + this.context = context; + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runDiscovery(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Organizations$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Organizations$Sources$Findings(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Sources = Resource$Organizations$Sources; + class Resource$Organizations$Sources$Findings { + 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + group(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setState(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateSecurityMarks(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://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1beta1 = exports.securitycenter_v1beta1 || (exports.securitycenter_v1beta1 = {})); + + +/***/ }), + +/***/ 5866: +/***/ (function(module) { + +module.exports = removeHook; + +function removeHook(state, name, method) { + if (!state.registry[name]) { + return; + } + + var index = state.registry[name] + .map(function (registered) { + return registered.orig; + }) + .indexOf(method); + + if (index === -1) { + return; + } + + state.registry[name].splice(index, 1); +} + + +/***/ }), + +/***/ 5877: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.genomics_v1alpha2 = 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 = __webpack_require__(927); +var genomics_v1alpha2; +(function (genomics_v1alpha2) { + /** + * Genomics API + * + * Uploads, processes, queries, and searches Genomics data in the cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const genomics = google.genomics('v1alpha2'); + * ``` + */ + class Genomics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.pipelines = new Resource$Pipelines(this.context); + } + } + genomics_v1alpha2.Genomics = Genomics; + class Resource$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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + genomics_v1alpha2.Resource$Operations = Resource$Operations; + class Resource$Pipelines { + 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['pipelineId'], + pathParams: ['pipelineId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['pipelineId'], + pathParams: ['pipelineId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getControllerConfig(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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines:getControllerConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setOperationStatus(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://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines:setOperationStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + genomics_v1alpha2.Resource$Pipelines = Resource$Pipelines; +})(genomics_v1alpha2 = exports.genomics_v1alpha2 || (exports.genomics_v1alpha2 = {})); + + +/***/ }), + +/***/ 5882: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.sourcerepo_v1 = exports.auth = exports.sourcerepo = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3012); +Object.defineProperty(exports, "sourcerepo_v1", { enumerable: true, get: function () { return v1_1.sourcerepo_v1; } }); +exports.VERSIONS = { + v1: v1_1.sourcerepo_v1.Sourcerepo, +}; +function sourcerepo(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sourcerepo', versionOrOptions, exports.VERSIONS, this); +} +exports.sourcerepo = sourcerepo; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5883: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.Discovery = void 0; +const fs = __webpack_require__(5747); +const google_auth_library_1 = __webpack_require__(3668); +const resolve = __webpack_require__(8835); +const util = __webpack_require__(1669); +const apirequest_1 = __webpack_require__(5421); +const endpoint_1 = __webpack_require__(5165); +const readFile = util.promisify(fs.readFile); +class Discovery { + /** + * Discovery for discovering API endpoints + * + * @param options Options for discovery + */ + constructor(options) { + this.transporter = new google_auth_library_1.DefaultTransporter(); + this.options = options || {}; + } + /** + * Generate and Endpoint from an endpoint schema object. + * + * @param schema The schema from which to generate the Endpoint. + * @return A function that creates an endpoint. + */ + makeEndpoint(schema) { + return (options) => { + const ep = new endpoint_1.Endpoint(options); + ep.applySchema(ep, schema, schema, ep); + return ep; + }; + } + /** + * Log output of generator. Works just like console.log + */ + log(...args) { + if (this.options && this.options.debug) { + console.log(...args); + } + } + /** + * Generate all APIs and return as in-memory object. + * @param discoveryUrl + */ + async discoverAllAPIs(discoveryUrl) { + const headers = this.options.includePrivate + ? {} + : { 'X-User-Ip': '0.0.0.0' }; + const res = await this.transporter.request({ + url: discoveryUrl, + headers, + }); + const items = res.data.items; + const apis = await Promise.all(items.map(async (api) => { + const endpointCreator = await this.discoverAPI(api.discoveryRestUrl); + return { api, endpointCreator }; + })); + const versionIndex = {}; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const apisIndex = {}; + for (const set of apis) { + if (!apisIndex[set.api.name]) { + versionIndex[set.api.name] = {}; + apisIndex[set.api.name] = (options) => { + const type = typeof options; + let version; + if (type === 'string') { + version = options; + options = {}; + } + else if (type === 'object') { + version = options.version; + delete options.version; + } + else { + throw new Error('Argument error: Accepts only string or object'); + } + try { + const ep = set.endpointCreator(options, this); + return Object.freeze(ep); // create new & freeze + } + catch (e) { + throw new Error(util.format('Unable to load endpoint %s("%s"): %s', set.api.name, version, e.message)); + } + }; + } + versionIndex[set.api.name][set.api.version] = set.endpointCreator; + } + return apisIndex; + } + /** + * Generate API file given discovery URL + * + * @param apiDiscoveryUrl URL or filename of discovery doc for API + * @returns A promise that resolves with a function that creates the endpoint + */ + async discoverAPI(apiDiscoveryUrl) { + if (typeof apiDiscoveryUrl === 'string') { + const parts = resolve.parse(apiDiscoveryUrl); + if (apiDiscoveryUrl && !parts.protocol) { + this.log('Reading from file ' + apiDiscoveryUrl); + const file = await readFile(apiDiscoveryUrl, { encoding: 'utf8' }); + return this.makeEndpoint(JSON.parse(file)); + } + else { + this.log('Requesting ' + apiDiscoveryUrl); + const res = await this.transporter.request({ + url: apiDiscoveryUrl, + }); + return this.makeEndpoint(res.data); + } + } + else { + const options = apiDiscoveryUrl; + this.log('Requesting ' + options.url); + const url = options.url; + delete options.url; + const parameters = { + options: { url, method: 'GET' }, + requiredParams: [], + pathParams: [], + params: options, + context: { google: { _options: {} }, _options: {} }, + }; + const res = await (0, apirequest_1.createAPIRequest)(parameters); + return this.makeEndpoint(res.data); + } + } +} +exports.Discovery = Discovery; +//# sourceMappingURL=discovery.js.map + +/***/ }), + +/***/ 5886: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.serviceconsumermanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var serviceconsumermanagement_v1; +(function (serviceconsumermanagement_v1) { + /** + * Service Consumer Management API + * + * Manages the service consumers of a Service Infrastructure service. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const serviceconsumermanagement = google.serviceconsumermanagement('v1'); + * ``` + */ + class Serviceconsumermanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceconsumermanagement_v1.Serviceconsumermanagement = Serviceconsumermanagement; + class Resource$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://serviceconsumermanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.tenancyUnits = new Resource$Services$Tenancyunits(this.context); + } + search(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1.Resource$Services = Resource$Services; + class Resource$Services$Tenancyunits { + constructor(context) { + this.context = context; + } + addProject(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:addProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyProjectConfig(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:applyProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachProject(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:attachProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteProject(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeProject(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:removeProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + undeleteProject(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://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undeleteProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + serviceconsumermanagement_v1.Resource$Services$Tenancyunits = Resource$Services$Tenancyunits; +})(serviceconsumermanagement_v1 = exports.serviceconsumermanagement_v1 || (exports.serviceconsumermanagement_v1 = {})); + + +/***/ }), + +/***/ 5888: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.policysimulator_v1beta1 = exports.policysimulator_v1beta = exports.policysimulator_v1alpha = exports.policysimulator_v1 = exports.auth = exports.policysimulator = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7502); +Object.defineProperty(exports, "policysimulator_v1", { enumerable: true, get: function () { return v1_1.policysimulator_v1; } }); +const v1alpha_1 = __webpack_require__(106); +Object.defineProperty(exports, "policysimulator_v1alpha", { enumerable: true, get: function () { return v1alpha_1.policysimulator_v1alpha; } }); +const v1beta_1 = __webpack_require__(3115); +Object.defineProperty(exports, "policysimulator_v1beta", { enumerable: true, get: function () { return v1beta_1.policysimulator_v1beta; } }); +const v1beta1_1 = __webpack_require__(3556); +Object.defineProperty(exports, "policysimulator_v1beta1", { enumerable: true, get: function () { return v1beta1_1.policysimulator_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.policysimulator_v1.Policysimulator, + v1alpha: v1alpha_1.policysimulator_v1alpha.Policysimulator, + v1beta: v1beta_1.policysimulator_v1beta.Policysimulator, + v1beta1: v1beta1_1.policysimulator_v1beta1.Policysimulator, +}; +function policysimulator(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('policysimulator', versionOrOptions, exports.VERSIONS, this); +} +exports.policysimulator = policysimulator; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5892: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.batch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var batch_v1; +(function (batch_v1) { + /** + * Batch API + * + * An API to manage the running of batch jobs on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const batch = google.batch('v1'); + * ``` + */ + class Batch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + batch_v1.Batch = Batch; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + batch_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.state = new Resource$Projects$Locations$State(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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + this.taskGroups = new Resource$Projects$Locations$Jobs$Taskgroups(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://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobs$Taskgroups { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Jobs$Taskgroups$Tasks(this.context); + } + } + batch_v1.Resource$Projects$Locations$Jobs$Taskgroups = Resource$Projects$Locations$Jobs$Taskgroups; + class Resource$Projects$Locations$Jobs$Taskgroups$Tasks { + 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$Jobs$Taskgroups$Tasks = Resource$Projects$Locations$Jobs$Taskgroups$Tasks; + 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://batch.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$State { + constructor(context) { + this.context = context; + } + 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://batch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/state:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + batch_v1.Resource$Projects$Locations$State = Resource$Projects$Locations$State; +})(batch_v1 = exports.batch_v1 || (exports.batch_v1 = {})); + + +/***/ }), + +/***/ 5896: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.chromemanagement_v1 = exports.auth = exports.chromemanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4748); +Object.defineProperty(exports, "chromemanagement_v1", { enumerable: true, get: function () { return v1_1.chromemanagement_v1; } }); +exports.VERSIONS = { + v1: v1_1.chromemanagement_v1.Chromemanagement, +}; +function chromemanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('chromemanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.chromemanagement = chromemanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5907: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebasedynamiclinks_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebasedynamiclinks_v1; +(function (firebasedynamiclinks_v1) { + /** + * Firebase Dynamic Links API + * + * Programmatically creates and manages Firebase Dynamic Links. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebasedynamiclinks = google.firebasedynamiclinks('v1'); + * ``` + */ + class Firebasedynamiclinks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.managedShortLinks = new Resource$Managedshortlinks(this.context); + this.shortLinks = new Resource$Shortlinks(this.context); + this.v1 = new Resource$V1(this.context); + } + } + firebasedynamiclinks_v1.Firebasedynamiclinks = Firebasedynamiclinks; + class Resource$Managedshortlinks { + 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://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/managedShortLinks:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasedynamiclinks_v1.Resource$Managedshortlinks = Resource$Managedshortlinks; + class Resource$Shortlinks { + 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://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/shortLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasedynamiclinks_v1.Resource$Shortlinks = Resource$Shortlinks; + class Resource$V1 { + constructor(context) { + this.context = context; + } + getLinkStats(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://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{dynamicLink}/linkStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['dynamicLink'], + pathParams: ['dynamicLink'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + installAttribution(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://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/installAttribution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reopenAttribution(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://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/reopenAttribution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebasedynamiclinks_v1.Resource$V1 = Resource$V1; +})(firebasedynamiclinks_v1 = exports.firebasedynamiclinks_v1 || (exports.firebasedynamiclinks_v1 = {})); + + +/***/ }), + +/***/ 5908: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.privateca_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var privateca_v1; +(function (privateca_v1) { + /** + * Certificate Authority API + * + * The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const privateca = google.privateca('v1'); + * ``` + */ + class Privateca { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + privateca_v1.Privateca = Privateca; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + privateca_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.caPools = new Resource$Projects$Locations$Capools(this.context); + this.certificateTemplates = + new Resource$Projects$Locations$Certificatetemplates(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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capools { + constructor(context) { + this.context = context; + this.certificateAuthorities = + new Resource$Projects$Locations$Capools$Certificateauthorities(this.context); + this.certificates = new Resource$Projects$Locations$Capools$Certificates(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/caPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchCaCerts(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+caPool}:fetchCaCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['caPool'], + pathParams: ['caPool'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/caPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations$Capools = Resource$Projects$Locations$Capools; + class Resource$Projects$Locations$Capools$Certificateauthorities { + constructor(context) { + this.context = context; + this.certificateRevocationLists = + new Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists(this.context); + } + activate(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateAuthorities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + disable(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + enable(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetch(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:fetch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateAuthorities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations$Capools$Certificateauthorities = Resource$Projects$Locations$Capools$Certificateauthorities; + class Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists { + 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateRevocationLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists = Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists; + class Resource$Projects$Locations$Capools$Certificates { + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + revoke(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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations$Capools$Certificates = Resource$Projects$Locations$Capools$Certificates; + class Resource$Projects$Locations$Certificatetemplates { + 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/certificateTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations$Certificatetemplates = Resource$Projects$Locations$Certificatetemplates; + 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://privateca.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + privateca_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(privateca_v1 = exports.privateca_v1 || (exports.privateca_v1 = {})); + + +/***/ }), + +/***/ 5912: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.analyticsadmin_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var analyticsadmin_v1beta; +(function (analyticsadmin_v1beta) { + /** + * Google Analytics Admin API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticsadmin = google.analyticsadmin('v1beta'); + * ``` + */ + class Analyticsadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.accountSummaries = new Resource$Accountsummaries(this.context); + this.properties = new Resource$Properties(this.context); + } + } + analyticsadmin_v1beta.Analyticsadmin = Analyticsadmin; + class Resource$Accounts { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDataSharingSettings(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + provisionAccountTicket(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accounts:provisionAccountTicket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runAccessReport(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['entity'], + pathParams: ['entity'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchChangeHistoryEvents(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+account}:searchChangeHistoryEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['account'], + pathParams: ['account'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Accounts = Resource$Accounts; + class Resource$Accountsummaries { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Accountsummaries = Resource$Accountsummaries; + class Resource$Properties { + constructor(context) { + this.context = context; + this.conversionEvents = new Resource$Properties$Conversionevents(this.context); + this.customDimensions = new Resource$Properties$Customdimensions(this.context); + this.customMetrics = new Resource$Properties$Custommetrics(this.context); + this.dataStreams = new Resource$Properties$Datastreams(this.context); + this.firebaseLinks = new Resource$Properties$Firebaselinks(this.context); + this.googleAdsLinks = new Resource$Properties$Googleadslinks(this.context); + } + acknowledgeUserDataCollection(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+property}:acknowledgeUserDataCollection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['property'], + pathParams: ['property'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDataRetentionSettings(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runAccessReport(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['entity'], + pathParams: ['entity'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateDataRetentionSettings(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties = Resource$Properties; + class Resource$Properties$Conversionevents { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Conversionevents = Resource$Properties$Conversionevents; + class Resource$Properties$Customdimensions { + constructor(context) { + this.context = context; + } + archive(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Customdimensions = Resource$Properties$Customdimensions; + class Resource$Properties$Custommetrics { + constructor(context) { + this.context = context; + } + archive(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Custommetrics = Resource$Properties$Custommetrics; + class Resource$Properties$Datastreams { + constructor(context) { + this.context = context; + this.measurementProtocolSecrets = + new Resource$Properties$Datastreams$Measurementprotocolsecrets(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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Datastreams = Resource$Properties$Datastreams; + class Resource$Properties$Datastreams$Measurementprotocolsecrets { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Datastreams$Measurementprotocolsecrets = Resource$Properties$Datastreams$Measurementprotocolsecrets; + class Resource$Properties$Firebaselinks { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/firebaseLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/firebaseLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Firebaselinks = Resource$Properties$Firebaselinks; + class Resource$Properties$Googleadslinks { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/googleAdsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/googleAdsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsadmin_v1beta.Resource$Properties$Googleadslinks = Resource$Properties$Googleadslinks; +})(analyticsadmin_v1beta = exports.analyticsadmin_v1beta || (exports.analyticsadmin_v1beta = {})); + + +/***/ }), + +/***/ 5919: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebaseappdistribution_v1 = exports.auth = exports.firebaseappdistribution = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7865); +Object.defineProperty(exports, "firebaseappdistribution_v1", { enumerable: true, get: function () { return v1_1.firebaseappdistribution_v1; } }); +exports.VERSIONS = { + v1: v1_1.firebaseappdistribution_v1.Firebaseappdistribution, +}; +function firebaseappdistribution(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebaseappdistribution', versionOrOptions, exports.VERSIONS, this); +} +exports.firebaseappdistribution = firebaseappdistribution; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 5934: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.publicca_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var publicca_v1beta1; +(function (publicca_v1beta1) { + /** + * Public Certificate Authority API + * + * The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const publicca = google.publicca('v1beta1'); + * ``` + */ + class Publicca { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + publicca_v1beta1.Publicca = Publicca; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + publicca_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.externalAccountKeys = + new Resource$Projects$Locations$Externalaccountkeys(this.context); + } + } + publicca_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Externalaccountkeys { + 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://publicca.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/externalAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + publicca_v1beta1.Resource$Projects$Locations$Externalaccountkeys = Resource$Projects$Locations$Externalaccountkeys; +})(publicca_v1beta1 = exports.publicca_v1beta1 || (exports.publicca_v1beta1 = {})); + + +/***/ }), + +/***/ 5939: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.chat_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var chat_v1; +(function (chat_v1) { + /** + * Google Chat API + * + * Enables apps to fetch information and perform actions in Google Chat. Authentication is a prerequisite for using the Google Chat REST API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const chat = google.chat('v1'); + * ``` + */ + class Chat { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.spaces = new Resource$Spaces(this.context); + } + } + chat_v1.Chat = Chat; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Media = Resource$Media; + class Resource$Spaces { + constructor(context) { + this.context = context; + this.members = new Resource$Spaces$Members(this.context); + this.messages = new Resource$Spaces$Messages(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://chat.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces = Resource$Spaces; + class Resource$Spaces$Members { + 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://chat.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Members = Resource$Spaces$Members; + class Resource$Spaces$Messages { + constructor(context) { + this.context = context; + this.attachments = new Resource$Spaces$Messages$Attachments(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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chat.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chat.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Messages = Resource$Spaces$Messages; + class Resource$Spaces$Messages$Attachments { + 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://chat.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + chat_v1.Resource$Spaces$Messages$Attachments = Resource$Spaces$Messages$Attachments; +})(chat_v1 = exports.chat_v1 || (exports.chat_v1 = {})); + + +/***/ }), + +/***/ 5946: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.artifactregistry_v1beta2 = 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 = __webpack_require__(927); +var artifactregistry_v1beta2; +(function (artifactregistry_v1beta2) { + /** + * Artifact Registry API + * + * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const artifactregistry = google.artifactregistry('v1beta2'); + * ``` + */ + class Artifactregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + artifactregistry_v1beta2.Artifactregistry = Artifactregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + artifactregistry_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.repositories = new Resource$Projects$Locations$Repositories(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Repositories { + constructor(context) { + this.context = context; + this.aptArtifacts = + new Resource$Projects$Locations$Repositories$Aptartifacts(this.context); + this.files = new Resource$Projects$Locations$Repositories$Files(this.context); + this.packages = new Resource$Projects$Locations$Repositories$Packages(this.context); + this.yumArtifacts = + new Resource$Projects$Locations$Repositories$Yumartifacts(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Aptartifacts { + constructor(context) { + this.context = context; + } + import(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Aptartifacts = Resource$Projects$Locations$Repositories$Aptartifacts; + class Resource$Projects$Locations$Repositories$Files { + 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Files = Resource$Projects$Locations$Repositories$Files; + class Resource$Projects$Locations$Repositories$Packages { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Repositories$Packages$Tags(this.context); + this.versions = + new Resource$Projects$Locations$Repositories$Packages$Versions(this.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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; + class Resource$Projects$Locations$Repositories$Packages$Tags { + 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages$Tags = Resource$Projects$Locations$Repositories$Packages$Tags; + class Resource$Projects$Locations$Repositories$Packages$Versions { + 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; + class Resource$Projects$Locations$Repositories$Yumartifacts { + constructor(context) { + this.context = context; + } + import(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://artifactregistry.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Yumartifacts = Resource$Projects$Locations$Repositories$Yumartifacts; +})(artifactregistry_v1beta2 = exports.artifactregistry_v1beta2 || (exports.artifactregistry_v1beta2 = {})); + + +/***/ }), + +/***/ 5949: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.workflows_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var workflows_v1beta; +(function (workflows_v1beta) { + /** + * Workflows API + * + * Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const workflows = google.workflows('v1beta'); + * ``` + */ + class Workflows { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + workflows_v1beta.Workflows = Workflows; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + workflows_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.workflows = new Resource$Projects$Locations$Workflows(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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflows_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflows_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workflows { + 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://workflows.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + workflows_v1beta.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows; +})(workflows_v1beta = exports.workflows_v1beta || (exports.workflows_v1beta = {})); + + +/***/ }), + +/***/ 5970: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.clouddeploy_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var clouddeploy_v1; +(function (clouddeploy_v1) { + /** + * Google Cloud Deploy API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const clouddeploy = google.clouddeploy('v1'); + * ``` + */ + class Clouddeploy { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + clouddeploy_v1.Clouddeploy = Clouddeploy; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + clouddeploy_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.deliveryPipelines = + new Resource$Projects$Locations$Deliverypipelines(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.targets = new Resource$Projects$Locations$Targets(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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getConfig(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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Deliverypipelines { + constructor(context) { + this.context = context; + this.releases = + new Resource$Projects$Locations$Deliverypipelines$Releases(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deliveryPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/deliveryPipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines = Resource$Projects$Locations$Deliverypipelines; + class Resource$Projects$Locations$Deliverypipelines$Releases { + constructor(context) { + this.context = context; + this.rollouts = + new Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts(this.context); + } + abandon(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:abandon').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases = Resource$Projects$Locations$Deliverypipelines$Releases; + class Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts { + constructor(context) { + this.context = context; + this.jobRuns = + new Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns(this.context); + } + advance(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:advance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + approve(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + ignoreJob(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+rollout}:ignoreJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['rollout'], + pathParams: ['rollout'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retryJob(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+rollout}:retryJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['rollout'], + pathParams: ['rollout'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts = Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts; + class Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns { + 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + terminate(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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:terminate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns = Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns; + 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Targets { + 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://clouddeploy.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + clouddeploy_v1.Resource$Projects$Locations$Targets = Resource$Projects$Locations$Targets; +})(clouddeploy_v1 = exports.clouddeploy_v1 || (exports.clouddeploy_v1 = {})); + + +/***/ }), + +/***/ 5976: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.licensing_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var licensing_v1; +(function (licensing_v1) { + /** + * Enterprise License Manager API + * + * The Google Enterprise License Manager API lets you manage Google Workspace and related licenses for all users of a customer that you manage. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const licensing = google.licensing('v1'); + * ``` + */ + class Licensing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.licenseAssignments = new Resource$Licenseassignments(this.context); + } + } + licensing_v1.Licensing = Licensing; + class Resource$Licenseassignments { + 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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['productId', 'skuId'], + pathParams: ['productId', 'skuId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listForProduct(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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/licensing/v1/product/{productId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId', 'customerId'], + pathParams: ['productId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listForProductAndSku(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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId', 'skuId', 'customerId'], + pathParams: ['productId', 'skuId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://licensing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + licensing_v1.Resource$Licenseassignments = Resource$Licenseassignments; +})(licensing_v1 = exports.licensing_v1 || (exports.licensing_v1 = {})); + + +/***/ }), + +/***/ 6013: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.policyanalyzer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var policyanalyzer_v1; +(function (policyanalyzer_v1) { + /** + * Policy Analyzer API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const policyanalyzer = google.policyanalyzer('v1'); + * ``` + */ + class Policyanalyzer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + policyanalyzer_v1.Policyanalyzer = Policyanalyzer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + policyanalyzer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.activityTypes = new Resource$Projects$Locations$Activitytypes(this.context); + } + } + policyanalyzer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Activitytypes { + constructor(context) { + this.context = context; + this.activities = + new Resource$Projects$Locations$Activitytypes$Activities(this.context); + } + } + policyanalyzer_v1.Resource$Projects$Locations$Activitytypes = Resource$Projects$Locations$Activitytypes; + class Resource$Projects$Locations$Activitytypes$Activities { + constructor(context) { + this.context = context; + } + query(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://policyanalyzer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/activities:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + policyanalyzer_v1.Resource$Projects$Locations$Activitytypes$Activities = Resource$Projects$Locations$Activitytypes$Activities; +})(policyanalyzer_v1 = exports.policyanalyzer_v1 || (exports.policyanalyzer_v1 = {})); + + +/***/ }), + +/***/ 6015: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.doubleclicksearch_v2 = exports.auth = exports.doubleclicksearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(1919); +Object.defineProperty(exports, "doubleclicksearch_v2", { enumerable: true, get: function () { return v2_1.doubleclicksearch_v2; } }); +exports.VERSIONS = { + v2: v2_1.doubleclicksearch_v2.Doubleclicksearch, +}; +function doubleclicksearch(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('doubleclicksearch', versionOrOptions, exports.VERSIONS, this); +} +exports.doubleclicksearch = doubleclicksearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6049: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var wrappy = __webpack_require__(5011) +module.exports = wrappy(once) +module.exports.strict = wrappy(onceStrict) + +once.proto = once(function () { + Object.defineProperty(Function.prototype, 'once', { + value: function () { + return once(this) + }, + configurable: true + }) + + Object.defineProperty(Function.prototype, 'onceStrict', { + value: function () { + return onceStrict(this) + }, + configurable: true + }) +}) + +function once (fn) { + var f = function () { + if (f.called) return f.value + f.called = true + return f.value = fn.apply(this, arguments) + } + f.called = false + return f +} + +function onceStrict (fn) { + var f = function () { + if (f.called) + throw new Error(f.onceError) + f.called = true + return f.value = fn.apply(this, arguments) + } + var name = fn.name || 'Function wrapped with `once`' + f.onceError = name + " shouldn't be called more than once" + f.called = false + return f +} + + +/***/ }), + +/***/ 6075: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.bigquerydatatransfer_v1 = exports.auth = exports.bigquerydatatransfer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5586); +Object.defineProperty(exports, "bigquerydatatransfer_v1", { enumerable: true, get: function () { return v1_1.bigquerydatatransfer_v1; } }); +exports.VERSIONS = { + v1: v1_1.bigquerydatatransfer_v1.Bigquerydatatransfer, +}; +function bigquerydatatransfer(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigquerydatatransfer', versionOrOptions, exports.VERSIONS, this); +} +exports.bigquerydatatransfer = bigquerydatatransfer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6077: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.metastore_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var metastore_v1beta; +(function (metastore_v1beta) { + /** + * Dataproc Metastore API + * + * The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const metastore = google.metastore('v1beta'); + * ``` + */ + class Metastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + metastore_v1beta.Metastore = Metastore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + metastore_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.federations = new Resource$Projects$Locations$Federations(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.services = new Resource$Projects$Locations$Services(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Federations { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Federations = Resource$Projects$Locations$Federations; + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Services$Backups(this.context); + this.databases = new Resource$Projects$Locations$Services$Databases(this.context); + this.metadataImports = + new Resource$Projects$Locations$Services$Metadataimports(this.context); + } + alterLocation(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+service}:alterLocation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + exportMetadata(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveTableToDatabase(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+service}:moveTableToDatabase').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + queryMetadata(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+service}:queryMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeIamPolicy(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['service'], + pathParams: ['service'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Backups { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Services$Backups = Resource$Projects$Locations$Services$Backups; + class Resource$Projects$Locations$Services$Databases { + constructor(context) { + this.context = context; + this.tables = new Resource$Projects$Locations$Services$Databases$Tables(this.context); + } + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Services$Databases = Resource$Projects$Locations$Services$Databases; + class Resource$Projects$Locations$Services$Databases$Tables { + constructor(context) { + this.context = context; + } + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Services$Databases$Tables = Resource$Projects$Locations$Services$Databases$Tables; + class Resource$Projects$Locations$Services$Metadataimports { + 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://metastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + metastore_v1beta.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; +})(metastore_v1beta = exports.metastore_v1beta || (exports.metastore_v1beta = {})); + + +/***/ }), + +/***/ 6088: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.run_v1beta1 = 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 = __webpack_require__(927); +var run_v1beta1; +(function (run_v1beta1) { + /** + * Cloud Run Admin API + * + * Deploy and manage user provided container images that scale automatically based on HTTP traffic. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const run = google.run('v1beta1'); + * ``` + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customresourcedefinitions = new Resource$Customresourcedefinitions(this.context); + this.namespaces = new Resource$Namespaces(this.context); + this.projects = new Resource$Projects(this.context); + } + } + run_v1beta1.Run = Run; + class Resource$Customresourcedefinitions { + 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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + run_v1beta1.Resource$Customresourcedefinitions = Resource$Customresourcedefinitions; + class Resource$Namespaces { + constructor(context) { + this.context = context; + this.customresourcedefinitions = + new Resource$Namespaces$Customresourcedefinitions(this.context); + } + } + run_v1beta1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Customresourcedefinitions { + 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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/apiextensions.k8s.io/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + run_v1beta1.Resource$Namespaces$Customresourcedefinitions = Resource$Namespaces$Customresourcedefinitions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + run_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.customresourcedefinitions = + new Resource$Projects$Locations$Customresourcedefinitions(this.context); + } + } + run_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Customresourcedefinitions { + 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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + run_v1beta1.Resource$Projects$Locations$Customresourcedefinitions = Resource$Projects$Locations$Customresourcedefinitions; +})(run_v1beta1 = exports.run_v1beta1 || (exports.run_v1beta1 = {})); + + +/***/ }), + +/***/ 6097: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.tagmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var tagmanager_v1; +(function (tagmanager_v1) { + /** + * Tag Manager API + * + * This API allows clients to access and modify container and tag configuration. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tagmanager = google.tagmanager('v1'); + * ``` + */ + class Tagmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + tagmanager_v1.Tagmanager = Tagmanager; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.containers = new Resource$Accounts$Containers(this.context); + this.permissions = new Resource$Accounts$Permissions(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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Containers { + constructor(context) { + this.context = context; + this.environments = new Resource$Accounts$Containers$Environments(this.context); + this.folders = new Resource$Accounts$Containers$Folders(this.context); + this.move_folders = new Resource$Accounts$Containers$Move_folders(this.context); + this.reauthorize_environments = + new Resource$Accounts$Containers$Reauthorize_environments(this.context); + this.tags = new Resource$Accounts$Containers$Tags(this.context); + this.triggers = new Resource$Accounts$Containers$Triggers(this.context); + this.variables = new Resource$Accounts$Containers$Variables(this.context); + this.versions = new Resource$Accounts$Containers$Versions(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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers = Resource$Accounts$Containers; + class Resource$Accounts$Containers$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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; + class Resource$Accounts$Containers$Folders { + constructor(context) { + this.context = context; + this.entities = new Resource$Accounts$Containers$Folders$Entities(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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Folders = Resource$Accounts$Containers$Folders; + class Resource$Accounts$Containers$Folders$Entities { + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Folders$Entities = Resource$Accounts$Containers$Folders$Entities; + class Resource$Accounts$Containers$Move_folders { + constructor(context) { + this.context = context; + } + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Move_folders = Resource$Accounts$Containers$Move_folders; + class Resource$Accounts$Containers$Reauthorize_environments { + constructor(context) { + this.context = context; + } + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Reauthorize_environments = Resource$Accounts$Containers$Reauthorize_environments; + class Resource$Accounts$Containers$Tags { + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Tags = Resource$Accounts$Containers$Tags; + class Resource$Accounts$Containers$Triggers { + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Triggers = Resource$Accounts$Containers$Triggers; + class Resource$Accounts$Containers$Variables { + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Variables = Resource$Accounts$Containers$Variables; + class Resource$Accounts$Containers$Versions { + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + publish(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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; + class Resource$Accounts$Permissions { + 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://tagmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Permissions = Resource$Accounts$Permissions; +})(tagmanager_v1 = exports.tagmanager_v1 || (exports.tagmanager_v1 = {})); + + +/***/ }), + +/***/ 6102: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Cipher base API. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +module.exports = forge.cipher = forge.cipher || {}; + +// registered algorithms +forge.cipher.algorithms = forge.cipher.algorithms || {}; + +/** + * Creates a cipher object that can be used to encrypt data using the given + * algorithm and key. The algorithm may be provided as a string value for a + * previously registered algorithm or it may be given as a cipher algorithm + * API object. + * + * @param algorithm the algorithm to use, either a string or an algorithm API + * object. + * @param key the key to use, as a binary-encoded string of bytes or a + * byte buffer. + * + * @return the cipher. + */ +forge.cipher.createCipher = function(algorithm, key) { + var api = algorithm; + if(typeof api === 'string') { + api = forge.cipher.getAlgorithm(api); + if(api) { + api = api(); + } + } + if(!api) { + throw new Error('Unsupported algorithm: ' + algorithm); + } + + // assume block cipher + return new forge.cipher.BlockCipher({ + algorithm: api, + key: key, + decrypt: false + }); +}; + +/** + * Creates a decipher object that can be used to decrypt data using the given + * algorithm and key. The algorithm may be provided as a string value for a + * previously registered algorithm or it may be given as a cipher algorithm + * API object. + * + * @param algorithm the algorithm to use, either a string or an algorithm API + * object. + * @param key the key to use, as a binary-encoded string of bytes or a + * byte buffer. + * + * @return the cipher. + */ +forge.cipher.createDecipher = function(algorithm, key) { + var api = algorithm; + if(typeof api === 'string') { + api = forge.cipher.getAlgorithm(api); + if(api) { + api = api(); + } + } + if(!api) { + throw new Error('Unsupported algorithm: ' + algorithm); + } + + // assume block cipher + return new forge.cipher.BlockCipher({ + algorithm: api, + key: key, + decrypt: true + }); +}; + +/** + * Registers an algorithm by name. If the name was already registered, the + * algorithm API object will be overwritten. + * + * @param name the name of the algorithm. + * @param algorithm the algorithm API object. + */ +forge.cipher.registerAlgorithm = function(name, algorithm) { + name = name.toUpperCase(); + forge.cipher.algorithms[name] = algorithm; +}; + +/** + * Gets a registered algorithm by name. + * + * @param name the name of the algorithm. + * + * @return the algorithm, if found, null if not. + */ +forge.cipher.getAlgorithm = function(name) { + name = name.toUpperCase(); + if(name in forge.cipher.algorithms) { + return forge.cipher.algorithms[name]; + } + return null; +}; + +var BlockCipher = forge.cipher.BlockCipher = function(options) { + this.algorithm = options.algorithm; + this.mode = this.algorithm.mode; + this.blockSize = this.mode.blockSize; + this._finish = false; + this._input = null; + this.output = null; + this._op = options.decrypt ? this.mode.decrypt : this.mode.encrypt; + this._decrypt = options.decrypt; + this.algorithm.initialize(options); +}; + +/** + * Starts or restarts the encryption or decryption process, whichever + * was previously configured. + * + * For non-GCM mode, the IV may be a binary-encoded string of bytes, an array + * of bytes, a byte buffer, or an array of 32-bit integers. If the IV is in + * bytes, then it must be Nb (16) bytes in length. If the IV is given in as + * 32-bit integers, then it must be 4 integers long. + * + * Note: an IV is not required or used in ECB mode. + * + * For GCM-mode, the IV must be given as a binary-encoded string of bytes or + * a byte buffer. The number of bytes should be 12 (96 bits) as recommended + * by NIST SP-800-38D but another length may be given. + * + * @param options the options to use: + * iv the initialization vector to use as a binary-encoded string of + * bytes, null to reuse the last ciphered block from a previous + * update() (this "residue" method is for legacy support only). + * additionalData additional authentication data as a binary-encoded + * string of bytes, for 'GCM' mode, (default: none). + * tagLength desired length of authentication tag, in bits, for + * 'GCM' mode (0-128, default: 128). + * tag the authentication tag to check if decrypting, as a + * binary-encoded string of bytes. + * output the output the buffer to write to, null to create one. + */ +BlockCipher.prototype.start = function(options) { + options = options || {}; + var opts = {}; + for(var key in options) { + opts[key] = options[key]; + } + opts.decrypt = this._decrypt; + this._finish = false; + this._input = forge.util.createBuffer(); + this.output = options.output || forge.util.createBuffer(); + this.mode.start(opts); +}; + +/** + * Updates the next block according to the cipher mode. + * + * @param input the buffer to read from. + */ +BlockCipher.prototype.update = function(input) { + if(input) { + // input given, so empty it into the input buffer + this._input.putBuffer(input); + } + + // do cipher operation until it needs more input and not finished + while(!this._op.call(this.mode, this._input, this.output, this._finish) && + !this._finish) {} + + // free consumed memory from input buffer + this._input.compact(); +}; + +/** + * Finishes encrypting or decrypting. + * + * @param pad a padding function to use in CBC mode, null for default, + * signature(blockSize, buffer, decrypt). + * + * @return true if successful, false on error. + */ +BlockCipher.prototype.finish = function(pad) { + // backwards-compatibility w/deprecated padding API + // Note: will overwrite padding functions even after another start() call + if(pad && (this.mode.name === 'ECB' || this.mode.name === 'CBC')) { + this.mode.pad = function(input) { + return pad(this.blockSize, input, false); + }; + this.mode.unpad = function(output) { + return pad(this.blockSize, output, true); + }; + } + + // build options for padding and afterFinish functions + var options = {}; + options.decrypt = this._decrypt; + + // get # of bytes that won't fill a block + options.overflow = this._input.length() % this.blockSize; + + if(!this._decrypt && this.mode.pad) { + if(!this.mode.pad(this._input, options)) { + return false; + } + } + + // do final update + this._finish = true; + this.update(); + + if(this._decrypt && this.mode.unpad) { + if(!this.mode.unpad(this.output, options)) { + return false; + } + } + + if(this.mode.afterFinish) { + if(!this.mode.afterFinish(this.output, options)) { + return false; + } + } + + return true; +}; + + +/***/ }), + +/***/ 6118: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const os = __webpack_require__(2087); + +const nameMap = new Map([ + [21, ['Monterey', '12']], + [20, ['Big Sur', '11']], + [19, ['Catalina', '10.15']], + [18, ['Mojave', '10.14']], + [17, ['High Sierra', '10.13']], + [16, ['Sierra', '10.12']], + [15, ['El Capitan', '10.11']], + [14, ['Yosemite', '10.10']], + [13, ['Mavericks', '10.9']], + [12, ['Mountain Lion', '10.8']], + [11, ['Lion', '10.7']], + [10, ['Snow Leopard', '10.6']], + [9, ['Leopard', '10.5']], + [8, ['Tiger', '10.4']], + [7, ['Panther', '10.3']], + [6, ['Jaguar', '10.2']], + [5, ['Puma', '10.1']] +]); + +const macosRelease = release => { + release = Number((release || os.release()).split('.')[0]); + + const [name, version] = nameMap.get(release) || ['Unknown', '']; + + return { + name, + version + }; +}; + +module.exports = macosRelease; +// TODO: remove this in the next major version +module.exports.default = macosRelease; + + +/***/ }), + +/***/ 6147: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinessplaceactions_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinessplaceactions_v1; +(function (mybusinessplaceactions_v1) { + /** + * My Business Place Actions API + * + * The My Business Place Actions API provides an interface for managing place action links of a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessplaceactions = google.mybusinessplaceactions('v1'); + * ``` + */ + class Mybusinessplaceactions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + this.placeActionTypeMetadata = new Resource$Placeactiontypemetadata(this.context); + } + } + mybusinessplaceactions_v1.Mybusinessplaceactions = Mybusinessplaceactions; + class Resource$Locations { + constructor(context) { + this.context = context; + this.placeActionLinks = new Resource$Locations$Placeactionlinks(this.context); + } + } + mybusinessplaceactions_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Placeactionlinks { + 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://mybusinessplaceactions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/placeActionLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessplaceactions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessplaceactions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessplaceactions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/placeActionLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://mybusinessplaceactions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessplaceactions_v1.Resource$Locations$Placeactionlinks = Resource$Locations$Placeactionlinks; + class Resource$Placeactiontypemetadata { + 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://mybusinessplaceactions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/placeActionTypeMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + mybusinessplaceactions_v1.Resource$Placeactiontypemetadata = Resource$Placeactiontypemetadata; +})(mybusinessplaceactions_v1 = exports.mybusinessplaceactions_v1 || (exports.mybusinessplaceactions_v1 = {})); + + +/***/ }), + +/***/ 6149: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudbuild_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudbuild_v1alpha2; +(function (cloudbuild_v1alpha2) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1alpha2'); + * ``` + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v1alpha2.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.workerPools = new Resource$Projects$Workerpools(this.context); + } + } + cloudbuild_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + cloudbuild_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Workerpools { + 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudbuild_v1alpha2.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha2 = exports.cloudbuild_v1alpha2 || (exports.cloudbuild_v1alpha2 = {})); + + +/***/ }), + +/***/ 6155: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * DES (Data Encryption Standard) implementation. + * + * This implementation supports DES as well as 3DES-EDE in ECB and CBC mode. + * It is based on the BSD-licensed implementation by Paul Tero: + * + * Paul Tero, July 2001 + * http://www.tero.co.uk/des/ + * + * Optimised for performance with large blocks by + * Michael Hayworth, November 2001 + * http://www.netdealing.com + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2012-2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(6102); +__webpack_require__(158); +__webpack_require__(7152); + +/* DES API */ +module.exports = forge.des = forge.des || {}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('DES-', key); + * cipher.start({iv: iv}); + * + * Creates an DES cipher object to encrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as binary-encoded strings of bytes or + * byte buffers. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC' if IV is + * given, 'ECB' if null). + * + * @return the cipher. + */ +forge.des.startEncrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: false, + mode: mode || (iv === null ? 'ECB' : 'CBC') + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('DES-', key); + * + * Creates an DES cipher object to encrypt data using the given symmetric key. + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.des.createEncryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: false, + mode: mode + }); +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('DES-', key); + * decipher.start({iv: iv}); + * + * Creates an DES cipher object to decrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as binary-encoded strings of bytes or + * byte buffers. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC' if IV is + * given, 'ECB' if null). + * + * @return the cipher. + */ +forge.des.startDecrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: true, + mode: mode || (iv === null ? 'ECB' : 'CBC') + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('DES-', key); + * + * Creates an DES cipher object to decrypt data using the given symmetric key. + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.des.createDecryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: true, + mode: mode + }); +}; + +/** + * Creates a new DES cipher algorithm object. + * + * @param name the name of the algorithm. + * @param mode the mode factory function. + * + * @return the DES algorithm object. + */ +forge.des.Algorithm = function(name, mode) { + var self = this; + self.name = name; + self.mode = new mode({ + blockSize: 8, + cipher: { + encrypt: function(inBlock, outBlock) { + return _updateBlock(self._keys, inBlock, outBlock, false); + }, + decrypt: function(inBlock, outBlock) { + return _updateBlock(self._keys, inBlock, outBlock, true); + } + } + }); + self._init = false; +}; + +/** + * Initializes this DES algorithm by expanding its key. + * + * @param options the options to use. + * key the key to use with this algorithm. + * decrypt true if the algorithm should be initialized for decryption, + * false for encryption. + */ +forge.des.Algorithm.prototype.initialize = function(options) { + if(this._init) { + return; + } + + var key = forge.util.createBuffer(options.key); + if(this.name.indexOf('3DES') === 0) { + if(key.length() !== 24) { + throw new Error('Invalid Triple-DES key size: ' + key.length() * 8); + } + } + + // do key expansion to 16 or 48 subkeys (single or triple DES) + this._keys = _createKeys(key); + this._init = true; +}; + +/** Register DES algorithms **/ + +registerAlgorithm('DES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('DES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('DES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('DES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('DES-CTR', forge.cipher.modes.ctr); + +registerAlgorithm('3DES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('3DES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('3DES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('3DES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('3DES-CTR', forge.cipher.modes.ctr); + +function registerAlgorithm(name, mode) { + var factory = function() { + return new forge.des.Algorithm(name, mode); + }; + forge.cipher.registerAlgorithm(name, factory); +} + +/** DES implementation **/ + +var spfunction1 = [0x1010400,0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0,0x10004,0x10400,0,0x1010004]; +var spfunction2 = [-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000]; +var spfunction3 = [0x208,0x8020200,0,0x8020008,0x8000200,0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200]; +var spfunction4 = [0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0,0x802000,0x802000,0x802081,0x81,0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0,0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080]; +var spfunction5 = [0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0,0x40080000,0x2080100,0x40000100]; +var spfunction6 = [0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0,0x20404000,0x20000000,0x400010,0x20004010]; +var spfunction7 = [0x200000,0x4200002,0x4000802,0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0,0x2,0x4200802,0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002]; +var spfunction8 = [0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0,0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000]; + +/** + * Create necessary sub keys. + * + * @param key the 64-bit or 192-bit key. + * + * @return the expanded keys. + */ +function _createKeys(key) { + var pc2bytes0 = [0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204], + pc2bytes1 = [0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101], + pc2bytes2 = [0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808], + pc2bytes3 = [0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000], + pc2bytes4 = [0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010], + pc2bytes5 = [0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420], + pc2bytes6 = [0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002], + pc2bytes7 = [0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800], + pc2bytes8 = [0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002], + pc2bytes9 = [0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408], + pc2bytes10 = [0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020], + pc2bytes11 = [0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200], + pc2bytes12 = [0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010], + pc2bytes13 = [0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105]; + + // how many iterations (1 for des, 3 for triple des) + // changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys + var iterations = key.length() > 8 ? 3 : 1; + + // stores the return keys + var keys = []; + + // now define the left shifts which need to be done + var shifts = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0]; + + var n = 0, tmp; + for(var j = 0; j < iterations; j++) { + var left = key.getInt32(); + var right = key.getInt32(); + + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); + + tmp = ((right >>> -16) ^ left) & 0x0000ffff; + left ^= tmp; + right ^= (tmp << -16); + + tmp = ((left >>> 2) ^ right) & 0x33333333; + right ^= tmp; + left ^= (tmp << 2); + + tmp = ((right >>> -16) ^ left) & 0x0000ffff; + left ^= tmp; + right ^= (tmp << -16); + + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); + + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + // right needs to be shifted and OR'd with last four bits of left + tmp = (left << 8) | ((right >>> 20) & 0x000000f0); + + // left needs to be put upside down + left = ((right << 24) | ((right << 8) & 0xff0000) | + ((right >>> 8) & 0xff00) | ((right >>> 24) & 0xf0)); + right = tmp; + + // now go through and perform these shifts on the left and right keys + for(var i = 0; i < shifts.length; ++i) { + //shift the keys either one or two bits to the left + if(shifts[i]) { + left = (left << 2) | (left >>> 26); + right = (right << 2) | (right >>> 26); + } else { + left = (left << 1) | (left >>> 27); + right = (right << 1) | (right >>> 27); + } + left &= -0xf; + right &= -0xf; + + // now apply PC-2, in such a way that E is easier when encrypting or + // decrypting this conversion will look like PC-2 except only the last 6 + // bits of each byte are used rather than 48 consecutive bits and the + // order of lines will be according to how the S selection functions will + // be applied: S2, S4, S6, S8, S1, S3, S5, S7 + var lefttmp = ( + pc2bytes0[left >>> 28] | pc2bytes1[(left >>> 24) & 0xf] | + pc2bytes2[(left >>> 20) & 0xf] | pc2bytes3[(left >>> 16) & 0xf] | + pc2bytes4[(left >>> 12) & 0xf] | pc2bytes5[(left >>> 8) & 0xf] | + pc2bytes6[(left >>> 4) & 0xf]); + var righttmp = ( + pc2bytes7[right >>> 28] | pc2bytes8[(right >>> 24) & 0xf] | + pc2bytes9[(right >>> 20) & 0xf] | pc2bytes10[(right >>> 16) & 0xf] | + pc2bytes11[(right >>> 12) & 0xf] | pc2bytes12[(right >>> 8) & 0xf] | + pc2bytes13[(right >>> 4) & 0xf]); + tmp = ((righttmp >>> 16) ^ lefttmp) & 0x0000ffff; + keys[n++] = lefttmp ^ tmp; + keys[n++] = righttmp ^ (tmp << 16); + } + } + + return keys; +} + +/** + * Updates a single block (1 byte) using DES. The update will either + * encrypt or decrypt the block. + * + * @param keys the expanded keys. + * @param input the input block (an array of 32-bit words). + * @param output the updated output block. + * @param decrypt true to decrypt the block, false to encrypt it. + */ +function _updateBlock(keys, input, output, decrypt) { + // set up loops for single or triple DES + var iterations = keys.length === 32 ? 3 : 9; + var looping; + if(iterations === 3) { + looping = decrypt ? [30, -2, -2] : [0, 32, 2]; + } else { + looping = (decrypt ? + [94, 62, -2, 32, 64, 2, 30, -2, -2] : + [0, 32, 2, 62, 30, -2, 64, 96, 2]); + } + + var tmp; + + var left = input[0]; + var right = input[1]; + + // first each 64 bit chunk of the message must be permuted according to IP + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); + + tmp = ((left >>> 16) ^ right) & 0x0000ffff; + right ^= tmp; + left ^= (tmp << 16); + + tmp = ((right >>> 2) ^ left) & 0x33333333; + left ^= tmp; + right ^= (tmp << 2); + + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); + + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + // rotate left 1 bit + left = ((left << 1) | (left >>> 31)); + right = ((right << 1) | (right >>> 31)); + + for(var j = 0; j < iterations; j += 3) { + var endloop = looping[j + 1]; + var loopinc = looping[j + 2]; + + // now go through and perform the encryption or decryption + for(var i = looping[j]; i != endloop; i += loopinc) { + var right1 = right ^ keys[i]; + var right2 = ((right >>> 4) | (right << 28)) ^ keys[i + 1]; + + // passing these bytes through the S selection functions + tmp = left; + left = right; + right = tmp ^ ( + spfunction2[(right1 >>> 24) & 0x3f] | + spfunction4[(right1 >>> 16) & 0x3f] | + spfunction6[(right1 >>> 8) & 0x3f] | + spfunction8[right1 & 0x3f] | + spfunction1[(right2 >>> 24) & 0x3f] | + spfunction3[(right2 >>> 16) & 0x3f] | + spfunction5[(right2 >>> 8) & 0x3f] | + spfunction7[right2 & 0x3f]); + } + // unreverse left and right + tmp = left; + left = right; + right = tmp; + } + + // rotate right 1 bit + left = ((left >>> 1) | (left << 31)); + right = ((right >>> 1) | (right << 31)); + + // now perform IP-1, which is IP in the opposite direction + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); + + tmp = ((right >>> 2) ^ left) & 0x33333333; + left ^= tmp; + right ^= (tmp << 2); + + tmp = ((left >>> 16) ^ right) & 0x0000ffff; + right ^= tmp; + left ^= (tmp << 16); + + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); + + output[0] = left; + output[1] = right; +} + +/** + * Deprecated. Instead, use: + * + * forge.cipher.createCipher('DES-', key); + * forge.cipher.createDecipher('DES-', key); + * + * Creates a deprecated DES cipher object. This object's mode will default to + * CBC (cipher-block-chaining). + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param options the options to use. + * key the symmetric key to use (64 or 192 bits). + * output the buffer to write to. + * decrypt true for decryption, false for encryption. + * mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +function _createCipher(options) { + options = options || {}; + var mode = (options.mode || 'CBC').toUpperCase(); + var algorithm = 'DES-' + mode; + + var cipher; + if(options.decrypt) { + cipher = forge.cipher.createDecipher(algorithm, options.key); + } else { + cipher = forge.cipher.createCipher(algorithm, options.key); + } + + // backwards compatible start API + var start = cipher.start; + cipher.start = function(iv, options) { + // backwards compatibility: support second arg as output buffer + var output = null; + if(options instanceof forge.util.ByteBuffer) { + output = options; + options = {}; + } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; + + return cipher; +} + + +/***/ }), + +/***/ 6184: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.videointelligence_v1p3beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var videointelligence_v1p3beta1; +(function (videointelligence_v1p3beta1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1p3beta1'); + * ``` + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1p3beta1.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(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://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p3beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + videointelligence_v1p3beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p3beta1 = exports.videointelligence_v1p3beta1 || (exports.videointelligence_v1p3beta1 = {})); + + +/***/ }), + +/***/ 6207: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudfunctions_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudfunctions_v2; +(function (cloudfunctions_v2) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v2'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v2.Cloudfunctions = Cloudfunctions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimes = new Resource$Projects$Locations$Runtimes(this.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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; + class Resource$Projects$Locations$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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudfunctions.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimes { + 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://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudfunctions_v2.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2 = exports.cloudfunctions_v2 || (exports.cloudfunctions_v2 = {})); + + +/***/ }), + +/***/ 6215: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.securitycenter_v1p1beta1 = exports.securitycenter_v1p1alpha1 = exports.securitycenter_v1beta2 = exports.securitycenter_v1beta1 = exports.securitycenter_v1 = exports.auth = exports.securitycenter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4988); +Object.defineProperty(exports, "securitycenter_v1", { enumerable: true, get: function () { return v1_1.securitycenter_v1; } }); +const v1beta1_1 = __webpack_require__(5854); +Object.defineProperty(exports, "securitycenter_v1beta1", { enumerable: true, get: function () { return v1beta1_1.securitycenter_v1beta1; } }); +const v1beta2_1 = __webpack_require__(9718); +Object.defineProperty(exports, "securitycenter_v1beta2", { enumerable: true, get: function () { return v1beta2_1.securitycenter_v1beta2; } }); +const v1p1alpha1_1 = __webpack_require__(8021); +Object.defineProperty(exports, "securitycenter_v1p1alpha1", { enumerable: true, get: function () { return v1p1alpha1_1.securitycenter_v1p1alpha1; } }); +const v1p1beta1_1 = __webpack_require__(1897); +Object.defineProperty(exports, "securitycenter_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.securitycenter_v1p1beta1; } }); +exports.VERSIONS = { + v1: v1_1.securitycenter_v1.Securitycenter, + v1beta1: v1beta1_1.securitycenter_v1beta1.Securitycenter, + v1beta2: v1beta2_1.securitycenter_v1beta2.Securitycenter, + v1p1alpha1: v1p1alpha1_1.securitycenter_v1p1alpha1.Securitycenter, + v1p1beta1: v1p1beta1_1.securitycenter_v1p1beta1.Securitycenter, +}; +function securitycenter(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('securitycenter', versionOrOptions, exports.VERSIONS, this); +} +exports.securitycenter = securitycenter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6217: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.classroom_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var classroom_v1; +(function (classroom_v1) { + /** + * Google Classroom API + * + * Manages classes, rosters, and invitations in Google Classroom. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const classroom = google.classroom('v1'); + * ``` + */ + class Classroom { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.courses = new Resource$Courses(this.context); + this.invitations = new Resource$Invitations(this.context); + this.registrations = new Resource$Registrations(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + } + } + classroom_v1.Classroom = Classroom; + class Resource$Courses { + constructor(context) { + this.context = context; + this.aliases = new Resource$Courses$Aliases(this.context); + this.announcements = new Resource$Courses$Announcements(this.context); + this.courseWork = new Resource$Courses$Coursework(this.context); + this.courseWorkMaterials = new Resource$Courses$Courseworkmaterials(this.context); + this.students = new Resource$Courses$Students(this.context); + this.teachers = new Resource$Courses$Teachers(this.context); + this.topics = new Resource$Courses$Topics(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses = Resource$Courses; + class Resource$Courses$Aliases { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'alias'], + pathParams: ['alias', 'courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Aliases = Resource$Courses$Aliases; + class Resource$Courses$Announcements { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAssignees(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Announcements = Resource$Courses$Announcements; + class Resource$Courses$Coursework { + constructor(context) { + this.context = context; + this.studentSubmissions = + new Resource$Courses$Coursework$Studentsubmissions(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAssignees(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework = Resource$Courses$Coursework; + class Resource$Courses$Coursework$Studentsubmissions { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId'], + pathParams: ['courseId', 'courseWorkId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + modifyAttachments(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + reclaim(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + return(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + turnIn(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework$Studentsubmissions = Resource$Courses$Coursework$Studentsubmissions; + class Resource$Courses$Courseworkmaterials { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Courseworkmaterials = Resource$Courses$Courseworkmaterials; + class Resource$Courses$Students { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Students = Resource$Courses$Students; + class Resource$Courses$Teachers { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Teachers = Resource$Courses$Teachers; + class Resource$Courses$Topics { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Courses$Topics = Resource$Courses$Topics; + class Resource$Invitations { + constructor(context) { + this.context = context; + } + accept(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Invitations = Resource$Invitations; + class Resource$Registrations { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/registrations/{registrationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['registrationId'], + pathParams: ['registrationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Registrations = Resource$Registrations; + class Resource$Userprofiles { + constructor(context) { + this.context = context; + this.guardianInvitations = new Resource$Userprofiles$Guardianinvitations(this.context); + this.guardians = new Resource$Userprofiles$Guardians(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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userprofiles$Guardianinvitations { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Userprofiles$Guardianinvitations = Resource$Userprofiles$Guardianinvitations; + class Resource$Userprofiles$Guardians { + 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + classroom_v1.Resource$Userprofiles$Guardians = Resource$Userprofiles$Guardians; +})(classroom_v1 = exports.classroom_v1 || (exports.classroom_v1 = {})); + + +/***/ }), + +/***/ 6235: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.fcmdata_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var fcmdata_v1beta1; +(function (fcmdata_v1beta1) { + /** + * Firebase Cloud Messaging Data API + * + * Provides additional information about Firebase Cloud Messaging (FCM) message sends and deliveries. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const fcmdata = google.fcmdata('v1beta1'); + * ``` + */ + class Fcmdata { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + fcmdata_v1beta1.Fcmdata = Fcmdata; + class Resource$Projects { + constructor(context) { + this.context = context; + this.androidApps = new Resource$Projects$Androidapps(this.context); + } + } + fcmdata_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Androidapps { + constructor(context) { + this.context = context; + this.deliveryData = new Resource$Projects$Androidapps$Deliverydata(this.context); + } + } + fcmdata_v1beta1.Resource$Projects$Androidapps = Resource$Projects$Androidapps; + class Resource$Projects$Androidapps$Deliverydata { + 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://fcmdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/deliveryData').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + fcmdata_v1beta1.Resource$Projects$Androidapps$Deliverydata = Resource$Projects$Androidapps$Deliverydata; +})(fcmdata_v1beta1 = exports.fcmdata_v1beta1 || (exports.fcmdata_v1beta1 = {})); + + +/***/ }), + +/***/ 6237: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigqueryreservation_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var bigqueryreservation_v1beta1; +(function (bigqueryreservation_v1beta1) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1beta1'); + * ``` + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1beta1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.capacityCommitments = + new Resource$Projects$Locations$Capacitycommitments(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + getBiReservation(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchAssignments(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBiReservation(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + merge(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + split(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.assignments = + new Resource$Projects$Locations$Reservations$Assignments(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + move(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1beta1 || (exports.bigqueryreservation_v1beta1 = {})); + + +/***/ }), + +/***/ 6243: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudasset_v1p7beta1 = exports.cloudasset_v1p5beta1 = exports.cloudasset_v1p4beta1 = exports.cloudasset_v1p1beta1 = exports.cloudasset_v1beta1 = exports.cloudasset_v1 = exports.auth = exports.cloudasset = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5010); +Object.defineProperty(exports, "cloudasset_v1", { enumerable: true, get: function () { return v1_1.cloudasset_v1; } }); +const v1beta1_1 = __webpack_require__(4599); +Object.defineProperty(exports, "cloudasset_v1beta1", { enumerable: true, get: function () { return v1beta1_1.cloudasset_v1beta1; } }); +const v1p1beta1_1 = __webpack_require__(2141); +Object.defineProperty(exports, "cloudasset_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } }); +const v1p4beta1_1 = __webpack_require__(1320); +Object.defineProperty(exports, "cloudasset_v1p4beta1", { enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } }); +const v1p5beta1_1 = __webpack_require__(2071); +Object.defineProperty(exports, "cloudasset_v1p5beta1", { enumerable: true, get: function () { return v1p5beta1_1.cloudasset_v1p5beta1; } }); +const v1p7beta1_1 = __webpack_require__(4720); +Object.defineProperty(exports, "cloudasset_v1p7beta1", { enumerable: true, get: function () { return v1p7beta1_1.cloudasset_v1p7beta1; } }); +exports.VERSIONS = { + v1: v1_1.cloudasset_v1.Cloudasset, + v1beta1: v1beta1_1.cloudasset_v1beta1.Cloudasset, + v1p1beta1: v1p1beta1_1.cloudasset_v1p1beta1.Cloudasset, + v1p4beta1: v1p4beta1_1.cloudasset_v1p4beta1.Cloudasset, + v1p5beta1: v1p5beta1_1.cloudasset_v1p5beta1.Cloudasset, + v1p7beta1: v1p7beta1_1.cloudasset_v1p7beta1.Cloudasset, +}; +function cloudasset(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudasset', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudasset = cloudasset; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6268: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.recommender_v1beta1 = exports.recommender_v1 = exports.auth = exports.recommender = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5762); +Object.defineProperty(exports, "recommender_v1", { enumerable: true, get: function () { return v1_1.recommender_v1; } }); +const v1beta1_1 = __webpack_require__(8192); +Object.defineProperty(exports, "recommender_v1beta1", { enumerable: true, get: function () { return v1beta1_1.recommender_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.recommender_v1.Recommender, + v1beta1: v1beta1_1.recommender_v1beta1.Recommender, +}; +function recommender(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('recommender', versionOrOptions, exports.VERSIONS, this); +} +exports.recommender = recommender; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6275: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.acmedns_v1 = exports.auth = exports.acmedns = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3223); +Object.defineProperty(exports, "acmedns_v1", { enumerable: true, get: function () { return v1_1.acmedns_v1; } }); +exports.VERSIONS = { + v1: v1_1.acmedns_v1.Acmedns, +}; +function acmedns(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('acmedns', versionOrOptions, exports.VERSIONS, this); +} +exports.acmedns = acmedns; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6300: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.androidpublisher_v3 = exports.androidpublisher_v2 = exports.androidpublisher_v1 = exports.androidpublisher_v1_1 = exports.auth = exports.androidpublisher = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1_1 = __webpack_require__(7122); +Object.defineProperty(exports, "androidpublisher_v1_1", { enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } }); +const v1_1 = __webpack_require__(4286); +Object.defineProperty(exports, "androidpublisher_v1", { enumerable: true, get: function () { return v1_1.androidpublisher_v1; } }); +const v2_1 = __webpack_require__(1813); +Object.defineProperty(exports, "androidpublisher_v2", { enumerable: true, get: function () { return v2_1.androidpublisher_v2; } }); +const v3_1 = __webpack_require__(5285); +Object.defineProperty(exports, "androidpublisher_v3", { enumerable: true, get: function () { return v3_1.androidpublisher_v3; } }); +exports.VERSIONS = { + 'v1.1': v1_1_1.androidpublisher_v1_1.Androidpublisher, + v1: v1_1.androidpublisher_v1.Androidpublisher, + v2: v2_1.androidpublisher_v2.Androidpublisher, + v3: v3_1.androidpublisher_v3.Androidpublisher, +}; +function androidpublisher(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('androidpublisher', versionOrOptions, exports.VERSIONS, this); +} +exports.androidpublisher = androidpublisher; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6307: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigqueryreservation_v1alpha2 = 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 = __webpack_require__(927); +var bigqueryreservation_v1alpha2; +(function (bigqueryreservation_v1alpha2) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1alpha2'); + * ``` + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1alpha2.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.reservationGrants = new Resource$Projects$Locations$Reservationgrants(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + searchReservationGrants(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}:SearchReservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Reservationgrants { + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservationgrants = Resource$Projects$Locations$Reservationgrants; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.slotPools = new Resource$Projects$Locations$Reservations$Slotpools(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createReservation(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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Slotpools { + 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/slotPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations$Slotpools = Resource$Projects$Locations$Reservations$Slotpools; +})(bigqueryreservation_v1alpha2 = exports.bigqueryreservation_v1alpha2 || (exports.bigqueryreservation_v1alpha2 = {})); + + +/***/ }), + +/***/ 6319: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudscheduler_v1beta1 = exports.cloudscheduler_v1 = exports.auth = exports.cloudscheduler = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8207); +Object.defineProperty(exports, "cloudscheduler_v1", { enumerable: true, get: function () { return v1_1.cloudscheduler_v1; } }); +const v1beta1_1 = __webpack_require__(7124); +Object.defineProperty(exports, "cloudscheduler_v1beta1", { enumerable: true, get: function () { return v1beta1_1.cloudscheduler_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.cloudscheduler_v1.Cloudscheduler, + v1beta1: v1beta1_1.cloudscheduler_v1beta1.Cloudscheduler, +}; +function cloudscheduler(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudscheduler', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudscheduler = cloudscheduler; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6326: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.fcmdata_v1beta1 = exports.auth = exports.fcmdata = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(6235); +Object.defineProperty(exports, "fcmdata_v1beta1", { enumerable: true, get: function () { return v1beta1_1.fcmdata_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.fcmdata_v1beta1.Fcmdata, +}; +function fcmdata(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('fcmdata', versionOrOptions, exports.VERSIONS, this); +} +exports.fcmdata = fcmdata; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6332: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.texttospeech_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var texttospeech_v1; +(function (texttospeech_v1) { + /** + * Cloud Text-to-Speech API + * + * Synthesizes natural-sounding speech by applying powerful neural network models. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const texttospeech = google.texttospeech('v1'); + * ``` + */ + class Texttospeech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.text = new Resource$Text(this.context); + this.voices = new Resource$Voices(this.context); + } + } + texttospeech_v1.Texttospeech = Texttospeech; + class Resource$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://texttospeech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://texttospeech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + texttospeech_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + synthesizeLongAudio(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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:synthesizeLongAudio').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$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://texttospeech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://texttospeech.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Text { + constructor(context) { + this.context = context; + } + synthesize(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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1.Resource$Text = Resource$Text; + class Resource$Voices { + 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://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/voices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + texttospeech_v1.Resource$Voices = Resource$Voices; +})(texttospeech_v1 = exports.texttospeech_v1 || (exports.texttospeech_v1 = {})); + + +/***/ }), + +/***/ 6339: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.doubleclickbidmanager_v1_1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var doubleclickbidmanager_v1_1; +(function (doubleclickbidmanager_v1_1) { + /** + * DoubleClick Bid Manager API + * + * DoubleClick Bid Manager API allows users to manage and create campaigns and reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v1.1'); + * ``` + */ + class Doubleclickbidmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.queries = new Resource$Queries(this.context); + this.reports = new Resource$Reports(this.context); + } + } + doubleclickbidmanager_v1_1.Doubleclickbidmanager = Doubleclickbidmanager; + class Resource$Queries { + constructor(context) { + this.context = context; + } + createquery(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletequery(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getquery(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listqueries(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runquery(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclickbidmanager_v1_1.Resource$Queries = Resource$Queries; + class Resource$Reports { + constructor(context) { + this.context = context; + } + listreports(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://doubleclickbidmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + doubleclickbidmanager_v1_1.Resource$Reports = Resource$Reports; +})(doubleclickbidmanager_v1_1 = exports.doubleclickbidmanager_v1_1 || (exports.doubleclickbidmanager_v1_1 = {})); + + +/***/ }), + +/***/ 6345: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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. +var _a, _b, _c; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IdentityPoolClient = void 0; +const fs = __webpack_require__(5747); +const util_1 = __webpack_require__(1669); +const baseexternalclient_1 = __webpack_require__(48); +// fs.readfile is undefined in browser karma tests causing +// `npm run browser-test` to fail as test.oauth2.ts imports this file via +// src/index.ts. +// Fallback to void function to avoid promisify throwing a TypeError. +const readFile = (0, util_1.promisify)((_a = fs.readFile) !== null && _a !== void 0 ? _a : (() => { })); +const realpath = (0, util_1.promisify)((_b = fs.realpath) !== null && _b !== void 0 ? _b : (() => { })); +const lstat = (0, util_1.promisify)((_c = fs.lstat) !== null && _c !== void 0 ? _c : (() => { })); +/** + * Defines the Url-sourced and file-sourced external account clients mainly + * used for K8s and Azure workloads. + */ +class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiate an IdentityPoolClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid file-sourced or + * url-sourced credential or a workforce pool user project is provided + * with a non workforce audience. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + var _a, _b; + super(options, additionalOptions); + this.file = options.credential_source.file; + this.url = options.credential_source.url; + this.headers = options.credential_source.headers; + if (!this.file && !this.url) { + throw new Error('No valid Identity Pool "credential_source" provided'); + } + // Text is the default format type. + this.formatType = ((_a = options.credential_source.format) === null || _a === void 0 ? void 0 : _a.type) || 'text'; + this.formatSubjectTokenFieldName = + (_b = options.credential_source.format) === null || _b === void 0 ? void 0 : _b.subject_token_field_name; + if (this.formatType !== 'json' && this.formatType !== 'text') { + throw new Error(`Invalid credential_source format "${this.formatType}"`); + } + if (this.formatType === 'json' && !this.formatSubjectTokenFieldName) { + throw new Error('Missing subject_token_field_name for JSON credential_source format'); + } + } + /** + * Triggered when a external subject token is needed to be exchanged for a GCP + * access token via GCP STS endpoint. + * This uses the `options.credential_source` object to figure out how + * to retrieve the token using the current environment. In this case, + * this either retrieves the local credential from a file location (k8s + * workload) or by sending a GET request to a local metadata server (Azure + * workloads). + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + if (this.file) { + return await this.getTokenFromFile(this.file, this.formatType, this.formatSubjectTokenFieldName); + } + return await this.getTokenFromUrl(this.url, this.formatType, this.formatSubjectTokenFieldName, this.headers); + } + /** + * Looks up the external subject token in the file path provided and + * resolves with that token. + * @param file The file path where the external credential is located. + * @param formatType The token file or URL response type (JSON or text). + * @param formatSubjectTokenFieldName For JSON response types, this is the + * subject_token field name. For Azure, this is access_token. For text + * response types, this is ignored. + * @return A promise that resolves with the external subject token. + */ + async getTokenFromFile(filePath, formatType, formatSubjectTokenFieldName) { + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + filePath = await realpath(filePath); + if (!(await lstat(filePath)).isFile()) { + throw new Error(); + } + } + catch (err) { + if (err instanceof Error) { + err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + } + throw err; + } + let subjectToken; + const rawText = await readFile(filePath, { encoding: 'utf8' }); + if (formatType === 'text') { + subjectToken = rawText; + } + else if (formatType === 'json' && formatSubjectTokenFieldName) { + const json = JSON.parse(rawText); + subjectToken = json[formatSubjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source file'); + } + return subjectToken; + } + /** + * Sends a GET request to the URL provided and resolves with the returned + * external subject token. + * @param url The URL to call to retrieve the subject token. This is typically + * a local metadata server. + * @param formatType The token file or URL response type (JSON or text). + * @param formatSubjectTokenFieldName For JSON response types, this is the + * subject_token field name. For Azure, this is access_token. For text + * response types, this is ignored. + * @param headers The optional additional headers to send with the request to + * the metadata server url. + * @return A promise that resolves with the external subject token. + */ + async getTokenFromUrl(url, formatType, formatSubjectTokenFieldName, headers) { + const opts = { + url, + method: 'GET', + headers, + responseType: formatType, + }; + let subjectToken; + if (formatType === 'text') { + const response = await this.transporter.request(opts); + subjectToken = response.data; + } + else if (formatType === 'json' && formatSubjectTokenFieldName) { + const response = await this.transporter.request(opts); + subjectToken = response.data[formatSubjectTokenFieldName]; + } + if (!subjectToken) { + throw new Error('Unable to parse the subject_token from the credential_source URL'); + } + return subjectToken; + } +} +exports.IdentityPoolClient = IdentityPoolClient; +//# sourceMappingURL=identitypoolclient.js.map + +/***/ }), + +/***/ 6370: +/***/ (function(module) { + +module.exports = deprecate + +const loggedMessages = {} + +function deprecate (message) { + if (loggedMessages[message]) { + return + } + + console.warn(`DEPRECATED (@octokit/rest): ${message}`) + loggedMessages[message] = 1 +} + + +/***/ }), + +/***/ 6375: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.notebooks_v2 = exports.notebooks_v1 = exports.auth = exports.notebooks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8361); +Object.defineProperty(exports, "notebooks_v1", { enumerable: true, get: function () { return v1_1.notebooks_v1; } }); +const v2_1 = __webpack_require__(7043); +Object.defineProperty(exports, "notebooks_v2", { enumerable: true, get: function () { return v2_1.notebooks_v2; } }); +exports.VERSIONS = { + v1: v1_1.notebooks_v1.Notebooks, + v2: v2_1.notebooks_v2.Notebooks, +}; +function notebooks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('notebooks', versionOrOptions, exports.VERSIONS, this); +} +exports.notebooks = notebooks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6377: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.file_v1beta1 = exports.file_v1 = exports.auth = exports.file = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8731); +Object.defineProperty(exports, "file_v1", { enumerable: true, get: function () { return v1_1.file_v1; } }); +const v1beta1_1 = __webpack_require__(6833); +Object.defineProperty(exports, "file_v1beta1", { enumerable: true, get: function () { return v1beta1_1.file_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.file_v1.File, + v1beta1: v1beta1_1.file_v1beta1.File, +}; +function file(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('file', versionOrOptions, exports.VERSIONS, this); +} +exports.file = file; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6389: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.container_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var container_v1beta1; +(function (container_v1beta1) { + /** + * Kubernetes Engine API + * + * Builds and manages container-based applications, powered by the open source Kubernetes technology. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const container = google.container('v1beta1'); + * ``` + */ + class Container { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + container_v1beta1.Container = Container; + class Resource$Projects { + constructor(context) { + this.context = context; + this.aggregated = new Resource$Projects$Aggregated(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.zones = new Resource$Projects$Zones(this.context); + } + } + container_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Aggregated { + constructor(context) { + this.context = context; + this.usableSubnetworks = + new Resource$Projects$Aggregated$Usablesubnetworks(this.context); + } + } + container_v1beta1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; + class Resource$Projects$Aggregated$Usablesubnetworks { + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Aggregated$Usablesubnetworks = Resource$Projects$Aggregated$Usablesubnetworks; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + getServerConfig(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(this.context); + this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(this.context); + } + completeIpRotation(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getJwks(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAddons(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLegacyAbac(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLocations(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLogging(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMaintenancePolicy(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMasterAuth(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMonitoring(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNetworkPolicy(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setResourceLabels(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startIpRotation(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateMaster(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + completeUpgrade(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:completeUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAutoscaling(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setManagement(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSize(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; + class Resource$Projects$Locations$Clusters$WellKnown { + constructor(context) { + this.context = context; + } + getOpenidConfiguration(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Clusters$WellKnown = Resource$Projects$Locations$Clusters$WellKnown; + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Zones { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Zones$Clusters(this.context); + this.operations = new Resource$Projects$Zones$Operations(this.context); + } + getServerconfig(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones = Resource$Projects$Zones; + class Resource$Projects$Zones$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(this.context); + } + addons(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + completeIpRotation(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + legacyAbac(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + locations(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + logging(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + master(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + monitoring(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resourceLabels(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMaintenancePolicy(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMasterAuth(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNetworkPolicy(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startIpRotation(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; + class Resource$Projects$Zones$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + autoscaling(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rollback(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setManagement(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSize(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; + class Resource$Projects$Zones$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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; +})(container_v1beta1 = exports.container_v1beta1 || (exports.container_v1beta1 = {})); + + +/***/ }), + +/***/ 6396: +/***/ (function(module) { + +"use strict"; + +module.exports = function (Yallist) { + Yallist.prototype[Symbol.iterator] = function* () { + for (let walker = this.head; walker; walker = walker.next) { + yield walker.value + } + } +} + + +/***/ }), + +/***/ 6404: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.iam_v2beta = exports.iam_v2 = exports.iam_v1 = exports.auth = exports.iam = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8992); +Object.defineProperty(exports, "iam_v1", { enumerable: true, get: function () { return v1_1.iam_v1; } }); +const v2_1 = __webpack_require__(3889); +Object.defineProperty(exports, "iam_v2", { enumerable: true, get: function () { return v2_1.iam_v2; } }); +const v2beta_1 = __webpack_require__(4596); +Object.defineProperty(exports, "iam_v2beta", { enumerable: true, get: function () { return v2beta_1.iam_v2beta; } }); +exports.VERSIONS = { + v1: v1_1.iam_v1.Iam, + v2: v2_1.iam_v2.Iam, + v2beta: v2beta_1.iam_v2beta.Iam, +}; +function iam(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('iam', versionOrOptions, exports.VERSIONS, this); +} +exports.iam = iam; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6417: +/***/ (function(module) { + +module.exports = require("crypto"); + +/***/ }), + +/***/ 6445: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.datastore_v1beta3 = exports.datastore_v1beta1 = exports.datastore_v1 = exports.auth = exports.datastore = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4618); +Object.defineProperty(exports, "datastore_v1", { enumerable: true, get: function () { return v1_1.datastore_v1; } }); +const v1beta1_1 = __webpack_require__(234); +Object.defineProperty(exports, "datastore_v1beta1", { enumerable: true, get: function () { return v1beta1_1.datastore_v1beta1; } }); +const v1beta3_1 = __webpack_require__(8672); +Object.defineProperty(exports, "datastore_v1beta3", { enumerable: true, get: function () { return v1beta3_1.datastore_v1beta3; } }); +exports.VERSIONS = { + v1: v1_1.datastore_v1.Datastore, + v1beta1: v1beta1_1.datastore_v1beta1.Datastore, + v1beta3: v1beta3_1.datastore_v1beta3.Datastore, +}; +function datastore(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datastore', versionOrOptions, exports.VERSIONS, this); +} +exports.datastore = datastore; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6456: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +exports.default = _default; + +/***/ }), + +/***/ 6463: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of a basic Public Key Infrastructure, including + * support for RSA public and private keys. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(1431); +__webpack_require__(1988); +__webpack_require__(8131); +__webpack_require__(4076); +__webpack_require__(1575); +__webpack_require__(7997); +__webpack_require__(2705); +__webpack_require__(1526); +__webpack_require__(7152); +__webpack_require__(2249); + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; + +/** + * NOTE: THIS METHOD IS DEPRECATED. Use pem.decode() instead. + * + * Converts PEM-formatted data to DER. + * + * @param pem the PEM-formatted data. + * + * @return the DER-formatted data. + */ +pki.pemToDer = function(pem) { + var msg = forge.pem.decode(pem)[0]; + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert PEM to DER; PEM is encrypted.'); + } + return forge.util.createBuffer(msg.body); +}; + +/** + * Converts an RSA private key from PEM format. + * + * @param pem the PEM-formatted private key. + * + * @return the private key. + */ +pki.privateKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PRIVATE KEY' && msg.type !== 'RSA PRIVATE KEY') { + var error = new Error('Could not convert private key from PEM; PEM ' + + 'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert private key from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return pki.privateKeyFromAsn1(obj); +}; + +/** + * Converts an RSA private key to PEM format. + * + * @param key the private key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted private key. + */ +pki.privateKeyToPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'RSA PRIVATE KEY', + body: asn1.toDer(pki.privateKeyToAsn1(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts a PrivateKeyInfo to PEM format. + * + * @param pki the PrivateKeyInfo. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted private key. + */ +pki.privateKeyInfoToPem = function(pki, maxline) { + // convert to DER, then PEM-encode + var msg = { + type: 'PRIVATE KEY', + body: asn1.toDer(pki).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + + +/***/ }), + +/***/ 6470: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +const command_1 = __webpack_require__(4431); +const file_command_1 = __webpack_require__(2102); +const utils_1 = __webpack_require__(5082); +const os = __importStar(__webpack_require__(2087)); +const path = __importStar(__webpack_require__(5622)); +const oidc_utils_1 = __webpack_require__(6742); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); + } + command_1.issueCommand('set-env', { name }, convertedVal); +} +exports.exportVariable = exportVariable; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +function setSecret(secret) { + command_1.issueCommand('add-mask', {}, secret); +} +exports.setSecret = setSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueFileCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. + * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. + * Returns an empty string if the value is not defined. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +function getMultilineInput(name, options) { + const inputs = getInput(name, options) + .split('\n') + .filter(x => x !== ''); + if (options && options.trimWhitespace === false) { + return inputs; + } + return inputs.map(input => input.trim()); +} +exports.getMultilineInput = getMultilineInput; +/** + * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. + * Support boolean input list: `true | True | TRUE | false | False | FALSE` . + * The return value is also in boolean type. + * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns boolean + */ +function getBooleanInput(name, options) { + const trueValue = ['true', 'True', 'TRUE']; + const falseValue = ['false', 'False', 'FALSE']; + const val = getInput(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); +} +exports.getBooleanInput = getBooleanInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function setOutput(name, value) { + const filePath = process.env['GITHUB_OUTPUT'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); + } + process.stdout.write(os.EOL); + command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); +} +exports.setOutput = setOutput; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +function setCommandEcho(enabled) { + command_1.issue('echo', enabled ? 'on' : 'off'); +} +exports.setCommandEcho = setCommandEcho; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function error(message, properties = {}) { + command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.error = error; +/** + * Adds a warning issue + * @param message warning issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function warning(message, properties = {}) { + command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.warning = warning; +/** + * Adds a notice issue + * @param message notice issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function notice(message, properties = {}) { + command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.notice = notice; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; +//----------------------------------------------------------------------- +// Wrapper action state +//----------------------------------------------------------------------- +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function saveState(name, value) { + const filePath = process.env['GITHUB_STATE'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); + } + command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); +} +exports.saveState = saveState; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +function getState(name) { + return process.env[`STATE_${name}`] || ''; +} +exports.getState = getState; +function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); +} +exports.getIDToken = getIDToken; +/** + * Summary exports + */ +var summary_1 = __webpack_require__(7665); +Object.defineProperty(exports, "summary", { enumerable: true, get: function () { return summary_1.summary; } }); +/** + * @deprecated use core.summary + */ +var summary_2 = __webpack_require__(7665); +Object.defineProperty(exports, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } }); +/** + * Path exports + */ +var path_utils_1 = __webpack_require__(5573); +Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } }); +Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } }); +Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }); +//# sourceMappingURL=core.js.map + +/***/ }), + +/***/ 6478: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.clouddebugger_v2 = exports.auth = exports.clouddebugger = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(4409); +Object.defineProperty(exports, "clouddebugger_v2", { enumerable: true, get: function () { return v2_1.clouddebugger_v2; } }); +exports.VERSIONS = { + v2: v2_1.clouddebugger_v2.Clouddebugger, +}; +function clouddebugger(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('clouddebugger', versionOrOptions, exports.VERSIONS, this); +} +exports.clouddebugger = clouddebugger; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6479: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Node.js module for all known Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +module.exports = __webpack_require__(1220); + +__webpack_require__(5237); +__webpack_require__(2707); +__webpack_require__(12); +__webpack_require__(1679); + + +/***/ }), + +/***/ 6480: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networkmanagement_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networkmanagement_v1beta1; +(function (networkmanagement_v1beta1) { + /** + * Network Management API + * + * The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networkmanagement = google.networkmanagement('v1beta1'); + * ``` + */ + class Networkmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networkmanagement_v1beta1.Networkmanagement = Networkmanagement; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networkmanagement_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkmanagement_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.connectivityTests = + new Resource$Projects$Locations$Global$Connectivitytests(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + } + } + networkmanagement_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Connectivitytests { + 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rerun(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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkmanagement_v1beta1.Resource$Projects$Locations$Global$Connectivitytests = Resource$Projects$Locations$Global$Connectivitytests; + class Resource$Projects$Locations$Global$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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + networkmanagement_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(networkmanagement_v1beta1 = exports.networkmanagement_v1beta1 || (exports.networkmanagement_v1beta1 = {})); + + +/***/ }), + +/***/ 6486: +/***/ (function(module, __unusedexports, __webpack_require__) { + + +/** + * This is the common logic for both the Node.js and web browser + * implementations of `debug()`. + */ + +function setup(env) { + createDebug.debug = createDebug; + createDebug.default = createDebug; + createDebug.coerce = coerce; + createDebug.disable = disable; + createDebug.enable = enable; + createDebug.enabled = enabled; + createDebug.humanize = __webpack_require__(317); + createDebug.destroy = destroy; + + Object.keys(env).forEach(key => { + createDebug[key] = env[key]; + }); + + /** + * The currently active debug mode names, and names to skip. + */ + + createDebug.names = []; + createDebug.skips = []; + + /** + * Map of special "%n" handling functions, for the debug "format" argument. + * + * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + */ + createDebug.formatters = {}; + + /** + * Selects a color for a debug namespace + * @param {String} namespace The namespace string for the debug instance to be colored + * @return {Number|String} An ANSI color code for the given namespace + * @api private + */ + function selectColor(namespace) { + let hash = 0; + + for (let i = 0; i < namespace.length; i++) { + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); + hash |= 0; // Convert to 32bit integer + } + + return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; + } + createDebug.selectColor = selectColor; + + /** + * Create a debugger with the given `namespace`. + * + * @param {String} namespace + * @return {Function} + * @api public + */ + function createDebug(namespace) { + let prevTime; + let enableOverride = null; + let namespacesCache; + let enabledCache; + + function debug(...args) { + // Disabled? + if (!debug.enabled) { + return; + } + + const self = debug; + + // Set `diff` timestamp + const curr = Number(new Date()); + const ms = curr - (prevTime || curr); + self.diff = ms; + self.prev = prevTime; + self.curr = curr; + prevTime = curr; + + args[0] = createDebug.coerce(args[0]); + + if (typeof args[0] !== 'string') { + // Anything else let's inspect with %O + args.unshift('%O'); + } + + // Apply any `formatters` transformations + let index = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { + // If we encounter an escaped % then don't increase the array index + if (match === '%%') { + return '%'; + } + index++; + const formatter = createDebug.formatters[format]; + if (typeof formatter === 'function') { + const val = args[index]; + match = formatter.call(self, val); + + // Now we need to remove `args[index]` since it's inlined in the `format` + args.splice(index, 1); + index--; + } + return match; + }); + + // Apply env-specific formatting (colors, etc.) + createDebug.formatArgs.call(self, args); + + const logFn = self.log || createDebug.log; + logFn.apply(self, args); + } + + debug.namespace = namespace; + debug.useColors = createDebug.useColors(); + debug.color = createDebug.selectColor(namespace); + debug.extend = extend; + debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. + + Object.defineProperty(debug, 'enabled', { + enumerable: true, + configurable: false, + get: () => { + if (enableOverride !== null) { + return enableOverride; + } + if (namespacesCache !== createDebug.namespaces) { + namespacesCache = createDebug.namespaces; + enabledCache = createDebug.enabled(namespace); + } + + return enabledCache; + }, + set: v => { + enableOverride = v; + } + }); + + // Env-specific initialization logic for debug instances + if (typeof createDebug.init === 'function') { + createDebug.init(debug); + } + + return debug; + } + + function extend(namespace, delimiter) { + const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); + newDebug.log = this.log; + return newDebug; + } + + /** + * Enables a debug mode by namespaces. This can include modes + * separated by a colon and wildcards. + * + * @param {String} namespaces + * @api public + */ + function enable(namespaces) { + createDebug.save(namespaces); + createDebug.namespaces = namespaces; + + createDebug.names = []; + createDebug.skips = []; + + let i; + const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); + const len = split.length; + + for (i = 0; i < len; i++) { + if (!split[i]) { + // ignore empty strings + continue; + } + + namespaces = split[i].replace(/\*/g, '.*?'); + + if (namespaces[0] === '-') { + createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$')); + } else { + createDebug.names.push(new RegExp('^' + namespaces + '$')); + } + } + } + + /** + * Disable debug output. + * + * @return {String} namespaces + * @api public + */ + function disable() { + const namespaces = [ + ...createDebug.names.map(toNamespace), + ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) + ].join(','); + createDebug.enable(''); + return namespaces; + } + + /** + * Returns true if the given mode name is enabled, false otherwise. + * + * @param {String} name + * @return {Boolean} + * @api public + */ + function enabled(name) { + if (name[name.length - 1] === '*') { + return true; + } + + let i; + let len; + + for (i = 0, len = createDebug.skips.length; i < len; i++) { + if (createDebug.skips[i].test(name)) { + return false; + } + } + + for (i = 0, len = createDebug.names.length; i < len; i++) { + if (createDebug.names[i].test(name)) { + return true; + } + } + + return false; + } + + /** + * Convert regexp to namespace + * + * @param {RegExp} regxep + * @return {String} namespace + * @api private + */ + function toNamespace(regexp) { + return regexp.toString() + .substring(2, regexp.toString().length - 2) + .replace(/\.\*\?$/, '*'); + } + + /** + * Coerce `val`. + * + * @param {Mixed} val + * @return {Mixed} + * @api private + */ + function coerce(val) { + if (val instanceof Error) { + return val.stack || val.message; + } + return val; + } + + /** + * XXX DO NOT USE. This is a temporary stub function. + * XXX It WILL be removed in the next major release. + */ + function destroy() { + console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); + } + + createDebug.enable(createDebug.load()); + + return createDebug; +} + +module.exports = setup; + + +/***/ }), + +/***/ 6489: +/***/ (function(module) { + +module.exports = validateAuth; + +function validateAuth(auth) { + if (typeof auth === "string") { + return; + } + + if (typeof auth === "function") { + return; + } + + if (auth.username && auth.password) { + return; + } + + if (auth.clientId && auth.clientSecret) { + return; + } + + throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`); +} + + +/***/ }), + +/***/ 6494: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.texttospeech_v1beta1 = exports.texttospeech_v1 = exports.auth = exports.texttospeech = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6332); +Object.defineProperty(exports, "texttospeech_v1", { enumerable: true, get: function () { return v1_1.texttospeech_v1; } }); +const v1beta1_1 = __webpack_require__(2929); +Object.defineProperty(exports, "texttospeech_v1beta1", { enumerable: true, get: function () { return v1beta1_1.texttospeech_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.texttospeech_v1.Texttospeech, + v1beta1: v1beta1_1.texttospeech_v1beta1.Texttospeech, +}; +function texttospeech(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('texttospeech', versionOrOptions, exports.VERSIONS, this); +} +exports.texttospeech = texttospeech; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6502: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sts_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sts_v1; +(function (sts_v1) { + /** + * Security Token Service API + * + * The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sts = google.sts('v1'); + * ``` + */ + class Sts { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1 = new Resource$V1(this.context); + } + } + sts_v1.Sts = Sts; + class Resource$V1 { + constructor(context) { + this.context = context; + } + introspect(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://sts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/introspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + oauthtoken(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://sts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/oauthtoken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + token(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://sts.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sts_v1.Resource$V1 = Resource$V1; +})(sts_v1 = exports.sts_v1 || (exports.sts_v1 = {})); + + +/***/ }), + +/***/ 6509: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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.AwsRequestSigner = void 0; +const crypto_1 = __webpack_require__(8984); +/** AWS Signature Version 4 signing algorithm identifier. */ +const AWS_ALGORITHM = 'AWS4-HMAC-SHA256'; +/** + * The termination string for the AWS credential scope value as defined in + * https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html */ -OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs'; +const AWS_REQUEST_TYPE = 'aws4_request'; /** - * Google Sign on certificates in JWK format. + * Implements an AWS API request signer based on the AWS Signature Version 4 + * signing process. + * https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html */ -OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key'; +class AwsRequestSigner { + /** + * Instantiates an AWS API request signer used to send authenticated signed + * requests to AWS APIs based on the AWS Signature Version 4 signing process. + * This also provides a mechanism to generate the signed request without + * sending it. + * @param getCredentials A mechanism to retrieve AWS security credentials + * when needed. + * @param region The AWS region to use. + */ + constructor(getCredentials, region) { + this.getCredentials = getCredentials; + this.region = region; + this.crypto = (0, crypto_1.createCrypto)(); + } + /** + * Generates the signed request for the provided HTTP request for calling + * an AWS API. This follows the steps described at: + * https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html + * @param amzOptions The AWS request options that need to be signed. + * @return A promise that resolves with the GaxiosOptions containing the + * signed HTTP request parameters. + */ + async getRequestOptions(amzOptions) { + if (!amzOptions.url) { + throw new Error('"url" is required in "amzOptions"'); + } + // Stringify JSON requests. This will be set in the request body of the + // generated signed request. + const requestPayloadData = typeof amzOptions.data === 'object' + ? JSON.stringify(amzOptions.data) + : amzOptions.data; + const url = amzOptions.url; + const method = amzOptions.method || 'GET'; + const requestPayload = amzOptions.body || requestPayloadData; + const additionalAmzHeaders = amzOptions.headers; + const awsSecurityCredentials = await this.getCredentials(); + const uri = new URL(url); + const headerMap = await generateAuthenticationHeaderMap({ + crypto: this.crypto, + host: uri.host, + canonicalUri: uri.pathname, + canonicalQuerystring: uri.search.substr(1), + method, + region: this.region, + securityCredentials: awsSecurityCredentials, + requestPayload, + additionalAmzHeaders, + }); + // Append additional optional headers, eg. X-Amz-Target, Content-Type, etc. + const headers = Object.assign( + // Add x-amz-date if available. + headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, { + Authorization: headerMap.authorizationHeader, + host: uri.host, + }, additionalAmzHeaders || {}); + if (awsSecurityCredentials.token) { + Object.assign(headers, { + 'x-amz-security-token': awsSecurityCredentials.token, + }); + } + const awsSignedReq = { + url, + method: method, + headers, + }; + if (typeof requestPayload !== 'undefined') { + awsSignedReq.body = requestPayload; + } + return awsSignedReq; + } +} +exports.AwsRequestSigner = AwsRequestSigner; /** - * Clock skew - five minutes in seconds + * Creates the HMAC-SHA256 hash of the provided message using the + * provided key. + * + * @param crypto The crypto instance used to facilitate cryptographic + * operations. + * @param key The HMAC-SHA256 key to use. + * @param msg The message to hash. + * @return The computed hash bytes. */ -OAuth2Client.CLOCK_SKEW_SECS_ = 300; +async function sign(crypto, key, msg) { + return await crypto.signWithHmacSha256(key, msg); +} /** - * Max Token Lifetime is one day in seconds + * Calculates the signing key used to calculate the signature for + * AWS Signature Version 4 based on: + * https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + * + * @param crypto The crypto instance used to facilitate cryptographic + * operations. + * @param key The AWS secret access key. + * @param dateStamp The '%Y%m%d' date format. + * @param region The AWS region. + * @param serviceName The AWS service name, eg. sts. + * @return The signing key bytes. */ -OAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400; +async function getSigningKey(crypto, key, dateStamp, region, serviceName) { + const kDate = await sign(crypto, `AWS4${key}`, dateStamp); + const kRegion = await sign(crypto, kDate, region); + const kService = await sign(crypto, kRegion, serviceName); + const kSigning = await sign(crypto, kService, 'aws4_request'); + return kSigning; +} /** - * The allowed oauth token issuers. + * Generates the authentication header map needed for generating the AWS + * Signature Version 4 signed request. + * + * @param option The options needed to compute the authentication header map. + * @return The AWS authentication header map which constitutes of the following + * components: amz-date, authorization header and canonical query string. */ -OAuth2Client.ISSUERS_ = [ - 'accounts.google.com', - 'https://accounts.google.com', -]; -//# sourceMappingURL=oauth2client.js.map +async function generateAuthenticationHeaderMap(options) { + const additionalAmzHeaders = options.additionalAmzHeaders || {}; + const requestPayload = options.requestPayload || ''; + // iam.amazonaws.com host => iam service. + // sts.us-east-2.amazonaws.com => sts service. + const serviceName = options.host.split('.')[0]; + const now = new Date(); + // Format: '%Y%m%dT%H%M%SZ'. + const amzDate = now + .toISOString() + .replace(/[-:]/g, '') + .replace(/\.[0-9]+/, ''); + // Format: '%Y%m%d'. + const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, ''); + // Change all additional headers to be lower case. + const reformattedAdditionalAmzHeaders = {}; + Object.keys(additionalAmzHeaders).forEach(key => { + reformattedAdditionalAmzHeaders[key.toLowerCase()] = + additionalAmzHeaders[key]; + }); + // Add AWS token if available. + if (options.securityCredentials.token) { + reformattedAdditionalAmzHeaders['x-amz-security-token'] = + options.securityCredentials.token; + } + // Header keys need to be sorted alphabetically. + const amzHeaders = Object.assign({ + host: options.host, + }, + // Previously the date was not fixed with x-amz- and could be provided manually. + // https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req + reformattedAdditionalAmzHeaders.date ? {} : { 'x-amz-date': amzDate }, reformattedAdditionalAmzHeaders); + let canonicalHeaders = ''; + const signedHeadersList = Object.keys(amzHeaders).sort(); + signedHeadersList.forEach(key => { + canonicalHeaders += `${key}:${amzHeaders[key]}\n`; + }); + const signedHeaders = signedHeadersList.join(';'); + const payloadHash = await options.crypto.sha256DigestHex(requestPayload); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html + const canonicalRequest = `${options.method}\n` + + `${options.canonicalUri}\n` + + `${options.canonicalQuerystring}\n` + + `${canonicalHeaders}\n` + + `${signedHeaders}\n` + + `${payloadHash}`; + const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`; + // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + const stringToSign = `${AWS_ALGORITHM}\n` + + `${amzDate}\n` + + `${credentialScope}\n` + + (await options.crypto.sha256DigestHex(canonicalRequest)); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName); + const signature = await sign(options.crypto, signingKey, stringToSign); + // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html + const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` + + `${credentialScope}, SignedHeaders=${signedHeaders}, ` + + `Signature=${(0, crypto_1.fromArrayBufferToHex)(signature)}`; + return { + // Do not return x-amz-date if date is available. + amzDate: reformattedAdditionalAmzHeaders.date ? undefined : amzDate, + authorizationHeader, + canonicalQuerystring: options.canonicalQuerystring, + }; +} +//# sourceMappingURL=awsrequestsigner.js.map + +/***/ }), + +/***/ 6510: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +const path = __webpack_require__(5622); +const niceTry = __webpack_require__(948); +const resolveCommand = __webpack_require__(7416); +const escape = __webpack_require__(9234); +const readShebang = __webpack_require__(8336); +const semver = __webpack_require__(3864); + +const isWin = process.platform === 'win32'; +const isExecutableRegExp = /\.(?:com|exe)$/i; +const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; + +// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0 +const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false; + +function detectShebang(parsed) { + parsed.file = resolveCommand(parsed); + + const shebang = parsed.file && readShebang(parsed.file); + + if (shebang) { + parsed.args.unshift(parsed.file); + parsed.command = shebang; + + return resolveCommand(parsed); + } + + return parsed.file; +} + +function parseNonShell(parsed) { + if (!isWin) { + return parsed; + } + + // Detect & add support for shebangs + const commandFile = detectShebang(parsed); + + // We don't need a shell if the command filename is an executable + const needsShell = !isExecutableRegExp.test(commandFile); + + // If a shell is required, use cmd.exe and take care of escaping everything correctly + // Note that `forceShell` is an hidden option used only in tests + if (parsed.options.forceShell || needsShell) { + // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/` + // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument + // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called, + // we need to double escape them + const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); + + // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar) + // This is necessary otherwise it will always fail with ENOENT in those cases + parsed.command = path.normalize(parsed.command); + + // Escape command & arguments + parsed.command = escape.command(parsed.command); + parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); + + const shellCommand = [parsed.command].concat(parsed.args).join(' '); + + parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; + parsed.command = process.env.comspec || 'cmd.exe'; + parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped + } + + return parsed; +} + +function parseShell(parsed) { + // If node supports the shell option, there's no need to mimic its behavior + if (supportsShellOption) { + return parsed; + } + + // Mimic node shell option + // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335 + const shellCommand = [parsed.command].concat(parsed.args).join(' '); + + if (isWin) { + parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe'; + parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; + parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped + } else { + if (typeof parsed.options.shell === 'string') { + parsed.command = parsed.options.shell; + } else if (process.platform === 'android') { + parsed.command = '/system/bin/sh'; + } else { + parsed.command = '/bin/sh'; + } + + parsed.args = ['-c', shellCommand]; + } + + return parsed; +} + +function parse(command, args, options) { + // Normalize arguments, similar to nodejs + if (args && !Array.isArray(args)) { + options = args; + args = null; + } + + args = args ? args.slice(0) : []; // Clone array to avoid changing the original + options = Object.assign({}, options); // Clone object to avoid changing the original + + // Build our parsed object + const parsed = { + command, + args, + options, + file: undefined, + original: { + command, + args, + }, + }; + + // Delegate further parsing to shell or non-shell + return options.shell ? parseShell(parsed) : parseNonShell(parsed); +} + +module.exports = parse; + + +/***/ }), + +/***/ 6514: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.acceleratedmobilepageurl_v1 = exports.auth = exports.acceleratedmobilepageurl = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7434); +Object.defineProperty(exports, "acceleratedmobilepageurl_v1", { enumerable: true, get: function () { return v1_1.acceleratedmobilepageurl_v1; } }); +exports.VERSIONS = { + v1: v1_1.acceleratedmobilepageurl_v1.Acceleratedmobilepageurl, +}; +function acceleratedmobilepageurl(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('acceleratedmobilepageurl', versionOrOptions, exports.VERSIONS, this); +} +exports.acceleratedmobilepageurl = acceleratedmobilepageurl; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6529: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigqueryconnection_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var bigqueryconnection_v1beta1; +(function (bigqueryconnection_v1beta1) { + /** + * BigQuery Connection API + * + * Allows users to manage BigQuery connections to external data sources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigqueryconnection = google.bigqueryconnection('v1beta1'); + * ``` + */ + class Bigqueryconnection { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryconnection_v1beta1.Bigqueryconnection = Bigqueryconnection; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryconnection_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.context); + } + } + bigqueryconnection_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateCredential(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://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigqueryconnection_v1beta1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; +})(bigqueryconnection_v1beta1 = exports.bigqueryconnection_v1beta1 || (exports.bigqueryconnection_v1beta1 = {})); + + +/***/ }), + +/***/ 6550: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = getNextPage + +const getPage = __webpack_require__(3265) + +function getNextPage (octokit, link, headers) { + return getPage(octokit, link, 'next', headers) +} + + +/***/ }), + +/***/ 6551: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.blogger_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var blogger_v2; +(function (blogger_v2) { + /** + * Blogger API + * + * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const blogger = google.blogger('v2'); + * ``` + */ + class Blogger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.blogs = new Resource$Blogs(this.context); + this.comments = new Resource$Comments(this.context); + this.pages = new Resource$Pages(this.context); + this.posts = new Resource$Posts(this.context); + this.users = new Resource$Users(this.context); + } + } + blogger_v2.Blogger = Blogger; + class Resource$Blogs { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Blogs = Resource$Blogs; + class Resource$Comments { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Comments = Resource$Comments; + class Resource$Pages { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Pages = Resource$Pages; + class Resource$Posts { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Posts = Resource$Posts; + class Resource$Users { + 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://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + blogger_v2.Resource$Users = Resource$Users; +})(blogger_v2 = exports.blogger_v2 || (exports.blogger_v2 = {})); + + +/***/ }), + +/***/ 6591: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.speech_v2beta1 = exports.speech_v1p1beta1 = exports.speech_v1 = exports.auth = exports.speech = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4838); +Object.defineProperty(exports, "speech_v1", { enumerable: true, get: function () { return v1_1.speech_v1; } }); +const v1p1beta1_1 = __webpack_require__(8340); +Object.defineProperty(exports, "speech_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.speech_v1p1beta1; } }); +const v2beta1_1 = __webpack_require__(9685); +Object.defineProperty(exports, "speech_v2beta1", { enumerable: true, get: function () { return v2beta1_1.speech_v2beta1; } }); +exports.VERSIONS = { + v1: v1_1.speech_v1.Speech, + v1p1beta1: v1p1beta1_1.speech_v1p1beta1.Speech, + v2beta1: v2beta1_1.speech_v2beta1.Speech, +}; +function speech(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('speech', versionOrOptions, exports.VERSIONS, this); +} +exports.speech = speech; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6612: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +module.exports = Yallist + +Yallist.Node = Node +Yallist.create = Yallist + +function Yallist (list) { + var self = this + if (!(self instanceof Yallist)) { + self = new Yallist() + } + + self.tail = null + self.head = null + self.length = 0 + + if (list && typeof list.forEach === 'function') { + list.forEach(function (item) { + self.push(item) + }) + } else if (arguments.length > 0) { + for (var i = 0, l = arguments.length; i < l; i++) { + self.push(arguments[i]) + } + } + + return self +} + +Yallist.prototype.removeNode = function (node) { + if (node.list !== this) { + throw new Error('removing node which does not belong to this list') + } + + var next = node.next + var prev = node.prev + + if (next) { + next.prev = prev + } + + if (prev) { + prev.next = next + } + + if (node === this.head) { + this.head = next + } + if (node === this.tail) { + this.tail = prev + } + + node.list.length-- + node.next = null + node.prev = null + node.list = null + + return next +} + +Yallist.prototype.unshiftNode = function (node) { + if (node === this.head) { + return + } + + if (node.list) { + node.list.removeNode(node) + } + + var head = this.head + node.list = this + node.next = head + if (head) { + head.prev = node + } + + this.head = node + if (!this.tail) { + this.tail = node + } + this.length++ +} + +Yallist.prototype.pushNode = function (node) { + if (node === this.tail) { + return + } + + if (node.list) { + node.list.removeNode(node) + } + + var tail = this.tail + node.list = this + node.prev = tail + if (tail) { + tail.next = node + } + + this.tail = node + if (!this.head) { + this.head = node + } + this.length++ +} + +Yallist.prototype.push = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + push(this, arguments[i]) + } + return this.length +} + +Yallist.prototype.unshift = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + unshift(this, arguments[i]) + } + return this.length +} + +Yallist.prototype.pop = function () { + if (!this.tail) { + return undefined + } + + var res = this.tail.value + this.tail = this.tail.prev + if (this.tail) { + this.tail.next = null + } else { + this.head = null + } + this.length-- + return res +} + +Yallist.prototype.shift = function () { + if (!this.head) { + return undefined + } + + var res = this.head.value + this.head = this.head.next + if (this.head) { + this.head.prev = null + } else { + this.tail = null + } + this.length-- + return res +} + +Yallist.prototype.forEach = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.head, i = 0; walker !== null; i++) { + fn.call(thisp, walker.value, i, this) + walker = walker.next + } +} + +Yallist.prototype.forEachReverse = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { + fn.call(thisp, walker.value, i, this) + walker = walker.prev + } +} + +Yallist.prototype.get = function (n) { + for (var i = 0, walker = this.head; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.next + } + if (i === n && walker !== null) { + return walker.value + } +} + +Yallist.prototype.getReverse = function (n) { + for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.prev + } + if (i === n && walker !== null) { + return walker.value + } +} + +Yallist.prototype.map = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.head; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.next + } + return res +} + +Yallist.prototype.mapReverse = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.tail; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.prev + } + return res +} + +Yallist.prototype.reduce = function (fn, initial) { + var acc + var walker = this.head + if (arguments.length > 1) { + acc = initial + } else if (this.head) { + walker = this.head.next + acc = this.head.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + + for (var i = 0; walker !== null; i++) { + acc = fn(acc, walker.value, i) + walker = walker.next + } + + return acc +} + +Yallist.prototype.reduceReverse = function (fn, initial) { + var acc + var walker = this.tail + if (arguments.length > 1) { + acc = initial + } else if (this.tail) { + walker = this.tail.prev + acc = this.tail.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + + for (var i = this.length - 1; walker !== null; i--) { + acc = fn(acc, walker.value, i) + walker = walker.prev + } + + return acc +} + +Yallist.prototype.toArray = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.head; walker !== null; i++) { + arr[i] = walker.value + walker = walker.next + } + return arr +} + +Yallist.prototype.toArrayReverse = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.tail; walker !== null; i++) { + arr[i] = walker.value + walker = walker.prev + } + return arr +} + +Yallist.prototype.slice = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length + } + for (var i = 0, walker = this.head; walker !== null && i < from; i++) { + walker = walker.next + } + for (; walker !== null && i < to; i++, walker = walker.next) { + ret.push(walker.value) + } + return ret +} + +Yallist.prototype.sliceReverse = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length + } + for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { + walker = walker.prev + } + for (; walker !== null && i > from; i--, walker = walker.prev) { + ret.push(walker.value) + } + return ret +} + +Yallist.prototype.splice = function (start, deleteCount, ...nodes) { + if (start > this.length) { + start = this.length - 1 + } + if (start < 0) { + start = this.length + start; + } + + for (var i = 0, walker = this.head; walker !== null && i < start; i++) { + walker = walker.next + } + + var ret = [] + for (var i = 0; walker && i < deleteCount; i++) { + ret.push(walker.value) + walker = this.removeNode(walker) + } + if (walker === null) { + walker = this.tail + } + + if (walker !== this.head && walker !== this.tail) { + walker = walker.prev + } + + for (var i = 0; i < nodes.length; i++) { + walker = insert(this, walker, nodes[i]) + } + return ret; +} + +Yallist.prototype.reverse = function () { + var head = this.head + var tail = this.tail + for (var walker = head; walker !== null; walker = walker.prev) { + var p = walker.prev + walker.prev = walker.next + walker.next = p + } + this.head = tail + this.tail = head + return this +} + +function insert (self, node, value) { + var inserted = node === self.head ? + new Node(value, null, node, self) : + new Node(value, node, node.next, self) + + if (inserted.next === null) { + self.tail = inserted + } + if (inserted.prev === null) { + self.head = inserted + } + + self.length++ + + return inserted +} + +function push (self, item) { + self.tail = new Node(item, self.tail, null, self) + if (!self.head) { + self.head = self.tail + } + self.length++ +} + +function unshift (self, item) { + self.head = new Node(item, null, self.head, self) + if (!self.tail) { + self.tail = self.head + } + self.length++ +} + +function Node (value, prev, next, list) { + if (!(this instanceof Node)) { + return new Node(value, prev, next, list) + } + + this.list = list + this.value = value + + if (prev) { + prev.next = this + this.prev = prev + } else { + this.prev = null + } + + if (next) { + next.prev = this + this.next = next + } else { + this.next = null + } +} + +try { + // add if support for Symbol.iterator is present + __webpack_require__(6396)(Yallist) +} catch (er) {} + + +/***/ }), + +/***/ 6613: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.books_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var books_v1; +(function (books_v1) { + /** + * Books API + * + * The Google Books API allows clients to access the Google Books repository. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const books = google.books('v1'); + * ``` + */ + class Books { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bookshelves = new Resource$Bookshelves(this.context); + this.cloudloading = new Resource$Cloudloading(this.context); + this.dictionary = new Resource$Dictionary(this.context); + this.familysharing = new Resource$Familysharing(this.context); + this.layers = new Resource$Layers(this.context); + this.myconfig = new Resource$Myconfig(this.context); + this.mylibrary = new Resource$Mylibrary(this.context); + this.notification = new Resource$Notification(this.context); + this.onboarding = new Resource$Onboarding(this.context); + this.personalizedstream = new Resource$Personalizedstream(this.context); + this.promooffer = new Resource$Promooffer(this.context); + this.series = new Resource$Series(this.context); + this.volumes = new Resource$Volumes(this.context); + } + } + books_v1.Books = Books; + class Resource$Bookshelves { + constructor(context) { + this.context = context; + this.volumes = new Resource$Bookshelves$Volumes(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Bookshelves = Resource$Bookshelves; + class Resource$Bookshelves$Volumes { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Bookshelves$Volumes = Resource$Bookshelves$Volumes; + class Resource$Cloudloading { + constructor(context) { + this.context = context; + } + addBook(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/addBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteBook(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/deleteBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateBook(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/updateBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Cloudloading = Resource$Cloudloading; + class Resource$Dictionary { + constructor(context) { + this.context = context; + } + listOfflineMetadata(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/dictionary/listOfflineMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['cpksver'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Dictionary = Resource$Dictionary; + class Resource$Familysharing { + constructor(context) { + this.context = context; + } + getFamilyInfo(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/getFamilyInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + share(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/share').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unshare(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/unshare').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Familysharing = Resource$Familysharing; + class Resource$Layers { + constructor(context) { + this.context = context; + this.annotationData = new Resource$Layers$Annotationdata(this.context); + this.volumeAnnotations = new Resource$Layers$Volumeannotations(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary/{summaryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'summaryId'], + pathParams: ['summaryId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Layers = Resource$Layers; + class Resource$Layers$Annotationdata { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'volumeId', + 'layerId', + 'annotationDataId', + 'contentVersion', + ], + pathParams: ['annotationDataId', 'layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Layers$Annotationdata = Resource$Layers$Annotationdata; + class Resource$Layers$Volumeannotations { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'annotationId'], + pathParams: ['annotationId', 'layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Layers$Volumeannotations = Resource$Layers$Volumeannotations; + class Resource$Myconfig { + constructor(context) { + this.context = context; + } + getUserSettings(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/getUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + releaseDownloadAccess(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/releaseDownloadAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['cpksver', 'volumeIds'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + requestAccess(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/requestAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['cpksver', 'nonce', 'source', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + syncVolumeLicenses(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/syncVolumeLicenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['cpksver', 'nonce', 'source'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateUserSettings(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/updateUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Myconfig = Resource$Myconfig; + class Resource$Mylibrary { + constructor(context) { + this.context = context; + this.annotations = new Resource$Mylibrary$Annotations(this.context); + this.bookshelves = new Resource$Mylibrary$Bookshelves(this.context); + this.readingpositions = new Resource$Mylibrary$Readingpositions(this.context); + } + } + books_v1.Resource$Mylibrary = Resource$Mylibrary; + class Resource$Mylibrary$Annotations { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['annotationId'], + pathParams: ['annotationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + summary(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/summary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['layerIds', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['annotationId'], + pathParams: ['annotationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Annotations = Resource$Mylibrary$Annotations; + class Resource$Mylibrary$Bookshelves { + constructor(context) { + this.context = context; + this.volumes = new Resource$Mylibrary$Bookshelves$Volumes(this.context); + } + addVolume(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/addVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clearVolumes(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/clearVolumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + moveVolume(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/moveVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf', 'volumeId', 'volumePosition'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeVolume(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/removeVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Bookshelves = Resource$Mylibrary$Bookshelves; + class Resource$Mylibrary$Bookshelves$Volumes { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Bookshelves$Volumes = Resource$Mylibrary$Bookshelves$Volumes; + class Resource$Mylibrary$Readingpositions { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/readingpositions/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setPosition(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/mylibrary/readingpositions/{volumeId}/setPosition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['volumeId', 'position', 'timestamp'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Mylibrary$Readingpositions = Resource$Mylibrary$Readingpositions; + class Resource$Notification { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/notification/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['notification_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Notification = Resource$Notification; + class Resource$Onboarding { + constructor(context) { + this.context = context; + } + listCategories(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/onboarding/listCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listCategoryVolumes(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/onboarding/listCategoryVolumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Onboarding = Resource$Onboarding; + class Resource$Personalizedstream { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/personalizedstream/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Personalizedstream = Resource$Personalizedstream; + class Resource$Promooffer { + constructor(context) { + this.context = context; + } + accept(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + dismiss(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Promooffer = Resource$Promooffer; + class Resource$Series { + constructor(context) { + this.context = context; + this.membership = new Resource$Series$Membership(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/series/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['series_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Series = Resource$Series; + class Resource$Series$Membership { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/series/membership/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['series_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Series$Membership = Resource$Series$Membership; + class Resource$Volumes { + constructor(context) { + this.context = context; + this.associated = new Resource$Volumes$Associated(this.context); + this.mybooks = new Resource$Volumes$Mybooks(this.context); + this.recommended = new Resource$Volumes$Recommended(this.context); + this.useruploaded = new Resource$Volumes$Useruploaded(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['q'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes = Resource$Volumes; + class Resource$Volumes$Associated { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/associated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes$Associated = Resource$Volumes$Associated; + class Resource$Volumes$Mybooks { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/mybooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes$Mybooks = Resource$Volumes$Mybooks; + class Resource$Volumes$Recommended { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/recommended').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rate(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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/recommended/rate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['rating', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes$Recommended = Resource$Volumes$Recommended; + class Resource$Volumes$Useruploaded { + 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://books.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/useruploaded').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + books_v1.Resource$Volumes$Useruploaded = Resource$Volumes$Useruploaded; +})(books_v1 = exports.books_v1 || (exports.books_v1 = {})); + /***/ }), -/* 450 */, -/* 451 */, -/* 452 */ + +/***/ 6615: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -156380,1763 +409809,2857 @@ OAuth2Client.ISSUERS_ = [ // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.libraryagent = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ +exports.plus_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 = __webpack_require__(927); -const v1_1 = __webpack_require__(113); -exports.VERSIONS = { - v1: v1_1.libraryagent_v1.Libraryagent, -}; -function libraryagent(versionOrOptions) { - return googleapis_common_1.getAPI('libraryagent', versionOrOptions, exports.VERSIONS, this); -} -exports.libraryagent = libraryagent; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 453 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var once = __webpack_require__(969) -var eos = __webpack_require__(9) -var fs = __webpack_require__(747) // we only need fs to get the ReadStream and WriteStream prototypes - -var noop = function () {} -var ancient = /^v?\.0/.test(process.version) - -var isFn = function (fn) { - return typeof fn === 'function' -} - -var isFS = function (stream) { - if (!ancient) return false // newer node version do not need to care about fs is a special way - if (!fs) return false // browser - return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close) -} - -var isRequest = function (stream) { - return stream.setHeader && isFn(stream.abort) -} - -var destroyer = function (stream, reading, writing, callback) { - callback = once(callback) - - var closed = false - stream.on('close', function () { - closed = true - }) - - eos(stream, {readable: reading, writable: writing}, function (err) { - if (err) return callback(err) - closed = true - callback() - }) - - var destroyed = false - return function (err) { - if (closed) return - if (destroyed) return - destroyed = true - - if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks - if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want - - if (isFn(stream.destroy)) return stream.destroy() - - callback(err || new Error('stream was destroyed')) - } -} - -var call = function (fn) { - fn() -} - -var pipe = function (from, to) { - return from.pipe(to) -} - -var pump = function () { - var streams = Array.prototype.slice.call(arguments) - var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop - - if (Array.isArray(streams[0])) streams = streams[0] - if (streams.length < 2) throw new Error('pump requires two streams per minimum') - - var error - var destroys = streams.map(function (stream, i) { - var reading = i < streams.length - 1 - var writing = i > 0 - return destroyer(stream, reading, writing, function (err) { - if (!error) error = err - if (err) destroys.forEach(call) - if (reading) return - destroys.forEach(call) - callback(error) - }) - }) - - return streams.reduce(pipe) -} - -module.exports = pump - - -/***/ }), -/* 454 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var Stream = _interopDefault(__webpack_require__(413)); -var http = _interopDefault(__webpack_require__(605)); -var Url = _interopDefault(__webpack_require__(835)); -var https = _interopDefault(__webpack_require__(34)); -var zlib = _interopDefault(__webpack_require__(761)); - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = __webpack_require__(18).convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } +var plus_v1; +(function (plus_v1) { + /** + * Google+ API + * + * Builds on top of the Google+ platform. + * + * @example + * const {google} = require('googleapis'); + * const plus = google.plus('v1'); + * + * @namespace plus + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Plus + */ + class Plus { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + this.comments = new Resource$Comments(this.context); + this.people = new Resource$People(this.context); + } + } + plus_v1.Plus = Plus; + class Resource$Activities { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities/{activityId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['activityId'], + pathParams: ['activityId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people/{userId}/activities/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'collection'], + pathParams: ['collection', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['query'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + plus_v1.Resource$Activities = Resource$Activities; + class Resource$Comments { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['commentId'], + pathParams: ['commentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities/{activityId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['activityId'], + pathParams: ['activityId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + plus_v1.Resource$Comments = Resource$Comments; + class Resource$People { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people/{userId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'collection'], + pathParams: ['collection', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listByActivity(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities/{activityId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['activityId', 'collection'], + pathParams: ['activityId', 'collection'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['query'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + plus_v1.Resource$People = Resource$People; +})(plus_v1 = exports.plus_v1 || (exports.plus_v1 = {})); - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - accumBytes += chunk.length; - accum.push(chunk); - }); +/***/ }), - body.on('end', function () { - if (abort) { - return; - } +/***/ 6624: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - clearTimeout(resTimeout); +"use strict"; - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); +// 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.AuthPlus = exports.cloudprofiler_v2 = exports.auth = exports.cloudprofiler = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(2318); +Object.defineProperty(exports, "cloudprofiler_v2", { enumerable: true, get: function () { return v2_1.cloudprofiler_v2; } }); +exports.VERSIONS = { + v2: v2_1.cloudprofiler_v2.Cloudprofiler, +}; +function cloudprofiler(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudprofiler', versionOrOptions, exports.VERSIONS, this); } +exports.cloudprofiler = cloudprofiler; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } +/***/ }), - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); +/***/ 6625: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // html5 - if (!res && str) { - res = / * - * @param Mixed instance Any options.body input - */ -function extractContentType(body) { - if (body === null) { - // body is null - return null; - } else if (typeof body === 'string') { - // body is string - return 'text/plain;charset=UTF-8'; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - return 'application/x-www-form-urlencoded;charset=UTF-8'; - } else if (isBlob(body)) { - // body is blob - return body.type || null; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return null; - } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - return null; - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - return null; - } else if (typeof body.getBoundary === 'function') { - // detect form data input from form-data module - return `multipart/form-data;boundary=${body.getBoundary()}`; - } else if (body instanceof Stream) { - // body is stream - // can't really do much about this - return null; - } else { - // Body constructor defaults other things to string - return 'text/plain;charset=UTF-8'; - } -} - -/** - * The Fetch Standard treats this as if "total bytes" is a property on the body. - * For us, we have to explicitly get it with a function. + * The ASN.1 representation of PKCS#7 is as follows + * (see RFC #2315 for details, http://www.ietf.org/rfc/rfc2315.txt): * - * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes + * A PKCS#7 message consists of a ContentInfo on root level, which may + * contain any number of further ContentInfo nested into it. * - * @param Body instance Instance of Body - * @return Number? Number of bytes, or null if not possible - */ -function getTotalBytes(instance) { - const body = instance.body; - - - if (body === null) { - // body is null - return 0; - } else if (isBlob(body)) { - return body.size; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return body.length; - } else if (body && typeof body.getLengthSync === 'function') { - // detect form data input from form-data module - if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x - body.hasKnownLength && body.hasKnownLength()) { - // 2.x - return body.getLengthSync(); - } - return null; - } else { - // body is stream - return null; - } -} - -/** - * Write a Body to a Node.js WritableStream (e.g. http.Request) object. + * ContentInfo ::= SEQUENCE { + * contentType ContentType, + * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL + * } * - * @param Body instance Instance of Body - * @return Void - */ -function writeToStream(dest, instance) { - const body = instance.body; - - - if (body === null) { - // body is null - dest.end(); - } else if (isBlob(body)) { - body.stream().pipe(dest); - } else if (Buffer.isBuffer(body)) { - // body is buffer - dest.write(body); - dest.end(); - } else { - // body is stream - body.pipe(dest); - } -} - -// expose Promise -Body.Promise = global.Promise; - -/** - * headers.js + * ContentType ::= OBJECT IDENTIFIER * - * Headers class offers convenient helpers - */ - -const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/; -const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/; - -function validateName(name) { - name = `${name}`; - if (invalidTokenRegex.test(name) || name === '') { - throw new TypeError(`${name} is not a legal HTTP header name`); - } -} - -function validateValue(value) { - value = `${value}`; - if (invalidHeaderCharRegex.test(value)) { - throw new TypeError(`${value} is not a legal HTTP header value`); - } -} - -/** - * Find the key in the map object given a header name. + * EnvelopedData ::= SEQUENCE { + * version Version, + * recipientInfos RecipientInfos, + * encryptedContentInfo EncryptedContentInfo + * } * - * Returns undefined if not found. + * EncryptedData ::= SEQUENCE { + * version Version, + * encryptedContentInfo EncryptedContentInfo + * } * - * @param String name Header name - * @return String|Undefined - */ -function find(map, name) { - name = name.toLowerCase(); - for (const key in map) { - if (key.toLowerCase() === name) { - return key; - } - } - return undefined; -} - -const MAP = Symbol('map'); -class Headers { - /** - * Headers class - * - * @param Object headers Response headers - * @return Void - */ - constructor() { - let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. + * id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) + * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. + * SignedData ::= SEQUENCE { + * version INTEGER, + * digestAlgorithms DigestAlgorithmIdentifiers, + * contentInfo ContentInfo, + * certificates [0] IMPLICIT Certificates OPTIONAL, + * crls [1] IMPLICIT CertificateRevocationLists OPTIONAL, + * signerInfos SignerInfos + * } * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class + * SignerInfos ::= SET OF SignerInfo * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. + * SignerInfo ::= SEQUENCE { + * version Version, + * issuerAndSerialNumber IssuerAndSerialNumber, + * digestAlgorithm DigestAlgorithmIdentifier, + * authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, + * digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, + * encryptedDigest EncryptedDigest, + * unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL + * } * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class + * EncryptedDigest ::= OCTET STRING * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. + * Attributes ::= SET OF Attribute + * + * Attribute ::= SEQUENCE { + * attrType OBJECT IDENTIFIER, + * attrValues SET OF AttributeValue + * } + * + * AttributeValue ::= ANY + * + * Version ::= INTEGER + * + * RecipientInfos ::= SET OF RecipientInfo + * + * EncryptedContentInfo ::= SEQUENCE { + * contentType ContentType, + * contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, + * encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL + * } + * + * ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of AES and DES3, there is only one, + * the IV. + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * EncryptedContent ::= OCTET STRING + * + * RecipientInfo ::= SEQUENCE { + * version Version, + * issuerAndSerialNumber IssuerAndSerialNumber, + * keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, + * encryptedKey EncryptedKey + * } + * + * IssuerAndSerialNumber ::= SEQUENCE { + * issuer Name, + * serialNumber CertificateSerialNumber + * } * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js + * CertificateSerialNumber ::= INTEGER * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance + * KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier * - * @param String message Error message for human - * @return AbortError + * EncryptedKey ::= OCTET STRING */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} +var forge = __webpack_require__(239); +__webpack_require__(1431); +__webpack_require__(7152); -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; +// shortcut for ASN.1 API +var asn1 = forge.asn1; -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; +// shortcut for PKCS#7 API +var p7v = module.exports = forge.pkcs7asn1 = forge.pkcs7asn1 || {}; +forge.pkcs7 = forge.pkcs7 || {}; +forge.pkcs7.asn1 = p7v; -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { +var contentInfoValidator = { + name: 'ContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'ContentInfo.ContentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'ContentInfo.content', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + captureAsn1: 'content' + }] +}; +p7v.contentInfoValidator = contentInfoValidator; - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } +var encryptedContentInfoValidator = { + name: 'EncryptedContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedContentInfo.contentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'EncryptedContentInfo.contentEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedContentInfo.contentEncryptionAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encAlgorithm' + }, { + name: 'EncryptedContentInfo.contentEncryptionAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + captureAsn1: 'encParameter' + }] + }, { + name: 'EncryptedContentInfo.encryptedContent', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + /* The PKCS#7 structure output by OpenSSL somewhat differs from what + * other implementations do generate. + * + * OpenSSL generates a structure like this: + * SEQUENCE { + * ... + * [0] + * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 + * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 + * ... + * } + * + * Whereas other implementations (and this PKCS#7 module) generate: + * SEQUENCE { + * ... + * [0] { + * OCTET STRING + * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 + * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 + * ... + * } + * } + * + * In order to support both, we just capture the context specific + * field here. The OCTET STRING bit is removed below. + */ + capture: 'encryptedContent', + captureAsn1: 'encryptedContentAsn1' + }] +}; - Body.Promise = fetch.Promise; +p7v.envelopedDataValidator = { + name: 'EnvelopedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EnvelopedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'EnvelopedData.RecipientInfos', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + captureAsn1: 'recipientInfos' + }].concat(encryptedContentInfoValidator) +}; - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); +p7v.encryptedDataValidator = { + name: 'EncryptedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }].concat(encryptedContentInfoValidator) +}; - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; +var signerValidator = { + name: 'SignerInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false + }, { + name: 'SignerInfo.issuerAndSerialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.issuerAndSerialNumber.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'issuer' + }, { + name: 'SignerInfo.issuerAndSerialNumber.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'serial' + }] + }, { + name: 'SignerInfo.digestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.digestAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'digestAlgorithm' + }, { + name: 'SignerInfo.digestAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + constructed: false, + captureAsn1: 'digestParameter', + optional: true + }] + }, { + name: 'SignerInfo.authenticatedAttributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + capture: 'authenticatedAttributes' + }, { + name: 'SignerInfo.digestEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + capture: 'signatureAlgorithm' + }, { + name: 'SignerInfo.encryptedDigest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'signature' + }, { + name: 'SignerInfo.unauthenticatedAttributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + optional: true, + capture: 'unauthenticatedAttributes' + }] +}; - let response = null; +p7v.signedDataValidator = { + name: 'SignedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'SignedData.DigestAlgorithms', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + captureAsn1: 'digestAlgorithms' + }, + contentInfoValidator, + { + name: 'SignedData.Certificates', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + optional: true, + captureAsn1: 'certificates' + }, { + name: 'SignedData.CertificateRevocationLists', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + optional: true, + captureAsn1: 'crls' + }, { + name: 'SignedData.SignerInfos', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + capture: 'signerInfos', + optional: true, + value: [signerValidator] + }] +}; - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; +p7v.recipientInfoValidator = { + name: 'RecipientInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'RecipientInfo.issuerAndSerial', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.issuerAndSerial.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'issuer' + }, { + name: 'RecipientInfo.issuerAndSerial.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'serial' + }] + }, { + name: 'RecipientInfo.keyEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.keyEncryptionAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encAlgorithm' + }, { + name: 'RecipientInfo.keyEncryptionAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + constructed: false, + captureAsn1: 'encParameter', + optional: true + }] + }, { + name: 'RecipientInfo.encryptedKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encKey' + }] +}; - if (signal && signal.aborted) { - abort(); - return; - } - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; +/***/ }), - // send request - const req = send(options); - let reqTimeout; +/***/ 6658: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } +"use strict"; - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } +// 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.AuthPlus = exports.remotebuildexecution_v2 = exports.remotebuildexecution_v1alpha = exports.remotebuildexecution_v1 = exports.auth = exports.remotebuildexecution = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1426); +Object.defineProperty(exports, "remotebuildexecution_v1", { enumerable: true, get: function () { return v1_1.remotebuildexecution_v1; } }); +const v1alpha_1 = __webpack_require__(488); +Object.defineProperty(exports, "remotebuildexecution_v1alpha", { enumerable: true, get: function () { return v1alpha_1.remotebuildexecution_v1alpha; } }); +const v2_1 = __webpack_require__(1508); +Object.defineProperty(exports, "remotebuildexecution_v2", { enumerable: true, get: function () { return v2_1.remotebuildexecution_v2; } }); +exports.VERSIONS = { + v1: v1_1.remotebuildexecution_v1.Remotebuildexecution, + v1alpha: v1alpha_1.remotebuildexecution_v1alpha.Remotebuildexecution, + v2: v2_1.remotebuildexecution_v2.Remotebuildexecution, +}; +function remotebuildexecution(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('remotebuildexecution', versionOrOptions, exports.VERSIONS, this); +} +exports.remotebuildexecution = remotebuildexecution; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); +/***/ }), - req.on('response', function (res) { - clearTimeout(reqTimeout); +/***/ 6667: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - const headers = createHeadersLenient(res.headers); +"use strict"; - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); +// 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.AuthPlus = exports.genomics_v2alpha1 = exports.genomics_v1alpha2 = exports.genomics_v1 = exports.auth = exports.genomics = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5765); +Object.defineProperty(exports, "genomics_v1", { enumerable: true, get: function () { return v1_1.genomics_v1; } }); +const v1alpha2_1 = __webpack_require__(5877); +Object.defineProperty(exports, "genomics_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.genomics_v1alpha2; } }); +const v2alpha1_1 = __webpack_require__(5141); +Object.defineProperty(exports, "genomics_v2alpha1", { enumerable: true, get: function () { return v2alpha1_1.genomics_v2alpha1; } }); +exports.VERSIONS = { + v1: v1_1.genomics_v1.Genomics, + v1alpha2: v1alpha2_1.genomics_v1alpha2.Genomics, + v2alpha1: v2alpha1_1.genomics_v2alpha1.Genomics, +}; +function genomics(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('genomics', versionOrOptions, exports.VERSIONS, this); +} +exports.genomics = genomics; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } +/***/ }), - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } +/***/ 6677: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout - }; +"use strict"; - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } +// 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.AuthPlus = exports.composer_v1beta1 = exports.composer_v1 = exports.auth = exports.composer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1297); +Object.defineProperty(exports, "composer_v1", { enumerable: true, get: function () { return v1_1.composer_v1; } }); +const v1beta1_1 = __webpack_require__(1230); +Object.defineProperty(exports, "composer_v1beta1", { enumerable: true, get: function () { return v1beta1_1.composer_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.composer_v1.Composer, + v1beta1: v1beta1_1.composer_v1beta1.Composer, +}; +function composer(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('composer', versionOrOptions, exports.VERSIONS, this); +} +exports.composer = composer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } +/***/ }), - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); +/***/ 6681: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; +"use strict"; - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); +// 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.AuthPlus = exports.testing_v1 = exports.auth = exports.testing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3405); +Object.defineProperty(exports, "testing_v1", { enumerable: true, get: function () { return v1_1.testing_v1; } }); +exports.VERSIONS = { + v1: v1_1.testing_v1.Testing, +}; +function testing(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('testing', versionOrOptions, exports.VERSIONS, this); +} +exports.testing = testing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // HTTP-network fetch step 12.1.1.4: handle content codings - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } +/***/ }), - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; +/***/ 6683: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } +"use strict"; - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } +// 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.sqladmin_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sqladmin_v1; +(function (sqladmin_v1) { + /** + * Cloud SQL Admin API + * + * API for Cloud SQL database instance management + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sqladmin = google.sqladmin('v1'); + * ``` + */ + class Sqladmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.backupRuns = new Resource$Backupruns(this.context); + this.connect = new Resource$Connect(this.context); + this.databases = new Resource$Databases(this.context); + this.flags = new Resource$Flags(this.context); + this.instances = new Resource$Instances(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.sslCerts = new Resource$Sslcerts(this.context); + this.tiers = new Resource$Tiers(this.context); + this.users = new Resource$Users(this.context); + } + } + sqladmin_v1.Sqladmin = Sqladmin; + class Resource$Backupruns { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Backupruns = Resource$Backupruns; + class Resource$Connect { + constructor(context) { + this.context = context; + } + generateEphemeralCert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}:generateEphemeralCert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/connectSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Connect = Resource$Connect; + class Resource$Databases { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Databases = Resource$Databases; + class Resource$Flags { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/flags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Flags = Resource$Flags; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addServerCa(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + clone(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + demoteMaster(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + failover(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listServerCas(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + promoteReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetSslConfig(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restart(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restoreBackup(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rotateServerCa(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopReplica(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + truncateLog(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Instances = Resource$Instances; + class Resource$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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + } + } + sqladmin_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + } + getDiskShrinkConfig(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/getDiskShrinkConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + performDiskShrink(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + rescheduleMaintenance(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resetReplicaSize(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startExternalSync(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + verifyExternalSyncSettings(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Sslcerts { + constructor(context) { + this.context = context; + } + createEphemeral(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Sslcerts = Resource$Sslcerts; + class Resource$Tiers { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Tiers = Resource$Tiers; + class Resource$Users { + 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/users/{name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'name'], + pathParams: ['instance', 'name', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + sqladmin_v1.Resource$Users = Resource$Users; +})(sqladmin_v1 = exports.sqladmin_v1 || (exports.sqladmin_v1 = {})); - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); +/***/ }), - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; +/***/ 6703: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// expose Promise -fetch.Promise = global.Promise; +"use strict"; -module.exports = exports = fetch; +// 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.default = exports; -exports.Headers = Headers; -exports.Request = Request; -exports.Response = Response; -exports.FetchError = FetchError; +exports.AuthPlus = exports.webmasters_v3 = exports.auth = exports.webmasters = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_1 = __webpack_require__(7469); +Object.defineProperty(exports, "webmasters_v3", { enumerable: true, get: function () { return v3_1.webmasters_v3; } }); +exports.VERSIONS = { + v3: v3_1.webmasters_v3.Webmasters, +}; +function webmasters(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('webmasters', versionOrOptions, exports.VERSIONS, this); +} +exports.webmasters = webmasters; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 455 */, -/* 456 */, -/* 457 */, -/* 458 */ + +/***/ 6712: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -158154,24 +412677,33 @@ exports.FetchError = FetchError; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.clouddebugger = exports.VERSIONS = void 0; +exports.AuthPlus = exports.retail_v2beta = exports.retail_v2alpha = exports.retail_v2 = exports.auth = exports.retail = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(409); +const v2_1 = __webpack_require__(924); +Object.defineProperty(exports, "retail_v2", { enumerable: true, get: function () { return v2_1.retail_v2; } }); +const v2alpha_1 = __webpack_require__(9414); +Object.defineProperty(exports, "retail_v2alpha", { enumerable: true, get: function () { return v2alpha_1.retail_v2alpha; } }); +const v2beta_1 = __webpack_require__(5691); +Object.defineProperty(exports, "retail_v2beta", { enumerable: true, get: function () { return v2beta_1.retail_v2beta; } }); exports.VERSIONS = { - v2: v2_1.clouddebugger_v2.Clouddebugger, + v2: v2_1.retail_v2.Retail, + v2alpha: v2alpha_1.retail_v2alpha.Retail, + v2beta: v2beta_1.retail_v2beta.Retail, }; -function clouddebugger(versionOrOptions) { - return googleapis_common_1.getAPI('clouddebugger', versionOrOptions, exports.VERSIONS, this); +function retail(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('retail', versionOrOptions, exports.VERSIONS, this); } -exports.clouddebugger = clouddebugger; +exports.retail = retail; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 459 */, -/* 460 */ + +/***/ 6731: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -158189,50 +412721,49 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.vault_v1 = void 0; +exports.cloudtasks_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 = __webpack_require__(927); -var vault_v1; -(function (vault_v1) { +var cloudtasks_v2; +(function (cloudtasks_v2) { /** - * G Suite Vault API + * Cloud Tasks API * - * Archiving and eDiscovery for G Suite. + * Manages the execution of large numbers of distributed requests. * * @example + * ```js * const {google} = require('googleapis'); - * const vault = google.vault('v1'); - * - * @namespace vault - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Vault + * const cloudtasks = google.cloudtasks('v2'); + * ``` */ - class Vault { + class Cloudtasks { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.matters = new Resource$Matters(this.context); - this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); } } - vault_v1.Vault = Vault; - class Resource$Matters { + cloudtasks_v2.Cloudtasks = Cloudtasks; + class Resource$Projects { constructor(context) { this.context = context; - this.exports = new Resource$Matters$Exports(this.context); - this.holds = new Resource$Matters$Holds(this.context); - this.savedQueries = new Resource$Matters$Savedqueries(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - addPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + cloudtasks_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.queues = new Resource$Projects$Locations$Queues(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158245,26 +412776,96 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:addPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - close(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158275,26 +412876,313 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:close').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + pause(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + purge(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + cloudtasks_v2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158305,26 +413193,480 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + run(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://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2 = exports.cloudtasks_v2 || (exports.cloudtasks_v2 = {})); + + +/***/ }), + +/***/ 6742: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OidcClient = void 0; +const http_client_1 = __webpack_require__(2425); +const auth_1 = __webpack_require__(7554); +const core_1 = __webpack_require__(6470); +class OidcClient { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; + if (!token) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); + } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; + if (!runtimeUrl) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); + } + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res = yield httpclient + .getJson(id_token_url) + .catch(error => { + throw new Error(`Failed to get ID Token. \n + Error Code : ${error.statusCode}\n + Error Message: ${error.result.message}`); + }); + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error('Response json body do not have ID Token field'); + } + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + // New ID Token is requested from action service + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } + catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); + } +} +exports.OidcClient = OidcClient; +//# sourceMappingURL=oidc-utils.js.map + +/***/ }), + +/***/ 6743: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudbuild_v1beta1 = exports.cloudbuild_v1alpha2 = exports.cloudbuild_v1alpha1 = exports.cloudbuild_v1 = exports.auth = exports.cloudbuild = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4201); +Object.defineProperty(exports, "cloudbuild_v1", { enumerable: true, get: function () { return v1_1.cloudbuild_v1; } }); +const v1alpha1_1 = __webpack_require__(326); +Object.defineProperty(exports, "cloudbuild_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.cloudbuild_v1alpha1; } }); +const v1alpha2_1 = __webpack_require__(6149); +Object.defineProperty(exports, "cloudbuild_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.cloudbuild_v1alpha2; } }); +const v1beta1_1 = __webpack_require__(18); +Object.defineProperty(exports, "cloudbuild_v1beta1", { enumerable: true, get: function () { return v1beta1_1.cloudbuild_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.cloudbuild_v1.Cloudbuild, + v1alpha1: v1alpha1_1.cloudbuild_v1alpha1.Cloudbuild, + v1alpha2: v1alpha2_1.cloudbuild_v1alpha2.Cloudbuild, + v1beta1: v1beta1_1.cloudbuild_v1beta1.Cloudbuild, +}; +function cloudbuild(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudbuild', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudbuild = cloudbuild; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6747: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.customsearch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var customsearch_v1; +(function (customsearch_v1) { + /** + * Custom Search API + * + * Searches over a website or collection of websites + * + * @example + * ```js + * const {google} = require('googleapis'); + * const customsearch = google.customsearch('v1'); + * ``` + */ + class Customsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.cse = new Resource$Cse(this.context); + } + } + customsearch_v1.Customsearch = Customsearch; + class Resource$Cse { + constructor(context) { + this.context = context; + this.siterestrict = new Resource$Cse$Siterestrict(this.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://customsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/customsearch/v1').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + customsearch_v1.Resource$Cse = Resource$Cse; + class Resource$Cse$Siterestrict { + 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://customsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/customsearch/v1/siterestrict').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + customsearch_v1.Resource$Cse$Siterestrict = Resource$Cse$Siterestrict; +})(customsearch_v1 = exports.customsearch_v1 || (exports.customsearch_v1 = {})); + + +/***/ }), + +/***/ 6758: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.recaptchaenterprise_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var recaptchaenterprise_v1; +(function (recaptchaenterprise_v1) { + /** + * reCAPTCHA Enterprise API + * + * Help protect your website from fraudulent activity, spam, and abuse without creating friction. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const recaptchaenterprise = google.recaptchaenterprise('v1'); + * ``` + */ + class Recaptchaenterprise { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + recaptchaenterprise_v1.Recaptchaenterprise = Recaptchaenterprise; + class Resource$Projects { + constructor(context) { + this.context = context; + this.assessments = new Resource$Projects$Assessments(this.context); + this.firewallpolicies = new Resource$Projects$Firewallpolicies(this.context); + this.keys = new Resource$Projects$Keys(this.context); + this.relatedaccountgroupmemberships = + new Resource$Projects$Relatedaccountgroupmemberships(this.context); + this.relatedaccountgroups = new Resource$Projects$Relatedaccountgroups(this.context); + } + } + recaptchaenterprise_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Assessments { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158335,26 +413677,27 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158365,26 +413708,33 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assessments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + recaptchaenterprise_v1.Resource$Projects$Assessments = Resource$Projects$Assessments; + class Resource$Projects$Firewallpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158395,25 +413745,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/firewallpolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158426,26 +413776,27 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:removePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reopen(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158456,26 +413807,27 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:reopen').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158486,26 +413838,27 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/firewallpolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -158516,27 +413869,27 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vault_v1.Resource$Matters = Resource$Matters; - class Resource$Matters$Exports { + recaptchaenterprise_v1.Resource$Projects$Firewallpolicies = Resource$Projects$Firewallpolicies; + class Resource$Projects$Keys { constructor(context) { this.context = context; } @@ -158553,22 +413906,22 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -158584,22 +413937,22 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['matterId', 'exportId'], - pathParams: ['exportId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -158615,25 +413968,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId', 'exportId'], - pathParams: ['exportId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158646,32 +413999,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vault_v1.Resource$Matters$Exports = Resource$Matters$Exports; - class Resource$Matters$Holds { - constructor(context) { - this.context = context; - this.accounts = new Resource$Matters$Holds$Accounts(this.context); - } - addHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158684,25 +414030,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + migrate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158715,25 +414061,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:migrate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158746,25 +414092,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + retrieveLegacySecretKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158777,56 +414123,70 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+key}:retrieveLegacySecretKey').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['key'], + pathParams: ['key'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + recaptchaenterprise_v1.Resource$Projects$Keys = Resource$Projects$Keys; + class Resource$Projects$Relatedaccountgroupmemberships { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+project}/relatedaccountgroupmemberships:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + } + recaptchaenterprise_v1.Resource$Projects$Relatedaccountgroupmemberships = Resource$Projects$Relatedaccountgroupmemberships; + class Resource$Projects$Relatedaccountgroups { + constructor(context) { + this.context = context; + this.memberships = new Resource$Projects$Relatedaccountgroups$Memberships(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158839,63 +414199,131 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/relatedaccountgroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + recaptchaenterprise_v1.Resource$Projects$Relatedaccountgroups = Resource$Projects$Relatedaccountgroups; + class Resource$Projects$Relatedaccountgroups$Memberships { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vault_v1.Resource$Matters$Holds = Resource$Matters$Holds; - class Resource$Matters$Holds$Accounts { + recaptchaenterprise_v1.Resource$Projects$Relatedaccountgroups$Memberships = Resource$Projects$Relatedaccountgroups$Memberships; +})(recaptchaenterprise_v1 = exports.recaptchaenterprise_v1 || (exports.recaptchaenterprise_v1 = {})); + + +/***/ }), + +/***/ 6769: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.resourcesettings_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var resourcesettings_v1; +(function (resourcesettings_v1) { + /** + * Resource Settings API + * + * The Resource Settings API allows users to control and modify the behavior of their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud Resource Hierarchy. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const resourcesettings = google.resourcesettings('v1'); + * ``` + */ + class Resourcesettings { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + resourcesettings_v1.Resourcesettings = Resourcesettings; + class Resource$Folders { constructor(context) { this.context = context; + this.settings = new Resource$Folders$Settings(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + resourcesettings_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Settings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158908,25 +414336,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158939,26 +414367,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId', 'accountId'], - pathParams: ['accountId', 'holdId', 'matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158971,31 +414398,38 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vault_v1.Resource$Matters$Holds$Accounts = Resource$Matters$Holds$Accounts; - class Resource$Matters$Savedqueries { + resourcesettings_v1.Resource$Folders$Settings = Resource$Folders$Settings; + class Resource$Organizations { constructor(context) { this.context = context; + this.settings = new Resource$Organizations$Settings(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + resourcesettings_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Settings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159008,25 +414442,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159039,24 +414473,68 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'savedQueryId'], - pathParams: ['matterId', 'savedQueryId'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://resourcesettings.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + resourcesettings_v1.Resource$Organizations$Settings = Resource$Organizations$Settings; + class Resource$Projects { + constructor(context) { + this.context = context; + this.settings = new Resource$Projects$Settings(this.context); + } + } + resourcesettings_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Settings { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -159070,22 +414548,22 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId', 'savedQueryId'], - pathParams: ['matterId', 'savedQueryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -159101,31 +414579,25 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vault_v1.Resource$Matters$Savedqueries = Resource$Matters$Savedqueries; - class Resource$Operations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159138,11 +414610,11 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -159150,19 +414622,20 @@ var vault_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vault_v1.Resource$Operations = Resource$Operations; -})(vault_v1 = exports.vault_v1 || (exports.vault_v1 = {})); -//# sourceMappingURL=v1.js.map + resourcesettings_v1.Resource$Projects$Settings = Resource$Projects$Settings; +})(resourcesettings_v1 = exports.resourcesettings_v1 || (exports.resourcesettings_v1 = {})); + /***/ }), -/* 461 */ + +/***/ 6777: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -159180,144 +414653,100 @@ var vault_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.cloudtrace = exports.VERSIONS = void 0; +exports.AuthPlus = exports.cloudtasks_v2beta3 = exports.cloudtasks_v2beta2 = exports.cloudtasks_v2 = exports.auth = exports.cloudtasks = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(101); -const v2_1 = __webpack_require__(752); -const v2beta1_1 = __webpack_require__(603); +const v2_1 = __webpack_require__(6731); +Object.defineProperty(exports, "cloudtasks_v2", { enumerable: true, get: function () { return v2_1.cloudtasks_v2; } }); +const v2beta2_1 = __webpack_require__(6802); +Object.defineProperty(exports, "cloudtasks_v2beta2", { enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } }); +const v2beta3_1 = __webpack_require__(5052); +Object.defineProperty(exports, "cloudtasks_v2beta3", { enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } }); exports.VERSIONS = { - v1: v1_1.cloudtrace_v1.Cloudtrace, - v2: v2_1.cloudtrace_v2.Cloudtrace, - v2beta1: v2beta1_1.cloudtrace_v2beta1.Cloudtrace, + v2: v2_1.cloudtasks_v2.Cloudtasks, + v2beta2: v2beta2_1.cloudtasks_v2beta2.Cloudtasks, + v2beta3: v2beta3_1.cloudtasks_v2beta3.Cloudtasks, }; -function cloudtrace(versionOrOptions) { - return googleapis_common_1.getAPI('cloudtrace', versionOrOptions, exports.VERSIONS, this); +function cloudtasks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudtasks', versionOrOptions, exports.VERSIONS, this); } -exports.cloudtrace = cloudtrace; +exports.cloudtasks = cloudtasks; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 462 */ -/***/ (function(module) { - -"use strict"; - - -// See http://www.robvanderwoude.com/escapechars.php -const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - -function escapeCommand(arg) { - // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1'); - - return arg; -} - -function escapeArgument(arg, doubleEscapeMetaChars) { - // Convert to string - arg = `${arg}`; - - // Algorithm below is based on https://qntm.org/cmd - - // Sequence of backslashes followed by a double quote: - // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - - // Sequence of backslashes followed by the end of the string - // (which will become a double quote later): - // double up all the backslashes - arg = arg.replace(/(\\*)$/, '$1$1'); +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // All other backslashes occur literally - // Quote the whole thing: - arg = `"${arg}"`; +/***/ }), - // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1'); +/***/ 6781: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // Double escape meta chars if necessary - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, '^$1'); - } +"use strict"; - return arg; +// 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.AuthPlus = exports.drivelabels_v2beta = exports.drivelabels_v2 = exports.auth = exports.drivelabels = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(2591); +Object.defineProperty(exports, "drivelabels_v2", { enumerable: true, get: function () { return v2_1.drivelabels_v2; } }); +const v2beta_1 = __webpack_require__(7545); +Object.defineProperty(exports, "drivelabels_v2beta", { enumerable: true, get: function () { return v2beta_1.drivelabels_v2beta; } }); +exports.VERSIONS = { + v2: v2_1.drivelabels_v2.Drivelabels, + v2beta: v2beta_1.drivelabels_v2beta.Drivelabels, +}; +function drivelabels(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('drivelabels', versionOrOptions, exports.VERSIONS, this); } - -module.exports.command = escapeCommand; -module.exports.argument = escapeArgument; +exports.drivelabels = drivelabels; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 463 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + +/***/ 6796: +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var deprecation = __webpack_require__(692); -var once = _interopDefault(__webpack_require__(969)); - -const logOnce = once(deprecation => console.warn(deprecation)); -/** - * Error with extra properties to help with debugging - */ - -class RequestError extends Error { - constructor(message, statusCode, options) { - super(message); // Maintains proper stack trace (only available on V8) - - /* istanbul ignore next */ - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - - this.name = "HttpError"; - this.status = statusCode; - Object.defineProperty(this, "code", { - get() { - logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); - return statusCode; - } - - }); - this.headers = options.headers || {}; // redact request credentials without mutating original request options - - const requestCopy = Object.assign({}, options.request); - - if (options.request.headers.authorization) { - requestCopy.headers = Object.assign({}, options.request.headers, { - authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") - }); - } +function getUserAgent() { + if (typeof navigator === "object" && "userAgent" in navigator) { + return navigator.userAgent; + } - requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit - // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications - .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended - // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header - .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); - this.request = requestCopy; + if (typeof process === "object" && "version" in process) { + return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; } + return ""; } -exports.RequestError = RequestError; +exports.getUserAgent = getUserAgent; //# sourceMappingURL=index.js.map /***/ }), -/* 464 */, -/* 465 */, -/* 466 */, -/* 467 */ + +/***/ 6802: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -159335,81 +414764,49 @@ exports.RequestError = RequestError; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.prod_tt_sasportal_v1alpha1 = void 0; +exports.cloudtasks_v2beta2 = 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 = __webpack_require__(927); -var prod_tt_sasportal_v1alpha1; -(function (prod_tt_sasportal_v1alpha1) { +var cloudtasks_v2beta2; +(function (cloudtasks_v2beta2) { /** - * SAS Portal API (Testing) - * + * Cloud Tasks API * + * Manages the execution of large numbers of distributed requests. * * @example + * ```js * const {google} = require('googleapis'); - * const prod_tt_sasportal = google.prod_tt_sasportal('v1alpha1'); - * - * @namespace prod_tt_sasportal - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Prod_tt_sasportal + * const cloudtasks = google.cloudtasks('v2beta2'); + * ``` */ - class Prod_tt_sasportal { + class Cloudtasks { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.customers = new Resource$Customers(this.context); - this.installer = new Resource$Installer(this.context); - this.nodes = new Resource$Nodes(this.context); - this.policies = new Resource$Policies(this.context); + this.api = new Resource$Api(this.context); + this.projects = new Resource$Projects(this.context); } } - prod_tt_sasportal_v1alpha1.Prod_tt_sasportal = Prod_tt_sasportal; - class Resource$Customers { + cloudtasks_v2beta2.Cloudtasks = Cloudtasks; + class Resource$Api { constructor(context) { this.context = context; - this.devices = new Resource$Customers$Devices(this.context); - this.nodes = new Resource$Customers$Nodes(this.context); + this.queue = new Resource$Api$Queue(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://prod-tt-sasportal.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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); - } + } + cloudtasks_v2beta2.Resource$Api = Resource$Api; + class Resource$Api$Queue { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -159421,11 +414818,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/api/queue/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -159433,49 +414830,27 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://prod-tt-sasportal.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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); - } + } + cloudtasks_v2beta2.Resource$Api$Queue = Resource$Api$Queue; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } } - prod_tt_sasportal_v1alpha1.Resource$Customers = Resource$Customers; - class Resource$Customers$Devices { + cloudtasks_v2beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.queues = new Resource$Projects$Locations$Queues(this.context); } - bulk(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159488,25 +414863,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159519,25 +414894,32 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + } + cloudtasks_v2beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159550,10 +414932,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -159562,10 +414944,10 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -159581,10 +414963,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -159593,10 +414975,10 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -159612,10 +414994,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -159624,13 +415006,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159643,25 +415025,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159674,22 +415056,22 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -159705,10 +415087,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -159717,13 +415099,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159736,10 +415118,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -159748,13 +415130,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(paramsOrCallback, optionsOrCallback, callback) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159767,11 +415149,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -159779,20 +415161,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Customers$Devices = Resource$Customers$Devices; - class Resource$Customers$Nodes { - constructor(context) { - this.context = context; - this.nodes = new Resource$Customers$Nodes$Nodes(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159805,25 +415180,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159836,87 +415211,95 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudtasks_v2beta2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + buffer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159929,42 +415312,43 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + cancelLease(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta2/{+name}:cancelLease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -159972,18 +415356,12 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; - class Resource$Customers$Nodes$Nodes { - constructor(context) { - this.context = context; - } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -159997,10 +415375,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -160009,13 +415387,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160028,31 +415406,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes$Nodes = Resource$Customers$Nodes$Nodes; - class Resource$Installer { - constructor(context) { - this.context = context; - } - generateSecret(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160065,25 +415437,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + lease(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160096,39 +415468,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+parent}/tasks:lease').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Installer = Resource$Installer; - class Resource$Nodes { - constructor(context) { - this.context = context; - this.devices = new Resource$Nodes$Devices(this.context); - this.nodes = new Resource$Nodes$Nodes(this.context); - } - } - prod_tt_sasportal_v1alpha1.Resource$Nodes = Resource$Nodes; - class Resource$Nodes$Devices { - constructor(context) { - this.context = context; - } - bulk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160141,11 +415499,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -160153,44 +415511,45 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + renewLease(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:renewLease').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160203,25 +415562,153 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudtasks_v2beta2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta2 = exports.cloudtasks_v2beta2 || (exports.cloudtasks_v2beta2 = {})); + + +/***/ }), + +/***/ 6821: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.firebaserules_v1 = exports.auth = exports.firebaserules = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8034); +Object.defineProperty(exports, "firebaserules_v1", { enumerable: true, get: function () { return v1_1.firebaserules_v1; } }); +exports.VERSIONS = { + v1: v1_1.firebaserules_v1.Firebaserules, +}; +function firebaserules(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firebaserules', versionOrOptions, exports.VERSIONS, this); +} +exports.firebaserules = firebaserules; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6829: +/***/ (function(module) { + +"use strict"; + +module.exports = opts => { + opts = opts || {}; + + const env = opts.env || process.env; + const platform = opts.platform || process.platform; + + if (platform !== 'win32') { + return 'PATH'; + } + + return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path'; +}; + + +/***/ }), + +/***/ 6833: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.file_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var file_v1beta1; +(function (file_v1beta1) { + /** + * Cloud Filestore API + * + * The Cloud Filestore API is used for creating and managing cloud file servers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const file = google.file('v1beta1'); + * ``` + */ + class File { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + file_v1beta1.File = File; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + file_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Backups(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 || {}); @@ -160234,11 +415721,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -160246,13 +415733,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160265,10 +415752,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -160277,13 +415764,19 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + file_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160296,11 +415789,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -160308,13 +415801,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160327,11 +415820,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -160339,13 +415832,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160358,11 +415851,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -160370,13 +415863,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160389,25 +415882,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160420,10 +415913,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -160432,19 +415925,19 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - prod_tt_sasportal_v1alpha1.Resource$Nodes$Devices = Resource$Nodes$Devices; - class Resource$Nodes$Nodes { + file_v1beta1.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; - this.devices = new Resource$Nodes$Nodes$Devices(this.context); - this.nodes = new Resource$Nodes$Nodes$Nodes(this.context); + this.shares = new Resource$Projects$Locations$Instances$Shares(this.context); + this.snapshots = new Resource$Projects$Locations$Instances$Snapshots(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -160459,10 +415952,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -160471,10 +415964,10 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -160490,10 +415983,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -160502,14 +415995,15 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -160520,10 +416014,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -160532,14 +416026,15 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -160550,10 +416045,10 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -160562,14 +416057,15 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -160580,11 +416076,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -160592,13 +416088,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160611,11 +416107,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -160623,19 +416119,13 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes = Resource$Nodes$Nodes; - class Resource$Nodes$Nodes$Devices { - constructor(context) { - this.context = context; - } - bulk(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160648,41 +416138,48 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + file_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Shares { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/shares').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -160691,44 +416188,45 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160741,31 +416239,25 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; - class Resource$Nodes$Nodes$Nodes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160778,11 +416270,11 @@ var prod_tt_sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/shares').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -160790,348 +416282,217 @@ var prod_tt_sasportal_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; - class Resource$Policies { + file_v1beta1.Resource$Projects$Locations$Instances$Shares = Resource$Projects$Locations$Instances$Shares; + class Resource$Projects$Locations$Instances$Snapshots { 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://prod-tt-sasportal.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:get').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); - } - } - set(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://prod-tt-sasportal.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:set').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); - } - } - test(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - prod_tt_sasportal_v1alpha1.Resource$Policies = Resource$Policies; -})(prod_tt_sasportal_v1alpha1 = exports.prod_tt_sasportal_v1alpha1 || (exports.prod_tt_sasportal_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 468 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.vision_v1p1beta1 = 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 = __webpack_require__(927); -var vision_v1p1beta1; -(function (vision_v1p1beta1) { - /** - * Cloud Vision API - * - * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. - * - * @example - * const {google} = require('googleapis'); - * const vision = google.vision('v1p1beta1'); - * - * @namespace vision - * @type {Function} - * @version v1p1beta1 - * @variation v1p1beta1 - * @param {object=} options Options for Vision - */ - class Vision { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.files = new Resource$Files(this.context); - this.images = new Resource$Images(this.context); - this.projects = new Resource$Projects(this.context); - } - } - vision_v1p1beta1.Vision = Vision; - class Resource$Files { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p1beta1.Resource$Files = Resource$Files; - class Resource$Images { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1p1beta1.Resource$Images = Resource$Images; - class Resource$Projects { - constructor(context) { - this.context = context; - this.files = new Resource$Projects$Files(this.context); - this.images = new Resource$Projects$Images(this.context); - this.locations = new Resource$Projects$Locations(this.context); - } - } - vision_v1p1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Files { + file_v1beta1.Resource$Projects$Locations$Instances$Snapshots = Resource$Projects$Locations$Instances$Snapshots; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161144,25 +416505,25 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161175,31 +416536,25 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p1beta1.Resource$Projects$Files = Resource$Projects$Files; - class Resource$Projects$Images { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161212,25 +416567,25 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161243,86 +416598,154 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1p1beta1.Resource$Projects$Images = Resource$Projects$Images; + file_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(file_v1beta1 = exports.file_v1beta1 || (exports.file_v1beta1 = {})); + + +/***/ }), + +/***/ 6843: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.workflowexecutions_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var workflowexecutions_v1beta; +(function (workflowexecutions_v1beta) { + /** + * Workflow Executions API + * + * Execute workflows created with Workflows API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const workflowexecutions = google.workflowexecutions('v1beta'); + * ``` + */ + class Workflowexecutions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + workflowexecutions_v1beta.Workflowexecutions = Workflowexecutions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + workflowexecutions_v1beta.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.files = new Resource$Projects$Locations$Files(this.context); - this.images = new Resource$Projects$Locations$Images(this.context); + this.workflows = new Resource$Projects$Locations$Workflows(this.context); } } - vision_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Files { + workflowexecutions_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Workflows { constructor(context) { this.context = context; + this.executions = new Resource$Projects$Locations$Workflows$Executions(this.context); } - annotate(paramsOrCallback, optionsOrCallback, callback) { + } + workflowexecutions_v1beta.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows; + class Resource$Projects$Locations$Workflows$Executions { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -161331,67 +416754,63 @@ var vision_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p1beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; - class Resource$Projects$Locations$Images { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -161399,363 +416818,20 @@ var vision_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1p1beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; -})(vision_v1p1beta1 = exports.vision_v1p1beta1 || (exports.vision_v1p1beta1 = {})); -//# sourceMappingURL=v1p1beta1.js.map - -/***/ }), -/* 469 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + workflowexecutions_v1beta.Resource$Projects$Locations$Workflows$Executions = Resource$Projects$Locations$Workflows$Executions; +})(workflowexecutions_v1beta = exports.workflowexecutions_v1beta || (exports.workflowexecutions_v1beta = {})); -"use strict"; - -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts -const graphql_1 = __webpack_require__(898); -const rest_1 = __webpack_require__(741); -const Context = __importStar(__webpack_require__(262)); -const httpClient = __importStar(__webpack_require__(539)); -// We need this in order to extend Octokit -rest_1.Octokit.prototype = new rest_1.Octokit(); -exports.context = new Context.Context(); -class GitHub extends rest_1.Octokit { - constructor(token, opts) { - super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts))); - this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts)); - } - /** - * Disambiguates the constructor overload parameters - */ - static disambiguate(token, opts) { - return [ - typeof token === 'string' ? token : '', - typeof token === 'object' ? token : opts || {} - ]; - } - static getOctokitOptions(args) { - const token = args[0]; - const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller - // Base URL - GHES or Dotcom - options.baseUrl = options.baseUrl || this.getApiBaseUrl(); - // Auth - const auth = GitHub.getAuthString(token, options); - if (auth) { - options.auth = auth; - } - // Proxy - const agent = GitHub.getProxyAgent(options.baseUrl, options); - if (agent) { - // Shallow clone - don't mutate the object provided by the caller - options.request = options.request ? Object.assign({}, options.request) : {}; - // Set the agent - options.request.agent = agent; - } - return options; - } - static getGraphQL(args) { - const defaults = {}; - defaults.baseUrl = this.getGraphQLBaseUrl(); - const token = args[0]; - const options = args[1]; - // Authorization - const auth = this.getAuthString(token, options); - if (auth) { - defaults.headers = { - authorization: auth - }; - } - // Proxy - const agent = GitHub.getProxyAgent(defaults.baseUrl, options); - if (agent) { - defaults.request = { agent }; - } - return graphql_1.graphql.defaults(defaults); - } - static getAuthString(token, options) { - // Validate args - if (!token && !options.auth) { - throw new Error('Parameter token or opts.auth is required'); - } - else if (token && options.auth) { - throw new Error('Parameters token and opts.auth may not both be specified'); - } - return typeof options.auth === 'string' ? options.auth : `token ${token}`; - } - static getProxyAgent(destinationUrl, options) { - var _a; - if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) { - if (httpClient.getProxyUrl(destinationUrl)) { - const hc = new httpClient.HttpClient(); - return hc.getAgent(destinationUrl); - } - } - return undefined; - } - static getApiBaseUrl() { - return process.env['GITHUB_API_URL'] || 'https://api.github.com'; - } - static getGraphQLBaseUrl() { - let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql'; - // Shouldn't be a trailing slash, but remove if so - if (url.endsWith('/')) { - url = url.substr(0, url.length - 1); - } - // Remove trailing "/graphql" - if (url.toUpperCase().endsWith('/GRAPHQL')) { - url = url.substr(0, url.length - '/graphql'.length); - } - return url; - } -} -exports.GitHub = GitHub; -//# sourceMappingURL=github.js.map /***/ }), -/* 470 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const command_1 = __webpack_require__(431); -const os = __importStar(__webpack_require__(87)); -const path = __importStar(__webpack_require__(622)); -/** - * The code to exit an action - */ -var ExitCode; -(function (ExitCode) { - /** - * A code indicating that the action was successful - */ - ExitCode[ExitCode["Success"] = 0] = "Success"; - /** - * A code indicating that the action was a failure - */ - ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); -//----------------------------------------------------------------------- -// Variables -//----------------------------------------------------------------------- -/** - * Sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function exportVariable(name, val) { - const convertedVal = command_1.toCommandValue(val); - process.env[name] = convertedVal; - command_1.issueCommand('set-env', { name }, convertedVal); -} -exports.exportVariable = exportVariable; -/** - * Registers a secret which will get masked from logs - * @param secret value of the secret - */ -function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret); -} -exports.setSecret = setSecret; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -function addPath(inputPath) { - command_1.issueCommand('add-path', {}, inputPath); - process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; -} -exports.addPath = addPath; -/** - * Gets the value of an input. The value is also trimmed. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string - */ -function getInput(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - return val.trim(); -} -exports.getInput = getInput; -/** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function setOutput(name, value) { - command_1.issueCommand('set-output', { name }, value); -} -exports.setOutput = setOutput; -/** - * Enables or disables the echoing of commands into stdout for the rest of the step. - * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. - * - */ -function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off'); -} -exports.setCommandEcho = setCommandEcho; -//----------------------------------------------------------------------- -// Results -//----------------------------------------------------------------------- -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); -} -exports.setFailed = setFailed; -//----------------------------------------------------------------------- -// Logging Commands -//----------------------------------------------------------------------- -/** - * Gets whether Actions Step Debug is on or not - */ -function isDebug() { - return process.env['RUNNER_DEBUG'] === '1'; -} -exports.isDebug = isDebug; -/** - * Writes debug message to user log - * @param message debug message - */ -function debug(message) { - command_1.issueCommand('debug', {}, message); -} -exports.debug = debug; -/** - * Adds an error issue - * @param message error issue message. Errors will be converted to string via toString() - */ -function error(message) { - command_1.issue('error', message instanceof Error ? message.toString() : message); -} -exports.error = error; -/** - * Adds an warning issue - * @param message warning issue message. Errors will be converted to string via toString() - */ -function warning(message) { - command_1.issue('warning', message instanceof Error ? message.toString() : message); -} -exports.warning = warning; -/** - * Writes info to log with console.log. - * @param message info message - */ -function info(message) { - process.stdout.write(message + os.EOL); -} -exports.info = info; -/** - * Begin an output group. - * - * Output until the next `groupEnd` will be foldable in this group - * - * @param name The name of the output group - */ -function startGroup(name) { - command_1.issue('group', name); -} -exports.startGroup = startGroup; -/** - * End an output group. - */ -function endGroup() { - command_1.issue('endgroup'); -} -exports.endGroup = endGroup; -/** - * Wrap an asynchronous function call in a group. - * - * Returns the same type as the function itself. - * - * @param name The name of the group - * @param fn The function to wrap in the group - */ -function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup(name); - let result; - try { - result = yield fn(); - } - finally { - endGroup(); - } - return result; - }); -} -exports.group = group; -//----------------------------------------------------------------------- -// Wrapper action state -//----------------------------------------------------------------------- -/** - * Saves state for current action, the state can only be retrieved by this action's post job execution. - * - * @param name name of the state to store - * @param value value to store. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function saveState(name, value) { - command_1.issueCommand('save-state', { name }, value); -} -exports.saveState = saveState; -/** - * Gets the value of an state set by this action's main execution. - * - * @param name name of the state to get - * @returns string - */ -function getState(name) { - return process.env[`STATE_${name}`] || ''; -} -exports.getState = getState; -//# sourceMappingURL=core.js.map -/***/ }), -/* 471 */, -/* 472 */, -/* 473 */ +/***/ 6845: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -161773,32 +416849,27 @@ exports.getState = getState; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.redis_v1 = void 0; +exports.cloudtrace_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 = __webpack_require__(927); -var redis_v1; -(function (redis_v1) { +var cloudtrace_v1; +(function (cloudtrace_v1) { /** - * Google Cloud Memorystore for Redis API + * Cloud Trace API * - * Creates and manages Redis instances on the Google Cloud Platform. + * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry. * * @example + * ```js * const {google} = require('googleapis'); - * const redis = google.redis('v1'); - * - * @namespace redis - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Redis + * const cloudtrace = google.cloudtrace('v1'); + * ``` */ - class Redis { + class Cloudtrace { constructor(options, google) { this.context = { _options: options || {}, @@ -161807,21 +416878,13 @@ var redis_v1; this.projects = new Resource$Projects(this.context); } } - redis_v1.Redis = Redis; + cloudtrace_v1.Cloudtrace = Cloudtrace; class Resource$Projects { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - redis_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); + this.traces = new Resource$Projects$Traces(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + patchTraces(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161834,25 +416897,31 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudtrace_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Traces { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161865,31 +416934,25 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/traces/{traceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'traceId'], + pathParams: ['projectId', 'traceId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - redis_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161902,58 +416965,156 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://redis.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, + } + cloudtrace_v1.Resource$Projects$Traces = Resource$Projects$Traces; +})(cloudtrace_v1 = exports.cloudtrace_v1 || (exports.cloudtrace_v1 = {})); + + +/***/ }), + +/***/ 6863: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticationBeforeRequest; + +const btoa = __webpack_require__(397); + +const withAuthorizationPrefix = __webpack_require__(3143); + +function authenticationBeforeRequest(state, options) { + if (typeof state.auth === "string") { + options.headers.authorization = withAuthorizationPrefix(state.auth); + return; + } + + if (state.auth.username) { + const hash = btoa(`${state.auth.username}:${state.auth.password}`); + options.headers.authorization = `Basic ${hash}`; + if (state.otp) { + options.headers["x-github-otp"] = state.otp; + } + return; + } + + if (state.auth.clientId) { + // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as + // Basic Authorization instead of query parameters. The only routes where that applies share the same + // URL though: `/applications/:client_id/tokens/:access_token`. + // + // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization) + // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization) + // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application) + // + // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token" + // as well as "/applications/123/tokens/token456" + if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) { + const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`); + options.headers.authorization = `Basic ${hash}`; + return; + } + + options.url += options.url.indexOf("?") === -1 ? "?" : "&"; + options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`; + return; + } + + return Promise.resolve() + + .then(() => { + return state.auth(); + }) + + .then(authorization => { + options.headers.authorization = withAuthorizationPrefix(authorization); + }); +} + + +/***/ }), + +/***/ 6873: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dns_v2beta1 = 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 = __webpack_require__(927); +var dns_v2beta1; +(function (dns_v2beta1) { + /** + * Cloud DNS API + * + * + * + * @example + * const {google} = require('googleapis'); + * const dns = google.dns('v2beta1'); + * + * @namespace dns + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Dns + */ + class Dns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); + this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dns_v2beta1.Dns = Dns; + class Resource$Changes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -161964,27 +417125,27 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - failover(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -161995,27 +417156,27 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162026,27 +417187,33 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dns_v2beta1.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162057,27 +417224,27 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162088,25 +417255,32 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2beta1.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162119,25 +417293,26 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgrade(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162150,31 +417325,32 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - redis_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { + dns_v2beta1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162187,22 +417363,22 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -162218,27 +417394,27 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162249,22 +417425,23 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -162280,97 +417457,25 @@ var redis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - redis_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(redis_v1 = exports.redis_v1 || (exports.redis_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 474 */, -/* 475 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.sql_v1beta4 = 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 = __webpack_require__(927); -var sql_v1beta4; -(function (sql_v1beta4) { - /** - * Cloud SQL Admin API - * - * API for Cloud SQL database instance management - * - * @example - * const {google} = require('googleapis'); - * const sql = google.sql('v1beta4'); - * - * @namespace sql - * @type {Function} - * @version v1beta4 - * @variation v1beta4 - * @param {object=} options Options for Sql - */ - class Sql { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.backupRuns = new Resource$Backupruns(this.context); - this.databases = new Resource$Databases(this.context); - this.flags = new Resource$Flags(this.context); - this.instances = new Resource$Instances(this.context); - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - this.sslCerts = new Resource$Sslcerts(this.context); - this.tiers = new Resource$Tiers(this.context); - this.users = new Resource$Users(this.context); - } - } - sql_v1beta4.Sql = Sql; - class Resource$Backupruns { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162383,57 +417488,26 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], - 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162446,26 +417520,32 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2beta1.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -162477,31 +417557,24 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sql_v1beta4.Resource$Backupruns = Resource$Backupruns; - class Resource$Databases { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162514,23 +417587,22 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -162545,26 +417617,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -162576,26 +417647,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -162607,26 +417677,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -162638,26 +417707,31 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2beta1.Resource$Policies = Resource$Policies; + class Resource$Projects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -162669,33 +417743,33 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dns/v2beta1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - sql_v1beta4.Resource$Databases = Resource$Databases; - class Resource$Flags { + dns_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { constructor(context) { this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162706,33 +417780,87 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - sql_v1beta4.Resource$Flags = Resource$Flags; - class Resource$Instances { + dns_v2beta1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; +})(dns_v2beta1 = exports.dns_v2beta1 || (exports.dns_v2beta1 = {})); + + +/***/ }), + +/***/ 6908: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.servicenetworking_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var servicenetworking_v1beta; +(function (servicenetworking_v1beta) { + /** + * Service Networking API + * + * Provides automatic management of network configurations necessary for certain services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicenetworking = google.servicenetworking('v1beta'); + * ``` + */ + class Servicenetworking { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + servicenetworking_v1beta.Servicenetworking = Servicenetworking; + class Resource$Operations { constructor(context) { this.context = context; } - addServerCa(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162743,27 +417871,34 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clone(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + servicenetworking_v1beta.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.connections = new Resource$Services$Connections(this.context); + } + addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162774,27 +417909,27 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162805,25 +417940,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - demoteMaster(paramsOrCallback, optionsOrCallback, callback) { + updateConnections(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162836,27 +417971,33 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + servicenetworking_v1beta.Resource$Services = Resource$Services; + class Resource$Services$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162867,26 +418008,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - failover(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162899,25 +418039,122 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + servicenetworking_v1beta.Resource$Services$Connections = Resource$Services$Connections; +})(servicenetworking_v1beta = exports.servicenetworking_v1beta || (exports.servicenetworking_v1beta = {})); + + +/***/ }), + +/***/ 6922: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.safebrowsing_v4 = exports.auth = exports.safebrowsing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v4_1 = __webpack_require__(2662); +Object.defineProperty(exports, "safebrowsing_v4", { enumerable: true, get: function () { return v4_1.safebrowsing_v4; } }); +exports.VERSIONS = { + v4: v4_1.safebrowsing_v4.Safebrowsing, +}; +function safebrowsing(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('safebrowsing', versionOrOptions, exports.VERSIONS, this); +} +exports.safebrowsing = safebrowsing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 6930: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.poly_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var poly_v1; +(function (poly_v1) { + /** + * Poly API + * + * The Poly API provides read access to assets hosted on poly.google.com to all, and upload access to poly.google.com for whitelisted accounts. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const poly = google.poly('v1'); + * ``` + */ + class Poly { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assets = new Resource$Assets(this.context); + this.users = new Resource$Users(this.context); + } + } + poly_v1.Poly = Poly; + class Resource$Assets { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162930,25 +418167,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -162960,27 +418197,41 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + poly_v1.Resource$Assets = Resource$Assets; + class Resource$Users { + constructor(context) { + this.context = context; + this.assets = new Resource$Users$Assets(this.context); + this.likedassets = new Resource$Users$Likedassets(this.context); + } + } + poly_v1.Resource$Users = Resource$Users; + class Resource$Users$Assets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -162991,26 +418242,33 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + poly_v1.Resource$Users$Assets = Resource$Users$Assets; + class Resource$Users$Likedassets { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -163021,87 +418279,420 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/likedassets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listServerCas(paramsOrCallback, optionsOrCallback, callback) { + } + poly_v1.Resource$Users$Likedassets = Resource$Users$Likedassets; +})(poly_v1 = exports.poly_v1 || (exports.poly_v1 = {})); + + +/***/ }), + +/***/ 6937: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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.getErrorFromOAuthErrorResponse = exports.OAuthClientAuthHandler = void 0; +const querystring = __webpack_require__(1191); +const crypto_1 = __webpack_require__(8984); +/** List of HTTP methods that accept request bodies. */ +const METHODS_SUPPORTING_REQUEST_BODY = ['PUT', 'POST', 'PATCH']; +/** + * Abstract class for handling client authentication in OAuth-based + * operations. + * When request-body client authentication is used, only application/json and + * application/x-www-form-urlencoded content types for HTTP methods that support + * request bodies are supported. + */ +class OAuthClientAuthHandler { + /** + * Instantiates an OAuth client authentication handler. + * @param clientAuthentication The client auth credentials. + */ + constructor(clientAuthentication) { + this.clientAuthentication = clientAuthentication; + this.crypto = (0, crypto_1.createCrypto)(); + } + /** + * Applies client authentication on the OAuth request's headers or POST + * body but does not process the request. + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + * @param bearerToken The optional bearer token to use for authentication. + * When this is used, no client authentication credentials are needed. + */ + applyClientAuthenticationOptions(opts, bearerToken) { + // Inject authenticated header. + this.injectAuthenticatedHeaders(opts, bearerToken); + // Inject authenticated request body. + if (!bearerToken) { + this.injectAuthenticatedRequestBody(opts); + } + } + /** + * Applies client authentication on the request's header if either + * basic authentication or bearer token authentication is selected. + * + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + * @param bearerToken The optional bearer token to use for authentication. + * When this is used, no client authentication credentials are needed. + */ + injectAuthenticatedHeaders(opts, bearerToken) { + var _a; + // Bearer token prioritized higher than basic Auth. + if (bearerToken) { + opts.headers = opts.headers || {}; + Object.assign(opts.headers, { + Authorization: `Bearer ${bearerToken}}`, + }); + } + else if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'basic') { + opts.headers = opts.headers || {}; + const clientId = this.clientAuthentication.clientId; + const clientSecret = this.clientAuthentication.clientSecret || ''; + const base64EncodedCreds = this.crypto.encodeBase64StringUtf8(`${clientId}:${clientSecret}`); + Object.assign(opts.headers, { + Authorization: `Basic ${base64EncodedCreds}`, + }); + } + } + /** + * Applies client authentication on the request's body if request-body + * client authentication is selected. + * + * @param opts The GaxiosOptions whose headers or data are to be modified + * depending on the client authentication mechanism to be used. + */ + injectAuthenticatedRequestBody(opts) { + var _a; + if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'request-body') { + const method = (opts.method || 'GET').toUpperCase(); + // Inject authenticated request body. + if (METHODS_SUPPORTING_REQUEST_BODY.indexOf(method) !== -1) { + // Get content-type. + let contentType; + const headers = opts.headers || {}; + for (const key in headers) { + if (key.toLowerCase() === 'content-type' && headers[key]) { + contentType = headers[key].toLowerCase(); + break; + } + } + if (contentType === 'application/x-www-form-urlencoded') { + opts.data = opts.data || ''; + const data = querystring.parse(opts.data); + Object.assign(data, { + client_id: this.clientAuthentication.clientId, + client_secret: this.clientAuthentication.clientSecret || '', + }); + opts.data = querystring.stringify(data); + } + else if (contentType === 'application/json') { + opts.data = opts.data || {}; + Object.assign(opts.data, { + client_id: this.clientAuthentication.clientId, + client_secret: this.clientAuthentication.clientSecret || '', + }); + } + else { + throw new Error(`${contentType} content-types are not supported with ` + + `${this.clientAuthentication.confidentialClientType} ` + + 'client authentication'); + } + } + else { + throw new Error(`${method} HTTP method does not support ` + + `${this.clientAuthentication.confidentialClientType} ` + + 'client authentication'); + } + } + } +} +exports.OAuthClientAuthHandler = OAuthClientAuthHandler; +/** + * Converts an OAuth error response to a native JavaScript Error. + * @param resp The OAuth error response to convert to a native Error object. + * @param err The optional original error. If provided, the error properties + * will be copied to the new error. + * @return The converted native Error object. + */ +function getErrorFromOAuthErrorResponse(resp, err) { + // Error response. + const errorCode = resp.error; + const errorDescription = resp.error_description; + const errorUri = resp.error_uri; + let message = `Error code ${errorCode}`; + if (typeof errorDescription !== 'undefined') { + message += `: ${errorDescription}`; + } + if (typeof errorUri !== 'undefined') { + message += ` - ${errorUri}`; + } + const newError = new Error(message); + // Copy properties from original error to newly generated error. + if (err) { + const keys = Object.keys(err); + if (err.stack) { + // Copy error.stack if available. + keys.push('stack'); + } + keys.forEach(key => { + // Do not overwrite the message field. + if (key !== 'message') { + Object.defineProperty(newError, key, { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + value: err[key], + writable: false, + enumerable: true, + }); + } + }); + } + return newError; +} +exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse; +//# sourceMappingURL=oauth2common.js.map + +/***/ }), + +/***/ 6938: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.advisorynotifications_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var advisorynotifications_v1; +(function (advisorynotifications_v1) { + /** + * Advisory Notifications API + * + * An API for accessing Advisory Notifications in Google Cloud + * + * @example + * ```js + * const {google} = require('googleapis'); + * const advisorynotifications = google.advisorynotifications('v1'); + * ``` + */ + class Advisorynotifications { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + advisorynotifications_v1.Advisorynotifications = Advisorynotifications; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + advisorynotifications_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.notifications = new Resource$Organizations$Locations$Notifications(this.context); + } + } + advisorynotifications_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Notifications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/notifications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - promoteReplica(paramsOrCallback, optionsOrCallback, callback) { + } + advisorynotifications_v1.Resource$Organizations$Locations$Notifications = Resource$Organizations$Locations$Notifications; +})(advisorynotifications_v1 = exports.advisorynotifications_v1 || (exports.advisorynotifications_v1 = {})); + + +/***/ }), + +/***/ 6947: +/***/ (function(module) { + +module.exports = {"name":"google-auth-library","version":"8.8.0","author":"Google Inc.","description":"Google APIs Authentication Client Library for Node.js","engines":{"node":">=12"},"main":"./build/src/index.js","types":"./build/src/index.d.ts","repository":"googleapis/google-auth-library-nodejs.git","keywords":["google","api","google apis","client","client library"],"dependencies":{"arrify":"^2.0.0","base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11","fast-text-encoding":"^1.0.0","gaxios":"^5.0.0","gcp-metadata":"^5.2.0","gtoken":"^6.1.0","jws":"^4.0.0","lru-cache":"^6.0.0"},"devDependencies":{"@compodoc/compodoc":"^1.1.7","@types/base64-js":"^1.2.5","@types/chai":"^4.1.7","@types/jws":"^3.1.0","@types/lru-cache":"^5.0.0","@types/mocha":"^9.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^16.0.0","@types/sinon":"^10.0.0","assert-rejects":"^1.0.0","c8":"^7.0.0","chai":"^4.2.0","codecov":"^3.0.2","execa":"^5.0.0","gts":"^3.1.0","is-docker":"^2.0.0","karma":"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.0","keypair":"^1.0.4","linkinator":"^4.0.0","mocha":"^9.2.2","mv":"^2.1.1","ncp":"^2.0.0","nock":"^13.0.0","null-loader":"^4.0.0","puppeteer":"^18.0.0","sinon":"^15.0.0","ts-loader":"^8.0.0","typescript":"^4.6.3","webpack":"^5.21.2","webpack-cli":"^4.0.0"},"files":["build/src","!build/src/**/*.map"],"scripts":{"test":"c8 mocha build/test","clean":"gts clean","prepare":"npm run compile","lint":"gts check","compile":"tsc -p .","fix":"gts fix","pretest":"npm run compile","docs":"compodoc src/","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile","webpack":"webpack","browser-test":"karma start","docs-test":"linkinator docs","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"license":"Apache-2.0"}; + +/***/ }), + +/***/ 6961: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.healthcare_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var healthcare_v1beta1; +(function (healthcare_v1beta1) { + /** + * Cloud Healthcare API + * + * Manage, store, and access healthcare data in Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const healthcare = google.healthcare('v1beta1'); + * ``` + */ + class Healthcare { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + healthcare_v1beta1.Healthcare = Healthcare; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + healthcare_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163114,26 +418705,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163146,26 +418736,39 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = context; + this.annotationStores = + new Resource$Projects$Locations$Datasets$Annotationstores(this.context); + this.consentStores = + new Resource$Projects$Locations$Datasets$Consentstores(this.context); + this.dicomStores = new Resource$Projects$Locations$Datasets$Dicomstores(this.context); + this.fhirStores = new Resource$Projects$Locations$Datasets$Fhirstores(this.context); + this.hl7V2Stores = new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context); + this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163178,26 +418781,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restoreBackup(paramsOrCallback, optionsOrCallback, callback) { + deidentify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163210,26 +418812,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['sourceDataset'], + pathParams: ['sourceDataset'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163242,26 +418843,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startReplica(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163274,26 +418874,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopReplica(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163306,26 +418905,25 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - truncateLog(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163338,27 +418936,27 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -163369,32 +418967,27 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sql_v1beta4.Resource$Instances = Resource$Instances; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -163405,1560 +418998,1005 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - sql_v1beta4.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Instances(this.context); - } - } - sql_v1beta4.Resource$Projects = Resource$Projects; - class Resource$Projects$Instances { + healthcare_v1beta1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Annotationstores { constructor(context) { this.context = context; + this.annotations = + new Resource$Projects$Locations$Datasets$Annotationstores$Annotations(this.context); } - rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotationStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startExternalSync(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyExternalSyncSettings(paramsOrCallback, optionsOrCallback, callback) { + evaluate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:evaluate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sql_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances; - class Resource$Sslcerts { - constructor(context) { - this.context = context; - } - createEphemeral(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotationStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sql_v1beta4.Resource$Sslcerts = Resource$Sslcerts; - class Resource$Tiers { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sql_v1beta4.Resource$Tiers = Resource$Tiers; - class Resource$Users { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Annotationstores = Resource$Projects$Locations$Datasets$Annotationstores; + class Resource$Projects$Locations$Datasets$Annotationstores$Annotations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sql_v1beta4.Resource$Users = Resource$Users; -})(sql_v1beta4 = exports.sql_v1beta4 || (exports.sql_v1beta4 = {})); -//# sourceMappingURL=v1beta4.js.map - -/***/ }), -/* 476 */, -/* 477 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.siteVerification_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 = __webpack_require__(927); -var siteVerification_v1; -(function (siteVerification_v1) { - /** - * Google Site Verification API - * - * Verifies ownership of websites or domains with Google. - * - * @example - * const {google} = require('googleapis'); - * const siteVerification = google.siteVerification('v1'); - * - * @namespace siteVerification - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Siteverification - */ - class Siteverification { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.webResource = new Resource$Webresource(this.context); - } - } - siteVerification_v1.Siteverification = Siteverification; - class Resource$Webresource { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getToken(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/token').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Annotationstores$Annotations = Resource$Projects$Locations$Datasets$Annotationstores$Annotations; + class Resource$Projects$Locations$Datasets$Consentstores { + constructor(context) { + this.context = context; + this.attributeDefinitions = + new Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions(this.context); + this.consentArtifacts = + new Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts(this.context); + this.consents = + new Resource$Projects$Locations$Datasets$Consentstores$Consents(this.context); + this.userDataMappings = + new Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings(this.context); + } + checkDataAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+consentStore}:checkDataAccess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['verificationMethod'], - pathParams: [], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + evaluateUserConsents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+consentStore}:evaluateUserConsents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - siteVerification_v1.Resource$Webresource = Resource$Webresource; -})(siteVerification_v1 = exports.siteVerification_v1 || (exports.siteVerification_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 478 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.bigqueryconnection = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(529); -exports.VERSIONS = { - v1beta1: v1beta1_1.bigqueryconnection_v1beta1.Bigqueryconnection, -}; -function bigqueryconnection(versionOrOptions) { - return googleapis_common_1.getAPI('bigqueryconnection', versionOrOptions, exports.VERSIONS, this); -} -exports.bigqueryconnection = bigqueryconnection; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 479 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -/** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const gaxios_1 = __webpack_require__(597); -const jsonBigint = __webpack_require__(738); // eslint-disable-line -exports.BASE_PATH = '/computeMetadata/v1'; -exports.HOST_ADDRESS = 'http://169.254.169.254'; -exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; -exports.HEADER_NAME = 'Metadata-Flavor'; -exports.HEADER_VALUE = 'Google'; -exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); -/** - * Returns the base URL while taking into account the GCE_METADATA_IP - * environment variable if it exists. - * - * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. - */ -function getBaseUrl(baseUrl) { - if (!baseUrl) { - baseUrl = process.env.GCE_METADATA_IP - ? process.env.GCE_METADATA_IP - : exports.HOST_ADDRESS; - } - // If no scheme is provided default to HTTP: - if (!/^https?:\/\//.test(baseUrl)) { - baseUrl = `http://${baseUrl}`; - } - return new URL(exports.BASE_PATH, baseUrl).href; -} -// Accepts an options object passed from the user to the API. In previous -// versions of the API, it referred to a `Request` or an `Axios` request -// options object. Now it refers to an object with very limited property -// names. This is here to help ensure users don't pass invalid options when -// they upgrade from 0.4 to 0.5 to 0.8. -function validate(options) { - Object.keys(options).forEach(key => { - switch (key) { - case 'params': - case 'property': - case 'headers': - break; - case 'qs': - throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); - default: - throw new Error(`'${key}' is not a valid configuration option.`); - } - }); -} -async function metadataAccessor(type, options, noResponseRetries = 3, fastFail = false) { - options = options || {}; - if (typeof options === 'string') { - options = { property: options }; - } - let property = ''; - if (typeof options === 'object' && options.property) { - property = '/' + options.property; - } - validate(options); - try { - const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; - const res = await requestMethod({ - url: `${getBaseUrl()}/${type}${property}`, - headers: Object.assign({}, exports.HEADERS, options.headers), - retryConfig: { noResponseRetries }, - params: options.params, - responseType: 'text', - timeout: requestTimeout(), - }); - // NOTE: node.js converts all incoming headers to lower case. - if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { - throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`); - } - else if (!res.data) { - throw new Error('Invalid response from the metadata service'); - } - if (typeof res.data === 'string') { - try { - return jsonBigint.parse(res.data); - } - catch (_a) { - /* ignore */ - } - } - return res.data; - } - catch (e) { - if (e.response && e.response.status !== 200) { - e.message = `Unsuccessful response status code. ${e.message}`; - } - throw e; - } -} -async function fastFailMetadataRequest(options) { - const secondaryOptions = { - ...options, - url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), - }; - // We race a connection between DNS/IP to metadata server. There are a couple - // reasons for this: - // - // 1. the DNS is slow in some GCP environments; by checking both, we might - // detect the runtime environment signficantly faster. - // 2. we can't just check the IP, which is tarpitted and slow to respond - // on a user's local machine. - // - // Additional logic has been added to make sure that we don't create an - // unhandled rejection in scenarios where a failure happens sometime - // after a success. - // - // Note, however, if a failure happens prior to a success, a rejection should - // occur, this is for folks running locally. - // - let responded = false; - const r1 = gaxios_1.request(options) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r2; - } - else { - responded = true; - throw err; - } - }); - const r2 = gaxios_1.request(secondaryOptions) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r1; - } - else { - responded = true; - throw err; - } - }); - return Promise.race([r1, r2]); -} -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function instance(options) { - return metadataAccessor('instance', options); -} -exports.instance = instance; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function project(options) { - return metadataAccessor('project', options); -} -exports.project = project; -/* - * How many times should we retry detecting GCP environment. - */ -function detectGCPAvailableRetries() { - return process.env.DETECT_GCP_RETRIES - ? Number(process.env.DETECT_GCP_RETRIES) - : 0; -} -/** - * Determine if the metadata server is currently available. - */ -let cachedIsAvailableResponse; -async function isAvailable() { - try { - // If a user is instantiating several GCP libraries at the same time, - // this may result in multiple calls to isAvailable(), to detect the - // runtime environment. We use the same promise for each of these calls - // to reduce the network load. - if (cachedIsAvailableResponse === undefined) { - cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), - // If the default HOST_ADDRESS has been overridden, we should not - // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in - // a non-GCP environment): - process.env.GCE_METADATA_IP ? false : true); - } - await cachedIsAvailableResponse; - return true; - } - catch (err) { - if (process.env.DEBUG_AUTH) { - console.info(err); - } - if (err.type === 'request-timeout') { - // If running in a GCP environment, metadata endpoint should return - // within ms. - return false; - } - if (err.response && err.response.status === 404) { - return false; - } - else { - if (!(err.response && err.response.status === 404) && - // A warning is emitted if we see an unexpected err.code, or err.code - // is not populated: - (!err.code || - ![ - 'EHOSTDOWN', - 'EHOSTUNREACH', - 'ENETUNREACH', - 'ENOENT', - 'ENOTFOUND', - 'ECONNREFUSED', - ].includes(err.code))) { - let code = 'UNKNOWN'; - if (err.code) - code = err.code; - process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); + return (0, googleapis_common_1.createAPIRequest)(parameters); } - // Failure to resolve the metadata service means that it is not available. - return false; - } - } -} -exports.isAvailable = isAvailable; -/** - * reset the memoized isAvailable() lookup. - */ -function resetIsAvailableCache() { - cachedIsAvailableResponse = undefined; -} -exports.resetIsAvailableCache = resetIsAvailableCache; -function requestTimeout() { - // In testing, we were able to reproduce behavior similar to - // https://github.com/googleapis/google-auth-library-nodejs/issues/798 - // by making many concurrent network requests. Requests do not actually fail, - // rather they take significantly longer to complete (and we hit our - // default 3000ms timeout). - // - // This logic detects a GCF environment, using the documented environment - // variables K_SERVICE and FUNCTION_NAME: - // https://cloud.google.com/functions/docs/env-var and, in a GCF environment - // eliminates timeouts (by setting the value to 0 to disable). - return process.env.K_SERVICE || process.env.FUNCTION_NAME ? 0 : 3000; -} -exports.requestTimeout = requestTimeout; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 480 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.driveactivity = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(488); -exports.VERSIONS = { - v2: v2_1.driveactivity_v2.Driveactivity, -}; -function driveactivity(versionOrOptions) { - return googleapis_common_1.getAPI('driveactivity', versionOrOptions, exports.VERSIONS, this); -} -exports.driveactivity = driveactivity; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 481 */, -/* 482 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.policytroubleshooter_v1beta = 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 = __webpack_require__(927); -var policytroubleshooter_v1beta; -(function (policytroubleshooter_v1beta) { - /** - * Policy Troubleshooter API - * - * - * - * @example - * const {google} = require('googleapis'); - * const policytroubleshooter = google.policytroubleshooter('v1beta'); - * - * @namespace policytroubleshooter - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Policytroubleshooter - */ - class Policytroubleshooter { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.iam = new Resource$Iam(this.context); } - } - policytroubleshooter_v1beta.Policytroubleshooter = Policytroubleshooter; - class Resource$Iam { - constructor(context) { - this.context = context; - } - troubleshoot(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policytroubleshooter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - policytroubleshooter_v1beta.Resource$Iam = Resource$Iam; -})(policytroubleshooter_v1beta = exports.policytroubleshooter_v1beta || (exports.policytroubleshooter_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 483 */, -/* 484 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2013 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 }); -const gtoken_1 = __webpack_require__(60); -const jwtaccess_1 = __webpack_require__(346); -const oauth2client_1 = __webpack_require__(449); -class JWT extends oauth2client_1.OAuth2Client { - constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { - const opts = optionsOrEmail && typeof optionsOrEmail === 'object' - ? optionsOrEmail - : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; - super({ - eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, - forceRefreshOnFailure: opts.forceRefreshOnFailure, - }); - this.email = opts.email; - this.keyFile = opts.keyFile; - this.key = opts.key; - this.keyId = opts.keyId; - this.scopes = opts.scopes; - this.subject = opts.subject; - this.additionalClaims = opts.additionalClaims; - this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; - } - /** - * Creates a copy of the credential with the specified scopes. - * @param scopes List of requested scopes or a single scope. - * @return The cloned instance. - */ - createScoped(scopes) { - return new JWT({ - email: this.email, - keyFile: this.keyFile, - key: this.key, - keyId: this.keyId, - scopes, - subject: this.subject, - additionalClaims: this.additionalClaims, - }); - } - /** - * Obtains the metadata to be sent with the request. - * - * @param url the URI being authorized. - */ - async getRequestMetadataAsync(url) { - if (!this.apiKey && !this.hasScopes() && url) { - if (this.additionalClaims && - this.additionalClaims.target_audience) { - const { tokens } = await this.refreshToken(); - return { - headers: this.addSharedMetadataHeaders({ - Authorization: `Bearer ${tokens.id_token}`, - }), - }; + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - else { - // no scopes have been set, but a uri has been provided. Use JWTAccess - // credentials. - if (!this.access) { - this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId); - } - const headers = await this.access.getRequestHeaders(url, this.additionalClaims); - return { headers: this.addSharedMetadataHeaders(headers) }; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - else { - return super.getRequestMetadataAsync(url); - } - } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - // Create a new gToken for fetching an ID token - const gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: { target_audience: targetAudience }, - }); - await gtoken.getToken({ - forceRefresh: true, - }); - if (!gtoken.idToken) { - throw new Error('Unknown error: Failed to fetch ID token'); - } - return gtoken.idToken; - } - /** - * Determine if there are currently scopes available. - */ - hasScopes() { - if (!this.scopes) { - return false; - } - // For arrays, check the array length. - if (this.scopes instanceof Array) { - return this.scopes.length > 0; - } - // For others, convert to a string and check the length. - return String(this.scopes).length > 0; - } - authorize(callback) { - if (callback) { - this.authorizeAsync().then(r => callback(null, r), callback); - } - else { - return this.authorizeAsync(); - } - } - async authorizeAsync() { - const result = await this.refreshToken(); - if (!result) { - throw new Error('No result returned'); - } - this.credentials = result.tokens; - this.credentials.refresh_token = 'jwt-placeholder'; - this.key = this.gtoken.key; - this.email = this.gtoken.iss; - return result.tokens; - } - /** - * Refreshes the access token. - * @param refreshToken ignored - * @private - */ - async refreshTokenNoCache(refreshToken) { - const gtoken = this.createGToken(); - const token = await gtoken.getToken({ - forceRefresh: this.isTokenExpiring(), - }); - const tokens = { - access_token: token.access_token, - token_type: 'Bearer', - expiry_date: gtoken.expiresAt, - id_token: gtoken.idToken, - }; - this.emit('tokens', tokens); - return { res: null, tokens }; - } - /** - * Create a gToken if it doesn't already exist. - */ - createGToken() { - if (!this.gtoken) { - this.gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: this.additionalClaims, - }); - } - return this.gtoken; - } - /** - * Create a JWT credentials instance using the given input options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); - } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); - } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); - } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - this.quotaProjectId = json.quota_project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(r => callback(), callback); - } - else { - return this.fromStreamAsync(inputStream); - } - } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the service account auth settings.'); + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (e) { - reject(e); - } - }); - }); - } - /** - * Creates a JWT credentials instance using an API Key for authentication. - * @param apiKey The API Key in string form. - */ - fromAPIKey(apiKey) { - if (typeof apiKey !== 'string') { - throw new Error('Must provide an API Key string.'); } - this.apiKey = apiKey; - } - /** - * Using the key or keyFile on the JWT client, obtain an object that contains - * the key and the client email. - */ - async getCredentials() { - if (this.key) { - return { private_key: this.key, client_email: this.email }; + 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else if (this.keyFile) { - const gtoken = this.createGToken(); - const creds = await gtoken.getCredentials(this.keyFile); - return { private_key: creds.privateKey, client_email: creds.clientEmail }; + 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - throw new Error('A key or a keyFile must be provided to getCredentials.'); - } -} -exports.JWT = JWT; -//# sourceMappingURL=jwtclient.js.map - -/***/ }), -/* 485 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.firestore_v1beta2 = 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 = __webpack_require__(927); -var firestore_v1beta2; -(function (firestore_v1beta2) { - /** - * Cloud Firestore API - * - * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. - * - * @example - * const {google} = require('googleapis'); - * const firestore = google.firestore('v1beta2'); - * - * @namespace firestore - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Firestore - */ - class Firestore { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + queryAccessibleData(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+consentStore}:queryAccessibleData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['consentStore'], + pathParams: ['consentStore'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - firestore_v1beta2.Firestore = Firestore; - class Resource$Projects { - constructor(context) { - this.context = context; - this.databases = new Resource$Projects$Databases(this.context); + 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - firestore_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Databases { + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores = Resource$Projects$Locations$Datasets$Consentstores; + class Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions { constructor(context) { this.context = context; - this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); } - exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importDocuments(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -164966,43 +420004,30 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1beta2.Resource$Projects$Databases = Resource$Projects$Databases; - class Resource$Projects$Databases$Collectiongroups { - constructor(context) { - this.context = context; - this.fields = new Resource$Projects$Databases$Collectiongroups$Fields(this.context); - this.indexes = new Resource$Projects$Databases$Collectiongroups$Indexes(this.context); - } - } - firestore_v1beta2.Resource$Projects$Databases$Collectiongroups = Resource$Projects$Databases$Collectiongroups; - class Resource$Projects$Databases$Collectiongroups$Fields { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165011,10 +420036,10 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -165023,17 +420048,18 @@ var firestore_v1beta2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165042,10 +420068,10 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -165054,17 +420080,18 @@ var firestore_v1beta2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -165073,15 +420100,15 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; - class Resource$Projects$Databases$Collectiongroups$Indexes { + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions = Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions; + class Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts { constructor(context) { this.context = context; } @@ -165091,17 +420118,18 @@ var firestore_v1beta2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165110,10 +420138,10 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -165122,17 +420150,18 @@ var firestore_v1beta2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -165141,10 +420170,10 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -165153,17 +420182,18 @@ var firestore_v1beta2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165172,10 +420202,10 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -165184,17 +420214,18 @@ var firestore_v1beta2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165203,93 +420234,49 @@ var firestore_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; -})(firestore_v1beta2 = exports.firestore_v1beta2 || (exports.firestore_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 486 */, -/* 487 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.healthcare_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 = __webpack_require__(927); -var healthcare_v1; -(function (healthcare_v1) { - /** - * Cloud Healthcare API - * - * Manage, store, and access healthcare data in Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const healthcare = google.healthcare('v1'); - * - * @namespace healthcare - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Healthcare - */ - class Healthcare { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - healthcare_v1.Healthcare = Healthcare; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - healthcare_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts = Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts; + class Resource$Projects$Locations$Datasets$Consentstores$Consents { constructor(context) { this.context = context; - this.datasets = new Resource$Projects$Locations$Datasets(this.context); } - } - healthcare_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Datasets { - constructor(context) { - this.context = context; - this.dicomStores = new Resource$Projects$Locations$Datasets$Dicomstores(this.context); - this.fhirStores = new Resource$Projects$Locations$Datasets$Fhirstores(this.context); - this.hl7V2Stores = new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context); - this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); + activate(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -165297,7 +420284,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165307,7 +420295,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165316,19 +420304,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165338,28 +420327,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['sourceDataset'], - pathParams: ['sourceDataset'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165369,7 +420359,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -165378,10 +420368,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -165390,7 +420380,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165400,7 +420391,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165409,19 +420400,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165431,28 +420423,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165462,19 +420455,19 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -165483,7 +420476,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165493,7 +420487,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -165502,19 +420496,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + reject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165524,28 +420519,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:reject').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + revoke(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165555,27 +420551,226 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores$Consents = Resource$Projects$Locations$Datasets$Consentstores$Consents; + class Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings { + constructor(context) { + this.context = context; + } + archive(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings = Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings; class Resource$Projects$Locations$Datasets$Dicomstores { constructor(context) { this.context = context; - this.studies = new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); + this.studies = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -165583,7 +420778,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165593,7 +420789,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165602,10 +420798,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } deidentify(paramsOrCallback, optionsOrCallback, callback) { @@ -165614,7 +420810,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165624,7 +420821,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165633,10 +420830,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -165645,7 +420842,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165655,7 +420853,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -165664,10 +420862,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } export(paramsOrCallback, optionsOrCallback, callback) { @@ -165676,7 +420874,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165686,7 +420885,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165695,10 +420894,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -165707,7 +420906,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165717,7 +420917,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165726,10 +420926,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -165738,7 +420938,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165748,7 +420949,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165757,10 +420958,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } import(paramsOrCallback, optionsOrCallback, callback) { @@ -165769,7 +420970,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165779,7 +420981,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165788,10 +420990,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -165800,7 +421002,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165810,7 +421013,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165819,10 +421022,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -165831,7 +421034,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165841,7 +421045,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -165850,10 +421054,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } searchForInstances(paramsOrCallback, optionsOrCallback, callback) { @@ -165862,7 +421066,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165872,7 +421077,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165881,10 +421086,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } searchForSeries(paramsOrCallback, optionsOrCallback, callback) { @@ -165893,7 +421098,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165903,7 +421109,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165912,10 +421118,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } searchForStudies(paramsOrCallback, optionsOrCallback, callback) { @@ -165924,7 +421130,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165934,7 +421141,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -165943,10 +421150,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -165955,7 +421162,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165965,7 +421173,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -165974,10 +421182,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } storeInstances(paramsOrCallback, optionsOrCallback, callback) { @@ -165986,7 +421194,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -165996,7 +421205,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -166005,10 +421214,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -166017,7 +421226,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166027,7 +421237,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -166036,18 +421246,19 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores = Resource$Projects$Locations$Datasets$Dicomstores; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores = Resource$Projects$Locations$Datasets$Dicomstores; class Resource$Projects$Locations$Datasets$Dicomstores$Studies { constructor(context) { this.context = context; - this.series = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context); + this.series = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context); } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -166055,7 +421266,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166065,7 +421277,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -166074,10 +421286,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { @@ -166086,7 +421298,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166096,7 +421309,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166105,10 +421318,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { @@ -166117,7 +421330,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166127,7 +421341,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166136,10 +421350,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } searchForInstances(paramsOrCallback, optionsOrCallback, callback) { @@ -166148,7 +421362,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166158,7 +421373,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166167,10 +421382,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } searchForSeries(paramsOrCallback, optionsOrCallback, callback) { @@ -166179,7 +421394,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166189,7 +421405,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166198,10 +421414,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } storeInstances(paramsOrCallback, optionsOrCallback, callback) { @@ -166210,7 +421426,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166220,7 +421437,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -166229,18 +421446,19 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context); + this.instances = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context); } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -166248,7 +421466,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166258,7 +421477,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -166267,10 +421486,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { @@ -166279,7 +421498,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166289,7 +421509,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166298,10 +421518,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { @@ -166310,7 +421530,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166320,7 +421541,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166329,10 +421550,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } searchForInstances(paramsOrCallback, optionsOrCallback, callback) { @@ -166341,7 +421562,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166351,7 +421573,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166360,18 +421582,19 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series; class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances { constructor(context) { this.context = context; - this.frames = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context); + this.frames = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context); } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -166379,7 +421602,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166389,7 +421613,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -166398,10 +421622,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveInstance(paramsOrCallback, optionsOrCallback, callback) { @@ -166410,7 +421634,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166420,7 +421645,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166429,10 +421654,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { @@ -166441,7 +421666,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166451,7 +421677,77 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + retrieveRendered(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames { + constructor(context) { + this.context = context; + } + retrieveFrames(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166460,10 +421756,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { @@ -166472,7 +421768,303 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames; + class Resource$Projects$Locations$Datasets$Fhirstores { + constructor(context) { + this.context = context; + this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); + } + configureSearch(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:configureSearch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deidentify(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getFHIRStoreMetrics(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:getFHIRStoreMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166482,34 +422074,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances; - class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames { - constructor(context) { - this.context = context; - } - retrieveFrames(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166519,28 +422106,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166550,35 +422138,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames; - class Resource$Projects$Locations$Datasets$Fhirstores { - constructor(context) { - this.context = context; - this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166588,28 +422170,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166619,28 +422202,35 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Fhirstores = Resource$Projects$Locations$Datasets$Fhirstores; + class Resource$Projects$Locations$Datasets$Fhirstores$Fhir { + constructor(context) { + this.context = context; + } + capabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166650,8 +422240,8 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -166659,19 +422249,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + ConceptMapSearchTranslate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166681,28 +422272,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/fhir/ConceptMap/$translate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + ConceptMapTranslate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166712,7 +422304,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/$translate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166721,19 +422313,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + conditionalDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166743,28 +422336,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + conditionalPatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166774,28 +422368,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + conditionalUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166805,28 +422400,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166836,28 +422432,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166867,28 +422464,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + executeBundle(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166898,34 +422496,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1.Resource$Projects$Locations$Datasets$Fhirstores = Resource$Projects$Locations$Datasets$Fhirstores; - class Resource$Projects$Locations$Datasets$Fhirstores$Fhir { - constructor(context) { - this.context = context; - } - capabilities(paramsOrCallback, optionsOrCallback, callback) { + history(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166935,7 +422528,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -166944,19 +422537,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + ObservationLastn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166966,28 +422560,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/fhir/Observation/$lastn').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -166997,8 +422592,8 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -167006,19 +422601,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeBundle(paramsOrCallback, optionsOrCallback, callback) { + PatientEverything(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167028,28 +422624,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - history(paramsOrCallback, optionsOrCallback, callback) { + read(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167059,7 +422656,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167068,19 +422665,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + ResourceIncomingReferences(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167090,28 +422688,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/fhir/$references').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - PatientEverything(paramsOrCallback, optionsOrCallback, callback) { + ResourcePurge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167121,8 +422720,8 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -167130,19 +422729,20 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - read(paramsOrCallback, optionsOrCallback, callback) { + ResourceValidate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167152,28 +422752,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}/$validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourcePurge(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167183,28 +422784,29 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + searchType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167214,19 +422816,19 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhir/{resourceType}/_search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'resourceType'], + pathParams: ['parent', 'resourceType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -167235,7 +422837,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167245,7 +422848,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, @@ -167254,10 +422857,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } vread(paramsOrCallback, optionsOrCallback, callback) { @@ -167266,7 +422869,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167276,7 +422880,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167285,18 +422889,19 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Fhirstores$Fhir = Resource$Projects$Locations$Datasets$Fhirstores$Fhir; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Fhirstores$Fhir = Resource$Projects$Locations$Datasets$Fhirstores$Fhir; class Resource$Projects$Locations$Datasets$Hl7v2stores { constructor(context) { this.context = context; - this.messages = new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context); + this.messages = + new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -167304,7 +422909,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167314,7 +422920,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -167323,10 +422929,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -167335,7 +422941,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167345,7 +422952,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -167354,10 +422961,42 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -167366,7 +423005,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167376,7 +423016,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167385,10 +423025,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -167397,7 +423037,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167407,7 +423048,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167416,10 +423057,42 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + import(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -167428,7 +423101,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167438,7 +423112,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167447,10 +423121,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -167459,7 +423133,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167469,7 +423144,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -167478,10 +423153,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -167490,7 +423165,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167500,7 +423176,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -167509,10 +423185,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -167521,7 +423197,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167531,7 +423208,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -167540,25 +423217,58 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { constructor(context) { this.context = context; } + batchGet(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://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/messages:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167568,7 +423278,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -167577,10 +423287,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -167589,7 +423299,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167599,7 +423310,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -167608,10 +423319,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -167620,7 +423331,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167630,7 +423342,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167639,10 +423351,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } ingest(paramsOrCallback, optionsOrCallback, callback) { @@ -167651,7 +423363,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167661,7 +423374,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -167670,10 +423383,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -167682,7 +423395,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167692,7 +423406,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167701,10 +423415,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -167713,7 +423427,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167723,7 +423438,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -167732,14 +423447,14 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages = Resource$Projects$Locations$Datasets$Hl7v2stores$Messages; + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages = Resource$Projects$Locations$Datasets$Hl7v2stores$Messages; class Resource$Projects$Locations$Datasets$Operations { constructor(context) { this.context = context; @@ -167750,7 +423465,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167760,7 +423476,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -167769,10 +423485,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -167781,7 +423497,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167791,7 +423508,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167800,10 +423517,10 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -167812,7 +423529,8 @@ var healthcare_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -167822,7 +423540,7 @@ var healthcare_v1; const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -167831,239 +423549,72 @@ var healthcare_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; -})(healthcare_v1 = exports.healthcare_v1 || (exports.healthcare_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 488 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.driveactivity_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 = __webpack_require__(927); -var driveactivity_v2; -(function (driveactivity_v2) { - /** - * Drive Activity API - * - * Provides a historical view of activity in Google Drive. - * - * @example - * const {google} = require('googleapis'); - * const driveactivity = google.driveactivity('v2'); - * - * @namespace driveactivity - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Driveactivity - */ - class Driveactivity { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.activity = new Resource$Activity(this.context); + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + this.nlp = new Resource$Projects$Locations$Services$Nlp(this.context); } } - driveactivity_v2.Driveactivity = Driveactivity; - class Resource$Activity { + healthcare_v1beta1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Nlp { constructor(context) { this.context = context; } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://driveactivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/activity:query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+nlpService}:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['nlpService'], + pathParams: ['nlpService'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - driveactivity_v2.Resource$Activity = Resource$Activity; -})(driveactivity_v2 = exports.driveactivity_v2 || (exports.driveactivity_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 489 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -const path = __webpack_require__(622); -const which = __webpack_require__(814); -const pathKey = __webpack_require__(39)(); - -function resolveCommandAttempt(parsed, withoutPathExt) { - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - - // If a custom `cwd` was specified, we need to change the process cwd - // because `which` will do stat calls but does not support a custom cwd - if (hasCustomCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) { - /* Empty */ - } - } - - let resolved; - - try { - resolved = which.sync(parsed.command, { - path: (parsed.options.env || process.env)[pathKey], - pathExt: withoutPathExt ? path.delimiter : undefined, - }); - } catch (e) { - /* Empty */ - } finally { - process.chdir(cwd); - } - - // If we successfully resolved, ensure that an absolute path is returned - // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it - if (resolved) { - resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved); - } - - return resolved; -} - -function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); -} - -module.exports = resolveCommand; + healthcare_v1beta1.Resource$Projects$Locations$Services$Nlp = Resource$Projects$Locations$Services$Nlp; +})(healthcare_v1beta1 = exports.healthcare_v1beta1 || (exports.healthcare_v1beta1 = {})); /***/ }), -/* 490 */, -/* 491 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; +/***/ 6967: +/***/ (function(module) { -// 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.auth = exports.remotebuildexecution = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(497); -const v1alpha_1 = __webpack_require__(121); -const v2_1 = __webpack_require__(789); -exports.VERSIONS = { - v1: v1_1.remotebuildexecution_v1.Remotebuildexecution, - v1alpha: v1alpha_1.remotebuildexecution_v1alpha.Remotebuildexecution, - v2: v2_1.remotebuildexecution_v2.Remotebuildexecution, -}; -function remotebuildexecution(versionOrOptions) { - return googleapis_common_1.getAPI('remotebuildexecution', versionOrOptions, exports.VERSIONS, this); -} -exports.remotebuildexecution = remotebuildexecution; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +module.exports = [[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]; /***/ }), -/* 492 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.admob = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(549); -exports.VERSIONS = { - v1: v1_1.admob_v1.Admob, -}; -function admob(versionOrOptions) { - return googleapis_common_1.getAPI('admob', versionOrOptions, exports.VERSIONS, this); -} -exports.admob = admob; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 493 */ +/***/ 7006: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -168081,31 +423632,30 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.videointelligence = exports.VERSIONS = void 0; +exports.AuthPlus = exports.youtubeAnalytics_v2 = exports.youtubeAnalytics_v1 = exports.auth = exports.youtubeAnalytics = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(885); -const v1beta2_1 = __webpack_require__(415); -const v1p1beta1_1 = __webpack_require__(541); -const v1p2beta1_1 = __webpack_require__(283); -const v1p3beta1_1 = __webpack_require__(228); +const v1_1 = __webpack_require__(3881); +Object.defineProperty(exports, "youtubeAnalytics_v1", { enumerable: true, get: function () { return v1_1.youtubeAnalytics_v1; } }); +const v2_1 = __webpack_require__(4633); +Object.defineProperty(exports, "youtubeAnalytics_v2", { enumerable: true, get: function () { return v2_1.youtubeAnalytics_v2; } }); exports.VERSIONS = { - v1: v1_1.videointelligence_v1.Videointelligence, - v1beta2: v1beta2_1.videointelligence_v1beta2.Videointelligence, - v1p1beta1: v1p1beta1_1.videointelligence_v1p1beta1.Videointelligence, - v1p2beta1: v1p2beta1_1.videointelligence_v1p2beta1.Videointelligence, - v1p3beta1: v1p3beta1_1.videointelligence_v1p3beta1.Videointelligence, + v1: v1_1.youtubeAnalytics_v1.Youtubeanalytics, + v2: v2_1.youtubeAnalytics_v2.Youtubeanalytics, }; -function videointelligence(versionOrOptions) { - return googleapis_common_1.getAPI('videointelligence', versionOrOptions, exports.VERSIONS, this); +function youtubeAnalytics(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('youtubeAnalytics', versionOrOptions, exports.VERSIONS, this); } -exports.videointelligence = videointelligence; +exports.youtubeAnalytics = youtubeAnalytics; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 494 */ + +/***/ 7013: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -168123,55 +423673,51 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.firestore_v1beta1 = void 0; +exports.games_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 = __webpack_require__(927); -var firestore_v1beta1; -(function (firestore_v1beta1) { +var games_v1; +(function (games_v1) { /** - * Cloud Firestore API + * Google Play Game Services * - * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * The Google Play games service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more. * * @example + * ```js * const {google} = require('googleapis'); - * const firestore = google.firestore('v1beta1'); - * - * @namespace firestore - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Firestore + * const games = google.games('v1'); + * ``` */ - class Firestore { + class Games { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - firestore_v1beta1.Firestore = Firestore; - class Resource$Projects { - constructor(context) { - this.context = context; - this.databases = new Resource$Projects$Databases(this.context); + this.achievementDefinitions = new Resource$Achievementdefinitions(this.context); + this.achievements = new Resource$Achievements(this.context); + this.applications = new Resource$Applications(this.context); + this.events = new Resource$Events(this.context); + this.leaderboards = new Resource$Leaderboards(this.context); + this.metagame = new Resource$Metagame(this.context); + this.players = new Resource$Players(this.context); + this.revisions = new Resource$Revisions(this.context); + this.scores = new Resource$Scores(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.stats = new Resource$Stats(this.context); } } - firestore_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Databases { + games_v1.Games = Games; + class Resource$Achievementdefinitions { constructor(context) { this.context = context; - this.documents = new Resource$Projects$Databases$Documents(this.context); - this.indexes = new Resource$Projects$Databases$Indexes(this.context); } - exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168184,25 +423730,31 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importDocuments(paramsOrCallback, optionsOrCallback, callback) { + } + games_v1.Resource$Achievementdefinitions = Resource$Achievementdefinitions; + class Resource$Achievements { + constructor(context) { + this.context = context; + } + increment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168215,31 +423767,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/increment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['achievementId', 'stepsToIncrement'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1beta1.Resource$Projects$Databases = Resource$Projects$Databases; - class Resource$Projects$Databases$Documents { - constructor(context) { - this.context = context; - } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168252,25 +423798,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/players/{playerId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['playerId'], + pathParams: ['playerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + reveal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168283,25 +423829,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/reveal').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { + setStepsAtLeast(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168314,25 +423860,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/setStepsAtLeast').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['achievementId', 'steps'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createDocument(paramsOrCallback, optionsOrCallback, callback) { + unlock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168345,25 +423891,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/unlock').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateMultiple(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168376,27 +423922,32 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1/achievements/updateMultiple').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + games_v1.Resource$Achievements = Resource$Achievements; + class Resource$Applications { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168407,25 +423958,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getEndPoint(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168438,25 +423989,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1/applications/getEndPoint').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { + played(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168469,25 +424020,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/applications/played').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listen(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168500,25 +424051,31 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/applications/{applicationId}/verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + games_v1.Resource$Applications = Resource$Applications; + class Resource$Events { + constructor(context) { + this.context = context; + } + listByPlayer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168531,25 +424088,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + listDefinitions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168562,27 +424119,26 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/eventDefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + record(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168593,25 +424149,61 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + } + games_v1.Resource$Events = Resource$Events; + class Resource$Leaderboards { + 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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168624,31 +424216,31 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - firestore_v1beta1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; - class Resource$Projects$Databases$Indexes { + games_v1.Resource$Leaderboards = Resource$Leaderboards; + class Resource$Metagame { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + getMetagameConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168661,25 +424253,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/metagameConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listCategoriesByPlayer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168692,25 +424284,61 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1/players/{playerId}/categories/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['playerId', 'collection'], + pathParams: ['collection', 'playerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + games_v1.Resource$Metagame = Resource$Metagame; + class Resource$Players { + 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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId'], + pathParams: ['playerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getMultipleApplicationPlayerIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168723,25 +424351,25 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/players/me/multipleApplicationPlayerIds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getScopedPlayerIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168754,151 +424382,61 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/players/me/scopedIds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1beta1.Resource$Projects$Databases$Indexes = Resource$Projects$Databases$Indexes; -})(firestore_v1beta1 = exports.firestore_v1beta1 || (exports.firestore_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 495 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.tasks = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(727); -exports.VERSIONS = { - v1: v1_1.tasks_v1.Tasks, -}; -function tasks(versionOrOptions) { - return googleapis_common_1.getAPI('tasks', versionOrOptions, exports.VERSIONS, this); -} -exports.tasks = tasks; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 496 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _validate = _interopRequireDefault(__webpack_require__(89)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - return parseInt(uuid.substr(14, 1), 16); -} - -var _default = version; -exports.default = _default; - -/***/ }), -/* 497 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.remotebuildexecution_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 = __webpack_require__(927); -var remotebuildexecution_v1; -(function (remotebuildexecution_v1) { - /** - * Remote Build Execution API - * - * Supplies a Remote Execution API service for tools such as bazel. - * - * @example - * const {google} = require('googleapis'); - * const remotebuildexecution = google.remotebuildexecution('v1'); - * - * @namespace remotebuildexecution - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Remotebuildexecution - */ - class Remotebuildexecution { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/me/players/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['collection'], + pathParams: ['collection'], + context: this.context, }; - this.media = new Resource$Media(this.context); - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - remotebuildexecution_v1.Remotebuildexecution = Remotebuildexecution; - class Resource$Media { + games_v1.Resource$Players = Resource$Players; + class Resource$Revisions { constructor(context) { this.context = context; } - download(paramsOrCallback, optionsOrCallback, callback) { + check(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -168910,25 +424448,31 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/revisions/check').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['clientRevision'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + } + games_v1.Resource$Revisions = Resource$Revisions; + class Resource$Scores { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -168940,32 +424484,57 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['playerId', 'leaderboardId', 'timeSpan'], + pathParams: ['leaderboardId', 'playerId', 'timeSpan'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v1.Resource$Media = Resource$Media; - class Resource$Operations { - 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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1/leaderboards/{leaderboardId}/scores/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId', 'collection', 'timeSpan'], + pathParams: ['collection', 'leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + listWindow(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168978,25 +424547,56 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/games/v1/leaderboards/{leaderboardId}/window/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId', 'collection', 'timeSpan'], + pathParams: ['collection', 'leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + submit(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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}/scores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['leaderboardId', 'score'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + submitMultiple(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169009,25 +424609,31 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1/leaderboards/scores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + games_v1.Resource$Scores = Resource$Scores; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -169039,40 +424645,62 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['snapshotId'], + pathParams: ['snapshotId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Operations(this.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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/{playerId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId'], + pathParams: ['playerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - remotebuildexecution_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Operations { + games_v1.Resource$Snapshots = Resource$Snapshots; + class Resource$Stats { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -169083,33 +424711,94 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/stats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - remotebuildexecution_v1.Resource$Projects$Operations = Resource$Projects$Operations; -})(remotebuildexecution_v1 = exports.remotebuildexecution_v1 || (exports.remotebuildexecution_v1 = {})); -//# sourceMappingURL=v1.js.map + games_v1.Resource$Stats = Resource$Stats; +})(games_v1 = exports.games_v1 || (exports.games_v1 = {})); + + +/***/ }), + +/***/ 7032: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/*global module, process*/ +var Buffer = __webpack_require__(4149).Buffer; +var Stream = __webpack_require__(2413); +var util = __webpack_require__(1669); + +function DataStream(data) { + this.buffer = null; + this.writable = true; + this.readable = true; + + // No input + if (!data) { + this.buffer = Buffer.alloc(0); + return this; + } + + // Stream + if (typeof data.pipe === 'function') { + this.buffer = Buffer.alloc(0); + data.pipe(this); + return this; + } + + // Buffer or String + // or Object (assumedly a passworded key) + if (data.length || typeof data === 'object') { + this.buffer = data; + this.writable = false; + process.nextTick(function () { + this.emit('end', data); + this.readable = false; + this.emit('close'); + }.bind(this)); + return this; + } + + throw new TypeError('Unexpected data type ('+ typeof data + ')'); +} +util.inherits(DataStream, Stream); + +DataStream.prototype.write = function write(data) { + this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); + this.emit('data', data); +}; + +DataStream.prototype.end = function end(data) { + if (data) + this.write(data); + this.emit('end', data); + this.emit('close'); + this.writable = false; + this.readable = false; +}; + +module.exports = DataStream; + /***/ }), -/* 498 */, -/* 499 */, -/* 500 */ + +/***/ 7042: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -169127,333 +424816,439 @@ var remotebuildexecution_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.streetviewpublish_v1 = void 0; +exports.connectors_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 = __webpack_require__(927); -var streetviewpublish_v1; -(function (streetviewpublish_v1) { +var connectors_v2; +(function (connectors_v2) { /** - * Street View Publish API + * Connectors API * - * Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images. + * Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface. * * @example + * ```js * const {google} = require('googleapis'); - * const streetviewpublish = google.streetviewpublish('v1'); - * - * @namespace streetviewpublish - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Streetviewpublish + * const connectors = google.connectors('v2'); + * ``` */ - class Streetviewpublish { + class Connectors { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.photo = new Resource$Photo(this.context); - this.photos = new Resource$Photos(this.context); + this.projects = new Resource$Projects(this.context); } } - streetviewpublish_v1.Streetviewpublish = Streetviewpublish; - class Resource$Photo { + connectors_v2.Connectors = Connectors; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + connectors_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.context); + } + } + connectors_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + this.actions = new Resource$Projects$Locations$Connections$Actions(this.context); + this.entityTypes = + new Resource$Projects$Locations$Connections$Entitytypes(this.context); + } + executeSqlQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+connection}:executeSqlQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['connection'], + pathParams: ['connection'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + connectors_v2.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connections$Actions { + constructor(context) { + this.context = context; + } + execute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['photoId'], - pathParams: ['photoId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['photoId'], - pathParams: ['photoId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startUpload(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v2.Resource$Projects$Locations$Connections$Actions = Resource$Projects$Locations$Connections$Actions; + class Resource$Projects$Locations$Connections$Entitytypes { + constructor(context) { + this.context = context; + this.entities = + new Resource$Projects$Locations$Connections$Entitytypes$Entities(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo:startUpload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + connectors_v2.Resource$Projects$Locations$Connections$Entitytypes = Resource$Projects$Locations$Connections$Entitytypes; + class Resource$Projects$Locations$Connections$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - streetviewpublish_v1.Resource$Photo = Resource$Photo; - class Resource$Photos { - 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://connectors.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + deleteEntitiesWithConditions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/{+entityType}/entities:deleteEntitiesWithConditions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['entityType'], + pathParams: ['entityType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateEntitiesWithConditions(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://connectors.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+entityType}/entities:updateEntitiesWithConditions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['entityType'], + pathParams: ['entityType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - streetviewpublish_v1.Resource$Photos = Resource$Photos; -})(streetviewpublish_v1 = exports.streetviewpublish_v1 || (exports.streetviewpublish_v1 = {})); -//# sourceMappingURL=v1.js.map + connectors_v2.Resource$Projects$Locations$Connections$Entitytypes$Entities = Resource$Projects$Locations$Connections$Entitytypes$Entities; +})(connectors_v2 = exports.connectors_v2 || (exports.connectors_v2 = {})); + /***/ }), -/* 501 */, -/* 502 */ + +/***/ 7043: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -169471,32 +425266,27 @@ var streetviewpublish_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.datastore_v1beta3 = void 0; +exports.notebooks_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 = __webpack_require__(927); -var datastore_v1beta3; -(function (datastore_v1beta3) { +var notebooks_v2; +(function (notebooks_v2) { /** - * Cloud Datastore API + * Notebooks API * - * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * Notebooks API is used to manage notebook resources in Google Cloud. * * @example + * ```js * const {google} = require('googleapis'); - * const datastore = google.datastore('v1beta3'); - * - * @namespace datastore - * @type {Function} - * @version v1beta3 - * @variation v1beta3 - * @param {object=} options Options for Datastore + * const notebooks = google.notebooks('v2'); + * ``` */ - class Datastore { + class Notebooks { constructor(options, google) { this.context = { _options: options || {}, @@ -169505,12 +425295,21 @@ var datastore_v1beta3; this.projects = new Resource$Projects(this.context); } } - datastore_v1beta3.Datastore = Datastore; + notebooks_v2.Notebooks = Notebooks; class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + notebooks_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } - allocateIds(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169523,25 +425322,25 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169554,56 +425353,135 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + notebooks_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + 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 + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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 + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + notebooks_v2.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; @@ -169614,25 +425492,25 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reserveIds(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169645,25 +425523,25 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169676,25 +425554,25 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169707,66 +425585,32 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datastore_v1beta3.Resource$Projects = Resource$Projects; -})(datastore_v1beta3 = exports.datastore_v1beta3 || (exports.datastore_v1beta3 = {})); -//# sourceMappingURL=v1beta3.js.map - -/***/ }), -/* 503 */, -/* 504 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; + notebooks_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(notebooks_v2 = exports.notebooks_v2 || (exports.notebooks_v2 = {})); -// 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.auth = exports.homegraph = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(825); -exports.VERSIONS = { - v1: v1_1.homegraph_v1.Homegraph, -}; -function homegraph(versionOrOptions) { - return googleapis_common_1.getAPI('homegraph', versionOrOptions, exports.VERSIONS, this); -} -exports.homegraph = homegraph; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 505 */ + +/***/ 7055: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -169784,48 +425628,48 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.gamesConfiguration_v1configuration = void 0; +exports.cloudchannel_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 = __webpack_require__(927); -var gamesConfiguration_v1configuration; -(function (gamesConfiguration_v1configuration) { +var cloudchannel_v1; +(function (cloudchannel_v1) { /** - * Google Play Game Services Publishing API + * Cloud Channel API * - * The Google Play Game Services Publishing API allows developers to configure their games in Game Services. + * The Cloud Channel API enables Google Cloud partners to have a single unified resale platform and APIs across all of Google Cloud including GCP, Workspace, Maps and Chrome. * * @example + * ```js * const {google} = require('googleapis'); - * const gamesConfiguration = google.gamesConfiguration('v1configuration'); - * - * @namespace gamesConfiguration - * @type {Function} - * @version v1configuration - * @variation v1configuration - * @param {object=} options Options for Gamesconfiguration + * const cloudchannel = google.cloudchannel('v1'); + * ``` */ - class Gamesconfiguration { + class Cloudchannel { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.achievementConfigurations = new Resource$Achievementconfigurations(this.context); - this.imageConfigurations = new Resource$Imageconfigurations(this.context); - this.leaderboardConfigurations = new Resource$Leaderboardconfigurations(this.context); + this.accounts = new Resource$Accounts(this.context); + this.operations = new Resource$Operations(this.context); + this.products = new Resource$Products(this.context); } } - gamesConfiguration_v1configuration.Gamesconfiguration = Gamesconfiguration; - class Resource$Achievementconfigurations { + cloudchannel_v1.Cloudchannel = Cloudchannel; + class Resource$Accounts { constructor(context) { this.context = context; + this.channelPartnerLinks = new Resource$Accounts$Channelpartnerlinks(this.context); + this.customers = new Resource$Accounts$Customers(this.context); + this.offers = new Resource$Accounts$Offers(this.context); + this.reportJobs = new Resource$Accounts$Reportjobs(this.context); + this.reports = new Resource$Accounts$Reports(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + checkCloudIdentityAccountsExist(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169838,25 +425682,25 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}:checkCloudIdentityAccountsExist').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listSubscribers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169869,25 +425713,25 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+account}:listSubscribers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + listTransferableOffers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169900,26 +425744,25 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:listTransferableOffers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listTransferableSkus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169932,26 +425775,25 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:listTransferableSkus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + register(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169964,31 +425806,25 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+account}:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gamesConfiguration_v1configuration.Resource$Achievementconfigurations = Resource$Achievementconfigurations; - class Resource$Imageconfigurations { - constructor(context) { - this.context = context; - } - upload(paramsOrCallback, optionsOrCallback, callback) { + unregister(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170001,34 +425837,34 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/images/{resourceId}/imageType/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+account}:unregister').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/games/v1configuration/images/{resourceId}/imageType/{imageType}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['resourceId', 'imageType'], - pathParams: ['imageType', 'resourceId'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gamesConfiguration_v1configuration.Resource$Imageconfigurations = Resource$Imageconfigurations; - class Resource$Leaderboardconfigurations { + cloudchannel_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Channelpartnerlinks { constructor(context) { this.context = context; + this.channelPartnerRepricingConfigs = + new Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs(this.context); + this.customers = new Resource$Accounts$Channelpartnerlinks$Customers(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170041,22 +425877,22 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -170072,54 +425908,22 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -170135,26 +425939,25 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170167,416 +425970,279 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gamesConfiguration_v1configuration.Resource$Leaderboardconfigurations = Resource$Leaderboardconfigurations; -})(gamesConfiguration_v1configuration = exports.gamesConfiguration_v1configuration || (exports.gamesConfiguration_v1configuration = {})); -//# sourceMappingURL=v1configuration.js.map - -/***/ }), -/* 506 */, -/* 507 */, -/* 508 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module*/ -var Buffer = __webpack_require__(149).Buffer; -var DataStream = __webpack_require__(736); -var jwa = __webpack_require__(204); -var Stream = __webpack_require__(413); -var toString = __webpack_require__(519); -var util = __webpack_require__(669); - -function base64url(string, encoding) { - return Buffer - .from(string, encoding) - .toString('base64') - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} - -function jwsSecuredInput(header, payload, encoding) { - encoding = encoding || 'utf8'; - var encodedHeader = base64url(toString(header), 'binary'); - var encodedPayload = base64url(toString(payload), encoding); - return util.format('%s.%s', encodedHeader, encodedPayload); -} - -function jwsSign(opts) { - var header = opts.header; - var payload = opts.payload; - var secretOrKey = opts.secret || opts.privateKey; - var encoding = opts.encoding; - var algo = jwa(header.alg); - var securedInput = jwsSecuredInput(header, payload, encoding); - var signature = algo.sign(securedInput, secretOrKey); - return util.format('%s.%s', securedInput, signature); -} - -function SignStream(opts) { - var secret = opts.secret||opts.privateKey||opts.key; - var secretStream = new DataStream(secret); - this.readable = true; - this.header = opts.header; - this.encoding = opts.encoding; - this.secret = this.privateKey = this.key = secretStream; - this.payload = new DataStream(opts.payload); - this.secret.once('close', function () { - if (!this.payload.writable && this.readable) - this.sign(); - }.bind(this)); - - this.payload.once('close', function () { - if (!this.secret.writable && this.readable) - this.sign(); - }.bind(this)); -} -util.inherits(SignStream, Stream); - -SignStream.prototype.sign = function sign() { - try { - var signature = jwsSign({ - header: this.header, - payload: this.payload.buffer, - secret: this.secret.buffer, - encoding: this.encoding - }); - this.emit('done', signature); - this.emit('data', signature); - this.emit('end'); - this.readable = false; - return signature; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; - -SignStream.sign = jwsSign; - -module.exports = SignStream; - - -/***/ }), -/* 509 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudresourcemanager_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 = __webpack_require__(927); -var cloudresourcemanager_v1; -(function (cloudresourcemanager_v1) { - /** - * Cloud Resource Manager API - * - * Creates, reads, and updates metadata for Google Cloud Platform resource containers. - * - * @example - * const {google} = require('googleapis'); - * const cloudresourcemanager = google.cloudresourcemanager('v1'); - * - * @namespace cloudresourcemanager - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudresourcemanager - */ - class Cloudresourcemanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.folders = new Resource$Folders(this.context); - this.liens = new Resource$Liens(this.context); - this.operations = new Resource$Operations(this.context); - this.organizations = new Resource$Organizations(this.context); - this.projects = new Resource$Projects(this.context); - } - } - cloudresourcemanager_v1.Cloudresourcemanager = Cloudresourcemanager; - class Resource$Folders { + cloudchannel_v1.Resource$Accounts$Channelpartnerlinks = Resource$Accounts$Channelpartnerlinks; + class Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs { constructor(context) { this.context = context; } - clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + cloudchannel_v1.Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs = Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs; + class Resource$Accounts$Channelpartnerlinks$Customers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudresourcemanager_v1.Resource$Folders = Resource$Folders; - class Resource$Liens { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -170584,95 +426250,95 @@ var cloudresourcemanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/customers:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudresourcemanager_v1.Resource$Liens = Resource$Liens; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -170680,19 +426346,22 @@ var cloudresourcemanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudresourcemanager_v1.Resource$Operations = Resource$Operations; - class Resource$Organizations { + cloudchannel_v1.Resource$Accounts$Channelpartnerlinks$Customers = Resource$Accounts$Channelpartnerlinks$Customers; + class Resource$Accounts$Customers { constructor(context) { this.context = context; + this.customerRepricingConfigs = + new Resource$Accounts$Customers$Customerrepricingconfigs(this.context); + this.entitlements = new Resource$Accounts$Customers$Entitlements(this.context); } - clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170705,25 +426374,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170736,11 +426405,11 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -170748,13 +426417,13 @@ var cloudresourcemanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170767,25 +426436,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170798,25 +426467,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customers:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170829,25 +426498,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + listPurchasableOffers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170860,25 +426529,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+customer}:listPurchasableOffers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + listPurchasableSkus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170891,25 +426560,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+customer}:listPurchasableSkus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170922,56 +426591,57 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/organizations:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + provisionCloudIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}:provisionCloudIdentity').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + transferEntitlements(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170984,214 +426654,229 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:transferEntitlements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + transferEntitlementsToGoogle(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:transferEntitlementsToGoogle').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudresourcemanager_v1.Resource$Organizations = Resource$Organizations; - class Resource$Projects { + cloudchannel_v1.Resource$Accounts$Customers = Resource$Accounts$Customers; + class Resource$Accounts$Customers$Customerrepricingconfigs { constructor(context) { this.context = context; } - clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAncestry(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + cloudchannel_v1.Resource$Accounts$Customers$Customerrepricingconfigs = Resource$Accounts$Customers$Customerrepricingconfigs; + class Resource$Accounts$Customers$Entitlements { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171204,25 +426889,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171235,117 +426920,121 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + changeOffer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:changeOffer').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + changeParameters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:changeParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + changeRenewalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171358,25 +427047,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entitlements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171389,25 +427078,25 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171420,223 +427109,121 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + listEntitlementChanges(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}:listEntitlementChanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + lookupOffer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+entitlement}:lookupOffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['entitlement'], + pathParams: ['entitlement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + startPaidService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:startPaidService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudresourcemanager_v1.Resource$Projects = Resource$Projects; -})(cloudresourcemanager_v1 = exports.cloudresourcemanager_v1 || (exports.cloudresourcemanager_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 510 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.dfareporting = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_3_1 = __webpack_require__(959); -const v3_4_1 = __webpack_require__(292); -exports.VERSIONS = { - 'v3.3': v3_3_1.dfareporting_v3_3.Dfareporting, - 'v3.4': v3_4_1.dfareporting_v3_4.Dfareporting, -}; -function dfareporting(versionOrOptions) { - return googleapis_common_1.getAPI('dfareporting', versionOrOptions, exports.VERSIONS, this); -} -exports.dfareporting = dfareporting; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 511 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.storage_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 = __webpack_require__(927); -var storage_v1; -(function (storage_v1) { - /** - * Cloud Storage JSON API - * - * Stores and retrieves potentially large, immutable data objects. - * - * @example - * const {google} = require('googleapis'); - * const storage = google.storage('v1'); - * - * @namespace storage - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Storage - */ - class Storage { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context); - this.buckets = new Resource$Buckets(this.context); - this.channels = new Resource$Channels(this.context); - this.defaultObjectAccessControls = new Resource$Defaultobjectaccesscontrols(this.context); - this.notifications = new Resource$Notifications(this.context); - this.objectAccessControls = new Resource$Objectaccesscontrols(this.context); - this.objects = new Resource$Objects(this.context); - this.projects = new Resource$Projects(this.context); - } - } - storage_v1.Storage = Storage; - class Resource$Bucketaccesscontrols { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + suspend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171649,25 +427236,31 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + cloudchannel_v1.Resource$Accounts$Customers$Entitlements = Resource$Accounts$Customers$Entitlements; + class Resource$Accounts$Offers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171680,25 +427273,31 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/offers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + cloudchannel_v1.Resource$Accounts$Offers = Resource$Accounts$Offers; + class Resource$Accounts$Reportjobs { + constructor(context) { + this.context = context; + } + fetchReportResults(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171711,24 +427310,30 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+reportJob}:fetchReportResults').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['reportJob'], + pathParams: ['reportJob'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + cloudchannel_v1.Resource$Accounts$Reportjobs = Resource$Accounts$Reportjobs; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -171742,25 +427347,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171773,25 +427378,31 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + cloudchannel_v1.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171804,32 +427415,27 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; - class Resource$Buckets { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -171840,22 +427446,22 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -171870,27 +427476,26 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -171901,25 +427506,32 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + cloudchannel_v1.Resource$Operations = Resource$Operations; + class Resource$Products { + constructor(context) { + this.context = context; + this.skus = new Resource$Products$Skus(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -171931,25 +427543,123 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], + requiredParams: [], pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + cloudchannel_v1.Resource$Products = Resource$Products; + class Resource$Products$Skus { + 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://cloudchannel.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + cloudchannel_v1.Resource$Products$Skus = Resource$Products$Skus; +})(cloudchannel_v1 = exports.cloudchannel_v1 || (exports.cloudchannel_v1 = {})); + + +/***/ }), + +/***/ 7063: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.displayvideo_v1beta2 = 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 = __webpack_require__(927); +var displayvideo_v1beta2; +(function (displayvideo_v1beta2) { + /** + * Display & Video 360 API + * + * Display & Video 360 API allows users to manage and create campaigns and reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const displayvideo = google.displayvideo('v1beta2'); + * ``` + */ + class Displayvideo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); + } + } + displayvideo_v1beta2.Displayvideo = Displayvideo; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -171961,25 +427671,38 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: [], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lockRetentionPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1beta2.Resource$Media = Resource$Media; + class Resource$Sdfdownloadtasks { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtasks$Operations(this.context); + } + } + displayvideo_v1beta2.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; + class Resource$Sdfdownloadtasks$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -171992,25 +427715,85 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/lockRetentionPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'ifMetagenerationMatch'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1beta2.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; +})(displayvideo_v1beta2 = exports.displayvideo_v1beta2 || (exports.displayvideo_v1beta2 = {})); + + +/***/ }), + +/***/ 7084: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.admin_datatransfer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var admin_datatransfer_v1; +(function (admin_datatransfer_v1) { + /** + * Admin SDK API + * + * Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const admin = google.admin('datatransfer_v1'); + * ``` + */ + class Admin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.applications = new Resource$Applications(this.context); + this.transfers = new Resource$Transfers(this.context); + } + } + admin_datatransfer_v1.Admin = Admin; + class Resource$Applications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -172022,25 +427805,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -172053,27 +427836,32 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + admin_datatransfer_v1.Resource$Applications = Resource$Applications; + class Resource$Transfers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -172084,25 +427872,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'permissions'], - pathParams: ['bucket'], + requiredParams: ['dataTransferId'], + pathParams: ['dataTransferId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -172114,31 +427902,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1.Resource$Buckets = Resource$Buckets; - class Resource$Channels { - constructor(context) { - this.context = context; - } - stop(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -172150,11 +427932,11 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -172162,19 +427944,89 @@ var storage_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - storage_v1.Resource$Channels = Resource$Channels; - class Resource$Defaultobjectaccesscontrols { + admin_datatransfer_v1.Resource$Transfers = Resource$Transfers; +})(admin_datatransfer_v1 = exports.admin_datatransfer_v1 || (exports.admin_datatransfer_v1 = {})); + + +/***/ }), + +/***/ 7090: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.recommendationengine_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var recommendationengine_v1beta1; +(function (recommendationengine_v1beta1) { + /** + * Recommendations AI (Beta) + * + * Note that we now highly recommend new customers to use Retail API, which incorporates the GA version of the Recommendations AI funtionalities. To enable Retail API, please visit https://console.cloud.google.com/apis/library/retail.googleapis.com. The Recommendations AI service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const recommendationengine = google.recommendationengine('v1beta1'); + * ``` + */ + class Recommendationengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + recommendationengine_v1beta1.Recommendationengine = Recommendationengine; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + recommendationengine_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); + } + } + recommendationengine_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Catalogs { + constructor(context) { + this.context = context; + this.catalogItems = new Resource$Projects$Locations$Catalogs$Catalogitems(this.context); + this.eventStores = new Resource$Projects$Locations$Catalogs$Eventstores(this.context); + this.operations = new Resource$Projects$Locations$Catalogs$Operations(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -172187,25 +428039,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -172218,247 +428070,272 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; + class Resource$Projects$Locations$Catalogs$Catalogitems { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/catalogItems:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; - class Resource$Notifications { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'notification'], - pathParams: ['bucket', 'notification'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['bucket', 'notification'], - pathParams: ['bucket', 'notification'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Catalogitems = Resource$Projects$Locations$Catalogs$Catalogitems; + class Resource$Projects$Locations$Catalogs$Eventstores { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Catalogs$Eventstores$Operations(this.context); + this.placements = + new Resource$Projects$Locations$Catalogs$Eventstores$Placements(this.context); + this.predictionApiKeyRegistrations = + new Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations(this.context); + this.userEvents = + new Resource$Projects$Locations$Catalogs$Eventstores$Userevents(this.context); + } + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores = Resource$Projects$Locations$Catalogs$Eventstores; + class Resource$Projects$Locations$Catalogs$Eventstores$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -172467,128 +428344,138 @@ var storage_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - storage_v1.Resource$Notifications = Resource$Notifications; - class Resource$Objectaccesscontrols { + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Operations = Resource$Projects$Locations$Catalogs$Eventstores$Operations; + class Resource$Projects$Locations$Catalogs$Eventstores$Placements { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + predict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Placements = Resource$Projects$Locations$Catalogs$Eventstores$Placements; + class Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -172597,295 +428484,433 @@ var storage_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations = Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations; + class Resource$Projects$Locations$Catalogs$Eventstores$Userevents { + constructor(context) { + this.context = context; + } + collect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; - class Resource$Objects { - constructor(context) { - this.context = context; - } - compose(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/userEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['destinationBucket', 'destinationObject'], - pathParams: ['destinationBucket', 'destinationObject'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [ - 'sourceBucket', - 'sourceObject', - 'destinationBucket', - 'destinationObject', - ], - pathParams: [ - 'destinationBucket', - 'destinationObject', - 'sourceBucket', - 'sourceObject', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + rejoin(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Userevents = Resource$Projects$Locations$Catalogs$Eventstores$Userevents; + class Resource$Projects$Locations$Catalogs$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; +})(recommendationengine_v1beta1 = exports.recommendationengine_v1beta1 || (exports.recommendationengine_v1beta1 = {})); + + +/***/ }), + +/***/ 7104: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.groupsmigration_v1 = exports.auth = exports.groupsmigration = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9656); +Object.defineProperty(exports, "groupsmigration_v1", { enumerable: true, get: function () { return v1_1.groupsmigration_v1; } }); +exports.VERSIONS = { + v1: v1_1.groupsmigration_v1.Groupsmigration, +}; +function groupsmigration(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('groupsmigration', versionOrOptions, exports.VERSIONS, this); +} +exports.groupsmigration = groupsmigration; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7120: +/***/ (function(module) { + +"use strict"; + + +module.exports.mixin = function mixin(target, source) { + const keys = Object.getOwnPropertyNames(source); + for (let i = 0; i < keys.length; ++i) { + Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i])); + } +}; + +module.exports.wrapperSymbol = Symbol("wrapper"); +module.exports.implSymbol = Symbol("impl"); + +module.exports.wrapperForImpl = function (impl) { + return impl[module.exports.wrapperSymbol]; +}; + +module.exports.implForWrapper = function (wrapper) { + return wrapper[module.exports.implSymbol]; +}; + + + +/***/ }), + +/***/ 7122: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.androidpublisher_v1_1 = 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 = __webpack_require__(927); +var androidpublisher_v1_1; +(function (androidpublisher_v1_1) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v1.1'); + * + * @namespace androidpublisher + * @type {Function} + * @version v1.1 + * @variation v1.1 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.inapppurchases = new Resource$Inapppurchases(this.context); + } + } + androidpublisher_v1_1.Androidpublisher = Androidpublisher; + class Resource$Inapppurchases { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -172896,26 +428921,95 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + androidpublisher_v1_1.Resource$Inapppurchases = Resource$Inapppurchases; +})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {})); + + +/***/ }), + +/***/ 7124: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudscheduler_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudscheduler_v1beta1; +(function (cloudscheduler_v1beta1) { + /** + * Cloud Scheduler API + * + * Creates and manages jobs run on a regular recurring schedule. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudscheduler = google.cloudscheduler('v1beta1'); + * ``` + */ + class Cloudscheduler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudscheduler_v1beta1.Cloudscheduler = Cloudscheduler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudscheduler_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -172926,26 +429020,27 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rewrite(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -172956,36 +429051,31 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'sourceBucket', - 'sourceObject', - 'destinationBucket', - 'destinationObject', - ], - pathParams: [ - 'destinationBucket', - 'destinationObject', - 'sourceBucket', - 'sourceObject', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + cloudscheduler_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -172998,25 +429088,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173029,26 +429119,27 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['bucket', 'object', 'permissions'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -173059,26 +429150,27 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watchAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -173089,39 +429181,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1.Resource$Objects = Resource$Objects; - class Resource$Projects { - constructor(context) { - this.context = context; - this.hmacKeys = new Resource$Projects$Hmackeys(this.context); - this.serviceAccount = new Resource$Projects$Serviceaccount(this.context); - } - } - storage_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Hmackeys { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173134,25 +429212,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'serviceAccountEmail'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173165,25 +429243,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'accessId'], - pathParams: ['accessId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173196,25 +429274,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'accessId'], - pathParams: ['accessId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173227,25 +429305,125 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + cloudscheduler_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1beta1 = exports.cloudscheduler_v1beta1 || (exports.cloudscheduler_v1beta1 = {})); + + +/***/ }), + +/***/ 7126: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudshell_v1alpha1 = exports.cloudshell_v1 = exports.auth = exports.cloudshell = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5287); +Object.defineProperty(exports, "cloudshell_v1", { enumerable: true, get: function () { return v1_1.cloudshell_v1; } }); +const v1alpha1_1 = __webpack_require__(4424); +Object.defineProperty(exports, "cloudshell_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.cloudshell_v1alpha1; } }); +exports.VERSIONS = { + v1: v1_1.cloudshell_v1.Cloudshell, + v1alpha1: v1alpha1_1.cloudshell_v1alpha1.Cloudshell, +}; +function cloudshell(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudshell', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudshell = cloudshell; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7127: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.chromeuxreport_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var chromeuxreport_v1; +(function (chromeuxreport_v1) { + /** + * Chrome UX Report API + * + * The Chrome UX Report API lets you view real user experience data for millions of websites. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const chromeuxreport = google.chromeuxreport('v1'); + * ``` + */ + class Chromeuxreport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.records = new Resource$Records(this.context); + } + } + chromeuxreport_v1.Chromeuxreport = Chromeuxreport; + class Resource$Records { + constructor(context) { + this.context = context; + } + queryHistoryRecord(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173258,31 +429436,25 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromeuxreport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/records:queryHistoryRecord').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'accessId'], - pathParams: ['accessId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1.Resource$Projects$Hmackeys = Resource$Projects$Hmackeys; - class Resource$Projects$Serviceaccount { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + queryRecord(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -173295,6030 +429467,7094 @@ var storage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromeuxreport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/records:queryRecord').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - storage_v1.Resource$Projects$Serviceaccount = Resource$Projects$Serviceaccount; -})(storage_v1 = exports.storage_v1 || (exports.storage_v1 = {})); -//# sourceMappingURL=v1.js.map + chromeuxreport_v1.Resource$Records = Resource$Records; +})(chromeuxreport_v1 = exports.chromeuxreport_v1 || (exports.chromeuxreport_v1 = {})); + + +/***/ }), + +/***/ 7136: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.gamesConfiguration_v1configuration = exports.auth = exports.gamesConfiguration = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1configuration_1 = __webpack_require__(4505); +Object.defineProperty(exports, "gamesConfiguration_v1configuration", { enumerable: true, get: function () { return v1configuration_1.gamesConfiguration_v1configuration; } }); +exports.VERSIONS = { + v1configuration: v1configuration_1.gamesConfiguration_v1configuration.Gamesconfiguration, +}; +function gamesConfiguration(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gamesConfiguration', versionOrOptions, exports.VERSIONS, this); +} +exports.gamesConfiguration = gamesConfiguration; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7147: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.batch_v1 = exports.auth = exports.batch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5892); +Object.defineProperty(exports, "batch_v1", { enumerable: true, get: function () { return v1_1.batch_v1; } }); +exports.VERSIONS = { + v1: v1_1.batch_v1.Batch, +}; +function batch(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('batch', versionOrOptions, exports.VERSIONS, this); +} +exports.batch = batch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7152: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Utility functions for web applications. + * + * @author Dave Longley + * + * Copyright (c) 2010-2018 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +var baseN = __webpack_require__(2182); + +/* Utilities API */ +var util = module.exports = forge.util = forge.util || {}; + +// define setImmediate and nextTick +(function() { + // use native nextTick (unless we're in webpack) + // webpack (or better node-libs-browser polyfill) sets process.browser. + // this way we can detect webpack properly + if(typeof process !== 'undefined' && process.nextTick && !process.browser) { + util.nextTick = process.nextTick; + if(typeof setImmediate === 'function') { + util.setImmediate = setImmediate; + } else { + // polyfill setImmediate with nextTick, older versions of node + // (those w/o setImmediate) won't totally starve IO + util.setImmediate = util.nextTick; + } + return; + } + + // polyfill nextTick with native setImmediate + if(typeof setImmediate === 'function') { + util.setImmediate = function() { return setImmediate.apply(undefined, arguments); }; + util.nextTick = function(callback) { + return setImmediate(callback); + }; + return; + } + + /* Note: A polyfill upgrade pattern is used here to allow combining + polyfills. For example, MutationObserver is fast, but blocks UI updates, + so it needs to allow UI updates periodically, so it falls back on + postMessage or setTimeout. */ + + // polyfill with setTimeout + util.setImmediate = function(callback) { + setTimeout(callback, 0); + }; + + // upgrade polyfill to use postMessage + if(typeof window !== 'undefined' && + typeof window.postMessage === 'function') { + var msg = 'forge.setImmediate'; + var callbacks = []; + util.setImmediate = function(callback) { + callbacks.push(callback); + // only send message when one hasn't been sent in + // the current turn of the event loop + if(callbacks.length === 1) { + window.postMessage(msg, '*'); + } + }; + function handler(event) { + if(event.source === window && event.data === msg) { + event.stopPropagation(); + var copy = callbacks.slice(); + callbacks.length = 0; + copy.forEach(function(callback) { + callback(); + }); + } + } + window.addEventListener('message', handler, true); + } + + // upgrade polyfill to use MutationObserver + if(typeof MutationObserver !== 'undefined') { + // polyfill with MutationObserver + var now = Date.now(); + var attr = true; + var div = document.createElement('div'); + var callbacks = []; + new MutationObserver(function() { + var copy = callbacks.slice(); + callbacks.length = 0; + copy.forEach(function(callback) { + callback(); + }); + }).observe(div, {attributes: true}); + var oldSetImmediate = util.setImmediate; + util.setImmediate = function(callback) { + if(Date.now() - now > 15) { + now = Date.now(); + oldSetImmediate(callback); + } else { + callbacks.push(callback); + // only trigger observer when it hasn't been triggered in + // the current turn of the event loop + if(callbacks.length === 1) { + div.setAttribute('a', attr = !attr); + } + } + }; + } + + util.nextTick = util.setImmediate; +})(); + +// check if running under Node.js +util.isNodejs = + typeof process !== 'undefined' && process.versions && process.versions.node; + + +// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while +// it will point to `window` in the main thread. +// To remain compatible with older browsers, we fall back to 'window' if 'self' +// is not available. +util.globalScope = (function() { + if(util.isNodejs) { + return global; + } + + return typeof self === 'undefined' ? window : self; +})(); + +// define isArray +util.isArray = Array.isArray || function(x) { + return Object.prototype.toString.call(x) === '[object Array]'; +}; + +// define isArrayBuffer +util.isArrayBuffer = function(x) { + return typeof ArrayBuffer !== 'undefined' && x instanceof ArrayBuffer; +}; + +// define isArrayBufferView +util.isArrayBufferView = function(x) { + return x && util.isArrayBuffer(x.buffer) && x.byteLength !== undefined; +}; + +/** + * Ensure a bits param is 8, 16, 24, or 32. Used to validate input for + * algorithms where bit manipulation, JavaScript limitations, and/or algorithm + * design only allow for byte operations of a limited size. + * + * @param n number of bits. + * + * Throw Error if n invalid. + */ +function _checkBitsParam(n) { + if(!(n === 8 || n === 16 || n === 24 || n === 32)) { + throw new Error('Only 8, 16, 24, or 32 bits supported: ' + n); + } +} + +// TODO: set ByteBuffer to best available backing +util.ByteBuffer = ByteStringBuffer; + +/** Buffer w/BinaryString backing */ + +/** + * Constructor for a binary string backed byte buffer. + * + * @param [b] the bytes to wrap (either encoded as string, one byte per + * character, or as an ArrayBuffer or Typed Array). + */ +function ByteStringBuffer(b) { + // TODO: update to match DataBuffer API + + // the data in this buffer + this.data = ''; + // the pointer for reading from this buffer + this.read = 0; + + if(typeof b === 'string') { + this.data = b; + } else if(util.isArrayBuffer(b) || util.isArrayBufferView(b)) { + if(typeof Buffer !== 'undefined' && b instanceof Buffer) { + this.data = b.toString('binary'); + } else { + // convert native buffer to forge buffer + // FIXME: support native buffers internally instead + var arr = new Uint8Array(b); + try { + this.data = String.fromCharCode.apply(null, arr); + } catch(e) { + for(var i = 0; i < arr.length; ++i) { + this.putByte(arr[i]); + } + } + } + } else if(b instanceof ByteStringBuffer || + (typeof b === 'object' && typeof b.data === 'string' && + typeof b.read === 'number')) { + // copy existing buffer + this.data = b.data; + this.read = b.read; + } + + // used for v8 optimization + this._constructedStringLength = 0; +} +util.ByteStringBuffer = ByteStringBuffer; + +/* Note: This is an optimization for V8-based browsers. When V8 concatenates + a string, the strings are only joined logically using a "cons string" or + "constructed/concatenated string". These containers keep references to one + another and can result in very large memory usage. For example, if a 2MB + string is constructed by concatenating 4 bytes together at a time, the + memory usage will be ~44MB; so ~22x increase. The strings are only joined + together when an operation requiring their joining takes place, such as + substr(). This function is called when adding data to this buffer to ensure + these types of strings are periodically joined to reduce the memory + footprint. */ +var _MAX_CONSTRUCTED_STRING_LENGTH = 4096; +util.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { + this._constructedStringLength += x; + if(this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) { + // this substr() should cause the constructed string to join + this.data.substr(0, 1); + this._constructedStringLength = 0; + } +}; + +/** + * Gets the number of bytes in this buffer. + * + * @return the number of bytes in this buffer. + */ +util.ByteStringBuffer.prototype.length = function() { + return this.data.length - this.read; +}; + +/** + * Gets whether or not this buffer is empty. + * + * @return true if this buffer is empty, false if not. + */ +util.ByteStringBuffer.prototype.isEmpty = function() { + return this.length() <= 0; +}; + +/** + * Puts a byte in this buffer. + * + * @param b the byte to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putByte = function(b) { + return this.putBytes(String.fromCharCode(b)); +}; + +/** + * Puts a byte in this buffer N times. + * + * @param b the byte to put. + * @param n the number of bytes of value b to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.fillWithByte = function(b, n) { + b = String.fromCharCode(b); + var d = this.data; + while(n > 0) { + if(n & 1) { + d += b; + } + n >>>= 1; + if(n > 0) { + b += b; + } + } + this.data = d; + this._optimizeConstructedString(n); + return this; +}; + +/** + * Puts bytes in this buffer. + * + * @param bytes the bytes (as a binary encoded string) to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putBytes = function(bytes) { + this.data += bytes; + this._optimizeConstructedString(bytes.length); + return this; +}; + +/** + * Puts a UTF-16 encoded string into this buffer. + * + * @param str the string to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putString = function(str) { + return this.putBytes(util.encodeUtf8(str)); +}; + +/** + * Puts a 16-bit integer in this buffer in big-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt16 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +/** + * Puts a 24-bit integer in this buffer in big-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt24 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +/** + * Puts a 32-bit integer in this buffer in big-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt32 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 24 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +/** + * Puts a 16-bit integer in this buffer in little-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt16Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF)); +}; + +/** + * Puts a 24-bit integer in this buffer in little-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt24Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF)); +}; + +/** + * Puts a 32-bit integer in this buffer in little-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt32Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 24 & 0xFF)); +}; + +/** + * Puts an n-bit integer in this buffer in big-endian order. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt = function(i, n) { + _checkBitsParam(n); + var bytes = ''; + do { + n -= 8; + bytes += String.fromCharCode((i >> n) & 0xFF); + } while(n > 0); + return this.putBytes(bytes); +}; + +/** + * Puts a signed n-bit integer in this buffer in big-endian order. Two's + * complement representation is used. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putSignedInt = function(i, n) { + // putInt checks n + if(i < 0) { + i += 2 << (n - 1); + } + return this.putInt(i, n); +}; -/***/ }), -/* 512 */, -/* 513 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/** + * Puts the given buffer into this buffer. + * + * @param buffer the buffer to put into this one. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putBuffer = function(buffer) { + return this.putBytes(buffer.getBytes()); +}; -module.exports = factory; +/** + * Gets a byte from this buffer and advances the read pointer by 1. + * + * @return the byte. + */ +util.ByteStringBuffer.prototype.getByte = function() { + return this.data.charCodeAt(this.read++); +}; -const Octokit = __webpack_require__(135); -const registerPlugin = __webpack_require__(861); +/** + * Gets a uint16 from this buffer in big-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.ByteStringBuffer.prototype.getInt16 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 8 ^ + this.data.charCodeAt(this.read + 1)); + this.read += 2; + return rval; +}; -function factory(plugins) { - const Api = Octokit.bind(null, plugins || []); - Api.plugin = registerPlugin.bind(null, plugins || []); - return Api; -} +/** + * Gets a uint24 from this buffer in big-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.ByteStringBuffer.prototype.getInt24 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 16 ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2)); + this.read += 3; + return rval; +}; +/** + * Gets a uint32 from this buffer in big-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.ByteStringBuffer.prototype.getInt32 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 24 ^ + this.data.charCodeAt(this.read + 1) << 16 ^ + this.data.charCodeAt(this.read + 2) << 8 ^ + this.data.charCodeAt(this.read + 3)); + this.read += 4; + return rval; +}; -/***/ }), -/* 514 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * Gets a uint16 from this buffer in little-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.ByteStringBuffer.prototype.getInt16Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8); + this.read += 2; + return rval; +}; -"use strict"; +/** + * Gets a uint24 from this buffer in little-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.ByteStringBuffer.prototype.getInt24Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2) << 16); + this.read += 3; + return rval; +}; -// 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.auth = exports.acceleratedmobilepageurl = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(326); -exports.VERSIONS = { - v1: v1_1.acceleratedmobilepageurl_v1.Acceleratedmobilepageurl, +/** + * Gets a uint32 from this buffer in little-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.ByteStringBuffer.prototype.getInt32Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2) << 16 ^ + this.data.charCodeAt(this.read + 3) << 24); + this.read += 4; + return rval; }; -function acceleratedmobilepageurl(versionOrOptions) { - return googleapis_common_1.getAPI('acceleratedmobilepageurl', versionOrOptions, exports.VERSIONS, this); -} -exports.acceleratedmobilepageurl = acceleratedmobilepageurl; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 515 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * Gets an n-bit integer from this buffer in big-endian order and advances the + * read pointer by ceil(n/8). + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.ByteStringBuffer.prototype.getInt = function(n) { + _checkBitsParam(n); + var rval = 0; + do { + // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. + rval = (rval << 8) + this.data.charCodeAt(this.read++); + n -= 8; + } while(n > 0); + return rval; +}; -"use strict"; +/** + * Gets a signed n-bit integer from this buffer in big-endian order, using + * two's complement, and advances the read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.ByteStringBuffer.prototype.getSignedInt = function(n) { + // getInt checks n + var x = this.getInt(n); + var max = 2 << (n - 2); + if(x >= max) { + x -= max << 1; + } + return x; +}; -// 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.domainsrdap_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 = __webpack_require__(927); -var domainsrdap_v1; -(function (domainsrdap_v1) { - /** - * Domains RDAP API - * - * Read-only public API that lets users search for information about domain names. - * - * @example - * const {google} = require('googleapis'); - * const domainsrdap = google.domainsrdap('v1'); - * - * @namespace domainsrdap - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Domainsrdap - */ - class Domainsrdap { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.autnum = new Resource$Autnum(this.context); - this.domain = new Resource$Domain(this.context); - this.entity = new Resource$Entity(this.context); - this.ip = new Resource$Ip(this.context); - this.nameserver = new Resource$Nameserver(this.context); - this.v1 = new Resource$V1(this.context); - } +/** + * Reads bytes out as a binary encoded string and clears them from the + * buffer. Note that the resulting string is binary encoded (in node.js this + * encoding is referred to as `binary`, it is *not* `utf8`). + * + * @param count the number of bytes to read, undefined or null for all. + * + * @return a binary encoded string of bytes. + */ +util.ByteStringBuffer.prototype.getBytes = function(count) { + var rval; + if(count) { + // read count bytes + count = Math.min(this.length(), count); + rval = this.data.slice(this.read, this.read + count); + this.read += count; + } else if(count === 0) { + rval = ''; + } else { + // read all bytes, optimize to only copy when needed + rval = (this.read === 0) ? this.data : this.data.slice(this.read); + this.clear(); + } + return rval; +}; + +/** + * Gets a binary encoded string of the bytes from this buffer without + * modifying the read pointer. + * + * @param count the number of bytes to get, omit to get all. + * + * @return a string full of binary encoded characters. + */ +util.ByteStringBuffer.prototype.bytes = function(count) { + return (typeof(count) === 'undefined' ? + this.data.slice(this.read) : + this.data.slice(this.read, this.read + count)); +}; + +/** + * Gets a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * + * @return the byte. + */ +util.ByteStringBuffer.prototype.at = function(i) { + return this.data.charCodeAt(this.read + i); +}; + +/** + * Puts a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * @param b the byte to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.setAt = function(i, b) { + this.data = this.data.substr(0, this.read + i) + + String.fromCharCode(b) + + this.data.substr(this.read + i + 1); + return this; +}; + +/** + * Gets the last byte without modifying the read pointer. + * + * @return the last byte. + */ +util.ByteStringBuffer.prototype.last = function() { + return this.data.charCodeAt(this.data.length - 1); +}; + +/** + * Creates a copy of this buffer. + * + * @return the copy. + */ +util.ByteStringBuffer.prototype.copy = function() { + var c = util.createBuffer(this.data); + c.read = this.read; + return c; +}; + +/** + * Compacts this buffer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.compact = function() { + if(this.read > 0) { + this.data = this.data.slice(this.read); + this.read = 0; + } + return this; +}; + +/** + * Clears this buffer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.clear = function() { + this.data = ''; + this.read = 0; + return this; +}; + +/** + * Shortens this buffer by triming bytes off of the end of this buffer. + * + * @param count the number of bytes to trim off. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.truncate = function(count) { + var len = Math.max(0, this.length() - count); + this.data = this.data.substr(this.read, len); + this.read = 0; + return this; +}; + +/** + * Converts this buffer to a hexadecimal string. + * + * @return a hexadecimal string. + */ +util.ByteStringBuffer.prototype.toHex = function() { + var rval = ''; + for(var i = this.read; i < this.data.length; ++i) { + var b = this.data.charCodeAt(i); + if(b < 16) { + rval += '0'; } - domainsrdap_v1.Domainsrdap = Domainsrdap; - class Resource$Autnum { - 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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/autnum/{autnumId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['autnumId'], - pathParams: ['autnumId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + rval += b.toString(16); + } + return rval; +}; + +/** + * Converts this buffer to a UTF-16 string (standard JavaScript string). + * + * @return a UTF-16 string. + */ +util.ByteStringBuffer.prototype.toString = function() { + return util.decodeUtf8(this.bytes()); +}; + +/** End Buffer w/BinaryString backing */ + +/** Buffer w/UInt8Array backing */ + +/** + * FIXME: Experimental. Do not use yet. + * + * Constructor for an ArrayBuffer-backed byte buffer. + * + * The buffer may be constructed from a string, an ArrayBuffer, DataView, or a + * TypedArray. + * + * If a string is given, its encoding should be provided as an option, + * otherwise it will default to 'binary'. A 'binary' string is encoded such + * that each character is one byte in length and size. + * + * If an ArrayBuffer, DataView, or TypedArray is given, it will be used + * *directly* without any copying. Note that, if a write to the buffer requires + * more space, the buffer will allocate a new backing ArrayBuffer to + * accommodate. The starting read and write offsets for the buffer may be + * given as options. + * + * @param [b] the initial bytes for this buffer. + * @param options the options to use: + * [readOffset] the starting read offset to use (default: 0). + * [writeOffset] the starting write offset to use (default: the + * length of the first parameter). + * [growSize] the minimum amount, in bytes, to grow the buffer by to + * accommodate writes (default: 1024). + * [encoding] the encoding ('binary', 'utf8', 'utf16', 'hex') for the + * first parameter, if it is a string (default: 'binary'). + */ +function DataBuffer(b, options) { + // default options + options = options || {}; + + // pointers for read from/write to buffer + this.read = options.readOffset || 0; + this.growSize = options.growSize || 1024; + + var isArrayBuffer = util.isArrayBuffer(b); + var isArrayBufferView = util.isArrayBufferView(b); + if(isArrayBuffer || isArrayBufferView) { + // use ArrayBuffer directly + if(isArrayBuffer) { + this.data = new DataView(b); + } else { + // TODO: adjust read/write offset based on the type of view + // or specify that this must be done in the options ... that the + // offsets are byte-based + this.data = new DataView(b.buffer, b.byteOffset, b.byteLength); } - domainsrdap_v1.Resource$Autnum = Resource$Autnum; - class Resource$Domain { - 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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/domain/{+domainName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['domainName'], - pathParams: ['domainName'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + this.write = ('writeOffset' in options ? + options.writeOffset : this.data.byteLength); + return; + } + + // initialize to empty array buffer and add any given bytes using putBytes + this.data = new DataView(new ArrayBuffer(0)); + this.write = 0; + + if(b !== null && b !== undefined) { + this.putBytes(b); + } + + if('writeOffset' in options) { + this.write = options.writeOffset; + } +} +util.DataBuffer = DataBuffer; + +/** + * Gets the number of bytes in this buffer. + * + * @return the number of bytes in this buffer. + */ +util.DataBuffer.prototype.length = function() { + return this.write - this.read; +}; + +/** + * Gets whether or not this buffer is empty. + * + * @return true if this buffer is empty, false if not. + */ +util.DataBuffer.prototype.isEmpty = function() { + return this.length() <= 0; +}; + +/** + * Ensures this buffer has enough empty space to accommodate the given number + * of bytes. An optional parameter may be given that indicates a minimum + * amount to grow the buffer if necessary. If the parameter is not given, + * the buffer will be grown by some previously-specified default amount + * or heuristic. + * + * @param amount the number of bytes to accommodate. + * @param [growSize] the minimum amount, in bytes, to grow the buffer by if + * necessary. + */ +util.DataBuffer.prototype.accommodate = function(amount, growSize) { + if(this.length() >= amount) { + return this; + } + growSize = Math.max(growSize || this.growSize, amount); + + // grow buffer + var src = new Uint8Array( + this.data.buffer, this.data.byteOffset, this.data.byteLength); + var dst = new Uint8Array(this.length() + growSize); + dst.set(src); + this.data = new DataView(dst.buffer); + + return this; +}; + +/** + * Puts a byte in this buffer. + * + * @param b the byte to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putByte = function(b) { + this.accommodate(1); + this.data.setUint8(this.write++, b); + return this; +}; + +/** + * Puts a byte in this buffer N times. + * + * @param b the byte to put. + * @param n the number of bytes of value b to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.fillWithByte = function(b, n) { + this.accommodate(n); + for(var i = 0; i < n; ++i) { + this.data.setUint8(b); + } + return this; +}; + +/** + * Puts bytes in this buffer. The bytes may be given as a string, an + * ArrayBuffer, a DataView, or a TypedArray. + * + * @param bytes the bytes to put. + * @param [encoding] the encoding for the first parameter ('binary', 'utf8', + * 'utf16', 'hex'), if it is a string (default: 'binary'). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putBytes = function(bytes, encoding) { + if(util.isArrayBufferView(bytes)) { + var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength); + var len = src.byteLength - src.byteOffset; + this.accommodate(len); + var dst = new Uint8Array(this.data.buffer, this.write); + dst.set(src); + this.write += len; + return this; + } + + if(util.isArrayBuffer(bytes)) { + var src = new Uint8Array(bytes); + this.accommodate(src.byteLength); + var dst = new Uint8Array(this.data.buffer); + dst.set(src, this.write); + this.write += src.byteLength; + return this; + } + + // bytes is a util.DataBuffer or equivalent + if(bytes instanceof util.DataBuffer || + (typeof bytes === 'object' && + typeof bytes.read === 'number' && typeof bytes.write === 'number' && + util.isArrayBufferView(bytes.data))) { + var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length()); + this.accommodate(src.byteLength); + var dst = new Uint8Array(bytes.data.byteLength, this.write); + dst.set(src); + this.write += src.byteLength; + return this; + } + + if(bytes instanceof util.ByteStringBuffer) { + // copy binary string and process as the same as a string parameter below + bytes = bytes.data; + encoding = 'binary'; + } + + // string conversion + encoding = encoding || 'binary'; + if(typeof bytes === 'string') { + var view; + + // decode from string + if(encoding === 'hex') { + this.accommodate(Math.ceil(bytes.length / 2)); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.hex.decode(bytes, view, this.write); + return this; } - domainsrdap_v1.Resource$Domain = Resource$Domain; - class Resource$Entity { - 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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/entity/{entityId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['entityId'], - pathParams: ['entityId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + if(encoding === 'base64') { + this.accommodate(Math.ceil(bytes.length / 4) * 3); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.base64.decode(bytes, view, this.write); + return this; } - domainsrdap_v1.Resource$Entity = Resource$Entity; - class Resource$Ip { - 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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/ip/{ipId}/{ipId1}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['ipId', 'ipId1'], - pathParams: ['ipId', 'ipId1'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + // encode text as UTF-8 bytes + if(encoding === 'utf8') { + // encode as UTF-8 then decode string as raw binary + bytes = util.encodeUtf8(bytes); + encoding = 'binary'; } - domainsrdap_v1.Resource$Ip = Resource$Ip; - class Resource$Nameserver { - 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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/nameserver/{nameserverId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['nameserverId'], - pathParams: ['nameserverId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + // decode string as raw binary + if(encoding === 'binary' || encoding === 'raw') { + // one byte per character + this.accommodate(bytes.length); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.raw.decode(view); + return this; } - domainsrdap_v1.Resource$Nameserver = Resource$Nameserver; - class Resource$V1 { - constructor(context) { - this.context = context; - } - getDomains(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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/domains').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); - } - } - getEntities(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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/entities').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); - } - } - getHelp(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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/help').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); - } - } - getIp(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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/ip').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); - } - } - getNameservers(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://domainsrdap.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/nameservers').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); - } - } + + // encode text as UTF-16 bytes + if(encoding === 'utf16') { + // two bytes per character + this.accommodate(bytes.length * 2); + view = new Uint16Array(this.data.buffer, this.write); + this.write += util.text.utf16.encode(view); + return this; } - domainsrdap_v1.Resource$V1 = Resource$V1; -})(domainsrdap_v1 = exports.domainsrdap_v1 || (exports.domainsrdap_v1 = {})); -//# sourceMappingURL=v1.js.map -/***/ }), -/* 516 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + throw new Error('Invalid encoding: ' + encoding); + } + + throw Error('Invalid parameter: ' + bytes); +}; + +/** + * Puts the given buffer into this buffer. + * + * @param buffer the buffer to put into this one. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putBuffer = function(buffer) { + this.putBytes(buffer); + buffer.clear(); + return this; +}; + +/** + * Puts a string into this buffer. + * + * @param str the string to put. + * @param [encoding] the encoding for the string (default: 'utf16'). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putString = function(str) { + return this.putBytes(str, 'utf16'); +}; + +/** + * Puts a 16-bit integer in this buffer in big-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt16 = function(i) { + this.accommodate(2); + this.data.setInt16(this.write, i); + this.write += 2; + return this; +}; + +/** + * Puts a 24-bit integer in this buffer in big-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt24 = function(i) { + this.accommodate(3); + this.data.setInt16(this.write, i >> 8 & 0xFFFF); + this.data.setInt8(this.write, i >> 16 & 0xFF); + this.write += 3; + return this; +}; + +/** + * Puts a 32-bit integer in this buffer in big-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt32 = function(i) { + this.accommodate(4); + this.data.setInt32(this.write, i); + this.write += 4; + return this; +}; + +/** + * Puts a 16-bit integer in this buffer in little-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt16Le = function(i) { + this.accommodate(2); + this.data.setInt16(this.write, i, true); + this.write += 2; + return this; +}; + +/** + * Puts a 24-bit integer in this buffer in little-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt24Le = function(i) { + this.accommodate(3); + this.data.setInt8(this.write, i >> 16 & 0xFF); + this.data.setInt16(this.write, i >> 8 & 0xFFFF, true); + this.write += 3; + return this; +}; + +/** + * Puts a 32-bit integer in this buffer in little-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt32Le = function(i) { + this.accommodate(4); + this.data.setInt32(this.write, i, true); + this.write += 4; + return this; +}; -"use strict"; +/** + * Puts an n-bit integer in this buffer in big-endian order. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt = function(i, n) { + _checkBitsParam(n); + this.accommodate(n / 8); + do { + n -= 8; + this.data.setInt8(this.write++, (i >> n) & 0xFF); + } while(n > 0); + return this; +}; -// 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.reseller_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 = __webpack_require__(927); -var reseller_v1; -(function (reseller_v1) { - /** - * Enterprise Apps Reseller API - * - * Creates and manages your customers and their subscriptions. - * - * @example - * const {google} = require('googleapis'); - * const reseller = google.reseller('v1'); - * - * @namespace reseller - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Reseller - */ - class Reseller { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.customers = new Resource$Customers(this.context); - this.resellernotify = new Resource$Resellernotify(this.context); - this.subscriptions = new Resource$Subscriptions(this.context); - } +/** + * Puts a signed n-bit integer in this buffer in big-endian order. Two's + * complement representation is used. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putSignedInt = function(i, n) { + _checkBitsParam(n); + this.accommodate(n / 8); + if(i < 0) { + i += 2 << (n - 1); + } + return this.putInt(i, n); +}; + +/** + * Gets a byte from this buffer and advances the read pointer by 1. + * + * @return the byte. + */ +util.DataBuffer.prototype.getByte = function() { + return this.data.getInt8(this.read++); +}; + +/** + * Gets a uint16 from this buffer in big-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.DataBuffer.prototype.getInt16 = function() { + var rval = this.data.getInt16(this.read); + this.read += 2; + return rval; +}; + +/** + * Gets a uint24 from this buffer in big-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.DataBuffer.prototype.getInt24 = function() { + var rval = ( + this.data.getInt16(this.read) << 8 ^ + this.data.getInt8(this.read + 2)); + this.read += 3; + return rval; +}; + +/** + * Gets a uint32 from this buffer in big-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.DataBuffer.prototype.getInt32 = function() { + var rval = this.data.getInt32(this.read); + this.read += 4; + return rval; +}; + +/** + * Gets a uint16 from this buffer in little-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.DataBuffer.prototype.getInt16Le = function() { + var rval = this.data.getInt16(this.read, true); + this.read += 2; + return rval; +}; + +/** + * Gets a uint24 from this buffer in little-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.DataBuffer.prototype.getInt24Le = function() { + var rval = ( + this.data.getInt8(this.read) ^ + this.data.getInt16(this.read + 1, true) << 8); + this.read += 3; + return rval; +}; + +/** + * Gets a uint32 from this buffer in little-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.DataBuffer.prototype.getInt32Le = function() { + var rval = this.data.getInt32(this.read, true); + this.read += 4; + return rval; +}; + +/** + * Gets an n-bit integer from this buffer in big-endian order and advances the + * read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.DataBuffer.prototype.getInt = function(n) { + _checkBitsParam(n); + var rval = 0; + do { + // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. + rval = (rval << 8) + this.data.getInt8(this.read++); + n -= 8; + } while(n > 0); + return rval; +}; + +/** + * Gets a signed n-bit integer from this buffer in big-endian order, using + * two's complement, and advances the read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.DataBuffer.prototype.getSignedInt = function(n) { + // getInt checks n + var x = this.getInt(n); + var max = 2 << (n - 2); + if(x >= max) { + x -= max << 1; + } + return x; +}; + +/** + * Reads bytes out as a binary encoded string and clears them from the + * buffer. + * + * @param count the number of bytes to read, undefined or null for all. + * + * @return a binary encoded string of bytes. + */ +util.DataBuffer.prototype.getBytes = function(count) { + // TODO: deprecate this method, it is poorly named and + // this.toString('binary') replaces it + // add a toTypedArray()/toArrayBuffer() function + var rval; + if(count) { + // read count bytes + count = Math.min(this.length(), count); + rval = this.data.slice(this.read, this.read + count); + this.read += count; + } else if(count === 0) { + rval = ''; + } else { + // read all bytes, optimize to only copy when needed + rval = (this.read === 0) ? this.data : this.data.slice(this.read); + this.clear(); + } + return rval; +}; + +/** + * Gets a binary encoded string of the bytes from this buffer without + * modifying the read pointer. + * + * @param count the number of bytes to get, omit to get all. + * + * @return a string full of binary encoded characters. + */ +util.DataBuffer.prototype.bytes = function(count) { + // TODO: deprecate this method, it is poorly named, add "getString()" + return (typeof(count) === 'undefined' ? + this.data.slice(this.read) : + this.data.slice(this.read, this.read + count)); +}; + +/** + * Gets a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * + * @return the byte. + */ +util.DataBuffer.prototype.at = function(i) { + return this.data.getUint8(this.read + i); +}; + +/** + * Puts a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * @param b the byte to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.setAt = function(i, b) { + this.data.setUint8(i, b); + return this; +}; + +/** + * Gets the last byte without modifying the read pointer. + * + * @return the last byte. + */ +util.DataBuffer.prototype.last = function() { + return this.data.getUint8(this.write - 1); +}; + +/** + * Creates a copy of this buffer. + * + * @return the copy. + */ +util.DataBuffer.prototype.copy = function() { + return new util.DataBuffer(this); +}; + +/** + * Compacts this buffer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.compact = function() { + if(this.read > 0) { + var src = new Uint8Array(this.data.buffer, this.read); + var dst = new Uint8Array(src.byteLength); + dst.set(src); + this.data = new DataView(dst); + this.write -= this.read; + this.read = 0; + } + return this; +}; + +/** + * Clears this buffer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.clear = function() { + this.data = new DataView(new ArrayBuffer(0)); + this.read = this.write = 0; + return this; +}; + +/** + * Shortens this buffer by triming bytes off of the end of this buffer. + * + * @param count the number of bytes to trim off. + * + * @return this buffer. + */ +util.DataBuffer.prototype.truncate = function(count) { + this.write = Math.max(0, this.length() - count); + this.read = Math.min(this.read, this.write); + return this; +}; + +/** + * Converts this buffer to a hexadecimal string. + * + * @return a hexadecimal string. + */ +util.DataBuffer.prototype.toHex = function() { + var rval = ''; + for(var i = this.read; i < this.data.byteLength; ++i) { + var b = this.data.getUint8(i); + if(b < 16) { + rval += '0'; } - reseller_v1.Reseller = Reseller; - class Resource$Customers { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['customerId'], - pathParams: ['customerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers').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); - } - } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['customerId'], - pathParams: ['customerId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['customerId'], - pathParams: ['customerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + rval += b.toString(16); + } + return rval; +}; + +/** + * Converts this buffer to a string, using the given encoding. If no + * encoding is given, 'utf8' (UTF-8) is used. + * + * @param [encoding] the encoding to use: 'binary', 'utf8', 'utf16', 'hex', + * 'base64' (default: 'utf8'). + * + * @return a string representation of the bytes in this buffer. + */ +util.DataBuffer.prototype.toString = function(encoding) { + var view = new Uint8Array(this.data, this.read, this.length()); + encoding = encoding || 'utf8'; + + // encode to string + if(encoding === 'binary' || encoding === 'raw') { + return util.binary.raw.encode(view); + } + if(encoding === 'hex') { + return util.binary.hex.encode(view); + } + if(encoding === 'base64') { + return util.binary.base64.encode(view); + } + + // decode to text + if(encoding === 'utf8') { + return util.text.utf8.decode(view); + } + if(encoding === 'utf16') { + return util.text.utf16.decode(view); + } + + throw new Error('Invalid encoding: ' + encoding); +}; + +/** End Buffer w/UInt8Array backing */ + +/** + * Creates a buffer that stores bytes. A value may be given to populate the + * buffer with data. This value can either be string of encoded bytes or a + * regular string of characters. When passing a string of binary encoded + * bytes, the encoding `raw` should be given. This is also the default. When + * passing a string of characters, the encoding `utf8` should be given. + * + * @param [input] a string with encoded bytes to store in the buffer. + * @param [encoding] (default: 'raw', other: 'utf8'). + */ +util.createBuffer = function(input, encoding) { + // TODO: deprecate, use new ByteBuffer() instead + encoding = encoding || 'raw'; + if(input !== undefined && encoding === 'utf8') { + input = util.encodeUtf8(input); + } + return new util.ByteBuffer(input); +}; + +/** + * Fills a string with a particular value. If you want the string to be a byte + * string, pass in String.fromCharCode(theByte). + * + * @param c the character to fill the string with, use String.fromCharCode + * to fill the string with a byte value. + * @param n the number of characters of value c to fill with. + * + * @return the filled string. + */ +util.fillString = function(c, n) { + var s = ''; + while(n > 0) { + if(n & 1) { + s += c; } - reseller_v1.Resource$Customers = Resource$Customers; - class Resource$Resellernotify { - constructor(context) { - this.context = context; - } - getwatchdetails(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/resellernotify/getwatchdetails').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); - } - } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/resellernotify/register').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); - } - } - unregister(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/resellernotify/unregister').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); - } - } + n >>>= 1; + if(n > 0) { + c += c; } - reseller_v1.Resource$Resellernotify = Resource$Resellernotify; - class Resource$Subscriptions { - constructor(context) { - this.context = context; - } - activate(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - changePlan(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - changeRenewalSettings(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - changeSeats(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId', 'deletionType'], - pathParams: ['customerId', 'subscriptionId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId'], - pathParams: ['customerId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/subscriptions').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); - } - } - startPaidService(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - suspend(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + } + return s; +}; + +/** + * Performs a per byte XOR between two byte strings and returns the result as a + * string of bytes. + * + * @param s1 first string of bytes. + * @param s2 second string of bytes. + * @param n the number of bytes to XOR. + * + * @return the XOR'd result. + */ +util.xorBytes = function(s1, s2, n) { + var s3 = ''; + var b = ''; + var t = ''; + var i = 0; + var c = 0; + for(; n > 0; --n, ++i) { + b = s1.charCodeAt(i) ^ s2.charCodeAt(i); + if(c >= 10) { + s3 += t; + t = ''; + c = 0; } - reseller_v1.Resource$Subscriptions = Resource$Subscriptions; -})(reseller_v1 = exports.reseller_v1 || (exports.reseller_v1 = {})); -//# sourceMappingURL=v1.js.map + t += String.fromCharCode(b); + ++c; + } + s3 += t; + return s3; +}; + +/** + * Converts a hex string into a 'binary' encoded string of bytes. + * + * @param hex the hexadecimal string to convert. + * + * @return the binary-encoded string of bytes. + */ +util.hexToBytes = function(hex) { + // TODO: deprecate: "Deprecated. Use util.binary.hex.decode instead." + var rval = ''; + var i = 0; + if(hex.length & 1 == 1) { + // odd number of characters, convert first character alone + i = 1; + rval += String.fromCharCode(parseInt(hex[0], 16)); + } + // convert 2 characters (1 byte) at a time + for(; i < hex.length; i += 2) { + rval += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); + } + return rval; +}; + +/** + * Converts a 'binary' encoded string of bytes to hex. + * + * @param bytes the byte string to convert. + * + * @return the string of hexadecimal characters. + */ +util.bytesToHex = function(bytes) { + // TODO: deprecate: "Deprecated. Use util.binary.hex.encode instead." + return util.createBuffer(bytes).toHex(); +}; + +/** + * Converts an 32-bit integer to 4-big-endian byte string. + * + * @param i the integer. + * + * @return the byte string. + */ +util.int32ToBytes = function(i) { + return ( + String.fromCharCode(i >> 24 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; -/***/ }), -/* 517 */, -/* 518 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// base64 characters, reverse mapping +var _base64 = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; +var _base64Idx = [ +/*43 -43 = 0*/ +/*'+', 1, 2, 3,'/' */ + 62, -1, -1, -1, 63, -"use strict"; +/*'0','1','2','3','4','5','6','7','8','9' */ + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -// 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.auth = exports.healthcare = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(487); -const v1beta1_1 = __webpack_require__(961); -exports.VERSIONS = { - v1: v1_1.healthcare_v1.Healthcare, - v1beta1: v1beta1_1.healthcare_v1beta1.Healthcare, -}; -function healthcare(versionOrOptions) { - return googleapis_common_1.getAPI('healthcare', versionOrOptions, exports.VERSIONS, this); -} -exports.healthcare = healthcare; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +/*15, 16, 17,'=', 19, 20, 21 */ + -1, -1, -1, 64, -1, -1, -1, -/***/ }), -/* 519 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/*65 - 43 = 22*/ +/*'A','B','C','D','E','F','G','H','I','J','K','L','M', */ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, -/*global module*/ -var Buffer = __webpack_require__(407).Buffer; +/*'N','O','P','Q','R','S','T','U','V','W','X','Y','Z' */ + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -module.exports = function toString(obj) { - if (typeof obj === 'string') - return obj; - if (typeof obj === 'number' || Buffer.isBuffer(obj)) - return obj.toString(); - return JSON.stringify(obj); -}; +/*91 - 43 = 48 */ +/*48, 49, 50, 51, 52, 53 */ + -1, -1, -1, -1, -1, -1, +/*97 - 43 = 54*/ +/*'a','b','c','d','e','f','g','h','i','j','k','l','m' */ + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -/***/ }), -/* 520 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/*'n','o','p','q','r','s','t','u','v','w','x','y','z' */ + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 +]; -"use strict"; +// base58 characters (Bitcoin alphabet) +var _base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; -// 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.pagespeedonline_v4 = 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 = __webpack_require__(927); -var pagespeedonline_v4; -(function (pagespeedonline_v4) { - /** - * PageSpeed Insights API - * - * Analyzes the performance of a web page and provides tailored suggestions to make that page faster. - * - * @example - * const {google} = require('googleapis'); - * const pagespeedonline = google.pagespeedonline('v4'); - * - * @namespace pagespeedonline - * @type {Function} - * @version v4 - * @variation v4 - * @param {object=} options Options for Pagespeedonline - */ - class Pagespeedonline { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.pagespeedapi = new Resource$Pagespeedapi(this.context); - } +/** + * Base64 encodes a 'binary' encoded string of bytes. + * + * @param input the binary encoded string of bytes to base64-encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the base64-encoded output. + */ +util.encode64 = function(input, maxline) { + // TODO: deprecate: "Deprecated. Use util.binary.base64.encode instead." + var line = ''; + var output = ''; + var chr1, chr2, chr3; + var i = 0; + while(i < input.length) { + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); + + // encode 4 character group + line += _base64.charAt(chr1 >> 2); + line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); + if(isNaN(chr2)) { + line += '=='; + } else { + line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); + line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); } - pagespeedonline_v4.Pagespeedonline = Pagespeedonline; - class Resource$Pagespeedapi { - constructor(context) { - this.context = context; - } - runpagespeed(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/pagespeedonline/v4/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['url'], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); } - pagespeedonline_v4.Resource$Pagespeedapi = Resource$Pagespeedapi; -})(pagespeedonline_v4 = exports.pagespeedonline_v4 || (exports.pagespeedonline_v4 = {})); -//# sourceMappingURL=v4.js.map + } + output += line; + return output; +}; -/***/ }), -/* 521 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * Base64 decodes a string into a 'binary' encoded string of bytes. + * + * @param input the base64-encoded input. + * + * @return the binary encoded string. + */ +util.decode64 = function(input) { + // TODO: deprecate: "Deprecated. Use util.binary.base64.decode instead." -"use strict"; + // remove all non-base64 characters + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); -// 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.pagespeedonline_v5 = 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 = __webpack_require__(927); -var pagespeedonline_v5; -(function (pagespeedonline_v5) { - /** - * PageSpeed Insights API - * - * The PageSpeed Insights API lets you analyze the performance of your website with a simple API. It offers tailored suggestions for how you can optimize your site, and lets you easily integrate PageSpeed Insights analysis into your development tools and workflow. - * - * @example - * const {google} = require('googleapis'); - * const pagespeedonline = google.pagespeedonline('v5'); - * - * @namespace pagespeedonline - * @type {Function} - * @version v5 - * @variation v5 - * @param {object=} options Options for Pagespeedonline - */ - class Pagespeedonline { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.pagespeedapi = new Resource$Pagespeedapi(this.context); - } - } - pagespeedonline_v5.Pagespeedonline = Pagespeedonline; - class Resource$Pagespeedapi { - constructor(context) { - this.context = context; - } - runpagespeed(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://pagespeedonline.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/pagespeedonline/v5/runPagespeed').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); - } - } + var output = ''; + var enc1, enc2, enc3, enc4; + var i = 0; + + while(i < input.length) { + enc1 = _base64Idx[input.charCodeAt(i++) - 43]; + enc2 = _base64Idx[input.charCodeAt(i++) - 43]; + enc3 = _base64Idx[input.charCodeAt(i++) - 43]; + enc4 = _base64Idx[input.charCodeAt(i++) - 43]; + + output += String.fromCharCode((enc1 << 2) | (enc2 >> 4)); + if(enc3 !== 64) { + // decoded at least 2 bytes + output += String.fromCharCode(((enc2 & 15) << 4) | (enc3 >> 2)); + if(enc4 !== 64) { + // decoded 3 bytes + output += String.fromCharCode(((enc3 & 3) << 6) | enc4); + } } - pagespeedonline_v5.Resource$Pagespeedapi = Resource$Pagespeedapi; -})(pagespeedonline_v5 = exports.pagespeedonline_v5 || (exports.pagespeedonline_v5 = {})); -//# sourceMappingURL=v5.js.map + } -/***/ }), -/* 522 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + return output; +}; -"use strict"; +/** + * Encodes the given string of characters (a standard JavaScript + * string) as a binary encoded string where the bytes represent + * a UTF-8 encoded string of characters. Non-ASCII characters will be + * encoded as multiple bytes according to UTF-8. + * + * @param str a standard string of characters to encode. + * + * @return the binary encoded string. + */ +util.encodeUtf8 = function(str) { + return unescape(encodeURIComponent(str)); +}; -// 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.auth = exports.servicedirectory = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(991); -exports.VERSIONS = { - v1beta1: v1beta1_1.servicedirectory_v1beta1.Servicedirectory, +/** + * Decodes a binary encoded string that contains bytes that + * represent a UTF-8 encoded string of characters -- into a + * string of characters (a standard JavaScript string). + * + * @param str the binary encoded string to decode. + * + * @return the resulting standard string of characters. + */ +util.decodeUtf8 = function(str) { + return decodeURIComponent(escape(str)); }; -function servicedirectory(versionOrOptions) { - return googleapis_common_1.getAPI('servicedirectory', versionOrOptions, exports.VERSIONS, this); -} -exports.servicedirectory = servicedirectory; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 523 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// binary encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.binary = { + raw: {}, + hex: {}, + base64: {}, + base58: {}, + baseN : { + encode: baseN.encode, + decode: baseN.decode + } +}; -"use strict"; +/** + * Encodes a Uint8Array as a binary-encoded string. This encoding uses + * a value between 0 and 255 for each character. + * + * @param bytes the Uint8Array to encode. + * + * @return the binary-encoded string. + */ +util.binary.raw.encode = function(bytes) { + return String.fromCharCode.apply(null, bytes); +}; -// 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.dataproc_v1beta2 = 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 = __webpack_require__(927); -var dataproc_v1beta2; -(function (dataproc_v1beta2) { - /** - * Cloud Dataproc API - * - * Manages Hadoop-based clusters and jobs on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const dataproc = google.dataproc('v1beta2'); - * - * @namespace dataproc - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Dataproc - */ - class Dataproc { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - dataproc_v1beta2.Dataproc = Dataproc; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - this.regions = new Resource$Projects$Regions(this.context); - } - } - dataproc_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.autoscalingPolicies = new Resource$Projects$Locations$Autoscalingpolicies(this.context); - this.workflowTemplates = new Resource$Projects$Locations$Workflowtemplates(this.context); - } - } - dataproc_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Autoscalingpolicies { - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dataproc_v1beta2.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; - class Resource$Projects$Locations$Workflowtemplates { - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - instantiate(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:instantiate').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); - } - } - instantiateInline(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dataproc_v1beta2.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; - class Resource$Projects$Regions { - constructor(context) { - this.context = context; - this.autoscalingPolicies = new Resource$Projects$Regions$Autoscalingpolicies(this.context); - this.clusters = new Resource$Projects$Regions$Clusters(this.context); - this.jobs = new Resource$Projects$Regions$Jobs(this.context); - this.operations = new Resource$Projects$Regions$Operations(this.context); - this.workflowTemplates = new Resource$Projects$Regions$Workflowtemplates(this.context); - } +/** + * Decodes a binary-encoded string to a Uint8Array. This encoding uses + * a value between 0 and 255 for each character. + * + * @param str the binary-encoded string to decode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.raw.decode = function(str, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(str.length); + } + offset = offset || 0; + var j = offset; + for(var i = 0; i < str.length; ++i) { + out[j++] = str.charCodeAt(i); + } + return output ? (j - offset) : out; +}; + +/** + * Encodes a 'binary' string, ArrayBuffer, DataView, TypedArray, or + * ByteBuffer as a string of hexadecimal characters. + * + * @param bytes the bytes to convert. + * + * @return the string of hexadecimal characters. + */ +util.binary.hex.encode = util.bytesToHex; + +/** + * Decodes a hex-encoded string to a Uint8Array. + * + * @param hex the hexadecimal string to convert. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.hex.decode = function(hex, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(Math.ceil(hex.length / 2)); + } + offset = offset || 0; + var i = 0, j = offset; + if(hex.length & 1) { + // odd number of characters, convert first character alone + i = 1; + out[j++] = parseInt(hex[0], 16); + } + // convert 2 characters (1 byte) at a time + for(; i < hex.length; i += 2) { + out[j++] = parseInt(hex.substr(i, 2), 16); + } + return output ? (j - offset) : out; +}; + +/** + * Base64-encodes a Uint8Array. + * + * @param input the Uint8Array to encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the base64-encoded output string. + */ +util.binary.base64.encode = function(input, maxline) { + var line = ''; + var output = ''; + var chr1, chr2, chr3; + var i = 0; + while(i < input.byteLength) { + chr1 = input[i++]; + chr2 = input[i++]; + chr3 = input[i++]; + + // encode 4 character group + line += _base64.charAt(chr1 >> 2); + line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); + if(isNaN(chr2)) { + line += '=='; + } else { + line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); + line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); } - dataproc_v1beta2.Resource$Projects$Regions = Resource$Projects$Regions; - class Resource$Projects$Regions$Autoscalingpolicies { - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); } - dataproc_v1beta2.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; - class Resource$Projects$Regions$Clusters { - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - diagnose(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } + } + output += line; + return output; +}; + +/** + * Decodes a base64-encoded string to a Uint8Array. + * + * @param input the base64-encoded input string. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.base64.decode = function(input, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(Math.ceil(input.length / 4) * 3); + } + + // remove all non-base64 characters + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); + + offset = offset || 0; + var enc1, enc2, enc3, enc4; + var i = 0, j = offset; + + while(i < input.length) { + enc1 = _base64Idx[input.charCodeAt(i++) - 43]; + enc2 = _base64Idx[input.charCodeAt(i++) - 43]; + enc3 = _base64Idx[input.charCodeAt(i++) - 43]; + enc4 = _base64Idx[input.charCodeAt(i++) - 43]; + + out[j++] = (enc1 << 2) | (enc2 >> 4); + if(enc3 !== 64) { + // decoded at least 2 bytes + out[j++] = ((enc2 & 15) << 4) | (enc3 >> 2); + if(enc4 !== 64) { + // decoded 3 bytes + out[j++] = ((enc3 & 3) << 6) | enc4; + } } - dataproc_v1beta2.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; - class Resource$Projects$Regions$Jobs { - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - submit(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - submitAsOperation(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } + } + + // make sure result is the exact decoded length + return output ? (j - offset) : out.subarray(0, j); +}; + +// add support for base58 encoding/decoding with Bitcoin alphabet +util.binary.base58.encode = function(input, maxline) { + return util.binary.baseN.encode(input, _base58, maxline); +}; +util.binary.base58.decode = function(input, maxline) { + return util.binary.baseN.decode(input, _base58, maxline); +}; + +// text encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.text = { + utf8: {}, + utf16: {} +}; + +/** + * Encodes the given string as UTF-8 in a Uint8Array. + * + * @param str the string to encode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.text.utf8.encode = function(str, output, offset) { + str = util.encodeUtf8(str); + var out = output; + if(!out) { + out = new Uint8Array(str.length); + } + offset = offset || 0; + var j = offset; + for(var i = 0; i < str.length; ++i) { + out[j++] = str.charCodeAt(i); + } + return output ? (j - offset) : out; +}; + +/** + * Decodes the UTF-8 contents from a Uint8Array. + * + * @param bytes the Uint8Array to decode. + * + * @return the resulting string. + */ +util.text.utf8.decode = function(bytes) { + return util.decodeUtf8(String.fromCharCode.apply(null, bytes)); +}; + +/** + * Encodes the given string as UTF-16 in a Uint8Array. + * + * @param str the string to encode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.text.utf16.encode = function(str, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(str.length * 2); + } + var view = new Uint16Array(out.buffer); + offset = offset || 0; + var j = offset; + var k = offset; + for(var i = 0; i < str.length; ++i) { + view[k++] = str.charCodeAt(i); + j += 2; + } + return output ? (j - offset) : out; +}; + +/** + * Decodes the UTF-16 contents from a Uint8Array. + * + * @param bytes the Uint8Array to decode. + * + * @return the resulting string. + */ +util.text.utf16.decode = function(bytes) { + return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer)); +}; + +/** + * Deflates the given data using a flash interface. + * + * @param api the flash interface. + * @param bytes the data. + * @param raw true to return only raw deflate data, false to include zlib + * header and trailer. + * + * @return the deflated data as a string. + */ +util.deflate = function(api, bytes, raw) { + bytes = util.decode64(api.deflate(util.encode64(bytes)).rval); + + // strip zlib header and trailer if necessary + if(raw) { + // zlib header is 2 bytes (CMF,FLG) where FLG indicates that + // there is a 4-byte DICT (alder-32) block before the data if + // its 5th bit is set + var start = 2; + var flg = bytes.charCodeAt(1); + if(flg & 0x20) { + start = 6; } - dataproc_v1beta2.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; - class Resource$Projects$Regions$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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } - } + // zlib trailer is 4 bytes of adler-32 + bytes = bytes.substring(start, bytes.length - 4); + } + + return bytes; +}; + +/** + * Inflates the given data using a flash interface. + * + * @param api the flash interface. + * @param bytes the data. + * @param raw true if the incoming data has no zlib header or trailer and is + * raw DEFLATE data. + * + * @return the inflated data as a string, null on error. + */ +util.inflate = function(api, bytes, raw) { + // TODO: add zlib header and trailer if necessary/possible + var rval = api.inflate(util.encode64(bytes)).rval; + return (rval === null) ? null : util.decode64(rval); +}; + +/** + * Sets a storage object. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param obj the storage object, null to remove. + */ +var _setStorageObject = function(api, id, obj) { + if(!api) { + throw new Error('WebStorage not available.'); + } + + var rval; + if(obj === null) { + rval = api.removeItem(id); + } else { + // json-encode and base64-encode object + obj = util.encode64(JSON.stringify(obj)); + rval = api.setItem(id, obj); + } + + // handle potential flash error + if(typeof(rval) !== 'undefined' && rval.rval !== true) { + var error = new Error(rval.error.message); + error.id = rval.error.id; + error.name = rval.error.name; + throw error; + } +}; + +/** + * Gets a storage object. + * + * @param api the storage interface. + * @param id the storage ID to use. + * + * @return the storage object entry or null if none exists. + */ +var _getStorageObject = function(api, id) { + if(!api) { + throw new Error('WebStorage not available.'); + } + + // get the existing entry + var rval = api.getItem(id); + + /* Note: We check api.init because we can't do (api == localStorage) + on IE because of "Class doesn't support Automation" exception. Only + the flash api has an init method so this works too, but we need a + better solution in the future. */ + + // flash returns item wrapped in an object, handle special case + if(api.init) { + if(rval.rval === null) { + if(rval.error) { + var error = new Error(rval.error.message); + error.id = rval.error.id; + error.name = rval.error.name; + throw error; + } + // no error, but also no item + rval = null; + } else { + rval = rval.rval; } - dataproc_v1beta2.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; - class Resource$Projects$Regions$Workflowtemplates { - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } + } + + // handle decoding + if(rval !== null) { + // base64-decode and json-decode data + rval = JSON.parse(util.decode64(rval)); + } + + return rval; +}; + +/** + * Stores an item in local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + * @param data the data for the item (any javascript object/primitive). + */ +var _setItem = function(api, id, key, data) { + // get storage object + var obj = _getStorageObject(api, id); + if(obj === null) { + // create a new storage object + obj = {}; + } + // update key + obj[key] = data; + + // set storage object + _setStorageObject(api, id, obj); +}; + +/** + * Gets an item from local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + * + * @return the item. + */ +var _getItem = function(api, id, key) { + // get storage object + var rval = _getStorageObject(api, id); + if(rval !== null) { + // return data at key + rval = (key in rval) ? rval[key] : null; + } + + return rval; +}; + +/** + * Removes an item from local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + */ +var _removeItem = function(api, id, key) { + // get storage object + var obj = _getStorageObject(api, id); + if(obj !== null && key in obj) { + // remove key + delete obj[key]; + + // see if entry has no keys remaining + var empty = true; + for(var prop in obj) { + empty = false; + break; + } + if(empty) { + // remove entry entirely if no keys are left + obj = null; + } + + // set storage object + _setStorageObject(api, id, obj); + } +}; + +/** + * Clears the local disk storage identified by the given ID. + * + * @param api the storage interface. + * @param id the storage ID to use. + */ +var _clearItems = function(api, id) { + _setStorageObject(api, id, null); +}; + +/** + * Calls a storage function. + * + * @param func the function to call. + * @param args the arguments for the function. + * @param location the location argument. + * + * @return the return value from the function. + */ +var _callStorageFunction = function(func, args, location) { + var rval = null; + + // default storage types + if(typeof(location) === 'undefined') { + location = ['web', 'flash']; + } + + // apply storage types in order of preference + var type; + var done = false; + var exception = null; + for(var idx in location) { + type = location[idx]; + try { + if(type === 'flash' || type === 'both') { + if(args[0] === null) { + throw new Error('Flash local storage not available.'); } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } + rval = func.apply(this, args); + done = (type === 'flash'); + } + if(type === 'web' || type === 'both') { + args[0] = localStorage; + rval = func.apply(this, args); + done = true; + } + } catch(ex) { + exception = ex; + } + if(done) { + break; + } + } + + if(!done) { + throw exception; + } + + return rval; +}; + +/** + * Stores an item on local disk. + * + * The available types of local storage include 'flash', 'web', and 'both'. + * + * The type 'flash' refers to flash local storage (SharedObject). In order + * to use flash local storage, the 'api' parameter must be valid. The type + * 'web' refers to WebStorage, if supported by the browser. The type 'both' + * refers to storing using both 'flash' and 'web', not just one or the + * other. + * + * The location array should list the storage types to use in order of + * preference: + * + * ['flash']: flash only storage + * ['web']: web only storage + * ['both']: try to store in both + * ['flash','web']: store in flash first, but if not available, 'web' + * ['web','flash']: store in web first, but if not available, 'flash' + * + * The location array defaults to: ['web', 'flash'] + * + * @param api the flash interface, null to use only WebStorage. + * @param id the storage ID to use. + * @param key the key for the item. + * @param data the data for the item (any javascript object/primitive). + * @param location an array with the preferred types of storage to use. + */ +util.setItem = function(api, id, key, data, location) { + _callStorageFunction(_setItem, arguments, location); +}; + +/** + * Gets an item on local disk. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface, null to use only WebStorage. + * @param id the storage ID to use. + * @param key the key for the item. + * @param location an array with the preferred types of storage to use. + * + * @return the item. + */ +util.getItem = function(api, id, key, location) { + return _callStorageFunction(_getItem, arguments, location); +}; + +/** + * Removes an item on local disk. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface. + * @param id the storage ID to use. + * @param key the key for the item. + * @param location an array with the preferred types of storage to use. + */ +util.removeItem = function(api, id, key, location) { + _callStorageFunction(_removeItem, arguments, location); +}; + +/** + * Clears the local disk storage identified by the given ID. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface if flash is available. + * @param id the storage ID to use. + * @param location an array with the preferred types of storage to use. + */ +util.clearItems = function(api, id, location) { + _callStorageFunction(_clearItems, arguments, location); +}; + +/** + * Check if an object is empty. + * + * Taken from: + * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 + * + * @param object the object to check. + */ +util.isEmpty = function(obj) { + for(var prop in obj) { + if(obj.hasOwnProperty(prop)) { + return false; + } + } + return true; +}; + +/** + * Format with simple printf-style interpolation. + * + * %%: literal '%' + * %s,%o: convert next argument into a string. + * + * @param format the string to format. + * @param ... arguments to interpolate into the format string. + */ +util.format = function(format) { + var re = /%./g; + // current match + var match; + // current part + var part; + // current arg index + var argi = 0; + // collected parts to recombine later + var parts = []; + // last index found + var last = 0; + // loop while matches remain + while((match = re.exec(format))) { + part = format.substring(last, re.lastIndex - 2); + // don't add empty strings (ie, parts between %s%s) + if(part.length > 0) { + parts.push(part); + } + last = re.lastIndex; + // switch on % code + var code = match[0][1]; + switch(code) { + case 's': + case 'o': + // check if enough arguments were given + if(argi < arguments.length) { + parts.push(arguments[argi++ + 1]); + } else { + parts.push(''); + } + break; + // FIXME: do proper formating for numbers, etc + //case 'f': + //case 'd': + case '%': + parts.push('%'); + break; + default: + parts.push('<%' + code + '?>'); + } + } + // add trailing part of format string + parts.push(format.substring(last)); + return parts.join(''); +}; + +/** + * Formats a number. + * + * http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/ + */ +util.formatNumber = function(number, decimals, dec_point, thousands_sep) { + // http://kevin.vanzonneveld.net + // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) + // + bugfix by: Michael White (http://crestidg.com) + // + bugfix by: Benjamin Lupton + // + bugfix by: Allan Jensen (http://www.winternet.no) + // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // * example 1: number_format(1234.5678, 2, '.', ''); + // * returns 1: 1234.57 + + var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; + var d = dec_point === undefined ? ',' : dec_point; + var t = thousands_sep === undefined ? + '.' : thousands_sep, s = n < 0 ? '-' : ''; + var i = parseInt((n = Math.abs(+n || 0).toFixed(c)), 10) + ''; + var j = (i.length > 3) ? i.length % 3 : 0; + return s + (j ? i.substr(0, j) + t : '') + + i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + t) + + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ''); +}; + +/** + * Formats a byte size. + * + * http://snipplr.com/view/5949/format-humanize-file-byte-size-presentation-in-javascript/ + */ +util.formatSize = function(size) { + if(size >= 1073741824) { + size = util.formatNumber(size / 1073741824, 2, '.', '') + ' GiB'; + } else if(size >= 1048576) { + size = util.formatNumber(size / 1048576, 2, '.', '') + ' MiB'; + } else if(size >= 1024) { + size = util.formatNumber(size / 1024, 0) + ' KiB'; + } else { + size = util.formatNumber(size, 0) + ' bytes'; + } + return size; +}; + +/** + * Converts an IPv4 or IPv6 string representation into bytes (in network order). + * + * @param ip the IPv4 or IPv6 address to convert. + * + * @return the 4-byte IPv6 or 16-byte IPv6 address or null if the address can't + * be parsed. + */ +util.bytesFromIP = function(ip) { + if(ip.indexOf('.') !== -1) { + return util.bytesFromIPv4(ip); + } + if(ip.indexOf(':') !== -1) { + return util.bytesFromIPv6(ip); + } + return null; +}; + +/** + * Converts an IPv4 string representation into bytes (in network order). + * + * @param ip the IPv4 address to convert. + * + * @return the 4-byte address or null if the address can't be parsed. + */ +util.bytesFromIPv4 = function(ip) { + ip = ip.split('.'); + if(ip.length !== 4) { + return null; + } + var b = util.createBuffer(); + for(var i = 0; i < ip.length; ++i) { + var num = parseInt(ip[i], 10); + if(isNaN(num)) { + return null; + } + b.putByte(num); + } + return b.getBytes(); +}; + +/** + * Converts an IPv6 string representation into bytes (in network order). + * + * @param ip the IPv6 address to convert. + * + * @return the 16-byte address or null if the address can't be parsed. + */ +util.bytesFromIPv6 = function(ip) { + var blanks = 0; + ip = ip.split(':').filter(function(e) { + if(e.length === 0) ++blanks; + return true; + }); + var zeros = (8 - ip.length + blanks) * 2; + var b = util.createBuffer(); + for(var i = 0; i < 8; ++i) { + if(!ip[i] || ip[i].length === 0) { + b.fillWithByte(0, zeros); + zeros = 0; + continue; + } + var bytes = util.hexToBytes(ip[i]); + if(bytes.length < 2) { + b.putByte(0); + } + b.putBytes(bytes); + } + return b.getBytes(); +}; + +/** + * Converts 4-bytes into an IPv4 string representation or 16-bytes into + * an IPv6 string representation. The bytes must be in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv4 or IPv6 string representation if 4 or 16 bytes, + * respectively, are given, otherwise null. + */ +util.bytesToIP = function(bytes) { + if(bytes.length === 4) { + return util.bytesToIPv4(bytes); + } + if(bytes.length === 16) { + return util.bytesToIPv6(bytes); + } + return null; +}; + +/** + * Converts 4-bytes into an IPv4 string representation. The bytes must be + * in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv4 string representation or null for an invalid # of bytes. + */ +util.bytesToIPv4 = function(bytes) { + if(bytes.length !== 4) { + return null; + } + var ip = []; + for(var i = 0; i < bytes.length; ++i) { + ip.push(bytes.charCodeAt(i)); + } + return ip.join('.'); +}; + +/** + * Converts 16-bytes into an IPv16 string representation. The bytes must be + * in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv16 string representation or null for an invalid # of bytes. + */ +util.bytesToIPv6 = function(bytes) { + if(bytes.length !== 16) { + return null; + } + var ip = []; + var zeroGroups = []; + var zeroMaxGroup = 0; + for(var i = 0; i < bytes.length; i += 2) { + var hex = util.bytesToHex(bytes[i] + bytes[i + 1]); + // canonicalize zero representation + while(hex[0] === '0' && hex !== '0') { + hex = hex.substr(1); + } + if(hex === '0') { + var last = zeroGroups[zeroGroups.length - 1]; + var idx = ip.length; + if(!last || idx !== last.end + 1) { + zeroGroups.push({start: idx, end: idx}); + } else { + last.end = idx; + if((last.end - last.start) > + (zeroGroups[zeroMaxGroup].end - zeroGroups[zeroMaxGroup].start)) { + zeroMaxGroup = zeroGroups.length - 1; } - instantiate(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:instantiate').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); - } + } + } + ip.push(hex); + } + if(zeroGroups.length > 0) { + var group = zeroGroups[zeroMaxGroup]; + // only shorten group of length > 0 + if(group.end - group.start > 0) { + ip.splice(group.start, group.end - group.start + 1, ''); + if(group.start === 0) { + ip.unshift(''); + } + if(group.end === 7) { + ip.push(''); + } + } + } + return ip.join(':'); +}; + +/** + * Estimates the number of processes that can be run concurrently. If + * creating Web Workers, keep in mind that the main JavaScript process needs + * its own core. + * + * @param options the options to use: + * update true to force an update (not use the cached value). + * @param callback(err, max) called once the operation completes. + */ +util.estimateCores = function(options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + if('cores' in util && !options.update) { + return callback(null, util.cores); + } + if(typeof navigator !== 'undefined' && + 'hardwareConcurrency' in navigator && + navigator.hardwareConcurrency > 0) { + util.cores = navigator.hardwareConcurrency; + return callback(null, util.cores); + } + if(typeof Worker === 'undefined') { + // workers not available + util.cores = 1; + return callback(null, util.cores); + } + if(typeof Blob === 'undefined') { + // can't estimate, default to 2 + util.cores = 2; + return callback(null, util.cores); + } + + // create worker concurrency estimation code as blob + var blobUrl = URL.createObjectURL(new Blob(['(', + function() { + self.addEventListener('message', function(e) { + // run worker for 4 ms + var st = Date.now(); + var et = st + 4; + while(Date.now() < et); + self.postMessage({st: st, et: et}); + }); + }.toString(), + ')()'], {type: 'application/javascript'})); + + // take 5 samples using 16 workers + sample([], 5, 16); + + function sample(max, samples, numWorkers) { + if(samples === 0) { + // get overlap average + var avg = Math.floor(max.reduce(function(avg, x) { + return avg + x; + }, 0) / max.length); + util.cores = Math.max(1, avg); + URL.revokeObjectURL(blobUrl); + return callback(null, util.cores); + } + map(numWorkers, function(err, results) { + max.push(reduce(numWorkers, results)); + sample(max, samples - 1, numWorkers); + }); + } + + function map(numWorkers, callback) { + var workers = []; + var results = []; + for(var i = 0; i < numWorkers; ++i) { + var worker = new Worker(blobUrl); + worker.addEventListener('message', function(e) { + results.push(e.data); + if(results.length === numWorkers) { + for(var i = 0; i < numWorkers; ++i) { + workers[i].terminate(); + } + callback(null, results); } - instantiateInline(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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').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); - } + }); + workers.push(worker); + } + for(var i = 0; i < numWorkers; ++i) { + workers[i].postMessage(i); + } + } + + function reduce(numWorkers, results) { + // find overlapping time windows + var overlaps = []; + for(var n = 0; n < numWorkers; ++n) { + var r1 = results[n]; + var overlap = overlaps[n] = []; + for(var i = 0; i < numWorkers; ++i) { + if(n === i) { + continue; } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').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); - } + var r2 = results[i]; + if((r1.st > r2.st && r1.st < r2.et) || + (r2.st > r1.st && r2.st < r1.et)) { + overlap.push(i); } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); + } + } + // get maximum overlaps ... don't include overlapping worker itself + // as the main JS process was also being scheduled during the work and + // would have to be subtracted from the estimate anyway + return overlaps.reduce(function(max, overlap) { + return Math.max(max, overlap.length); + }, 0); + } +}; + + +/***/ }), + +/***/ 7159: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.trafficdirector_v2 = exports.auth = exports.trafficdirector = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(9498); +Object.defineProperty(exports, "trafficdirector_v2", { enumerable: true, get: function () { return v2_1.trafficdirector_v2; } }); +exports.VERSIONS = { + v2: v2_1.trafficdirector_v2.Trafficdirector, +}; +function trafficdirector(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('trafficdirector', versionOrOptions, exports.VERSIONS, this); +} +exports.trafficdirector = trafficdirector; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7171: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * A Javascript implementation of Transport Layer Security (TLS). + * + * @author Dave Longley + * + * Copyright (c) 2009-2014 Digital Bazaar, Inc. + * + * The TLS Handshake Protocol involves the following steps: + * + * - Exchange hello messages to agree on algorithms, exchange random values, + * and check for session resumption. + * + * - Exchange the necessary cryptographic parameters to allow the client and + * server to agree on a premaster secret. + * + * - Exchange certificates and cryptographic information to allow the client + * and server to authenticate themselves. + * + * - Generate a master secret from the premaster secret and exchanged random + * values. + * + * - Provide security parameters to the record layer. + * + * - Allow the client and server to verify that their peer has calculated the + * same security parameters and that the handshake occurred without tampering + * by an attacker. + * + * Up to 4 different messages may be sent during a key exchange. The server + * certificate, the server key exchange, the client certificate, and the + * client key exchange. + * + * A typical handshake (from the client's perspective). + * + * 1. Client sends ClientHello. + * 2. Client receives ServerHello. + * 3. Client receives optional Certificate. + * 4. Client receives optional ServerKeyExchange. + * 5. Client receives ServerHelloDone. + * 6. Client sends optional Certificate. + * 7. Client sends ClientKeyExchange. + * 8. Client sends optional CertificateVerify. + * 9. Client sends ChangeCipherSpec. + * 10. Client sends Finished. + * 11. Client receives ChangeCipherSpec. + * 12. Client receives Finished. + * 13. Client sends/receives application data. + * + * To reuse an existing session: + * + * 1. Client sends ClientHello with session ID for reuse. + * 2. Client receives ServerHello with same session ID if reusing. + * 3. Client receives ChangeCipherSpec message if reusing. + * 4. Client receives Finished. + * 5. Client sends ChangeCipherSpec. + * 6. Client sends Finished. + * + * Note: Client ignores HelloRequest if in the middle of a handshake. + * + * Record Layer: + * + * The record layer fragments information blocks into TLSPlaintext records + * carrying data in chunks of 2^14 bytes or less. Client message boundaries are + * not preserved in the record layer (i.e., multiple client messages of the + * same ContentType MAY be coalesced into a single TLSPlaintext record, or a + * single message MAY be fragmented across several records). + * + * struct { + * uint8 major; + * uint8 minor; + * } ProtocolVersion; + * + * struct { + * ContentType type; + * ProtocolVersion version; + * uint16 length; + * opaque fragment[TLSPlaintext.length]; + * } TLSPlaintext; + * + * type: + * The higher-level protocol used to process the enclosed fragment. + * + * version: + * The version of the protocol being employed. TLS Version 1.2 uses version + * {3, 3}. TLS Version 1.0 uses version {3, 1}. Note that a client that + * supports multiple versions of TLS may not know what version will be + * employed before it receives the ServerHello. + * + * length: + * The length (in bytes) of the following TLSPlaintext.fragment. The length + * MUST NOT exceed 2^14 = 16384 bytes. + * + * fragment: + * The application data. This data is transparent and treated as an + * independent block to be dealt with by the higher-level protocol specified + * by the type field. + * + * Implementations MUST NOT send zero-length fragments of Handshake, Alert, or + * ChangeCipherSpec content types. Zero-length fragments of Application data + * MAY be sent as they are potentially useful as a traffic analysis + * countermeasure. + * + * Note: Data of different TLS record layer content types MAY be interleaved. + * Application data is generally of lower precedence for transmission than + * other content types. However, records MUST be delivered to the network in + * the same order as they are protected by the record layer. Recipients MUST + * receive and process interleaved application layer traffic during handshakes + * subsequent to the first one on a connection. + * + * struct { + * ContentType type; // same as TLSPlaintext.type + * ProtocolVersion version;// same as TLSPlaintext.version + * uint16 length; + * opaque fragment[TLSCompressed.length]; + * } TLSCompressed; + * + * length: + * The length (in bytes) of the following TLSCompressed.fragment. + * The length MUST NOT exceed 2^14 + 1024. + * + * fragment: + * The compressed form of TLSPlaintext.fragment. + * + * Note: A CompressionMethod.null operation is an identity operation; no fields + * are altered. In this implementation, since no compression is supported, + * uncompressed records are always the same as compressed records. + * + * Encryption Information: + * + * The encryption and MAC functions translate a TLSCompressed structure into a + * TLSCiphertext. The decryption functions reverse the process. The MAC of the + * record also includes a sequence number so that missing, extra, or repeated + * messages are detectable. + * + * struct { + * ContentType type; + * ProtocolVersion version; + * uint16 length; + * select (SecurityParameters.cipher_type) { + * case stream: GenericStreamCipher; + * case block: GenericBlockCipher; + * case aead: GenericAEADCipher; + * } fragment; + * } TLSCiphertext; + * + * type: + * The type field is identical to TLSCompressed.type. + * + * version: + * The version field is identical to TLSCompressed.version. + * + * length: + * The length (in bytes) of the following TLSCiphertext.fragment. + * The length MUST NOT exceed 2^14 + 2048. + * + * fragment: + * The encrypted form of TLSCompressed.fragment, with the MAC. + * + * Note: Only CBC Block Ciphers are supported by this implementation. + * + * The TLSCompressed.fragment structures are converted to/from block + * TLSCiphertext.fragment structures. + * + * struct { + * opaque IV[SecurityParameters.record_iv_length]; + * block-ciphered struct { + * opaque content[TLSCompressed.length]; + * opaque MAC[SecurityParameters.mac_length]; + * uint8 padding[GenericBlockCipher.padding_length]; + * uint8 padding_length; + * }; + * } GenericBlockCipher; + * + * The MAC is generated as described in Section 6.2.3.1. + * + * IV: + * The Initialization Vector (IV) SHOULD be chosen at random, and MUST be + * unpredictable. Note that in versions of TLS prior to 1.1, there was no + * IV field, and the last ciphertext block of the previous record (the "CBC + * residue") was used as the IV. This was changed to prevent the attacks + * described in [CBCATT]. For block ciphers, the IV length is of length + * SecurityParameters.record_iv_length, which is equal to the + * SecurityParameters.block_size. + * + * padding: + * Padding that is added to force the length of the plaintext to be an + * integral multiple of the block cipher's block length. The padding MAY be + * any length up to 255 bytes, as long as it results in the + * TLSCiphertext.length being an integral multiple of the block length. + * Lengths longer than necessary might be desirable to frustrate attacks on + * a protocol that are based on analysis of the lengths of exchanged + * messages. Each uint8 in the padding data vector MUST be filled with the + * padding length value. The receiver MUST check this padding and MUST use + * the bad_record_mac alert to indicate padding errors. + * + * padding_length: + * The padding length MUST be such that the total size of the + * GenericBlockCipher structure is a multiple of the cipher's block length. + * Legal values range from zero to 255, inclusive. This length specifies the + * length of the padding field exclusive of the padding_length field itself. + * + * The encrypted data length (TLSCiphertext.length) is one more than the sum of + * SecurityParameters.block_length, TLSCompressed.length, + * SecurityParameters.mac_length, and padding_length. + * + * Example: If the block length is 8 bytes, the content length + * (TLSCompressed.length) is 61 bytes, and the MAC length is 20 bytes, then the + * length before padding is 82 bytes (this does not include the IV. Thus, the + * padding length modulo 8 must be equal to 6 in order to make the total length + * an even multiple of 8 bytes (the block length). The padding length can be + * 6, 14, 22, and so on, through 254. If the padding length were the minimum + * necessary, 6, the padding would be 6 bytes, each containing the value 6. + * Thus, the last 8 octets of the GenericBlockCipher before block encryption + * would be xx 06 06 06 06 06 06 06, where xx is the last octet of the MAC. + * + * Note: With block ciphers in CBC mode (Cipher Block Chaining), it is critical + * that the entire plaintext of the record be known before any ciphertext is + * transmitted. Otherwise, it is possible for the attacker to mount the attack + * described in [CBCATT]. + * + * Implementation note: Canvel et al. [CBCTIME] have demonstrated a timing + * attack on CBC padding based on the time required to compute the MAC. In + * order to defend against this attack, implementations MUST ensure that + * record processing time is essentially the same whether or not the padding + * is correct. In general, the best way to do this is to compute the MAC even + * if the padding is incorrect, and only then reject the packet. For instance, + * if the pad appears to be incorrect, the implementation might assume a + * zero-length pad and then compute the MAC. This leaves a small timing + * channel, since MAC performance depends, to some extent, on the size of the + * data fragment, but it is not believed to be large enough to be exploitable, + * due to the large block size of existing MACs and the small size of the + * timing signal. + */ +var forge = __webpack_require__(239); +__webpack_require__(1431); +__webpack_require__(3000); +__webpack_require__(5237); +__webpack_require__(4076); +__webpack_require__(6463); +__webpack_require__(5707); +__webpack_require__(2707); +__webpack_require__(7152); + +/** + * Generates pseudo random bytes by mixing the result of two hash functions, + * MD5 and SHA-1. + * + * prf_TLS1(secret, label, seed) = + * P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed); + * + * Each P_hash function functions as follows: + * + * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) + + * HMAC_hash(secret, A(2) + seed) + + * HMAC_hash(secret, A(3) + seed) + ... + * A() is defined as: + * A(0) = seed + * A(i) = HMAC_hash(secret, A(i-1)) + * + * The '+' operator denotes concatenation. + * + * As many iterations A(N) as are needed are performed to generate enough + * pseudo random byte output. If an iteration creates more data than is + * necessary, then it is truncated. + * + * Therefore: + * A(1) = HMAC_hash(secret, A(0)) + * = HMAC_hash(secret, seed) + * A(2) = HMAC_hash(secret, A(1)) + * = HMAC_hash(secret, HMAC_hash(secret, seed)) + * + * Therefore: + * P_hash(secret, seed) = + * HMAC_hash(secret, HMAC_hash(secret, A(0)) + seed) + + * HMAC_hash(secret, HMAC_hash(secret, A(1)) + seed) + + * ... + * + * Therefore: + * P_hash(secret, seed) = + * HMAC_hash(secret, HMAC_hash(secret, seed) + seed) + + * HMAC_hash(secret, HMAC_hash(secret, HMAC_hash(secret, seed)) + seed) + + * ... + * + * @param secret the secret to use. + * @param label the label to use. + * @param seed the seed value to use. + * @param length the number of bytes to generate. + * + * @return the pseudo random bytes in a byte buffer. + */ +var prf_TLS1 = function(secret, label, seed, length) { + var rval = forge.util.createBuffer(); + + /* For TLS 1.0, the secret is split in half, into two secrets of equal + length. If the secret has an odd length then the last byte of the first + half will be the same as the first byte of the second. The length of the + two secrets is half of the secret rounded up. */ + var idx = (secret.length >> 1); + var slen = idx + (secret.length & 1); + var s1 = secret.substr(0, slen); + var s2 = secret.substr(idx, slen); + var ai = forge.util.createBuffer(); + var hmac = forge.hmac.create(); + seed = label + seed; + + // determine the number of iterations that must be performed to generate + // enough output bytes, md5 creates 16 byte hashes, sha1 creates 20 + var md5itr = Math.ceil(length / 16); + var sha1itr = Math.ceil(length / 20); + + // do md5 iterations + hmac.start('MD5', s1); + var md5bytes = forge.util.createBuffer(); + ai.putBytes(seed); + for(var i = 0; i < md5itr; ++i) { + // HMAC_hash(secret, A(i-1)) + hmac.start(null, null); + hmac.update(ai.getBytes()); + ai.putBuffer(hmac.digest()); + + // HMAC_hash(secret, A(i) + seed) + hmac.start(null, null); + hmac.update(ai.bytes() + seed); + md5bytes.putBuffer(hmac.digest()); + } + + // do sha1 iterations + hmac.start('SHA1', s2); + var sha1bytes = forge.util.createBuffer(); + ai.clear(); + ai.putBytes(seed); + for(var i = 0; i < sha1itr; ++i) { + // HMAC_hash(secret, A(i-1)) + hmac.start(null, null); + hmac.update(ai.getBytes()); + ai.putBuffer(hmac.digest()); + + // HMAC_hash(secret, A(i) + seed) + hmac.start(null, null); + hmac.update(ai.bytes() + seed); + sha1bytes.putBuffer(hmac.digest()); + } + + // XOR the md5 bytes with the sha1 bytes + rval.putBytes(forge.util.xorBytes( + md5bytes.getBytes(), sha1bytes.getBytes(), length)); + + return rval; +}; + +/** + * Generates pseudo random bytes using a SHA256 algorithm. For TLS 1.2. + * + * @param secret the secret to use. + * @param label the label to use. + * @param seed the seed value to use. + * @param length the number of bytes to generate. + * + * @return the pseudo random bytes in a byte buffer. + */ +var prf_sha256 = function(secret, label, seed, length) { + // FIXME: implement me for TLS 1.2 +}; + +/** + * Gets a MAC for a record using the SHA-1 hash algorithm. + * + * @param key the mac key. + * @param state the sequence number (array of two 32-bit integers). + * @param record the record. + * + * @return the sha-1 hash (20 bytes) for the given record. + */ +var hmac_sha1 = function(key, seqNum, record) { + /* MAC is computed like so: + HMAC_hash( + key, seqNum + + TLSCompressed.type + + TLSCompressed.version + + TLSCompressed.length + + TLSCompressed.fragment) + */ + var hmac = forge.hmac.create(); + hmac.start('SHA1', key); + var b = forge.util.createBuffer(); + b.putInt32(seqNum[0]); + b.putInt32(seqNum[1]); + b.putByte(record.type); + b.putByte(record.version.major); + b.putByte(record.version.minor); + b.putInt16(record.length); + b.putBytes(record.fragment.bytes()); + hmac.update(b.getBytes()); + return hmac.digest().getBytes(); +}; + +/** + * Compresses the TLSPlaintext record into a TLSCompressed record using the + * deflate algorithm. + * + * @param c the TLS connection. + * @param record the TLSPlaintext record to compress. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +var deflate = function(c, record, s) { + var rval = false; + + try { + var bytes = c.deflate(record.fragment.getBytes()); + record.fragment = forge.util.createBuffer(bytes); + record.length = bytes.length; + rval = true; + } catch(ex) { + // deflate error, fail out + } + + return rval; +}; + +/** + * Decompresses the TLSCompressed record into a TLSPlaintext record using the + * deflate algorithm. + * + * @param c the TLS connection. + * @param record the TLSCompressed record to decompress. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +var inflate = function(c, record, s) { + var rval = false; + + try { + var bytes = c.inflate(record.fragment.getBytes()); + record.fragment = forge.util.createBuffer(bytes); + record.length = bytes.length; + rval = true; + } catch(ex) { + // inflate error, fail out + } + + return rval; +}; + +/** + * Reads a TLS variable-length vector from a byte buffer. + * + * Variable-length vectors are defined by specifying a subrange of legal + * lengths, inclusively, using the notation . When these are + * encoded, the actual length precedes the vector's contents in the byte + * stream. The length will be in the form of a number consuming as many bytes + * as required to hold the vector's specified maximum (ceiling) length. A + * variable-length vector with an actual length field of zero is referred to + * as an empty vector. + * + * @param b the byte buffer. + * @param lenBytes the number of bytes required to store the length. + * + * @return the resulting byte buffer. + */ +var readVector = function(b, lenBytes) { + var len = 0; + switch(lenBytes) { + case 1: + len = b.getByte(); + break; + case 2: + len = b.getInt16(); + break; + case 3: + len = b.getInt24(); + break; + case 4: + len = b.getInt32(); + break; + } + + // read vector bytes into a new buffer + return forge.util.createBuffer(b.getBytes(len)); +}; + +/** + * Writes a TLS variable-length vector to a byte buffer. + * + * @param b the byte buffer. + * @param lenBytes the number of bytes required to store the length. + * @param v the byte buffer vector. + */ +var writeVector = function(b, lenBytes, v) { + // encode length at the start of the vector, where the number of bytes for + // the length is the maximum number of bytes it would take to encode the + // vector's ceiling + b.putInt(v.length(), lenBytes << 3); + b.putBuffer(v); +}; + +/** + * The tls implementation. + */ +var tls = {}; + +/** + * Version: TLS 1.2 = 3.3, TLS 1.1 = 3.2, TLS 1.0 = 3.1. Both TLS 1.1 and + * TLS 1.2 were still too new (ie: openSSL didn't implement them) at the time + * of this implementation so TLS 1.0 was implemented instead. + */ +tls.Versions = { + TLS_1_0: {major: 3, minor: 1}, + TLS_1_1: {major: 3, minor: 2}, + TLS_1_2: {major: 3, minor: 3} +}; +tls.SupportedVersions = [ + tls.Versions.TLS_1_1, + tls.Versions.TLS_1_0 +]; +tls.Version = tls.SupportedVersions[0]; + +/** + * Maximum fragment size. True maximum is 16384, but we fragment before that + * to allow for unusual small increases during compression. + */ +tls.MaxFragment = 16384 - 1024; + +/** + * Whether this entity is considered the "client" or "server". + * enum { server, client } ConnectionEnd; + */ +tls.ConnectionEnd = { + server: 0, + client: 1 +}; + +/** + * Pseudo-random function algorithm used to generate keys from the master + * secret. + * enum { tls_prf_sha256 } PRFAlgorithm; + */ +tls.PRFAlgorithm = { + tls_prf_sha256: 0 +}; + +/** + * Bulk encryption algorithms. + * enum { null, rc4, des3, aes } BulkCipherAlgorithm; + */ +tls.BulkCipherAlgorithm = { + none: null, + rc4: 0, + des3: 1, + aes: 2 +}; + +/** + * Cipher types. + * enum { stream, block, aead } CipherType; + */ +tls.CipherType = { + stream: 0, + block: 1, + aead: 2 +}; + +/** + * MAC (Message Authentication Code) algorithms. + * enum { null, hmac_md5, hmac_sha1, hmac_sha256, + * hmac_sha384, hmac_sha512} MACAlgorithm; + */ +tls.MACAlgorithm = { + none: null, + hmac_md5: 0, + hmac_sha1: 1, + hmac_sha256: 2, + hmac_sha384: 3, + hmac_sha512: 4 +}; + +/** + * Compression algorithms. + * enum { null(0), deflate(1), (255) } CompressionMethod; + */ +tls.CompressionMethod = { + none: 0, + deflate: 1 +}; + +/** + * TLS record content types. + * enum { + * change_cipher_spec(20), alert(21), handshake(22), + * application_data(23), (255) + * } ContentType; + */ +tls.ContentType = { + change_cipher_spec: 20, + alert: 21, + handshake: 22, + application_data: 23, + heartbeat: 24 +}; + +/** + * TLS handshake types. + * enum { + * hello_request(0), client_hello(1), server_hello(2), + * certificate(11), server_key_exchange (12), + * certificate_request(13), server_hello_done(14), + * certificate_verify(15), client_key_exchange(16), + * finished(20), (255) + * } HandshakeType; + */ +tls.HandshakeType = { + hello_request: 0, + client_hello: 1, + server_hello: 2, + certificate: 11, + server_key_exchange: 12, + certificate_request: 13, + server_hello_done: 14, + certificate_verify: 15, + client_key_exchange: 16, + finished: 20 +}; + +/** + * TLS Alert Protocol. + * + * enum { warning(1), fatal(2), (255) } AlertLevel; + * + * enum { + * close_notify(0), + * unexpected_message(10), + * bad_record_mac(20), + * decryption_failed(21), + * record_overflow(22), + * decompression_failure(30), + * handshake_failure(40), + * bad_certificate(42), + * unsupported_certificate(43), + * certificate_revoked(44), + * certificate_expired(45), + * certificate_unknown(46), + * illegal_parameter(47), + * unknown_ca(48), + * access_denied(49), + * decode_error(50), + * decrypt_error(51), + * export_restriction(60), + * protocol_version(70), + * insufficient_security(71), + * internal_error(80), + * user_canceled(90), + * no_renegotiation(100), + * (255) + * } AlertDescription; + * + * struct { + * AlertLevel level; + * AlertDescription description; + * } Alert; + */ +tls.Alert = {}; +tls.Alert.Level = { + warning: 1, + fatal: 2 +}; +tls.Alert.Description = { + close_notify: 0, + unexpected_message: 10, + bad_record_mac: 20, + decryption_failed: 21, + record_overflow: 22, + decompression_failure: 30, + handshake_failure: 40, + bad_certificate: 42, + unsupported_certificate: 43, + certificate_revoked: 44, + certificate_expired: 45, + certificate_unknown: 46, + illegal_parameter: 47, + unknown_ca: 48, + access_denied: 49, + decode_error: 50, + decrypt_error: 51, + export_restriction: 60, + protocol_version: 70, + insufficient_security: 71, + internal_error: 80, + user_canceled: 90, + no_renegotiation: 100 +}; + +/** + * TLS Heartbeat Message types. + * enum { + * heartbeat_request(1), + * heartbeat_response(2), + * (255) + * } HeartbeatMessageType; + */ +tls.HeartbeatMessageType = { + heartbeat_request: 1, + heartbeat_response: 2 +}; + +/** + * Supported cipher suites. + */ +tls.CipherSuites = {}; + +/** + * Gets a supported cipher suite from its 2 byte ID. + * + * @param twoBytes two bytes in a string. + * + * @return the matching supported cipher suite or null. + */ +tls.getCipherSuite = function(twoBytes) { + var rval = null; + for(var key in tls.CipherSuites) { + var cs = tls.CipherSuites[key]; + if(cs.id[0] === twoBytes.charCodeAt(0) && + cs.id[1] === twoBytes.charCodeAt(1)) { + rval = cs; + break; + } + } + return rval; +}; + +/** + * Called when an unexpected record is encountered. + * + * @param c the connection. + * @param record the record. + */ +tls.handleUnexpected = function(c, record) { + // if connection is client and closed, ignore unexpected messages + var ignore = (!c.open && c.entity === tls.ConnectionEnd.client); + if(!ignore) { + c.error(c, { + message: 'Unexpected message. Received TLS record out of order.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unexpected_message + } + }); + } +}; + +/** + * Called when a client receives a HelloRequest record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleHelloRequest = function(c, record, length) { + // ignore renegotiation requests from the server during a handshake, but + // if handshaking, send a warning alert that renegotation is denied + if(!c.handshaking && c.handshakes > 0) { + // send alert warning + tls.queue(c, tls.createAlert(c, { + level: tls.Alert.Level.warning, + description: tls.Alert.Description.no_renegotiation + })); + tls.flush(c); + } + + // continue + c.process(); +}; + +/** + * Parses a hello message from a ClientHello or ServerHello record. + * + * @param record the record to parse. + * + * @return the parsed message. + */ +tls.parseHelloMessage = function(c, record, length) { + var msg = null; + + var client = (c.entity === tls.ConnectionEnd.client); + + // minimum of 38 bytes in message + if(length < 38) { + c.error(c, { + message: client ? + 'Invalid ServerHello message. Message too short.' : + 'Invalid ClientHello message. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } else { + // use 'remaining' to calculate # of remaining bytes in the message + var b = record.fragment; + var remaining = b.length(); + msg = { + version: { + major: b.getByte(), + minor: b.getByte() + }, + random: forge.util.createBuffer(b.getBytes(32)), + session_id: readVector(b, 1), + extensions: [] + }; + if(client) { + msg.cipher_suite = b.getBytes(2); + msg.compression_method = b.getByte(); + } else { + msg.cipher_suites = readVector(b, 2); + msg.compression_methods = readVector(b, 1); + } + + // read extensions if there are any bytes left in the message + remaining = length - (remaining - b.length()); + if(remaining > 0) { + // parse extensions + var exts = readVector(b, 2); + while(exts.length() > 0) { + msg.extensions.push({ + type: [exts.getByte(), exts.getByte()], + data: readVector(exts, 2) + }); + } + + // TODO: make extension support modular + if(!client) { + for(var i = 0; i < msg.extensions.length; ++i) { + var ext = msg.extensions[i]; + + // support SNI extension + if(ext.type[0] === 0x00 && ext.type[1] === 0x00) { + // get server name list + var snl = readVector(ext.data, 2); + while(snl.length() > 0) { + // read server name type + var snType = snl.getByte(); + + // only HostName type (0x00) is known, break out if + // another type is detected + if(snType !== 0x00) { + break; + } + + // add host name to server name list + c.session.extensions.server_name.serverNameList.push( + readVector(snl, 2).getBytes()); } + } } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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); - } + } + } + + // version already set, do not allow version change + if(c.session.version) { + if(msg.version.major !== c.session.version.major || + msg.version.minor !== c.session.version.minor) { + return c.error(c, { + message: 'TLS version change is disallowed during renegotiation.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + } + + // get the chosen (ServerHello) cipher suite + if(client) { + // FIXME: should be checking configured acceptable cipher suites + c.session.cipherSuite = tls.getCipherSuite(msg.cipher_suite); + } else { + // get a supported preferred (ClientHello) cipher suite + // choose the first supported cipher suite + var tmp = forge.util.createBuffer(msg.cipher_suites.bytes()); + while(tmp.length() > 0) { + // FIXME: should be checking configured acceptable suites + // cipher suites take up 2 bytes + c.session.cipherSuite = tls.getCipherSuite(tmp.getBytes(2)); + if(c.session.cipherSuite !== null) { + break; } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + } + + // cipher suite not supported + if(c.session.cipherSuite === null) { + return c.error(c, { + message: 'No cipher suites in common.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.handshake_failure + }, + cipherSuite: forge.util.bytesToHex(msg.cipher_suite) + }); + } + + // TODO: handle compression methods + if(client) { + c.session.compressionMethod = msg.compression_method; + } else { + // no compression + c.session.compressionMethod = tls.CompressionMethod.none; + } + } + + return msg; +}; + +/** + * Creates security parameters for the given connection based on the given + * hello message. + * + * @param c the TLS connection. + * @param msg the hello message. + */ +tls.createSecurityParameters = function(c, msg) { + /* Note: security params are from TLS 1.2, some values like prf_algorithm + are ignored for TLS 1.0/1.1 and the builtin as specified in the spec is + used. */ + + // TODO: handle other options from server when more supported + + // get client and server randoms + var client = (c.entity === tls.ConnectionEnd.client); + var msgRandom = msg.random.bytes(); + var cRandom = client ? c.session.sp.client_random : msgRandom; + var sRandom = client ? msgRandom : tls.createRandom().getBytes(); + + // create new security parameters + c.session.sp = { + entity: c.entity, + prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256, + bulk_cipher_algorithm: null, + cipher_type: null, + enc_key_length: null, + block_length: null, + fixed_iv_length: null, + record_iv_length: null, + mac_algorithm: null, + mac_length: null, + mac_key_length: null, + compression_algorithm: c.session.compressionMethod, + pre_master_secret: null, + master_secret: null, + client_random: cRandom, + server_random: sRandom + }; +}; + +/** + * Called when a client receives a ServerHello record. + * + * When a ServerHello message will be sent: + * The server will send this message in response to a client hello message + * when it was able to find an acceptable set of algorithms. If it cannot + * find such a match, it will respond with a handshake failure alert. + * + * uint24 length; + * struct { + * ProtocolVersion server_version; + * Random random; + * SessionID session_id; + * CipherSuite cipher_suite; + * CompressionMethod compression_method; + * select(extensions_present) { + * case false: + * struct {}; + * case true: + * Extension extensions<0..2^16-1>; + * }; + * } ServerHello; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerHello = function(c, record, length) { + var msg = tls.parseHelloMessage(c, record, length); + if(c.fail) { + return; + } + + // ensure server version is compatible + if(msg.version.minor <= c.version.minor) { + c.version.minor = msg.version.minor; + } else { + return c.error(c, { + message: 'Incompatible TLS version.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + + // indicate session version has been set + c.session.version = c.version; + + // get the session ID from the message + var sessionId = msg.session_id.bytes(); + + // if the session ID is not blank and matches the cached one, resume + // the session + if(sessionId.length > 0 && sessionId === c.session.id) { + // resuming session, expect a ChangeCipherSpec next + c.expect = SCC; + c.session.resuming = true; + + // get new server random + c.session.sp.server_random = msg.random.bytes(); + } else { + // not resuming, expect a server Certificate message next + c.expect = SCE; + c.session.resuming = false; + + // create new security parameters + tls.createSecurityParameters(c, msg); + } + + // set new session ID + c.session.id = sessionId; + + // continue + c.process(); +}; + +/** + * Called when a server receives a ClientHello record. + * + * When a ClientHello message will be sent: + * When a client first connects to a server it is required to send the + * client hello as its first message. The client can also send a client + * hello in response to a hello request or on its own initiative in order + * to renegotiate the security parameters in an existing connection. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleClientHello = function(c, record, length) { + var msg = tls.parseHelloMessage(c, record, length); + if(c.fail) { + return; + } + + // get the session ID from the message + var sessionId = msg.session_id.bytes(); + + // see if the given session ID is in the cache + var session = null; + if(c.sessionCache) { + session = c.sessionCache.getSession(sessionId); + if(session === null) { + // session ID not found + sessionId = ''; + } else if(session.version.major !== msg.version.major || + session.version.minor > msg.version.minor) { + // if session version is incompatible with client version, do not resume + session = null; + sessionId = ''; + } + } + + // no session found to resume, generate a new session ID + if(sessionId.length === 0) { + sessionId = forge.random.getBytes(32); + } + + // update session + c.session.id = sessionId; + c.session.clientHelloVersion = msg.version; + c.session.sp = {}; + if(session) { + // use version and security parameters from resumed session + c.version = c.session.version = session.version; + c.session.sp = session.sp; + } else { + // use highest compatible minor version + var version; + for(var i = 1; i < tls.SupportedVersions.length; ++i) { + version = tls.SupportedVersions[i]; + if(version.minor <= msg.version.minor) { + break; + } + } + c.version = {major: version.major, minor: version.minor}; + c.session.version = c.version; + } + + // if a session is set, resume it + if(session !== null) { + // resuming session, expect a ChangeCipherSpec next + c.expect = CCC; + c.session.resuming = true; + + // get new client random + c.session.sp.client_random = msg.random.bytes(); + } else { + // not resuming, expect a Certificate or ClientKeyExchange + c.expect = (c.verifyClient !== false) ? CCE : CKE; + c.session.resuming = false; + + // create new security parameters + tls.createSecurityParameters(c, msg); + } + + // connection now open + c.open = true; + + // queue server hello + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerHello(c) + })); + + if(c.session.resuming) { + // queue change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); + + // create pending state + c.state.pending = tls.createConnectionState(c); + + // change current write state to pending write state + c.state.current.write = c.state.pending.write; + + // queue finished + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + } else { + // queue server certificate + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificate(c) + })); + + if(!c.fail) { + // queue server key exchange + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerKeyExchange(c) + })); + + // request client certificate if set + if(c.verifyClient !== false) { + // queue certificate request + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificateRequest(c) + })); + } + + // queue server hello done + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerHelloDone(c) + })); + } + } + + // send records + tls.flush(c); + + // continue + c.process(); +}; + +/** + * Called when a client receives a Certificate record. + * + * When this message will be sent: + * The server must send a certificate whenever the agreed-upon key exchange + * method is not an anonymous one. This message will always immediately + * follow the server hello message. + * + * Meaning of this message: + * The certificate type must be appropriate for the selected cipher suite's + * key exchange algorithm, and is generally an X.509v3 certificate. It must + * contain a key which matches the key exchange method, as follows. Unless + * otherwise specified, the signing algorithm for the certificate must be + * the same as the algorithm for the certificate key. Unless otherwise + * specified, the public key may be of any length. + * + * opaque ASN.1Cert<1..2^24-1>; + * struct { + * ASN.1Cert certificate_list<1..2^24-1>; + * } Certificate; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificate = function(c, record, length) { + // minimum of 3 bytes in message + if(length < 3) { + return c.error(c, { + message: 'Invalid Certificate message. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + var b = record.fragment; + var msg = { + certificate_list: readVector(b, 3) + }; + + /* The sender's certificate will be first in the list (chain), each + subsequent one that follows will certify the previous one, but root + certificates (self-signed) that specify the certificate authority may + be omitted under the assumption that clients must already possess it. */ + var cert, asn1; + var certs = []; + try { + while(msg.certificate_list.length() > 0) { + // each entry in msg.certificate_list is a vector with 3 len bytes + cert = readVector(msg.certificate_list, 3); + asn1 = forge.asn1.fromDer(cert); + cert = forge.pki.certificateFromAsn1(asn1, true); + certs.push(cert); + } + } catch(ex) { + return c.error(c, { + message: 'Could not parse certificate list.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + } + }); + } + + // ensure at least 1 certificate was provided if in client-mode + // or if verifyClient was set to true to require a certificate + // (as opposed to 'optional') + var client = (c.entity === tls.ConnectionEnd.client); + if((client || c.verifyClient === true) && certs.length === 0) { + // error, no certificate + c.error(c, { + message: client ? + 'No server certificate provided.' : + 'No client certificate provided.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } else if(certs.length === 0) { + // no certs to verify + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; + } else { + // save certificate in session + if(client) { + c.session.serverCertificate = certs[0]; + } else { + c.session.clientCertificate = certs[0]; + } + + if(tls.verifyCertificateChain(c, certs)) { + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; + } + } + + // continue + c.process(); +}; + +/** + * Called when a client receives a ServerKeyExchange record. + * + * When this message will be sent: + * This message will be sent immediately after the server certificate + * message (or the server hello message, if this is an anonymous + * negotiation). + * + * The server key exchange message is sent by the server only when the + * server certificate message (if sent) does not contain enough data to + * allow the client to exchange a premaster secret. + * + * Meaning of this message: + * This message conveys cryptographic information to allow the client to + * communicate the premaster secret: either an RSA public key to encrypt + * the premaster secret with, or a Diffie-Hellman public key with which the + * client can complete a key exchange (with the result being the premaster + * secret.) + * + * enum { + * dhe_dss, dhe_rsa, dh_anon, rsa, dh_dss, dh_rsa + * } KeyExchangeAlgorithm; + * + * struct { + * opaque dh_p<1..2^16-1>; + * opaque dh_g<1..2^16-1>; + * opaque dh_Ys<1..2^16-1>; + * } ServerDHParams; + * + * struct { + * select(KeyExchangeAlgorithm) { + * case dh_anon: + * ServerDHParams params; + * case dhe_dss: + * case dhe_rsa: + * ServerDHParams params; + * digitally-signed struct { + * opaque client_random[32]; + * opaque server_random[32]; + * ServerDHParams params; + * } signed_params; + * case rsa: + * case dh_dss: + * case dh_rsa: + * struct {}; + * }; + * } ServerKeyExchange; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerKeyExchange = function(c, record, length) { + // this implementation only supports RSA, no Diffie-Hellman support + // so any length > 0 is invalid + if(length > 0) { + return c.error(c, { + message: 'Invalid key parameters. Only RSA is supported.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unsupported_certificate + } + }); + } + + // expect an optional CertificateRequest message next + c.expect = SCR; + + // continue + c.process(); +}; + +/** + * Called when a client receives a ClientKeyExchange record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleClientKeyExchange = function(c, record, length) { + // this implementation only supports RSA, no Diffie-Hellman support + // so any length < 48 is invalid + if(length < 48) { + return c.error(c, { + message: 'Invalid key parameters. Only RSA is supported.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unsupported_certificate + } + }); + } + + var b = record.fragment; + var msg = { + enc_pre_master_secret: readVector(b, 2).getBytes() + }; + + // do rsa decryption + var privateKey = null; + if(c.getPrivateKey) { + try { + privateKey = c.getPrivateKey(c, c.session.serverCertificate); + privateKey = forge.pki.privateKeyFromPem(privateKey); + } catch(ex) { + c.error(c, { + message: 'Could not get private key.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error } + }); } - dataproc_v1beta2.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; -})(dataproc_v1beta2 = exports.dataproc_v1beta2 || (exports.dataproc_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map + } -/***/ }), -/* 524 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { + if(privateKey === null) { + return c.error(c, { + message: 'No private key set.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + + try { + // decrypt 48-byte pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret); + + // ensure client hello version matches first 2 bytes + var version = c.session.clientHelloVersion; + if(version.major !== sp.pre_master_secret.charCodeAt(0) || + version.minor !== sp.pre_master_secret.charCodeAt(1)) { + // error, do not send alert (see BLEI attack below) + throw new Error('TLS version rollback attack detected.'); + } + } catch(ex) { + /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a + TLS server which is using PKCS#1 encoded RSA, so instead of + failing here, we generate 48 random bytes and use that as + the pre-master secret. */ + sp.pre_master_secret = forge.random.getBytes(48); + } + + // expect a CertificateVerify message if a Certificate was received that + // does not have fixed Diffie-Hellman params, otherwise expect + // ChangeCipherSpec + c.expect = CCC; + if(c.session.clientCertificate !== null) { + // only RSA support, so expect CertificateVerify + // TODO: support Diffie-Hellman + c.expect = CCV; + } + + // continue + c.process(); +}; + +/** + * Called when a client receives a CertificateRequest record. + * + * When this message will be sent: + * A non-anonymous server can optionally request a certificate from the + * client, if appropriate for the selected cipher suite. This message, if + * sent, will immediately follow the Server Key Exchange message (if it is + * sent; otherwise, the Server Certificate message). + * + * enum { + * rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4), + * rsa_ephemeral_dh_RESERVED(5), dss_ephemeral_dh_RESERVED(6), + * fortezza_dms_RESERVED(20), (255) + * } ClientCertificateType; + * + * opaque DistinguishedName<1..2^16-1>; + * + * struct { + * ClientCertificateType certificate_types<1..2^8-1>; + * SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>; + * DistinguishedName certificate_authorities<0..2^16-1>; + * } CertificateRequest; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificateRequest = function(c, record, length) { + // minimum of 3 bytes in message + if(length < 3) { + return c.error(c, { + message: 'Invalid CertificateRequest. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + // TODO: TLS 1.2+ has different format including + // SignatureAndHashAlgorithm after cert types + var b = record.fragment; + var msg = { + certificate_types: readVector(b, 1), + certificate_authorities: readVector(b, 2) + }; + + // save certificate request in session + c.session.certificateRequest = msg; + + // expect a ServerHelloDone message next + c.expect = SHD; + + // continue + c.process(); +}; + +/** + * Called when a server receives a CertificateVerify record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificateVerify = function(c, record, length) { + if(length < 2) { + return c.error(c, { + message: 'Invalid CertificateVerify. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + // rewind to get full bytes for message so it can be manually + // digested below (special case for CertificateVerify messages because + // they must be digested *after* handling as opposed to all others) + var b = record.fragment; + b.read -= 4; + var msgBytes = b.bytes(); + b.read += 4; + + var msg = { + signature: readVector(b, 2).getBytes() + }; + + // TODO: add support for DSA + + // generate data to verify + var verify = forge.util.createBuffer(); + verify.putBuffer(c.session.md5.digest()); + verify.putBuffer(c.session.sha1.digest()); + verify = verify.getBytes(); + + try { + var cert = c.session.clientCertificate; + /*b = forge.pki.rsa.decrypt( + msg.signature, cert.publicKey, true, verify.length); + if(b !== verify) {*/ + if(!cert.publicKey.verify(verify, msg.signature, 'NONE')) { + throw new Error('CertificateVerify signature does not match.'); + } + + // digest message now that it has been handled + c.session.md5.update(msgBytes); + c.session.sha1.update(msgBytes); + } catch(ex) { + return c.error(c, { + message: 'Bad signature in CertificateVerify.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.handshake_failure + } + }); + } + + // expect ChangeCipherSpec + c.expect = CCC; + + // continue + c.process(); +}; + +/** + * Called when a client receives a ServerHelloDone record. + * + * When this message will be sent: + * The server hello done message is sent by the server to indicate the end + * of the server hello and associated messages. After sending this message + * the server will wait for a client response. + * + * Meaning of this message: + * This message means that the server is done sending messages to support + * the key exchange, and the client can proceed with its phase of the key + * exchange. + * + * Upon receipt of the server hello done message the client should verify + * that the server provided a valid certificate if required and check that + * the server hello parameters are acceptable. + * + * struct {} ServerHelloDone; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerHelloDone = function(c, record, length) { + // len must be 0 bytes + if(length > 0) { + return c.error(c, { + message: 'Invalid ServerHelloDone message. Invalid length.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.record_overflow + } + }); + } + + if(c.serverCertificate === null) { + // no server certificate was provided + var error = { + message: 'No server certificate provided. Not enough security.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.insufficient_security + } + }; + + // call application callback + var depth = 0; + var ret = c.verify(c, error.alert.description, depth, []); + if(ret !== true) { + // check for custom alert info + if(ret || ret === 0) { + // set custom message and alert description + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + if(ret.message) { + error.message = ret.message; + } + if(ret.alert) { + error.alert.description = ret.alert; + } + } else if(typeof ret === 'number') { + // set custom alert description + error.alert.description = ret; + } + } + + // send error + return c.error(c, error); + } + } + + // create client certificate message if requested + if(c.session.certificateRequest !== null) { + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificate(c) + }); + tls.queue(c, record); + } + + // create client key exchange message + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientKeyExchange(c) + }); + tls.queue(c, record); + + // expect no messages until the following callback has been called + c.expect = SER; + + // create callback to handle client signature (for client-certs) + var callback = function(c, signature) { + if(c.session.certificateRequest !== null && + c.session.clientCertificate !== null) { + // create certificate verify message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificateVerify(c, signature) + })); + } + + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); + + // create pending state + c.state.pending = tls.createConnectionState(c); + + // change current write state to pending write state + c.state.current.write = c.state.pending.write; + + // create finished message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + + // expect a server ChangeCipherSpec message next + c.expect = SCC; + + // send records + tls.flush(c); + + // continue + c.process(); + }; + + // if there is no certificate request or no client certificate, do + // callback immediately + if(c.session.certificateRequest === null || + c.session.clientCertificate === null) { + return callback(c, null); + } + + // otherwise get the client signature + tls.getClientSignature(c, callback); +}; + +/** + * Called when a ChangeCipherSpec record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleChangeCipherSpec = function(c, record) { + if(record.fragment.getByte() !== 0x01) { + return c.error(c, { + message: 'Invalid ChangeCipherSpec message received.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + // create pending state if: + // 1. Resuming session in client mode OR + // 2. NOT resuming session in server mode + var client = (c.entity === tls.ConnectionEnd.client); + if((c.session.resuming && client) || (!c.session.resuming && !client)) { + c.state.pending = tls.createConnectionState(c); + } + + // change current read state to pending read state + c.state.current.read = c.state.pending.read; + + // clear pending state if: + // 1. NOT resuming session in client mode OR + // 2. resuming a session in server mode + if((!c.session.resuming && client) || (c.session.resuming && !client)) { + c.state.pending = null; + } + + // expect a Finished record next + c.expect = client ? SFI : CFI; + + // continue + c.process(); +}; + +/** + * Called when a Finished record is received. + * + * When this message will be sent: + * A finished message is always sent immediately after a change + * cipher spec message to verify that the key exchange and + * authentication processes were successful. It is essential that a + * change cipher spec message be received between the other + * handshake messages and the Finished message. + * + * Meaning of this message: + * The finished message is the first protected with the just- + * negotiated algorithms, keys, and secrets. Recipients of finished + * messages must verify that the contents are correct. Once a side + * has sent its Finished message and received and validated the + * Finished message from its peer, it may begin to send and receive + * application data over the connection. + * + * struct { + * opaque verify_data[verify_data_length]; + * } Finished; + * + * verify_data + * PRF(master_secret, finished_label, Hash(handshake_messages)) + * [0..verify_data_length-1]; + * + * finished_label + * For Finished messages sent by the client, the string + * "client finished". For Finished messages sent by the server, the + * string "server finished". + * + * verify_data_length depends on the cipher suite. If it is not specified + * by the cipher suite, then it is 12. Versions of TLS < 1.2 always used + * 12 bytes. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleFinished = function(c, record, length) { + // rewind to get full bytes for message so it can be manually + // digested below (special case for Finished messages because they + // must be digested *after* handling as opposed to all others) + var b = record.fragment; + b.read -= 4; + var msgBytes = b.bytes(); + b.read += 4; + + // message contains only verify_data + var vd = record.fragment.getBytes(); + + // ensure verify data is correct + b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); -"use strict"; + // set label based on entity type + var client = (c.entity === tls.ConnectionEnd.client); + var label = client ? 'server finished' : 'client finished'; + // TODO: determine prf function and verify length for TLS 1.2 + var sp = c.session.sp; + var vdl = 12; + var prf = prf_TLS1; + b = prf(sp.master_secret, label, b.getBytes(), vdl); + if(b.getBytes() !== vd) { + return c.error(c, { + message: 'Invalid verify_data in Finished message.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.decrypt_error + } + }); + } -Object.defineProperty(exports, '__esModule', { value: true }); + // digest finished message now that it has been handled + c.session.md5.update(msgBytes); + c.session.sha1.update(msgBytes); -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + // resuming session as client or NOT resuming session as server + if((c.session.resuming && client) || (!c.session.resuming && !client)) { + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); -var deprecation = __webpack_require__(692); -var once = _interopDefault(__webpack_require__(969)); + // change current write state to pending write state, clear pending + c.state.current.write = c.state.pending.write; + c.state.pending = null; -const logOnce = once(deprecation => console.warn(deprecation)); -/** - * Error with extra properties to help with debugging - */ + // create finished message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + } -class RequestError extends Error { - constructor(message, statusCode, options) { - super(message); // Maintains proper stack trace (only available on V8) + // expect application data next + c.expect = client ? SAD : CAD; - /* istanbul ignore next */ + // handshake complete + c.handshaking = false; + ++c.handshakes; - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } + // save access to peer certificate + c.peerCertificate = client ? + c.session.serverCertificate : c.session.clientCertificate; - this.name = "HttpError"; - this.status = statusCode; - Object.defineProperty(this, "code", { - get() { - logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); - return statusCode; - } + // send records + tls.flush(c); - }); - this.headers = options.headers || {}; // redact request credentials without mutating original request options + // now connected + c.isConnected = true; + c.connected(c); - const requestCopy = Object.assign({}, options.request); + // continue + c.process(); +}; - if (options.request.headers.authorization) { - requestCopy.headers = Object.assign({}, options.request.headers, { - authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") - }); - } +/** + * Called when an Alert record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleAlert = function(c, record) { + // read alert + var b = record.fragment; + var alert = { + level: b.getByte(), + description: b.getByte() + }; - requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit - // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications - .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended - // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header - .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); - this.request = requestCopy; + // TODO: consider using a table? + // get appropriate message + var msg; + switch(alert.description) { + case tls.Alert.Description.close_notify: + msg = 'Connection closed.'; + break; + case tls.Alert.Description.unexpected_message: + msg = 'Unexpected message.'; + break; + case tls.Alert.Description.bad_record_mac: + msg = 'Bad record MAC.'; + break; + case tls.Alert.Description.decryption_failed: + msg = 'Decryption failed.'; + break; + case tls.Alert.Description.record_overflow: + msg = 'Record overflow.'; + break; + case tls.Alert.Description.decompression_failure: + msg = 'Decompression failed.'; + break; + case tls.Alert.Description.handshake_failure: + msg = 'Handshake failure.'; + break; + case tls.Alert.Description.bad_certificate: + msg = 'Bad certificate.'; + break; + case tls.Alert.Description.unsupported_certificate: + msg = 'Unsupported certificate.'; + break; + case tls.Alert.Description.certificate_revoked: + msg = 'Certificate revoked.'; + break; + case tls.Alert.Description.certificate_expired: + msg = 'Certificate expired.'; + break; + case tls.Alert.Description.certificate_unknown: + msg = 'Certificate unknown.'; + break; + case tls.Alert.Description.illegal_parameter: + msg = 'Illegal parameter.'; + break; + case tls.Alert.Description.unknown_ca: + msg = 'Unknown certificate authority.'; + break; + case tls.Alert.Description.access_denied: + msg = 'Access denied.'; + break; + case tls.Alert.Description.decode_error: + msg = 'Decode error.'; + break; + case tls.Alert.Description.decrypt_error: + msg = 'Decrypt error.'; + break; + case tls.Alert.Description.export_restriction: + msg = 'Export restriction.'; + break; + case tls.Alert.Description.protocol_version: + msg = 'Unsupported protocol version.'; + break; + case tls.Alert.Description.insufficient_security: + msg = 'Insufficient security.'; + break; + case tls.Alert.Description.internal_error: + msg = 'Internal error.'; + break; + case tls.Alert.Description.user_canceled: + msg = 'User canceled.'; + break; + case tls.Alert.Description.no_renegotiation: + msg = 'Renegotiation not supported.'; + break; + default: + msg = 'Unknown error.'; + break; } -} + // close connection on close_notify, not an error + if(alert.description === tls.Alert.Description.close_notify) { + return c.close(); + } -exports.RequestError = RequestError; -//# sourceMappingURL=index.js.map + // call error handler + c.error(c, { + message: msg, + send: false, + // origin is the opposite end + origin: (c.entity === tls.ConnectionEnd.client) ? 'server' : 'client', + alert: alert + }); + // continue + c.process(); +}; -/***/ }), -/* 525 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * Called when a Handshake record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleHandshake = function(c, record) { + // get the handshake type and message length + var b = record.fragment; + var type = b.getByte(); + var length = b.getInt24(); -"use strict"; + // see if the record fragment doesn't yet contain the full message + if(length > b.length()) { + // cache the record, clear its fragment, and reset the buffer read + // pointer before the type and length were read + c.fragmented = record; + record.fragment = forge.util.createBuffer(); + b.read -= 4; -// 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.sheets_v4 = 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 = __webpack_require__(927); -var sheets_v4; -(function (sheets_v4) { - /** - * Google Sheets API - * - * Reads and writes Google Sheets. - * - * @example - * const {google} = require('googleapis'); - * const sheets = google.sheets('v4'); - * - * @namespace sheets - * @type {Function} - * @version v4 - * @variation v4 - * @param {object=} options Options for Sheets - */ - class Sheets { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.spreadsheets = new Resource$Spreadsheets(this.context); - } + // continue + return c.process(); + } + + // full message now available, clear cache, reset read pointer to + // before type and length + c.fragmented = null; + b.read -= 4; + + // save the handshake bytes for digestion after handler is found + // (include type and length of handshake msg) + var bytes = b.bytes(length + 4); + + // restore read pointer + b.read += 4; + + // handle expected message + if(type in hsTable[c.entity][c.expect]) { + // initialize server session + if(c.entity === tls.ConnectionEnd.server && !c.open && !c.fail) { + c.handshaking = true; + c.session = { + version: null, + extensions: { + server_name: { + serverNameList: [] + } + }, + cipherSuite: null, + compressionMethod: null, + serverCertificate: null, + clientCertificate: null, + md5: forge.md.md5.create(), + sha1: forge.md.sha1.create() + }; } - sheets_v4.Sheets = Sheets; - class Resource$Spreadsheets { - constructor(context) { - this.context = context; - this.developerMetadata = new Resource$Spreadsheets$Developermetadata(this.context); - this.sheets = new Resource$Spreadsheets$Sheets(this.context); - this.values = new Resource$Spreadsheets$Values(this.context); - } - batchUpdate(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - 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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets').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); - } - } - 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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - getByDataFilter(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:getByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + /* Update handshake messages digest. Finished and CertificateVerify + messages are not digested here. They can't be digested as part of + the verify_data that they contain. These messages are manually + digested in their handlers. HelloRequest messages are simply never + included in the handshake message digest according to spec. */ + if(type !== tls.HandshakeType.hello_request && + type !== tls.HandshakeType.certificate_verify && + type !== tls.HandshakeType.finished) { + c.session.md5.update(bytes); + c.session.sha1.update(bytes); } - sheets_v4.Resource$Spreadsheets = Resource$Spreadsheets; - class Resource$Spreadsheets$Developermetadata { - 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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['spreadsheetId', 'metadataId'], - pathParams: ['metadataId', 'spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - search(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/developerMetadata:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + // handle specific handshake type record + hsTable[c.entity][c.expect][type](c, record, length); + } else { + // unexpected record + tls.handleUnexpected(c, record); + } +}; + +/** + * Called when an ApplicationData record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleApplicationData = function(c, record) { + // buffer data, notify that its ready + c.data.putBuffer(record.fragment); + c.dataReady(c); + + // continue + c.process(); +}; + +/** + * Called when a Heartbeat record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleHeartbeat = function(c, record) { + // get the heartbeat type and payload + var b = record.fragment; + var type = b.getByte(); + var length = b.getInt16(); + var payload = b.getBytes(length); + + if(type === tls.HeartbeatMessageType.heartbeat_request) { + // discard request during handshake or if length is too large + if(c.handshaking || length > payload.length) { + // continue + return c.process(); } - sheets_v4.Resource$Spreadsheets$Developermetadata = Resource$Spreadsheets$Developermetadata; - class Resource$Spreadsheets$Sheets { - constructor(context) { - this.context = context; - } - copyTo(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId', 'sheetId'], - pathParams: ['sheetId', 'spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + // retransmit payload + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.heartbeat, + data: tls.createHeartbeat( + tls.HeartbeatMessageType.heartbeat_response, payload) + })); + tls.flush(c); + } else if(type === tls.HeartbeatMessageType.heartbeat_response) { + // check payload against expected payload, discard heartbeat if no match + if(payload !== c.expectedHeartbeatPayload) { + // continue + return c.process(); } - sheets_v4.Resource$Spreadsheets$Sheets = Resource$Spreadsheets$Sheets; - class Resource$Spreadsheets$Values { - constructor(context) { - this.context = context; - } - append(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:append').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - batchClear(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchClear').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - batchClearByDataFilter(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - batchGet(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - batchGetByDataFilter(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - batchUpdate(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - batchUpdateByDataFilter(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - clear(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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:clear').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], - 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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], - 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://sheets.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + + // notify that a valid heartbeat was received + if(c.heartbeatReceived) { + c.heartbeatReceived(c, forge.util.createBuffer(payload)); } - sheets_v4.Resource$Spreadsheets$Values = Resource$Spreadsheets$Values; -})(sheets_v4 = exports.sheets_v4 || (exports.sheets_v4 = {})); -//# sourceMappingURL=v4.js.map + } -/***/ }), -/* 526 */ -/***/ (function(module, __unusedexports, __webpack_require__) { + // continue + c.process(); +}; + +/** + * The transistional state tables for receiving TLS records. It maps the + * current TLS engine state and a received record to a function to handle the + * record and update the state. + * + * For instance, if the current state is SHE, then the TLS engine is expecting + * a ServerHello record. Once a record is received, the handler function is + * looked up using the state SHE and the record's content type. + * + * The resulting function will either be an error handler or a record handler. + * The function will take whatever action is appropriate and update the state + * for the next record. + * + * The states are all based on possible server record types. Note that the + * client will never specifically expect to receive a HelloRequest or an alert + * from the server so there is no state that reflects this. These messages may + * occur at any time. + * + * There are two tables for mapping states because there is a second tier of + * types for handshake messages. Once a record with a content type of handshake + * is received, the handshake record handler will look up the handshake type in + * the secondary map to get its appropriate handler. + * + * Valid message orders are as follows: + * + * =======================FULL HANDSHAKE====================== + * Client Server + * + * ClientHello --------> + * ServerHello + * Certificate* + * ServerKeyExchange* + * CertificateRequest* + * <-------- ServerHelloDone + * Certificate* + * ClientKeyExchange + * CertificateVerify* + * [ChangeCipherSpec] + * Finished --------> + * [ChangeCipherSpec] + * <-------- Finished + * Application Data <-------> Application Data + * + * =====================SESSION RESUMPTION===================== + * Client Server + * + * ClientHello --------> + * ServerHello + * [ChangeCipherSpec] + * <-------- Finished + * [ChangeCipherSpec] + * Finished --------> + * Application Data <-------> Application Data + */ +// client expect states (indicate which records are expected to be received) +var SHE = 0; // rcv server hello +var SCE = 1; // rcv server certificate +var SKE = 2; // rcv server key exchange +var SCR = 3; // rcv certificate request +var SHD = 4; // rcv server hello done +var SCC = 5; // rcv change cipher spec +var SFI = 6; // rcv finished +var SAD = 7; // rcv application data +var SER = 8; // not expecting any messages at this point + +// server expect states +var CHE = 0; // rcv client hello +var CCE = 1; // rcv client certificate +var CKE = 2; // rcv client key exchange +var CCV = 3; // rcv certificate verify +var CCC = 4; // rcv change cipher spec +var CFI = 5; // rcv finished +var CAD = 6; // rcv application data +var CER = 7; // not expecting any messages at this point + +// map client current expect state and content type to function +var __ = tls.handleUnexpected; +var R0 = tls.handleChangeCipherSpec; +var R1 = tls.handleAlert; +var R2 = tls.handleHandshake; +var R3 = tls.handleApplicationData; +var R4 = tls.handleHeartbeat; +var ctTable = []; +ctTable[tls.ConnectionEnd.client] = [ +// CC,AL,HS,AD,HB +/*SHE*/[__,R1,R2,__,R4], +/*SCE*/[__,R1,R2,__,R4], +/*SKE*/[__,R1,R2,__,R4], +/*SCR*/[__,R1,R2,__,R4], +/*SHD*/[__,R1,R2,__,R4], +/*SCC*/[R0,R1,__,__,R4], +/*SFI*/[__,R1,R2,__,R4], +/*SAD*/[__,R1,R2,R3,R4], +/*SER*/[__,R1,R2,__,R4] +]; + +// map server current expect state and content type to function +ctTable[tls.ConnectionEnd.server] = [ +// CC,AL,HS,AD +/*CHE*/[__,R1,R2,__,R4], +/*CCE*/[__,R1,R2,__,R4], +/*CKE*/[__,R1,R2,__,R4], +/*CCV*/[__,R1,R2,__,R4], +/*CCC*/[R0,R1,__,__,R4], +/*CFI*/[__,R1,R2,__,R4], +/*CAD*/[__,R1,R2,R3,R4], +/*CER*/[__,R1,R2,__,R4] +]; + +// map client current expect state and handshake type to function +var H0 = tls.handleHelloRequest; +var H1 = tls.handleServerHello; +var H2 = tls.handleCertificate; +var H3 = tls.handleServerKeyExchange; +var H4 = tls.handleCertificateRequest; +var H5 = tls.handleServerHelloDone; +var H6 = tls.handleFinished; +var hsTable = []; +hsTable[tls.ConnectionEnd.client] = [ +// HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI +/*SHE*/[__,__,H1,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SCE*/[H0,__,__,__,__,__,__,__,__,__,__,H2,H3,H4,H5,__,__,__,__,__,__], +/*SKE*/[H0,__,__,__,__,__,__,__,__,__,__,__,H3,H4,H5,__,__,__,__,__,__], +/*SCR*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,H4,H5,__,__,__,__,__,__], +/*SHD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,H5,__,__,__,__,__,__], +/*SCC*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SFI*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], +/*SAD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SER*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] +]; + +// map server current expect state and handshake type to function +// Note: CAD[CH] does not map to FB because renegotation is prohibited +var H7 = tls.handleClientHello; +var H8 = tls.handleClientKeyExchange; +var H9 = tls.handleCertificateVerify; +hsTable[tls.ConnectionEnd.server] = [ +// 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI +/*CHE*/[__,H7,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CCE*/[__,__,__,__,__,__,__,__,__,__,__,H2,__,__,__,__,__,__,__,__,__], +/*CKE*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H8,__,__,__,__], +/*CCV*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H9,__,__,__,__,__], +/*CCC*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CFI*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], +/*CAD*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CER*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] +]; /** - * Javascript implementation of basic RSA algorithms. + * Generates the master_secret and keys using the given security parameters. * - * @author Dave Longley + * The security parameters for a TLS connection state are defined as such: * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * struct { + * ConnectionEnd entity; + * PRFAlgorithm prf_algorithm; + * BulkCipherAlgorithm bulk_cipher_algorithm; + * CipherType cipher_type; + * uint8 enc_key_length; + * uint8 block_length; + * uint8 fixed_iv_length; + * uint8 record_iv_length; + * MACAlgorithm mac_algorithm; + * uint8 mac_length; + * uint8 mac_key_length; + * CompressionMethod compression_algorithm; + * opaque master_secret[48]; + * opaque client_random[32]; + * opaque server_random[32]; + * } SecurityParameters; * - * The only algorithm currently supported for PKI is RSA. + * Note that this definition is from TLS 1.2. In TLS 1.0 some of these + * parameters are ignored because, for instance, the PRFAlgorithm is a + * builtin-fixed algorithm combining iterations of MD5 and SHA-1 in TLS 1.0. * - * An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo - * ASN.1 structure is composed of an algorithm of type AlgorithmIdentifier - * and a subjectPublicKey of type bit string. + * The Record Protocol requires an algorithm to generate keys required by the + * current connection state. * - * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters - * for the algorithm, if any. In the case of RSA, there aren't any. + * The master secret is expanded into a sequence of secure bytes, which is then + * split to a client write MAC key, a server write MAC key, a client write + * encryption key, and a server write encryption key. In TLS 1.0 a client write + * IV and server write IV are also generated. Each of these is generated from + * the byte sequence in that order. Unused values are empty. In TLS 1.2, some + * AEAD ciphers may additionally require a client write IV and a server write + * IV (see Section 6.2.3.3). * - * SubjectPublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * subjectPublicKey BIT STRING - * } + * When keys, MAC keys, and IVs are generated, the master secret is used as an + * entropy source. * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } + * To generate the key material, compute: * - * For an RSA public key, the subjectPublicKey is: + * master_secret = PRF(pre_master_secret, "master secret", + * ClientHello.random + ServerHello.random) * - * RSAPublicKey ::= SEQUENCE { - * modulus INTEGER, -- n - * publicExponent INTEGER -- e - * } + * key_block = PRF(SecurityParameters.master_secret, + * "key expansion", + * SecurityParameters.server_random + + * SecurityParameters.client_random); * - * PrivateKeyInfo ::= SEQUENCE { - * version Version, - * privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, - * privateKey PrivateKey, - * attributes [0] IMPLICIT Attributes OPTIONAL - * } + * until enough output has been generated. Then, the key_block is + * partitioned as follows: * - * Version ::= INTEGER - * PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier - * PrivateKey ::= OCTET STRING - * Attributes ::= SET OF Attribute + * client_write_MAC_key[SecurityParameters.mac_key_length] + * server_write_MAC_key[SecurityParameters.mac_key_length] + * client_write_key[SecurityParameters.enc_key_length] + * server_write_key[SecurityParameters.enc_key_length] + * client_write_IV[SecurityParameters.fixed_iv_length] + * server_write_IV[SecurityParameters.fixed_iv_length] * - * An RSA private key as the following structure: + * In TLS 1.2, the client_write_IV and server_write_IV are only generated for + * implicit nonce techniques as described in Section 3.2.1 of [AEAD]. This + * implementation uses TLS 1.0 so IVs are generated. * - * RSAPrivateKey ::= SEQUENCE { - * version Version, - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * privateExponent INTEGER, -- d - * prime1 INTEGER, -- p - * prime2 INTEGER, -- q - * exponent1 INTEGER, -- d mod (p-1) - * exponent2 INTEGER, -- d mod (q-1) - * coefficient INTEGER -- (inverse of q) mod p - * } + * Implementation note: The currently defined cipher suite which requires the + * most material is AES_256_CBC_SHA256. It requires 2 x 32 byte keys and 2 x 32 + * byte MAC keys, for a total 128 bytes of key material. In TLS 1.0 it also + * requires 2 x 16 byte IVs, so it actually takes 160 bytes of key material. * - * Version ::= INTEGER + * @param c the connection. + * @param sp the security parameters to use. * - * The OID for the RSA key algorithm is: 1.2.840.113549.1.1.1 + * @return the security keys. */ -var forge = __webpack_require__(239); -__webpack_require__(784); -__webpack_require__(349); -__webpack_require__(988); -__webpack_require__(65); -__webpack_require__(137); -__webpack_require__(707); -__webpack_require__(54); +tls.generateKeys = function(c, sp) { + // TLS_RSA_WITH_AES_128_CBC_SHA (required to be compliant with TLS 1.2) & + // TLS_RSA_WITH_AES_256_CBC_SHA are the only cipher suites implemented + // at present -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} + // TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is required to be compliant with + // TLS 1.0 but we don't care right now because AES is better and we have + // an implementation for it -var _crypto = forge.util.isNodejs ? __webpack_require__(417) : null; + // TODO: TLS 1.2 implementation + /* + // determine the PRF + var prf; + switch(sp.prf_algorithm) { + case tls.PRFAlgorithm.tls_prf_sha256: + prf = prf_sha256; + break; + default: + // should never happen + throw new Error('Invalid PRF'); + } + */ -// shortcut for asn.1 API -var asn1 = forge.asn1; + // TLS 1.0/1.1 implementation + var prf = prf_TLS1; -// shortcut for util API -var util = forge.util; + // concatenate server and client random + var random = sp.client_random + sp.server_random; -/* - * RSA encryption and decryption, see RFC 2313. - */ -forge.pki = forge.pki || {}; -module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; -var pki = forge.pki; + // only create master secret if session is new + if(!c.session.resuming) { + // create master secret, clean up pre-master secret + sp.master_secret = prf( + sp.pre_master_secret, 'master secret', random, 48).bytes(); + sp.pre_master_secret = null; + } -// for finding primes, which are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 -var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; + // generate the amount of key material needed + random = sp.server_random + sp.client_random; + var length = 2 * sp.mac_key_length + 2 * sp.enc_key_length; -// validator for a PrivateKeyInfo structure -var privateKeyValidator = { - // PrivateKeyInfo - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'PrivateKeyInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // privateKeyAlgorithm - name: 'PrivateKeyInfo.privateKeyAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'privateKeyOid' - }] - }, { - // PrivateKey - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'privateKey' - }] -}; + // include IV for TLS/1.0 + var tls10 = (c.version.major === tls.Versions.TLS_1_0.major && + c.version.minor === tls.Versions.TLS_1_0.minor); + if(tls10) { + length += 2 * sp.fixed_iv_length; + } + var km = prf(sp.master_secret, 'key expansion', random, length); -// validator for an RSA private key -var rsaPrivateKeyValidator = { - // RSAPrivateKey - name: 'RSAPrivateKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'RSAPrivateKey.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // modulus (n) - name: 'RSAPrivateKey.modulus', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyModulus' - }, { - // publicExponent (e) - name: 'RSAPrivateKey.publicExponent', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPublicExponent' - }, { - // privateExponent (d) - name: 'RSAPrivateKey.privateExponent', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPrivateExponent' - }, { - // prime1 (p) - name: 'RSAPrivateKey.prime1', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPrime1' - }, { - // prime2 (q) - name: 'RSAPrivateKey.prime2', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPrime2' - }, { - // exponent1 (d mod (p-1)) - name: 'RSAPrivateKey.exponent1', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyExponent1' - }, { - // exponent2 (d mod (q-1)) - name: 'RSAPrivateKey.exponent2', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyExponent2' - }, { - // coefficient ((inverse of q) mod p) - name: 'RSAPrivateKey.coefficient', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyCoefficient' - }] -}; + // split the key material into the MAC and encryption keys + var rval = { + client_write_MAC_key: km.getBytes(sp.mac_key_length), + server_write_MAC_key: km.getBytes(sp.mac_key_length), + client_write_key: km.getBytes(sp.enc_key_length), + server_write_key: km.getBytes(sp.enc_key_length) + }; -// validator for an RSA public key -var rsaPublicKeyValidator = { - // RSAPublicKey - name: 'RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // modulus (n) - name: 'RSAPublicKey.modulus', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'publicKeyModulus' - }, { - // publicExponent (e) - name: 'RSAPublicKey.exponent', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'publicKeyExponent' - }] -}; + // include TLS 1.0 IVs + if(tls10) { + rval.client_write_IV = km.getBytes(sp.fixed_iv_length); + rval.server_write_IV = km.getBytes(sp.fixed_iv_length); + } -// validator for an SubjectPublicKeyInfo structure -// Note: Currently only works with an RSA public key -var publicKeyValidator = forge.pki.rsa.publicKeyValidator = { - name: 'SubjectPublicKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'subjectPublicKeyInfo', - value: [{ - name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'publicKeyOid' - }] - }, { - // subjectPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - value: [{ - // RSAPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'rsaPublicKey' - }] - }] + return rval; }; /** - * Wrap digest in DigestInfo object. - * - * This function implements EMSA-PKCS1-v1_5-ENCODE as per RFC 3447. + * Creates a new initialized TLS connection state. A connection state has + * a read mode and a write mode. * - * DigestInfo ::= SEQUENCE { - * digestAlgorithm DigestAlgorithmIdentifier, - * digest Digest - * } + * compression state: + * The current state of the compression algorithm. * - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * Digest ::= OCTET STRING + * cipher state: + * The current state of the encryption algorithm. This will consist of the + * scheduled key for that connection. For stream ciphers, this will also + * contain whatever state information is necessary to allow the stream to + * continue to encrypt or decrypt data. * - * @param md the message digest object with the hash to sign. + * MAC key: + * The MAC key for the connection. * - * @return the encoded message (ready for RSA encrytion) - */ -var emsaPkcs1v15encode = function(md) { - // get the oid for the algorithm - var oid; - if(md.algorithm in pki.oids) { - oid = pki.oids[md.algorithm]; - } else { - var error = new Error('Unknown message digest algorithm.'); - error.algorithm = md.algorithm; - throw error; - } - var oidBytes = asn1.oidToDer(oid).getBytes(); - - // create the digest info - var digestInfo = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var digestAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - digestAlgorithm.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OID, false, oidBytes)); - digestAlgorithm.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')); - var digest = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, - false, md.digest().getBytes()); - digestInfo.value.push(digestAlgorithm); - digestInfo.value.push(digest); - - // encode digest info - return asn1.toDer(digestInfo).getBytes(); -}; - -/** - * Performs x^c mod n (RSA encryption or decryption operation). + * sequence number: + * Each connection state contains a sequence number, which is maintained + * separately for read and write states. The sequence number MUST be set to + * zero whenever a connection state is made the active state. Sequence + * numbers are of type uint64 and may not exceed 2^64-1. Sequence numbers do + * not wrap. If a TLS implementation would need to wrap a sequence number, + * it must renegotiate instead. A sequence number is incremented after each + * record: specifically, the first record transmitted under a particular + * connection state MUST use sequence number 0. * - * @param x the number to raise and mod. - * @param key the key to use. - * @param pub true if the key is public, false if private. + * @param c the connection. * - * @return the result of x^c mod n. + * @return the new initialized TLS connection state. */ -var _modPow = function(x, key, pub) { - if(pub) { - return x.modPow(key.e, key.n); - } - - if(!key.p || !key.q) { - // allow calculation without CRT params (slow) - return x.modPow(key.d, key.n); - } - - // pre-compute dP, dQ, and qInv if necessary - if(!key.dP) { - key.dP = key.d.mod(key.p.subtract(BigInteger.ONE)); - } - if(!key.dQ) { - key.dQ = key.d.mod(key.q.subtract(BigInteger.ONE)); - } - if(!key.qInv) { - key.qInv = key.q.modInverse(key.p); - } - - /* Chinese remainder theorem (CRT) states: - - Suppose n1, n2, ..., nk are positive integers which are pairwise - coprime (n1 and n2 have no common factors other than 1). For any - integers x1, x2, ..., xk there exists an integer x solving the - system of simultaneous congruences (where ~= means modularly - congruent so a ~= b mod n means a mod n = b mod n): - - x ~= x1 mod n1 - x ~= x2 mod n2 - ... - x ~= xk mod nk - - This system of congruences has a single simultaneous solution x - between 0 and n - 1. Furthermore, each xk solution and x itself - is congruent modulo the product n = n1*n2*...*nk. - So x1 mod n = x2 mod n = xk mod n = x mod n. - - The single simultaneous solution x can be solved with the following - equation: - - x = sum(xi*ri*si) mod n where ri = n/ni and si = ri^-1 mod ni. - - Where x is less than n, xi = x mod ni. - - For RSA we are only concerned with k = 2. The modulus n = pq, where - p and q are coprime. The RSA decryption algorithm is: - - y = x^d mod n - - Given the above: - - x1 = x^d mod p - r1 = n/p = q - s1 = q^-1 mod p - x2 = x^d mod q - r2 = n/q = p - s2 = p^-1 mod q - - So y = (x1r1s1 + x2r2s2) mod n - = ((x^d mod p)q(q^-1 mod p) + (x^d mod q)p(p^-1 mod q)) mod n - - According to Fermat's Little Theorem, if the modulus P is prime, - for any integer A not evenly divisible by P, A^(P-1) ~= 1 mod P. - Since A is not divisible by P it follows that if: - N ~= M mod (P - 1), then A^N mod P = A^M mod P. Therefore: - - A^N mod P = A^(M mod (P - 1)) mod P. (The latter takes less effort - to calculate). In order to calculate x^d mod p more quickly the - exponent d mod (p - 1) is stored in the RSA private key (the same - is done for x^d mod q). These values are referred to as dP and dQ - respectively. Therefore we now have: - - y = ((x^dP mod p)q(q^-1 mod p) + (x^dQ mod q)p(p^-1 mod q)) mod n - - Since we'll be reducing x^dP by modulo p (same for q) we can also - reduce x by p (and q respectively) before hand. Therefore, let - - xp = ((x mod p)^dP mod p), and - xq = ((x mod q)^dQ mod q), yielding: +tls.createConnectionState = function(c) { + var client = (c.entity === tls.ConnectionEnd.client); - y = (xp*q*(q^-1 mod p) + xq*p*(p^-1 mod q)) mod n + var createMode = function() { + var mode = { + // two 32-bit numbers, first is most significant + sequenceNumber: [0, 0], + macKey: null, + macLength: 0, + macFunction: null, + cipherState: null, + cipherFunction: function(record) {return true;}, + compressionState: null, + compressFunction: function(record) {return true;}, + updateSequenceNumber: function() { + if(mode.sequenceNumber[1] === 0xFFFFFFFF) { + mode.sequenceNumber[1] = 0; + ++mode.sequenceNumber[0]; + } else { + ++mode.sequenceNumber[1]; + } + } + }; + return mode; + }; + var state = { + read: createMode(), + write: createMode() + }; - This can be further reduced to a simple algorithm that only - requires 1 inverse (the q inverse is used) to be used and stored. - The algorithm is called Garner's algorithm. If qInv is the - inverse of q, we simply calculate: + // update function in read mode will decrypt then decompress a record + state.read.update = function(c, record) { + if(!state.read.cipherFunction(record, state.read)) { + c.error(c, { + message: 'Could not decrypt record or bad MAC.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + // doesn't matter if decryption failed or MAC was + // invalid, return the same error so as not to reveal + // which one occurred + description: tls.Alert.Description.bad_record_mac + } + }); + } else if(!state.read.compressFunction(c, record, state.read)) { + c.error(c, { + message: 'Could not decompress record.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.decompression_failure + } + }); + } + return !c.fail; + }; - y = (qInv*(xp - xq) mod p) * q + xq + // update function in write mode will compress then encrypt a record + state.write.update = function(c, record) { + if(!state.write.compressFunction(c, record, state.write)) { + // error, but do not send alert since it would require + // compression as well + c.error(c, { + message: 'Could not compress record.', + send: false, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } else if(!state.write.cipherFunction(record, state.write)) { + // error, but do not send alert since it would require + // encryption as well + c.error(c, { + message: 'Could not encrypt record.', + send: false, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + return !c.fail; + }; - However, there are two further complications. First, we need to - ensure that xp > xq to prevent signed BigIntegers from being used - so we add p until this is true (since we will be mod'ing with - p anyway). Then, there is a known timing attack on algorithms - using the CRT. To mitigate this risk, "cryptographic blinding" - should be used. This requires simply generating a random number r - between 0 and n-1 and its inverse and multiplying x by r^e before - calculating y and then multiplying y by r^-1 afterwards. Note that - r must be coprime with n (gcd(r, n) === 1) in order to have an - inverse. - */ + // handle security parameters + if(c.session) { + var sp = c.session.sp; + c.session.cipherSuite.initSecurityParameters(sp); - // cryptographic blinding - var r; - do { - r = new BigInteger( - forge.util.bytesToHex(forge.random.getBytes(key.n.bitLength() / 8)), - 16); - } while(r.compareTo(key.n) >= 0 || !r.gcd(key.n).equals(BigInteger.ONE)); - x = x.multiply(r.modPow(key.e, key.n)).mod(key.n); + // generate keys + sp.keys = tls.generateKeys(c, sp); + state.read.macKey = client ? + sp.keys.server_write_MAC_key : sp.keys.client_write_MAC_key; + state.write.macKey = client ? + sp.keys.client_write_MAC_key : sp.keys.server_write_MAC_key; - // calculate xp and xq - var xp = x.mod(key.p).modPow(key.dP, key.p); - var xq = x.mod(key.q).modPow(key.dQ, key.q); + // cipher suite setup + c.session.cipherSuite.initConnectionState(state, c, sp); - // xp must be larger than xq to avoid signed bit usage - while(xp.compareTo(xq) < 0) { - xp = xp.add(key.p); + // compression setup + switch(sp.compression_algorithm) { + case tls.CompressionMethod.none: + break; + case tls.CompressionMethod.deflate: + state.read.compressFunction = inflate; + state.write.compressFunction = deflate; + break; + default: + throw new Error('Unsupported compression algorithm.'); + } } - // do last step - var y = xp.subtract(xq) - .multiply(key.qInv).mod(key.p) - .multiply(key.q).add(xq); - - // remove effect of random for cryptographic blinding - y = y.multiply(r.modInverse(key.n)).mod(key.n); - - return y; + return state; }; /** - * NOTE: THIS METHOD IS DEPRECATED, use 'sign' on a private key object or - * 'encrypt' on a public key object instead. + * Creates a Random structure. * - * Performs RSA encryption. + * struct { + * uint32 gmt_unix_time; + * opaque random_bytes[28]; + * } Random; * - * The parameter bt controls whether to put padding bytes before the - * message passed in. Set bt to either true or false to disable padding - * completely (in order to handle e.g. EMSA-PSS encoding seperately before), - * signaling whether the encryption operation is a public key operation - * (i.e. encrypting data) or not, i.e. private key operation (data signing). + * gmt_unix_time: + * The current time and date in standard UNIX 32-bit format (seconds since + * the midnight starting Jan 1, 1970, UTC, ignoring leap seconds) according + * to the sender's internal clock. Clocks are not required to be set + * correctly by the basic TLS protocol; higher-level or application + * protocols may define additional requirements. Note that, for historical + * reasons, the data element is named using GMT, the predecessor of the + * current worldwide time base, UTC. + * random_bytes: + * 28 bytes generated by a secure random number generator. * - * For PKCS#1 v1.5 padding pass in the block type to use, i.e. either 0x01 - * (for signing) or 0x02 (for encryption). The key operation mode (private - * or public) is derived from this flag in that case). + * @return the Random structure as a byte array. + */ +tls.createRandom = function() { + // get UTC milliseconds + var d = new Date(); + var utc = +d + d.getTimezoneOffset() * 60000; + var rval = forge.util.createBuffer(); + rval.putInt32(utc); + rval.putBytes(forge.random.getBytes(28)); + return rval; +}; + +/** + * Creates a TLS record with the given type and data. * - * @param m the message to encrypt as a byte string. - * @param key the RSA key to use. - * @param bt for PKCS#1 v1.5 padding, the block type to use - * (0x01 for private key, 0x02 for public), - * to disable padding: true = public key, false = private key. + * @param c the connection. + * @param options: + * type: the record type. + * data: the plain text data in a byte buffer. * - * @return the encrypted bytes as a string. + * @return the created record. */ -pki.rsa.encrypt = function(m, key, bt) { - var pub = bt; - var eb; - - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); - - if(bt !== false && bt !== true) { - // legacy, default to PKCS#1 v1.5 padding - pub = (bt === 0x02); - eb = _encodePkcs1_v1_5(m, key, bt); - } else { - eb = forge.util.createBuffer(); - eb.putBytes(m); +tls.createRecord = function(c, options) { + if(!options.data) { + return null; } + var record = { + type: options.type, + version: { + major: c.version.major, + minor: c.version.minor + }, + length: options.data.length(), + fragment: options.data + }; + return record; +}; - // load encryption block as big integer 'x' - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var x = new BigInteger(eb.toHex(), 16); - - // do RSA encryption - var y = _modPow(x, key, pub); - - // convert y into the encrypted data byte string, if y is shorter in - // bytes than k, then prepend zero bytes to fill up ed - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var yhex = y.toString(16); - var ed = forge.util.createBuffer(); - var zeros = k - Math.ceil(yhex.length / 2); - while(zeros > 0) { - ed.putByte(0x00); - --zeros; - } - ed.putBytes(forge.util.hexToBytes(yhex)); - return ed.getBytes(); +/** + * Creates a TLS alert record. + * + * @param c the connection. + * @param alert: + * level: the TLS alert level. + * description: the TLS alert description. + * + * @return the created alert record. + */ +tls.createAlert = function(c, alert) { + var b = forge.util.createBuffer(); + b.putByte(alert.level); + b.putByte(alert.description); + return tls.createRecord(c, { + type: tls.ContentType.alert, + data: b + }); }; +/* The structure of a TLS handshake message. + * + * struct { + * HandshakeType msg_type; // handshake type + * uint24 length; // bytes in message + * select(HandshakeType) { + * case hello_request: HelloRequest; + * case client_hello: ClientHello; + * case server_hello: ServerHello; + * case certificate: Certificate; + * case server_key_exchange: ServerKeyExchange; + * case certificate_request: CertificateRequest; + * case server_hello_done: ServerHelloDone; + * case certificate_verify: CertificateVerify; + * case client_key_exchange: ClientKeyExchange; + * case finished: Finished; + * } body; + * } Handshake; + */ + /** - * NOTE: THIS METHOD IS DEPRECATED, use 'decrypt' on a private key object or - * 'verify' on a public key object instead. + * Creates a ClientHello message. * - * Performs RSA decryption. + * opaque SessionID<0..32>; + * enum { null(0), deflate(1), (255) } CompressionMethod; + * uint8 CipherSuite[2]; * - * The parameter ml controls whether to apply PKCS#1 v1.5 padding - * or not. Set ml = false to disable padding removal completely - * (in order to handle e.g. EMSA-PSS later on) and simply pass back - * the RSA encryption block. + * struct { + * ProtocolVersion client_version; + * Random random; + * SessionID session_id; + * CipherSuite cipher_suites<2..2^16-2>; + * CompressionMethod compression_methods<1..2^8-1>; + * select(extensions_present) { + * case false: + * struct {}; + * case true: + * Extension extensions<0..2^16-1>; + * }; + * } ClientHello; * - * @param ed the encrypted data to decrypt in as a byte string. - * @param key the RSA key to use. - * @param pub true for a public key operation, false for private. - * @param ml the message length, if known, false to disable padding. + * The extension format for extended client hellos and server hellos is: * - * @return the decrypted message as a byte string. + * struct { + * ExtensionType extension_type; + * opaque extension_data<0..2^16-1>; + * } Extension; + * + * Here: + * + * - "extension_type" identifies the particular extension type. + * - "extension_data" contains information specific to the particular + * extension type. + * + * The extension types defined in this document are: + * + * enum { + * server_name(0), max_fragment_length(1), + * client_certificate_url(2), trusted_ca_keys(3), + * truncated_hmac(4), status_request(5), (65535) + * } ExtensionType; + * + * @param c the connection. + * + * @return the ClientHello byte buffer. */ -pki.rsa.decrypt = function(ed, key, pub, ml) { - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); +tls.createClientHello = function(c) { + // save hello version + c.session.clientHelloVersion = { + major: c.version.major, + minor: c.version.minor + }; - // error if the length of the encrypted data ED is not k - if(ed.length !== k) { - var error = new Error('Encrypted message length is invalid.'); - error.length = ed.length; - error.expected = k; - throw error; + // create supported cipher suites + var cipherSuites = forge.util.createBuffer(); + for(var i = 0; i < c.cipherSuites.length; ++i) { + var cs = c.cipherSuites[i]; + cipherSuites.putByte(cs.id[0]); + cipherSuites.putByte(cs.id[1]); } + var cSuites = cipherSuites.length(); - // convert encrypted data into a big integer - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var y = new BigInteger(forge.util.createBuffer(ed).toHex(), 16); - - // y must be less than the modulus or it wasn't the result of - // a previous mod operation (encryption) using that modulus - if(y.compareTo(key.n) >= 0) { - throw new Error('Encrypted message is invalid.'); + // create supported compression methods, null always supported, but + // also support deflate if connection has inflate and deflate methods + var compressionMethods = forge.util.createBuffer(); + compressionMethods.putByte(tls.CompressionMethod.none); + // FIXME: deflate support disabled until issues with raw deflate data + // without zlib headers are resolved + /* + if(c.inflate !== null && c.deflate !== null) { + compressionMethods.putByte(tls.CompressionMethod.deflate); } + */ + var cMethods = compressionMethods.length(); - // do RSA decryption - var x = _modPow(y, key, pub); + // create TLS SNI (server name indication) extension if virtual host + // has been specified, see RFC 3546 + var extensions = forge.util.createBuffer(); + if(c.virtualHost) { + // create extension struct + var ext = forge.util.createBuffer(); + ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes) + ext.putByte(0x00); - // create the encryption block, if x is shorter in bytes than k, then - // prepend zero bytes to fill up eb - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var xhex = x.toString(16); - var eb = forge.util.createBuffer(); - var zeros = k - Math.ceil(xhex.length / 2); - while(zeros > 0) { - eb.putByte(0x00); - --zeros; + /* In order to provide the server name, clients MAY include an + * extension of type "server_name" in the (extended) client hello. + * The "extension_data" field of this extension SHALL contain + * "ServerNameList" where: + * + * struct { + * NameType name_type; + * select(name_type) { + * case host_name: HostName; + * } name; + * } ServerName; + * + * enum { + * host_name(0), (255) + * } NameType; + * + * opaque HostName<1..2^16-1>; + * + * struct { + * ServerName server_name_list<1..2^16-1> + * } ServerNameList; + */ + var serverName = forge.util.createBuffer(); + serverName.putByte(0x00); // type host_name + writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost)); + + // ServerNameList is in extension_data + var snList = forge.util.createBuffer(); + writeVector(snList, 2, serverName); + writeVector(ext, 2, snList); + extensions.putBuffer(ext); + } + var extLength = extensions.length(); + if(extLength > 0) { + // add extension vector length + extLength += 2; } - eb.putBytes(forge.util.hexToBytes(xhex)); - if(ml !== false) { - // legacy, default to PKCS#1 v1.5 padding - return _decodePkcs1_v1_5(eb.getBytes(), key, pub); + // determine length of the handshake message + // cipher suites and compression methods size will need to be + // updated if more get added to the list + var sessionId = c.session.id; + var length = + sessionId.length + 1 + // session ID vector + 2 + // version (major + minor) + 4 + 28 + // random time and random bytes + 2 + cSuites + // cipher suites vector + 1 + cMethods + // compression methods vector + extLength; // extensions vector + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.client_hello); + rval.putInt24(length); // handshake length + rval.putByte(c.version.major); // major version + rval.putByte(c.version.minor); // minor version + rval.putBytes(c.session.sp.client_random); // random time + bytes + writeVector(rval, 1, forge.util.createBuffer(sessionId)); + writeVector(rval, 2, cipherSuites); + writeVector(rval, 1, compressionMethods); + if(extLength > 0) { + writeVector(rval, 2, extensions); } + return rval; +}; - // return message - return eb.getBytes(); +/** + * Creates a ServerHello message. + * + * @param c the connection. + * + * @return the ServerHello byte buffer. + */ +tls.createServerHello = function(c) { + // determine length of the handshake message + var sessionId = c.session.id; + var length = + sessionId.length + 1 + // session ID vector + 2 + // version (major + minor) + 4 + 28 + // random time and random bytes + 2 + // chosen cipher suite + 1; // chosen compression method + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.server_hello); + rval.putInt24(length); // handshake length + rval.putByte(c.version.major); // major version + rval.putByte(c.version.minor); // minor version + rval.putBytes(c.session.sp.server_random); // random time + bytes + writeVector(rval, 1, forge.util.createBuffer(sessionId)); + rval.putByte(c.session.cipherSuite.id[0]); + rval.putByte(c.session.cipherSuite.id[1]); + rval.putByte(c.session.compressionMethod); + return rval; }; /** - * Creates an RSA key-pair generation state object. It is used to allow - * key-generation to be performed in steps. It also allows for a UI to - * display progress updates. + * Creates a Certificate message. * - * @param bits the size for the private key in bits, defaults to 2048. - * @param e the public exponent to use, defaults to 65537 (0x10001). - * @param [options] the options to use. - * prng a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". - * algorithm the algorithm to use (default: 'PRIMEINC'). + * When this message will be sent: + * This is the first message the client can send after receiving a server + * hello done message and the first message the server can send after + * sending a ServerHello. This client message is only sent if the server + * requests a certificate. If no suitable certificate is available, the + * client should send a certificate message containing no certificates. If + * client authentication is required by the server for the handshake to + * continue, it may respond with a fatal handshake failure alert. + * + * opaque ASN.1Cert<1..2^24-1>; + * + * struct { + * ASN.1Cert certificate_list<0..2^24-1>; + * } Certificate; + * + * @param c the connection. * - * @return the state object to use to generate the key-pair. + * @return the Certificate byte buffer. */ -pki.rsa.createKeyPairGenerationState = function(bits, e, options) { - // TODO: migrate step-based prime generation code to forge.prime +tls.createCertificate = function(c) { + // TODO: check certificate request to ensure types are supported - // set default bits - if(typeof(bits) === 'string') { - bits = parseInt(bits, 10); + // get a certificate (a certificate as a PEM string) + var client = (c.entity === tls.ConnectionEnd.client); + var cert = null; + if(c.getCertificate) { + var hint; + if(client) { + hint = c.session.certificateRequest; + } else { + hint = c.session.extensions.server_name.serverNameList; + } + cert = c.getCertificate(c, hint); } - bits = bits || 2048; - // create prng with api that matches BigInteger secure random - options = options || {}; - var prng = options.prng || forge.random; - var rng = { - // x is an array to fill with bytes - nextBytes: function(x) { - var b = prng.getBytesSync(x.length); - for(var i = 0; i < x.length; ++i) { - x[i] = b.charCodeAt(i); + // buffer to hold certificate list + var certList = forge.util.createBuffer(); + if(cert !== null) { + try { + // normalize cert to a chain of certificates + if(!forge.util.isArray(cert)) { + cert = [cert]; } - } - }; + var asn1 = null; + for(var i = 0; i < cert.length; ++i) { + var msg = forge.pem.decode(cert[i])[0]; + if(msg.type !== 'CERTIFICATE' && + msg.type !== 'X509 CERTIFICATE' && + msg.type !== 'TRUSTED CERTIFICATE') { + var error = new Error('Could not convert certificate from PEM; PEM ' + + 'header type is not "CERTIFICATE", "X509 CERTIFICATE", or ' + + '"TRUSTED CERTIFICATE".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + } - var algorithm = options.algorithm || 'PRIMEINC'; + var der = forge.util.createBuffer(msg.body); + if(asn1 === null) { + asn1 = forge.asn1.fromDer(der.bytes(), false); + } - // create PRIMEINC algorithm state - var rval; - if(algorithm === 'PRIMEINC') { - rval = { - algorithm: algorithm, - state: 0, - bits: bits, - rng: rng, - eInt: e || 65537, - e: new BigInteger(null), - p: null, - q: null, - qBits: bits >> 1, - pBits: bits - (bits >> 1), - pqState: 0, - num: null, - keys: null - }; - rval.e.fromInt(rval.eInt); - } else { - throw new Error('Invalid key generation algorithm: ' + algorithm); + // certificate entry is itself a vector with 3 length bytes + var certBuffer = forge.util.createBuffer(); + writeVector(certBuffer, 3, der); + + // add cert vector to cert list vector + certList.putBuffer(certBuffer); + } + + // save certificate + cert = forge.pki.certificateFromAsn1(asn1); + if(client) { + c.session.clientCertificate = cert; + } else { + c.session.serverCertificate = cert; + } + } catch(ex) { + return c.error(c, { + message: 'Could not send certificate list.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + } + }); + } } + // determine length of the handshake message + var length = 3 + certList.length(); // cert list vector + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate); + rval.putInt24(length); + writeVector(rval, 3, certList); return rval; }; /** - * Attempts to runs the key-generation algorithm for at most n seconds - * (approximately) using the given state. When key-generation has completed, - * the keys will be stored in state.keys. + * Creates a ClientKeyExchange message. * - * To use this function to update a UI while generating a key or to prevent - * causing browser lockups/warnings, set "n" to a value other than 0. A - * simple pattern for generating a key and showing a progress indicator is: + * When this message will be sent: + * This message is always sent by the client. It will immediately follow the + * client certificate message, if it is sent. Otherwise it will be the first + * message sent by the client after it receives the server hello done + * message. * - * var state = pki.rsa.createKeyPairGenerationState(2048); - * var step = function() { - * // step key-generation, run algorithm for 100 ms, repeat - * if(!forge.pki.rsa.stepKeyPairGenerationState(state, 100)) { - * setTimeout(step, 1); - * } else { - * // key-generation complete - * // TODO: turn off progress indicator here - * // TODO: use the generated key-pair in "state.keys" - * } - * }; - * // TODO: turn on progress indicator here - * setTimeout(step, 0); + * Meaning of this message: + * With this message, the premaster secret is set, either though direct + * transmission of the RSA-encrypted secret, or by the transmission of + * Diffie-Hellman parameters which will allow each side to agree upon the + * same premaster secret. When the key exchange method is DH_RSA or DH_DSS, + * client certification has been requested, and the client was able to + * respond with a certificate which contained a Diffie-Hellman public key + * whose parameters (group and generator) matched those specified by the + * server in its certificate, this message will not contain any data. * - * @param state the state to use. - * @param n the maximum number of milliseconds to run the algorithm for, 0 - * to run the algorithm to completion. + * Meaning of this message: + * If RSA is being used for key agreement and authentication, the client + * generates a 48-byte premaster secret, encrypts it using the public key + * from the server's certificate or the temporary RSA key provided in a + * server key exchange message, and sends the result in an encrypted + * premaster secret message. This structure is a variant of the client + * key exchange message, not a message in itself. * - * @return true if the key-generation completed, false if not. + * struct { + * select(KeyExchangeAlgorithm) { + * case rsa: EncryptedPreMasterSecret; + * case diffie_hellman: ClientDiffieHellmanPublic; + * } exchange_keys; + * } ClientKeyExchange; + * + * struct { + * ProtocolVersion client_version; + * opaque random[46]; + * } PreMasterSecret; + * + * struct { + * public-key-encrypted PreMasterSecret pre_master_secret; + * } EncryptedPreMasterSecret; + * + * A public-key-encrypted element is encoded as a vector <0..2^16-1>. + * + * @param c the connection. + * + * @return the ClientKeyExchange byte buffer. */ -pki.rsa.stepKeyPairGenerationState = function(state, n) { - // set default algorithm if not set - if(!('algorithm' in state)) { - state.algorithm = 'PRIMEINC'; - } - - // TODO: migrate step-based prime generation code to forge.prime - // TODO: abstract as PRIMEINC algorithm +tls.createClientKeyExchange = function(c) { + // create buffer to encrypt + var b = forge.util.createBuffer(); - // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) - // with some minor optimizations and designed to run in steps + // add highest client-supported protocol to help server avoid version + // rollback attacks + b.putByte(c.session.clientHelloVersion.major); + b.putByte(c.session.clientHelloVersion.minor); - // local state vars - var THIRTY = new BigInteger(null); - THIRTY.fromInt(30); - var deltaIdx = 0; - var op_or = function(x, y) {return x | y;}; + // generate and add 46 random bytes + b.putBytes(forge.random.getBytes(46)); - // keep stepping until time limit is reached or done - var t1 = +new Date(); - var t2; - var total = 0; - while(state.keys === null && (n <= 0 || total < n)) { - // generate p or q - if(state.state === 0) { - /* Note: All primes are of the form: + // save pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = b.getBytes(); - 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i + // RSA-encrypt the pre-master secret + var key = c.session.serverCertificate.publicKey; + b = key.encrypt(sp.pre_master_secret); - When we generate a random number, we always align it at 30k + 1. Each - time the number is determined not to be prime we add to get to the - next 'i', eg: if the number was at 30k + 1 we add 6. */ - var bits = (state.p === null) ? state.pBits : state.qBits; - var bits1 = bits - 1; + /* Note: The encrypted pre-master secret will be stored in a + public-key-encrypted opaque vector that has the length prefixed using + 2 bytes, so include those 2 bytes in the handshake message length. This + is done as a minor optimization instead of calling writeVector(). */ - // get a random number - if(state.pqState === 0) { - state.num = new BigInteger(bits, state.rng); - // force MSB set - if(!state.num.testBit(bits1)) { - state.num.bitwiseTo( - BigInteger.ONE.shiftLeft(bits1), op_or, state.num); - } - // align number on 30k+1 boundary - state.num.dAddOffset(31 - state.num.mod(THIRTY).byteValue(), 0); - deltaIdx = 0; + // determine length of the handshake message + var length = b.length + 2; - ++state.pqState; - } else if(state.pqState === 1) { - // try to make the number a prime - if(state.num.bitLength() > bits) { - // overflow, try again - state.pqState = 0; - // do primality test - } else if(state.num.isProbablePrime( - _getMillerRabinTests(state.num.bitLength()))) { - ++state.pqState; - } else { - // get next potential prime - state.num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); - } - } else if(state.pqState === 2) { - // ensure number is coprime with e - state.pqState = - (state.num.subtract(BigInteger.ONE).gcd(state.e) - .compareTo(BigInteger.ONE) === 0) ? 3 : 0; - } else if(state.pqState === 3) { - // store p or q - state.pqState = 0; - if(state.p === null) { - state.p = state.num; - } else { - state.q = state.num; - } + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.client_key_exchange); + rval.putInt24(length); + // add vector length bytes + rval.putInt16(b.length); + rval.putBytes(b); + return rval; +}; - // advance state if both p and q are ready - if(state.p !== null && state.q !== null) { - ++state.state; - } - state.num = null; - } - } else if(state.state === 1) { - // ensure p is larger than q (swap them if not) - if(state.p.compareTo(state.q) < 0) { - state.num = state.p; - state.p = state.q; - state.q = state.num; - } - ++state.state; - } else if(state.state === 2) { - // compute phi: (p - 1)(q - 1) (Euler's totient function) - state.p1 = state.p.subtract(BigInteger.ONE); - state.q1 = state.q.subtract(BigInteger.ONE); - state.phi = state.p1.multiply(state.q1); - ++state.state; - } else if(state.state === 3) { - // ensure e and phi are coprime - if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) === 0) { - // phi and e are coprime, advance - ++state.state; - } else { - // phi and e aren't coprime, so generate a new p and q - state.p = null; - state.q = null; - state.state = 0; - } - } else if(state.state === 4) { - // create n, ensure n is has the right number of bits - state.n = state.p.multiply(state.q); +/** + * Creates a ServerKeyExchange message. + * + * @param c the connection. + * + * @return the ServerKeyExchange byte buffer. + */ +tls.createServerKeyExchange = function(c) { + // this implementation only supports RSA, no Diffie-Hellman support, + // so this record is empty - // ensure n is right number of bits - if(state.n.bitLength() === state.bits) { - // success, advance - ++state.state; - } else { - // failed, get new q - state.q = null; - state.state = 0; - } - } else if(state.state === 5) { - // set keys - var d = state.e.modInverse(state.phi); - state.keys = { - privateKey: pki.rsa.setPrivateKey( - state.n, state.e, d, state.p, state.q, - d.mod(state.p1), d.mod(state.q1), - state.q.modInverse(state.p)), - publicKey: pki.rsa.setPublicKey(state.n, state.e) - }; - } + // determine length of the handshake message + var length = 0; - // update timing - t2 = +new Date(); - total += t2 - t1; - t1 = t2; + // build record fragment + var rval = forge.util.createBuffer(); + if(length > 0) { + rval.putByte(tls.HandshakeType.server_key_exchange); + rval.putInt24(length); } - - return state.keys !== null; + return rval; }; /** - * Generates an RSA public-private key pair in a single call. - * - * To generate a key-pair in steps (to allow for progress updates and to - * prevent blocking or warnings in slow browsers) then use the key-pair - * generation state functions. - * - * To generate a key-pair asynchronously (either through web-workers, if - * available, or by breaking up the work on the main thread), pass a - * callback function. - * - * @param [bits] the size for the private key in bits, defaults to 2048. - * @param [e] the public exponent to use, defaults to 65537. - * @param [options] options for key-pair generation, if given then 'bits' - * and 'e' must *not* be given: - * bits the size for the private key in bits, (default: 2048). - * e the public exponent to use, (default: 65537 (0x10001)). - * workerScript the worker script URL. - * workers the number of web workers (if supported) to use, - * (default: 2). - * workLoad the size of the work load, ie: number of possible prime - * numbers for each web worker to check per work assignment, - * (default: 100). - * prng a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". Disables use of native APIs. - * algorithm the algorithm to use (default: 'PRIMEINC'). - * @param [callback(err, keypair)] called once the operation completes. + * Gets the signed data used to verify a client-side certificate. See + * tls.createCertificateVerify() for details. * - * @return an object with privateKey and publicKey properties. + * @param c the connection. + * @param callback the callback to call once the signed data is ready. */ -pki.rsa.generateKeyPair = function(bits, e, options, callback) { - // (bits), (options), (callback) - if(arguments.length === 1) { - if(typeof bits === 'object') { - options = bits; - bits = undefined; - } else if(typeof bits === 'function') { - callback = bits; - bits = undefined; - } - } else if(arguments.length === 2) { - // (bits, e), (bits, options), (bits, callback), (options, callback) - if(typeof bits === 'number') { - if(typeof e === 'function') { - callback = e; - e = undefined; - } else if(typeof e !== 'number') { - options = e; - e = undefined; - } - } else { - options = bits; - callback = e; - bits = undefined; - e = undefined; - } - } else if(arguments.length === 3) { - // (bits, e, options), (bits, e, callback), (bits, options, callback) - if(typeof e === 'number') { - if(typeof options === 'function') { - callback = options; - options = undefined; - } - } else { - callback = options; - options = e; - e = undefined; - } - } - options = options || {}; - if(bits === undefined) { - bits = options.bits || 2048; - } - if(e === undefined) { - e = options.e || 0x10001; - } +tls.getClientSignature = function(c, callback) { + // generate data to RSA encrypt + var b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); + b = b.getBytes(); - // use native code if permitted, available, and parameters are acceptable - if(!forge.options.usePureJavaScript && !options.prng && - bits >= 256 && bits <= 16384 && (e === 0x10001 || e === 3)) { - if(callback) { - // try native async - if(_detectNodeCrypto('generateKeyPair')) { - return _crypto.generateKeyPair('rsa', { - modulusLength: bits, - publicExponent: e, - publicKeyEncoding: { - type: 'spki', - format: 'pem' - }, - privateKeyEncoding: { - type: 'pkcs8', - format: 'pem' - } - }, function(err, pub, priv) { - if(err) { - return callback(err); - } - callback(null, { - privateKey: pki.privateKeyFromPem(priv), - publicKey: pki.publicKeyFromPem(pub) - }); - }); - } - if(_detectSubtleCrypto('generateKey') && - _detectSubtleCrypto('exportKey')) { - // use standard native generateKey - return util.globalScope.crypto.subtle.generateKey({ - name: 'RSASSA-PKCS1-v1_5', - modulusLength: bits, - publicExponent: _intToUint8Array(e), - hash: {name: 'SHA-256'} - }, true /* key can be exported*/, ['sign', 'verify']) - .then(function(pair) { - return util.globalScope.crypto.subtle.exportKey( - 'pkcs8', pair.privateKey); - // avoiding catch(function(err) {...}) to support IE <= 8 - }).then(undefined, function(err) { - callback(err); - }).then(function(pkcs8) { - if(pkcs8) { - var privateKey = pki.privateKeyFromAsn1( - asn1.fromDer(forge.util.createBuffer(pkcs8))); - callback(null, { - privateKey: privateKey, - publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) - }); + // create default signing function as necessary + c.getSignature = c.getSignature || function(c, b, callback) { + // do rsa encryption, call callback + var privateKey = null; + if(c.getPrivateKey) { + try { + privateKey = c.getPrivateKey(c, c.session.clientCertificate); + privateKey = forge.pki.privateKeyFromPem(privateKey); + } catch(ex) { + c.error(c, { + message: 'Could not get private key.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error } }); } - if(_detectSubtleMsCrypto('generateKey') && - _detectSubtleMsCrypto('exportKey')) { - var genOp = util.globalScope.msCrypto.subtle.generateKey({ - name: 'RSASSA-PKCS1-v1_5', - modulusLength: bits, - publicExponent: _intToUint8Array(e), - hash: {name: 'SHA-256'} - }, true /* key can be exported*/, ['sign', 'verify']); - genOp.oncomplete = function(e) { - var pair = e.target.result; - var exportOp = util.globalScope.msCrypto.subtle.exportKey( - 'pkcs8', pair.privateKey); - exportOp.oncomplete = function(e) { - var pkcs8 = e.target.result; - var privateKey = pki.privateKeyFromAsn1( - asn1.fromDer(forge.util.createBuffer(pkcs8))); - callback(null, { - privateKey: privateKey, - publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) - }); - }; - exportOp.onerror = function(err) { - callback(err); - }; - }; - genOp.onerror = function(err) { - callback(err); - }; - return; - } + } + if(privateKey === null) { + c.error(c, { + message: 'No private key set.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); } else { - // try native sync - if(_detectNodeCrypto('generateKeyPairSync')) { - var keypair = _crypto.generateKeyPairSync('rsa', { - modulusLength: bits, - publicExponent: e, - publicKeyEncoding: { - type: 'spki', - format: 'pem' - }, - privateKeyEncoding: { - type: 'pkcs8', - format: 'pem' - } - }); - return { - privateKey: pki.privateKeyFromPem(keypair.privateKey), - publicKey: pki.publicKeyFromPem(keypair.publicKey) - }; - } + b = privateKey.sign(b, null); } - } + callback(c, b); + }; - // use JavaScript implementation - var state = pki.rsa.createKeyPairGenerationState(bits, e, options); - if(!callback) { - pki.rsa.stepKeyPairGenerationState(state, 0); - return state.keys; - } - _generateKeyPair(state, options, callback); + // get client signature + c.getSignature(c, b, callback); }; /** - * Sets an RSA public key from BigIntegers modulus and exponent. + * Creates a CertificateVerify message. * - * @param n the modulus. - * @param e the exponent. + * Meaning of this message: + * This structure conveys the client's Diffie-Hellman public value + * (Yc) if it was not already included in the client's certificate. + * The encoding used for Yc is determined by the enumerated + * PublicValueEncoding. This structure is a variant of the client + * key exchange message, not a message in itself. * - * @return the public key. + * When this message will be sent: + * This message is used to provide explicit verification of a client + * certificate. This message is only sent following a client + * certificate that has signing capability (i.e. all certificates + * except those containing fixed Diffie-Hellman parameters). When + * sent, it will immediately follow the client key exchange message. + * + * struct { + * Signature signature; + * } CertificateVerify; + * + * CertificateVerify.signature.md5_hash + * MD5(handshake_messages); + * + * Certificate.signature.sha_hash + * SHA(handshake_messages); + * + * Here handshake_messages refers to all handshake messages sent or + * received starting at client hello up to but not including this + * message, including the type and length fields of the handshake + * messages. + * + * select(SignatureAlgorithm) { + * case anonymous: struct { }; + * case rsa: + * digitally-signed struct { + * opaque md5_hash[16]; + * opaque sha_hash[20]; + * }; + * case dsa: + * digitally-signed struct { + * opaque sha_hash[20]; + * }; + * } Signature; + * + * In digital signing, one-way hash functions are used as input for a + * signing algorithm. A digitally-signed element is encoded as an opaque + * vector <0..2^16-1>, where the length is specified by the signing + * algorithm and key. + * + * In RSA signing, a 36-byte structure of two hashes (one SHA and one + * MD5) is signed (encrypted with the private key). It is encoded with + * PKCS #1 block type 0 or type 1 as described in [PKCS1]. + * + * In DSS, the 20 bytes of the SHA hash are run directly through the + * Digital Signing Algorithm with no additional hashing. + * + * @param c the connection. + * @param signature the signature to include in the message. + * + * @return the CertificateVerify byte buffer. */ -pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) { - var key = { - n: n, - e: e - }; +tls.createCertificateVerify = function(c, signature) { + /* Note: The signature will be stored in a "digitally-signed" opaque + vector that has the length prefixed using 2 bytes, so include those + 2 bytes in the handshake message length. This is done as a minor + optimization instead of calling writeVector(). */ - /** - * Encrypts the given data with this public key. Newer applications - * should use the 'RSA-OAEP' decryption scheme, 'RSAES-PKCS1-V1_5' is for - * legacy applications. - * - * @param data the byte string to encrypt. - * @param scheme the encryption scheme to use: - * 'RSAES-PKCS1-V1_5' (default), - * 'RSA-OAEP', - * 'RAW', 'NONE', or null to perform raw RSA encryption, - * an object with an 'encode' property set to a function - * with the signature 'function(data, key)' that returns - * a binary-encoded string representing the encoded data. - * @param schemeOptions any scheme-specific options. - * - * @return the encrypted byte string. - */ - key.encrypt = function(data, scheme, schemeOptions) { - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } else if(scheme === undefined) { - scheme = 'RSAES-PKCS1-V1_5'; - } + // determine length of the handshake message + var length = signature.length + 2; - if(scheme === 'RSAES-PKCS1-V1_5') { - scheme = { - encode: function(m, key, pub) { - return _encodePkcs1_v1_5(m, key, 0x02).getBytes(); - } - }; - } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { - scheme = { - encode: function(m, key) { - return forge.pkcs1.encode_rsa_oaep(key, m, schemeOptions); - } - }; - } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { - scheme = {encode: function(e) {return e;}}; - } else if(typeof scheme === 'string') { - throw new Error('Unsupported encryption scheme: "' + scheme + '".'); - } + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate_verify); + rval.putInt24(length); + // add vector length bytes + rval.putInt16(signature.length); + rval.putBytes(signature); + return rval; +}; - // do scheme-based encoding then rsa encryption - var e = scheme.encode(data, key, true); - return pki.rsa.encrypt(e, key, true); - }; +/** + * Creates a CertificateRequest message. + * + * @param c the connection. + * + * @return the CertificateRequest byte buffer. + */ +tls.createCertificateRequest = function(c) { + // TODO: support other certificate types + var certTypes = forge.util.createBuffer(); - /** - * Verifies the given signature against the given digest. - * - * PKCS#1 supports multiple (currently two) signature schemes: - * RSASSA-PKCS1-V1_5 and RSASSA-PSS. - * - * By default this implementation uses the "old scheme", i.e. - * RSASSA-PKCS1-V1_5, in which case once RSA-decrypted, the - * signature is an OCTET STRING that holds a DigestInfo. - * - * DigestInfo ::= SEQUENCE { - * digestAlgorithm DigestAlgorithmIdentifier, - * digest Digest - * } - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * Digest ::= OCTET STRING - * - * To perform PSS signature verification, provide an instance - * of Forge PSS object as the scheme parameter. - * - * @param digest the message digest hash to compare against the signature, - * as a binary-encoded string. - * @param signature the signature to verify, as a binary-encoded string. - * @param scheme signature verification scheme to use: - * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, - * a Forge PSS object for RSASSA-PSS, - * 'NONE' or null for none, DigestInfo will not be expected, but - * PKCS#1 v1.5 padding will still be used. - * - * @return true if the signature was verified, false if not. - */ - key.verify = function(digest, signature, scheme) { - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } else if(scheme === undefined) { - scheme = 'RSASSA-PKCS1-V1_5'; - } + // common RSA certificate type + certTypes.putByte(0x01); - if(scheme === 'RSASSA-PKCS1-V1_5') { - scheme = { - verify: function(digest, d) { - // remove padding - d = _decodePkcs1_v1_5(d, key, true); - // d is ASN.1 BER-encoded DigestInfo - var obj = asn1.fromDer(d); - // compare the given digest to the decrypted one - return digest === obj.value[1].value; - } - }; - } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { - scheme = { - verify: function(digest, d) { - // remove padding - d = _decodePkcs1_v1_5(d, key, true); - return digest === d; - } - }; - } + // add distinguished names from CA store + var cAs = forge.util.createBuffer(); + for(var key in c.caStore.certs) { + var cert = c.caStore.certs[key]; + var dn = forge.pki.distinguishedNameToAsn1(cert.subject); + var byteBuffer = forge.asn1.toDer(dn); + cAs.putInt16(byteBuffer.length()); + cAs.putBuffer(byteBuffer); + } - // do rsa decryption w/o any decoding, then verify -- which does decoding - var d = pki.rsa.decrypt(signature, key, true, false); - return scheme.verify(digest, d, key.n.bitLength()); - }; + // TODO: TLS 1.2+ has a different format - return key; + // determine length of the handshake message + var length = + 1 + certTypes.length() + + 2 + cAs.length(); + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate_request); + rval.putInt24(length); + writeVector(rval, 1, certTypes); + writeVector(rval, 2, cAs); + return rval; }; /** - * Sets an RSA private key from BigIntegers modulus, exponent, primes, - * prime exponents, and modular multiplicative inverse. + * Creates a ServerHelloDone message. * - * @param n the modulus. - * @param e the public exponent. - * @param d the private exponent ((inverse of e) mod n). - * @param p the first prime. - * @param q the second prime. - * @param dP exponent1 (d mod (p-1)). - * @param dQ exponent2 (d mod (q-1)). - * @param qInv ((inverse of q) mod p) + * @param c the connection. * - * @return the private key. + * @return the ServerHelloDone byte buffer. */ -pki.setRsaPrivateKey = pki.rsa.setPrivateKey = function( - n, e, d, p, q, dP, dQ, qInv) { - var key = { - n: n, - e: e, - d: d, - p: p, - q: q, - dP: dP, - dQ: dQ, - qInv: qInv - }; +tls.createServerHelloDone = function(c) { + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.server_hello_done); + rval.putInt24(0); + return rval; +}; - /** - * Decrypts the given data with this private key. The decryption scheme - * must match the one used to encrypt the data. - * - * @param data the byte string to decrypt. - * @param scheme the decryption scheme to use: - * 'RSAES-PKCS1-V1_5' (default), - * 'RSA-OAEP', - * 'RAW', 'NONE', or null to perform raw RSA decryption. - * @param schemeOptions any scheme-specific options. - * - * @return the decrypted byte string. - */ - key.decrypt = function(data, scheme, schemeOptions) { - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } else if(scheme === undefined) { - scheme = 'RSAES-PKCS1-V1_5'; - } +/** + * Creates a ChangeCipherSpec message. + * + * The change cipher spec protocol exists to signal transitions in + * ciphering strategies. The protocol consists of a single message, + * which is encrypted and compressed under the current (not the pending) + * connection state. The message consists of a single byte of value 1. + * + * struct { + * enum { change_cipher_spec(1), (255) } type; + * } ChangeCipherSpec; + * + * @return the ChangeCipherSpec byte buffer. + */ +tls.createChangeCipherSpec = function() { + var rval = forge.util.createBuffer(); + rval.putByte(0x01); + return rval; +}; - // do rsa decryption w/o any decoding - var d = pki.rsa.decrypt(data, key, false, false); +/** + * Creates a Finished message. + * + * struct { + * opaque verify_data[12]; + * } Finished; + * + * verify_data + * PRF(master_secret, finished_label, MD5(handshake_messages) + + * SHA-1(handshake_messages)) [0..11]; + * + * finished_label + * For Finished messages sent by the client, the string "client + * finished". For Finished messages sent by the server, the + * string "server finished". + * + * handshake_messages + * All of the data from all handshake messages up to but not + * including this message. This is only data visible at the + * handshake layer and does not include record layer headers. + * This is the concatenation of all the Handshake structures as + * defined in 7.4 exchanged thus far. + * + * @param c the connection. + * + * @return the Finished byte buffer. + */ +tls.createFinished = function(c) { + // generate verify_data + var b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); - if(scheme === 'RSAES-PKCS1-V1_5') { - scheme = {decode: _decodePkcs1_v1_5}; - } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { - scheme = { - decode: function(d, key) { - return forge.pkcs1.decode_rsa_oaep(key, d, schemeOptions); - } - }; - } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { - scheme = {decode: function(d) {return d;}}; - } else { - throw new Error('Unsupported encryption scheme: "' + scheme + '".'); - } + // TODO: determine prf function and verify length for TLS 1.2 + var client = (c.entity === tls.ConnectionEnd.client); + var sp = c.session.sp; + var vdl = 12; + var prf = prf_TLS1; + var label = client ? 'client finished' : 'server finished'; + b = prf(sp.master_secret, label, b.getBytes(), vdl); - // decode according to scheme - return scheme.decode(d, key, false); - }; + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.finished); + rval.putInt24(b.length()); + rval.putBuffer(b); + return rval; +}; - /** - * Signs the given digest, producing a signature. - * - * PKCS#1 supports multiple (currently two) signature schemes: - * RSASSA-PKCS1-V1_5 and RSASSA-PSS. - * - * By default this implementation uses the "old scheme", i.e. - * RSASSA-PKCS1-V1_5. In order to generate a PSS signature, provide - * an instance of Forge PSS object as the scheme parameter. - * - * @param md the message digest object with the hash to sign. - * @param scheme the signature scheme to use: - * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, - * a Forge PSS object for RSASSA-PSS, - * 'NONE' or null for none, DigestInfo will not be used but - * PKCS#1 v1.5 padding will still be used. - * - * @return the signature as a byte string. - */ - key.sign = function(md, scheme) { - /* Note: The internal implementation of RSA operations is being - transitioned away from a PKCS#1 v1.5 hard-coded scheme. Some legacy - code like the use of an encoding block identifier 'bt' will eventually - be removed. */ +/** + * Creates a HeartbeatMessage (See RFC 6520). + * + * struct { + * HeartbeatMessageType type; + * uint16 payload_length; + * opaque payload[HeartbeatMessage.payload_length]; + * opaque padding[padding_length]; + * } HeartbeatMessage; + * + * The total length of a HeartbeatMessage MUST NOT exceed 2^14 or + * max_fragment_length when negotiated as defined in [RFC6066]. + * + * type: The message type, either heartbeat_request or heartbeat_response. + * + * payload_length: The length of the payload. + * + * payload: The payload consists of arbitrary content. + * + * padding: The padding is random content that MUST be ignored by the + * receiver. The length of a HeartbeatMessage is TLSPlaintext.length + * for TLS and DTLSPlaintext.length for DTLS. Furthermore, the + * length of the type field is 1 byte, and the length of the + * payload_length is 2. Therefore, the padding_length is + * TLSPlaintext.length - payload_length - 3 for TLS and + * DTLSPlaintext.length - payload_length - 3 for DTLS. The + * padding_length MUST be at least 16. + * + * The sender of a HeartbeatMessage MUST use a random padding of at + * least 16 bytes. The padding of a received HeartbeatMessage message + * MUST be ignored. + * + * If the payload_length of a received HeartbeatMessage is too large, + * the received HeartbeatMessage MUST be discarded silently. + * + * @param c the connection. + * @param type the tls.HeartbeatMessageType. + * @param payload the heartbeat data to send as the payload. + * @param [payloadLength] the payload length to use, defaults to the + * actual payload length. + * + * @return the HeartbeatRequest byte buffer. + */ +tls.createHeartbeat = function(type, payload, payloadLength) { + if(typeof payloadLength === 'undefined') { + payloadLength = payload.length; + } + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(type); // heartbeat message type + rval.putInt16(payloadLength); // payload length + rval.putBytes(payload); // payload + // padding + var plaintextLength = rval.length(); + var paddingLength = Math.max(16, plaintextLength - payloadLength - 3); + rval.putBytes(forge.random.getBytes(paddingLength)); + return rval; +}; - // private key operation - var bt = false; +/** + * Fragments, compresses, encrypts, and queues a record for delivery. + * + * @param c the connection. + * @param record the record to queue. + */ +tls.queue = function(c, record) { + // error during record creation + if(!record) { + return; + } - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); + if(record.fragment.length() === 0) { + if(record.type === tls.ContentType.handshake || + record.type === tls.ContentType.alert || + record.type === tls.ContentType.change_cipher_spec) { + // Empty handshake, alert of change cipher spec messages are not allowed per the TLS specification and should not be sent. + return; } + } - if(scheme === undefined || scheme === 'RSASSA-PKCS1-V1_5') { - scheme = {encode: emsaPkcs1v15encode}; - bt = 0x01; - } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { - scheme = {encode: function() {return md;}}; - bt = 0x01; - } + // if the record is a handshake record, update handshake hashes + if(record.type === tls.ContentType.handshake) { + var bytes = record.fragment.bytes(); + c.session.md5.update(bytes); + c.session.sha1.update(bytes); + bytes = null; + } - // encode and then encrypt - var d = scheme.encode(md, key.n.bitLength()); - return pki.rsa.encrypt(d, key, bt); - }; + // handle record fragmentation + var records; + if(record.fragment.length() <= tls.MaxFragment) { + records = [record]; + } else { + // fragment data as long as it is too long + records = []; + var data = record.fragment.bytes(); + while(data.length > tls.MaxFragment) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data.slice(0, tls.MaxFragment)) + })); + data = data.slice(tls.MaxFragment); + } + // add last record + if(data.length > 0) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data) + })); + } + } - return key; + // compress and encrypt all fragmented records + for(var i = 0; i < records.length && !c.fail; ++i) { + // update the record using current write state + var rec = records[i]; + var s = c.state.current.write; + if(s.update(c, rec)) { + // store record + c.records.push(rec); + } + } }; /** - * Wraps an RSAPrivateKey ASN.1 object in an ASN.1 PrivateKeyInfo object. + * Flushes all queued records to the output buffer and calls the + * tlsDataReady() handler on the given connection. * - * @param rsaKey the ASN.1 RSAPrivateKey. + * @param c the connection. * - * @return the ASN.1 PrivateKeyInfo. + * @return true on success, false on failure. */ -pki.wrapRsaPrivateKey = function(rsaKey) { - // PrivateKeyInfo - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version (0) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(0).getBytes()), - // privateKeyAlgorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // PrivateKey - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(rsaKey).getBytes()) - ]); +tls.flush = function(c) { + for(var i = 0; i < c.records.length; ++i) { + var record = c.records[i]; + + // add record header and fragment + c.tlsData.putByte(record.type); + c.tlsData.putByte(record.version.major); + c.tlsData.putByte(record.version.minor); + c.tlsData.putInt16(record.fragment.length()); + c.tlsData.putBuffer(c.records[i].fragment); + } + c.records = []; + return c.tlsDataReady(c); }; /** - * Converts a private key from an ASN.1 object. + * Maps a pki.certificateError to a tls.Alert.Description. * - * @param obj the ASN.1 representation of a PrivateKeyInfo containing an - * RSAPrivateKey or an RSAPrivateKey. + * @param error the error to map. * - * @return the private key. + * @return the alert description. */ -pki.privateKeyFromAsn1 = function(obj) { - // get PrivateKeyInfo - var capture = {}; - var errors = []; - if(asn1.validate(obj, privateKeyValidator, capture, errors)) { - obj = asn1.fromDer(forge.util.createBuffer(capture.privateKey)); - } - - // get RSAPrivateKey - capture = {}; - errors = []; - if(!asn1.validate(obj, rsaPrivateKeyValidator, capture, errors)) { - var error = new Error('Cannot read private key. ' + - 'ASN.1 object does not contain an RSAPrivateKey.'); - error.errors = errors; - throw error; +var _certErrorToAlertDesc = function(error) { + switch(error) { + case true: + return true; + case forge.pki.certificateError.bad_certificate: + return tls.Alert.Description.bad_certificate; + case forge.pki.certificateError.unsupported_certificate: + return tls.Alert.Description.unsupported_certificate; + case forge.pki.certificateError.certificate_revoked: + return tls.Alert.Description.certificate_revoked; + case forge.pki.certificateError.certificate_expired: + return tls.Alert.Description.certificate_expired; + case forge.pki.certificateError.certificate_unknown: + return tls.Alert.Description.certificate_unknown; + case forge.pki.certificateError.unknown_ca: + return tls.Alert.Description.unknown_ca; + default: + return tls.Alert.Description.bad_certificate; } - - // Note: Version is currently ignored. - // capture.privateKeyVersion - // FIXME: inefficient, get a BigInteger that uses byte strings - var n, e, d, p, q, dP, dQ, qInv; - n = forge.util.createBuffer(capture.privateKeyModulus).toHex(); - e = forge.util.createBuffer(capture.privateKeyPublicExponent).toHex(); - d = forge.util.createBuffer(capture.privateKeyPrivateExponent).toHex(); - p = forge.util.createBuffer(capture.privateKeyPrime1).toHex(); - q = forge.util.createBuffer(capture.privateKeyPrime2).toHex(); - dP = forge.util.createBuffer(capture.privateKeyExponent1).toHex(); - dQ = forge.util.createBuffer(capture.privateKeyExponent2).toHex(); - qInv = forge.util.createBuffer(capture.privateKeyCoefficient).toHex(); - - // set private key - return pki.setRsaPrivateKey( - new BigInteger(n, 16), - new BigInteger(e, 16), - new BigInteger(d, 16), - new BigInteger(p, 16), - new BigInteger(q, 16), - new BigInteger(dP, 16), - new BigInteger(dQ, 16), - new BigInteger(qInv, 16)); }; /** - * Converts a private key to an ASN.1 RSAPrivateKey. + * Maps a tls.Alert.Description to a pki.certificateError. * - * @param key the private key. + * @param desc the alert description. * - * @return the ASN.1 representation of an RSAPrivateKey. + * @return the certificate error. */ -pki.privateKeyToAsn1 = pki.privateKeyToRSAPrivateKey = function(key) { - // RSAPrivateKey - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version (0 = only 2 primes, 1 multiple primes) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(0).getBytes()), - // modulus (n) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.n)), - // publicExponent (e) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.e)), - // privateExponent (d) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.d)), - // privateKeyPrime1 (p) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.p)), - // privateKeyPrime2 (q) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.q)), - // privateKeyExponent1 (dP) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.dP)), - // privateKeyExponent2 (dQ) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.dQ)), - // coefficient (qInv) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.qInv)) - ]); +var _alertDescToCertError = function(desc) { + switch(desc) { + case true: + return true; + case tls.Alert.Description.bad_certificate: + return forge.pki.certificateError.bad_certificate; + case tls.Alert.Description.unsupported_certificate: + return forge.pki.certificateError.unsupported_certificate; + case tls.Alert.Description.certificate_revoked: + return forge.pki.certificateError.certificate_revoked; + case tls.Alert.Description.certificate_expired: + return forge.pki.certificateError.certificate_expired; + case tls.Alert.Description.certificate_unknown: + return forge.pki.certificateError.certificate_unknown; + case tls.Alert.Description.unknown_ca: + return forge.pki.certificateError.unknown_ca; + default: + return forge.pki.certificateError.bad_certificate; + } }; /** - * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey. + * Verifies a certificate chain against the given connection's + * Certificate Authority store. * - * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey. + * @param c the TLS connection. + * @param chain the certificate chain to verify, with the root or highest + * authority at the end. * - * @return the public key. + * @return true if successful, false if not. */ -pki.publicKeyFromAsn1 = function(obj) { - // get SubjectPublicKeyInfo - var capture = {}; - var errors = []; - if(asn1.validate(obj, publicKeyValidator, capture, errors)) { - // get oid - var oid = asn1.derToOid(capture.publicKeyOid); - if(oid !== pki.oids.rsaEncryption) { - var error = new Error('Cannot read public key. Unknown OID.'); - error.oid = oid; - throw error; +tls.verifyCertificateChain = function(c, chain) { + try { + // Make a copy of c.verifyOptions so that we can modify options.verify + // without modifying c.verifyOptions. + var options = {}; + for (var key in c.verifyOptions) { + options[key] = c.verifyOptions[key]; } - obj = capture.rsaPublicKey; - } - // get RSA params - errors = []; - if(!asn1.validate(obj, rsaPublicKeyValidator, capture, errors)) { - var error = new Error('Cannot read public key. ' + - 'ASN.1 object does not contain an RSAPublicKey.'); - error.errors = errors; - throw error; - } + options.verify = function(vfd, depth, chain) { + // convert pki.certificateError to tls alert description + var desc = _certErrorToAlertDesc(vfd); - // FIXME: inefficient, get a BigInteger that uses byte strings - var n = forge.util.createBuffer(capture.publicKeyModulus).toHex(); - var e = forge.util.createBuffer(capture.publicKeyExponent).toHex(); + // call application callback + var ret = c.verify(c, vfd, depth, chain); + if(ret !== true) { + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + // throw custom error + var error = new Error('The application rejected the certificate.'); + error.send = true; + error.alert = { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + }; + if(ret.message) { + error.message = ret.message; + } + if(ret.alert) { + error.alert.description = ret.alert; + } + throw error; + } - // set public key - return pki.setRsaPublicKey( - new BigInteger(n, 16), - new BigInteger(e, 16)); -}; + // convert tls alert description to pki.certificateError + if(ret !== vfd) { + ret = _alertDescToCertError(ret); + } + } -/** - * Converts a public key to an ASN.1 SubjectPublicKeyInfo. - * - * @param key the public key. - * - * @return the asn1 representation of a SubjectPublicKeyInfo. - */ -pki.publicKeyToAsn1 = pki.publicKeyToSubjectPublicKeyInfo = function(key) { - // SubjectPublicKeyInfo - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // subjectPublicKey - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, [ - pki.publicKeyToRSAPublicKey(key) - ]) - ]); + return ret; + }; + + // verify chain + forge.pki.verifyCertificateChain(c.caStore, chain, options); + } catch(ex) { + // build tls error if not already customized + var err = ex; + if(typeof err !== 'object' || forge.util.isArray(err)) { + err = { + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: _certErrorToAlertDesc(ex) + } + }; + } + if(!('send' in err)) { + err.send = true; + } + if(!('alert' in err)) { + err.alert = { + level: tls.Alert.Level.fatal, + description: _certErrorToAlertDesc(err.error) + }; + } + + // send error + c.error(c, err); + } + + return !c.fail; }; /** - * Converts a public key to an ASN.1 RSAPublicKey. + * Creates a new TLS session cache. * - * @param key the public key. + * @param cache optional map of session ID to cached session. + * @param capacity the maximum size for the cache (default: 100). * - * @return the asn1 representation of a RSAPublicKey. + * @return the new TLS session cache. */ -pki.publicKeyToRSAPublicKey = function(key) { - // RSAPublicKey - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // modulus (n) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.n)), - // publicExponent (e) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.e)) - ]); +tls.createSessionCache = function(cache, capacity) { + var rval = null; + + // assume input is already a session cache object + if(cache && cache.getSession && cache.setSession && cache.order) { + rval = cache; + } else { + // create cache + rval = {}; + rval.cache = cache || {}; + rval.capacity = Math.max(capacity || 100, 1); + rval.order = []; + + // store order for sessions, delete session overflow + for(var key in cache) { + if(rval.order.length <= capacity) { + rval.order.push(key); + } else { + delete cache[key]; + } + } + + // get a session from a session ID (or get any session) + rval.getSession = function(sessionId) { + var session = null; + var key = null; + + // if session ID provided, use it + if(sessionId) { + key = forge.util.bytesToHex(sessionId); + } else if(rval.order.length > 0) { + // get first session from cache + key = rval.order[0]; + } + + if(key !== null && key in rval.cache) { + // get cached session and remove from cache + session = rval.cache[key]; + delete rval.cache[key]; + for(var i in rval.order) { + if(rval.order[i] === key) { + rval.order.splice(i, 1); + break; + } + } + } + + return session; + }; + + // set a session in the cache + rval.setSession = function(sessionId, session) { + // remove session from cache if at capacity + if(rval.order.length === rval.capacity) { + var key = rval.order.shift(); + delete rval.cache[key]; + } + // add session to cache + var key = forge.util.bytesToHex(sessionId); + rval.order.push(key); + rval.cache[key] = session; + }; + } + + return rval; }; /** - * Encodes a message using PKCS#1 v1.5 padding. + * Creates a new TLS connection. * - * @param m the message to encode. - * @param key the RSA key to use. - * @param bt the block type to use, i.e. either 0x01 (for signing) or 0x02 - * (for encryption). + * See public createConnection() docs for more details. * - * @return the padded byte buffer. + * @param options the options for this connection. + * + * @return the new TLS connection. */ -function _encodePkcs1_v1_5(m, key, bt) { - var eb = forge.util.createBuffer(); - - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); - - /* use PKCS#1 v1.5 padding */ - if(m.length > (k - 11)) { - var error = new Error('Message is too long for PKCS#1 v1.5 padding.'); - error.length = m.length; - error.max = k - 11; - throw error; +tls.createConnection = function(options) { + var caStore = null; + if(options.caStore) { + // if CA store is an array, convert it to a CA store object + if(forge.util.isArray(options.caStore)) { + caStore = forge.pki.createCaStore(options.caStore); + } else { + caStore = options.caStore; + } + } else { + // create empty CA store + caStore = forge.pki.createCaStore(); } - /* A block type BT, a padding string PS, and the data D shall be - formatted into an octet string EB, the encryption block: + // setup default cipher suites + var cipherSuites = options.cipherSuites || null; + if(cipherSuites === null) { + cipherSuites = []; + for(var key in tls.CipherSuites) { + cipherSuites.push(tls.CipherSuites[key]); + } + } - EB = 00 || BT || PS || 00 || D + // set default entity + var entity = (options.server || false) ? + tls.ConnectionEnd.server : tls.ConnectionEnd.client; - The block type BT shall be a single octet indicating the structure of - the encryption block. For this version of the document it shall have - value 00, 01, or 02. For a private-key operation, the block type - shall be 00 or 01. For a public-key operation, it shall be 02. + // create session cache if requested + var sessionCache = options.sessionCache ? + tls.createSessionCache(options.sessionCache) : null; - The padding string PS shall consist of k-3-||D|| octets. For block - type 00, the octets shall have value 00; for block type 01, they - shall have value FF; and for block type 02, they shall be - pseudorandomly generated and nonzero. This makes the length of the - encryption block EB equal to k. */ + // create TLS connection + var c = { + version: {major: tls.Version.major, minor: tls.Version.minor}, + entity: entity, + sessionId: options.sessionId, + caStore: caStore, + sessionCache: sessionCache, + cipherSuites: cipherSuites, + connected: options.connected, + virtualHost: options.virtualHost || null, + verifyClient: options.verifyClient || false, + verify: options.verify || function(cn, vfd, dpth, cts) {return vfd;}, + verifyOptions: options.verifyOptions || {}, + getCertificate: options.getCertificate || null, + getPrivateKey: options.getPrivateKey || null, + getSignature: options.getSignature || null, + input: forge.util.createBuffer(), + tlsData: forge.util.createBuffer(), + data: forge.util.createBuffer(), + tlsDataReady: options.tlsDataReady, + dataReady: options.dataReady, + heartbeatReceived: options.heartbeatReceived, + closed: options.closed, + error: function(c, ex) { + // set origin if not set + ex.origin = ex.origin || + ((c.entity === tls.ConnectionEnd.client) ? 'client' : 'server'); - // build the encryption block - eb.putByte(0x00); - eb.putByte(bt); + // send TLS alert + if(ex.send) { + tls.queue(c, tls.createAlert(c, ex.alert)); + tls.flush(c); + } - // create the padding - var padNum = k - 3 - m.length; - var padByte; - // private key op - if(bt === 0x00 || bt === 0x01) { - padByte = (bt === 0x00) ? 0x00 : 0xFF; - for(var i = 0; i < padNum; ++i) { - eb.putByte(padByte); - } - } else { - // public key op - // pad with random non-zero values - while(padNum > 0) { - var numZeros = 0; - var padBytes = forge.random.getBytes(padNum); - for(var i = 0; i < padNum; ++i) { - padByte = padBytes.charCodeAt(i); - if(padByte === 0) { - ++numZeros; - } else { - eb.putByte(padByte); - } + // error is fatal by default + var fatal = (ex.fatal !== false); + if(fatal) { + // set fail flag + c.fail = true; } - padNum = numZeros; - } - } - // zero followed by message - eb.putByte(0x00); - eb.putBytes(m); + // call error handler first + options.error(c, ex); - return eb; -} + if(fatal) { + // fatal error, close connection, do not clear fail + c.close(false); + } + }, + deflate: options.deflate || null, + inflate: options.inflate || null + }; -/** - * Decodes a message using PKCS#1 v1.5 padding. - * - * @param em the message to decode. - * @param key the RSA key to use. - * @param pub true if the key is a public key, false if it is private. - * @param ml the message length, if specified. - * - * @return the decoded bytes. - */ -function _decodePkcs1_v1_5(em, key, pub, ml) { - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); + /** + * Resets a closed TLS connection for reuse. Called in c.close(). + * + * @param clearFail true to clear the fail flag (default: true). + */ + c.reset = function(clearFail) { + c.version = {major: tls.Version.major, minor: tls.Version.minor}; + c.record = null; + c.session = null; + c.peerCertificate = null; + c.state = { + pending: null, + current: null + }; + c.expect = (c.entity === tls.ConnectionEnd.client) ? SHE : CHE; + c.fragmented = null; + c.records = []; + c.open = false; + c.handshakes = 0; + c.handshaking = false; + c.isConnected = false; + c.fail = !(clearFail || typeof(clearFail) === 'undefined'); + c.input.clear(); + c.tlsData.clear(); + c.data.clear(); + c.state.current = tls.createConnectionState(c); + }; - /* It is an error if any of the following conditions occurs: + // do initial reset of connection + c.reset(); - 1. The encryption block EB cannot be parsed unambiguously. - 2. The padding string PS consists of fewer than eight octets - or is inconsisent with the block type BT. - 3. The decryption process is a public-key operation and the block - type BT is not 00 or 01, or the decryption process is a - private-key operation and the block type is not 02. + /** + * Updates the current TLS engine state based on the given record. + * + * @param c the TLS connection. + * @param record the TLS record to act on. */ + var _update = function(c, record) { + // get record handler (align type in table by subtracting lowest) + var aligned = record.type - tls.ContentType.change_cipher_spec; + var handlers = ctTable[c.entity][c.expect]; + if(aligned in handlers) { + handlers[aligned](c, record); + } else { + // unexpected record + tls.handleUnexpected(c, record); + } + }; - // parse the encryption block - var eb = forge.util.createBuffer(em); - var first = eb.getByte(); - var bt = eb.getByte(); - if(first !== 0x00 || - (pub && bt !== 0x00 && bt !== 0x01) || - (!pub && bt != 0x02) || - (pub && bt === 0x00 && typeof(ml) === 'undefined')) { - throw new Error('Encryption block is invalid.'); - } + /** + * Reads the record header and initializes the next record on the given + * connection. + * + * @param c the TLS connection with the next record. + * + * @return 0 if the input data could be processed, otherwise the + * number of bytes required for data to be processed. + */ + var _readRecordHeader = function(c) { + var rval = 0; - var padNum = 0; - if(bt === 0x00) { - // check all padding bytes for 0x00 - padNum = k - 3 - ml; - for(var i = 0; i < padNum; ++i) { - if(eb.getByte() !== 0x00) { - throw new Error('Encryption block is invalid.'); + // get input buffer and its length + var b = c.input; + var len = b.length(); + + // need at least 5 bytes to initialize a record + if(len < 5) { + rval = 5 - len; + } else { + // enough bytes for header + // initialize record + c.record = { + type: b.getByte(), + version: { + major: b.getByte(), + minor: b.getByte() + }, + length: b.getInt16(), + fragment: forge.util.createBuffer(), + ready: false + }; + + // check record version + var compatibleVersion = (c.record.version.major === c.version.major); + if(compatibleVersion && c.session && c.session.version) { + // session version already set, require same minor version + compatibleVersion = (c.record.version.minor === c.version.minor); } - } - } else if(bt === 0x01) { - // find the first byte that isn't 0xFF, should be after all padding - padNum = 0; - while(eb.length() > 1) { - if(eb.getByte() !== 0xFF) { - --eb.read; - break; + if(!compatibleVersion) { + c.error(c, { + message: 'Incompatible TLS version.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); } - ++padNum; } - } else if(bt === 0x02) { - // look for 0x00 byte - padNum = 0; - while(eb.length() > 1) { - if(eb.getByte() === 0x00) { - --eb.read; - break; + + return rval; + }; + + /** + * Reads the next record's contents and appends its message to any + * previously fragmented message. + * + * @param c the TLS connection with the next record. + * + * @return 0 if the input data could be processed, otherwise the + * number of bytes required for data to be processed. + */ + var _readRecord = function(c) { + var rval = 0; + + // ensure there is enough input data to get the entire record + var b = c.input; + var len = b.length(); + if(len < c.record.length) { + // not enough data yet, return how much is required + rval = c.record.length - len; + } else { + // there is enough data to parse the pending record + // fill record fragment and compact input buffer + c.record.fragment.putBytes(b.getBytes(c.record.length)); + b.compact(); + + // update record using current read state + var s = c.state.current.read; + if(s.update(c, c.record)) { + // see if there is a previously fragmented message that the + // new record's message fragment should be appended to + if(c.fragmented !== null) { + // if the record type matches a previously fragmented + // record, append the record fragment to it + if(c.fragmented.type === c.record.type) { + // concatenate record fragments + c.fragmented.fragment.putBuffer(c.record.fragment); + c.record = c.fragmented; + } else { + // error, invalid fragmented record + c.error(c, { + message: 'Invalid fragmented record.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: + tls.Alert.Description.unexpected_message + } + }); + } + } + + // record is now ready + c.record.ready = true; } - ++padNum; } - } - // zero must be 0x00 and padNum must be (k - 3 - message length) - var zero = eb.getByte(); - if(zero !== 0x00 || padNum !== (k - 3 - eb.length())) { - throw new Error('Encryption block is invalid.'); - } + return rval; + }; - return eb.getBytes(); -} + /** + * Performs a handshake using the TLS Handshake Protocol, as a client. + * + * This method should only be called if the connection is in client mode. + * + * @param sessionId the session ID to use, null to start a new one. + */ + c.handshake = function(sessionId) { + // error to call this in non-client mode + if(c.entity !== tls.ConnectionEnd.client) { + // not fatal error + c.error(c, { + message: 'Cannot initiate handshake as a server.', + fatal: false + }); + } else if(c.handshaking) { + // handshake is already in progress, fail but not fatal error + c.error(c, { + message: 'Handshake already in progress.', + fatal: false + }); + } else { + // clear fail flag on reuse + if(c.fail && !c.open && c.handshakes === 0) { + c.fail = false; + } -/** - * Runs the key-generation algorithm asynchronously, either in the background - * via Web Workers, or using the main thread and setImmediate. - * - * @param state the key-pair generation state. - * @param [options] options for key-pair generation: - * workerScript the worker script URL. - * workers the number of web workers (if supported) to use, - * (default: 2, -1 to use estimated cores minus one). - * workLoad the size of the work load, ie: number of possible prime - * numbers for each web worker to check per work assignment, - * (default: 100). - * @param callback(err, keypair) called once the operation completes. - */ -function _generateKeyPair(state, options, callback) { - if(typeof options === 'function') { - callback = options; - options = {}; - } - options = options || {}; + // now handshaking + c.handshaking = true; - var opts = { - algorithm: { - name: options.algorithm || 'PRIMEINC', - options: { - workers: options.workers || 2, - workLoad: options.workLoad || 100, - workerScript: options.workerScript + // default to blank (new session) + sessionId = sessionId || ''; + + // if a session ID was specified, try to find it in the cache + var session = null; + if(sessionId.length > 0) { + if(c.sessionCache) { + session = c.sessionCache.getSession(sessionId); + } + + // matching session not found in cache, clear session ID + if(session === null) { + sessionId = ''; + } + } + + // no session given, grab a session from the cache, if available + if(sessionId.length === 0 && c.sessionCache) { + session = c.sessionCache.getSession(); + if(session !== null) { + sessionId = session.id; + } + } + + // set up session + c.session = { + id: sessionId, + version: null, + cipherSuite: null, + compressionMethod: null, + serverCertificate: null, + certificateRequest: null, + clientCertificate: null, + sp: {}, + md5: forge.md.md5.create(), + sha1: forge.md.sha1.create() + }; + + // use existing session information + if(session) { + // only update version on connection, session version not yet set + c.version = session.version; + c.session.sp = session.sp; } + + // generate new client random + c.session.sp.client_random = tls.createRandom().getBytes(); + + // connection now open + c.open = true; + + // send hello + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientHello(c) + })); + tls.flush(c); } }; - if('prng' in options) { - opts.prng = options.prng; - } - generate(); + /** + * Called when TLS protocol data has been received from somewhere and should + * be processed by the TLS engine. + * + * @param data the TLS protocol data, as a string, to process. + * + * @return 0 if the data could be processed, otherwise the number of bytes + * required for data to be processed. + */ + c.process = function(data) { + var rval = 0; - function generate() { - // find p and then q (done in series to simplify) - getPrime(state.pBits, function(err, num) { - if(err) { - return callback(err); + // buffer input data + if(data) { + c.input.putBytes(data); + } + + // process next record if no failure, process will be called after + // each record is handled (since handling can be asynchronous) + if(!c.fail) { + // reset record if ready and now empty + if(c.record !== null && + c.record.ready && c.record.fragment.isEmpty()) { + c.record = null; } - state.p = num; - if(state.q !== null) { - return finish(err, state.q); + + // if there is no pending record, try to read record header + if(c.record === null) { + rval = _readRecordHeader(c); } - getPrime(state.qBits, finish); - }); - } - function getPrime(bits, callback) { - forge.prime.generateProbablePrime(bits, opts, callback); - } + // read the next record (if record not yet ready) + if(!c.fail && c.record !== null && !c.record.ready) { + rval = _readRecord(c); + } - function finish(err, num) { - if(err) { - return callback(err); + // record ready to be handled, update engine state + if(!c.fail && c.record !== null && c.record.ready) { + _update(c, c.record); + } } - // set q - state.q = num; + return rval; + }; - // ensure p is larger than q (swap them if not) - if(state.p.compareTo(state.q) < 0) { - var tmp = state.p; - state.p = state.q; - state.q = tmp; + /** + * Requests that application data be packaged into a TLS record. The + * tlsDataReady handler will be called when the TLS record(s) have been + * prepared. + * + * @param data the application data, as a raw 'binary' encoded string, to + * be sent; to send utf-16/utf-8 string data, use the return value + * of util.encodeUtf8(str). + * + * @return true on success, false on failure. + */ + c.prepare = function(data) { + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.application_data, + data: forge.util.createBuffer(data) + })); + return tls.flush(c); + }; + + /** + * Requests that a heartbeat request be packaged into a TLS record for + * transmission. The tlsDataReady handler will be called when TLS record(s) + * have been prepared. + * + * When a heartbeat response has been received, the heartbeatReceived + * handler will be called with the matching payload. This handler can + * be used to clear a retransmission timer, etc. + * + * @param payload the heartbeat data to send as the payload in the message. + * @param [payloadLength] the payload length to use, defaults to the + * actual payload length. + * + * @return true on success, false on failure. + */ + c.prepareHeartbeatRequest = function(payload, payloadLength) { + if(payload instanceof forge.util.ByteBuffer) { + payload = payload.bytes(); + } + if(typeof payloadLength === 'undefined') { + payloadLength = payload.length; + } + c.expectedHeartbeatPayload = payload; + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.heartbeat, + data: tls.createHeartbeat( + tls.HeartbeatMessageType.heartbeat_request, payload, payloadLength) + })); + return tls.flush(c); + }; + + /** + * Closes the connection (sends a close_notify alert). + * + * @param clearFail true to clear the fail flag (default: true). + */ + c.close = function(clearFail) { + // save session if connection didn't fail + if(!c.fail && c.sessionCache && c.session) { + // only need to preserve session ID, version, and security params + var session = { + id: c.session.id, + version: c.session.version, + sp: c.session.sp + }; + session.sp.keys = null; + c.sessionCache.setSession(session.id, session); } - // ensure p is coprime with e - if(state.p.subtract(BigInteger.ONE).gcd(state.e) - .compareTo(BigInteger.ONE) !== 0) { - state.p = null; - generate(); - return; - } + if(c.open) { + // connection no longer open, clear input + c.open = false; + c.input.clear(); - // ensure q is coprime with e - if(state.q.subtract(BigInteger.ONE).gcd(state.e) - .compareTo(BigInteger.ONE) !== 0) { - state.q = null; - getPrime(state.qBits, finish); - return; - } + // if connected or handshaking, send an alert + if(c.isConnected || c.handshaking) { + c.isConnected = c.handshaking = false; - // compute phi: (p - 1)(q - 1) (Euler's totient function) - state.p1 = state.p.subtract(BigInteger.ONE); - state.q1 = state.q.subtract(BigInteger.ONE); - state.phi = state.p1.multiply(state.q1); + // send close_notify alert + tls.queue(c, tls.createAlert(c, { + level: tls.Alert.Level.warning, + description: tls.Alert.Description.close_notify + })); + tls.flush(c); + } - // ensure e and phi are coprime - if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) !== 0) { - // phi and e aren't coprime, so generate a new p and q - state.p = state.q = null; - generate(); - return; + // call handler + c.closed(c); } - // create n, ensure n is has the right number of bits - state.n = state.p.multiply(state.q); - if(state.n.bitLength() !== state.bits) { - // failed, get new q - state.q = null; - getPrime(state.qBits, finish); - return; - } + // reset TLS connection, do not clear fail flag + c.reset(clearFail); + }; - // set keys - var d = state.e.modInverse(state.phi); - state.keys = { - privateKey: pki.rsa.setPrivateKey( - state.n, state.e, d, state.p, state.q, - d.mod(state.p1), d.mod(state.q1), - state.q.modInverse(state.p)), - publicKey: pki.rsa.setPublicKey(state.n, state.e) - }; + return c; +}; - callback(null, state.keys); +/* TLS API */ +module.exports = forge.tls = forge.tls || {}; + +// expose non-functions +for(var key in tls) { + if(typeof tls[key] !== 'function') { + forge.tls[key] = tls[key]; } } -/** - * Converts a positive BigInteger into 2's-complement big-endian bytes. - * - * @param b the big integer to convert. - * - * @return the bytes. - */ -function _bnToBytes(b) { - // prepend 0x00 if first byte >= 0x80 - var hex = b.toString(16); - if(hex[0] >= '8') { - hex = '00' + hex; - } - var bytes = forge.util.hexToBytes(hex); +// expose prf_tls1 for testing +forge.tls.prf_tls1 = prf_TLS1; - // ensure integer is minimally-encoded - if(bytes.length > 1 && - // leading 0x00 for positive integer - ((bytes.charCodeAt(0) === 0 && - (bytes.charCodeAt(1) & 0x80) === 0) || - // leading 0xFF for negative integer - (bytes.charCodeAt(0) === 0xFF && - (bytes.charCodeAt(1) & 0x80) === 0x80))) { - return bytes.substr(1); - } - return bytes; -} +// expose sha1 hmac method +forge.tls.hmac_sha1 = hmac_sha1; + +// expose session cache creation +forge.tls.createSessionCache = tls.createSessionCache; /** - * Returns the required number of Miller-Rabin tests to generate a - * prime with an error probability of (1/2)^80. + * Creates a new TLS connection. This does not make any assumptions about the + * transport layer that TLS is working on top of, ie: it does not assume there + * is a TCP/IP connection or establish one. A TLS connection is totally + * abstracted away from the layer is runs on top of, it merely establishes a + * secure channel between a client" and a "server". * - * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * A TLS connection contains 4 connection states: pending read and write, and + * current read and write. * - * @param bits the bit size. + * At initialization, the current read and write states will be null. Only once + * the security parameters have been set and the keys have been generated can + * the pending states be converted into current states. Current states will be + * updated for each record processed. * - * @return the required number of iterations. - */ -function _getMillerRabinTests(bits) { - if(bits <= 100) return 27; - if(bits <= 150) return 18; - if(bits <= 200) return 15; - if(bits <= 250) return 12; - if(bits <= 300) return 9; - if(bits <= 350) return 8; - if(bits <= 400) return 7; - if(bits <= 500) return 6; - if(bits <= 600) return 5; - if(bits <= 800) return 4; - if(bits <= 1250) return 3; - return 2; -} - -/** - * Performs feature detection on the Node crypto interface. + * A custom certificate verify callback may be provided to check information + * like the common name on the server's certificate. It will be called for + * every certificate in the chain. It has the following signature: * - * @param fn the feature (function) to detect. + * variable func(c, certs, index, preVerify) + * Where: + * c The TLS connection + * verified Set to true if certificate was verified, otherwise the alert + * tls.Alert.Description for why the certificate failed. + * depth The current index in the chain, where 0 is the server's cert. + * certs The certificate chain, *NOTE* if the server was anonymous then + * the chain will be empty. * - * @return true if detected, false if not. - */ -function _detectNodeCrypto(fn) { - return forge.util.isNodejs && typeof _crypto[fn] === 'function'; -} - -/** - * Performs feature detection on the SubtleCrypto interface. + * The function returns true on success and on failure either the appropriate + * tls.Alert.Description or an object with 'alert' set to the appropriate + * tls.Alert.Description and 'message' set to a custom error message. If true + * is not returned then the connection will abort using, in order of + * availability, first the returned alert description, second the preVerify + * alert description, and lastly the default 'bad_certificate'. * - * @param fn the feature (function) to detect. + * There are three callbacks that can be used to make use of client-side + * certificates where each takes the TLS connection as the first parameter: * - * @return true if detected, false if not. - */ -function _detectSubtleCrypto(fn) { - return (typeof util.globalScope !== 'undefined' && - typeof util.globalScope.crypto === 'object' && - typeof util.globalScope.crypto.subtle === 'object' && - typeof util.globalScope.crypto.subtle[fn] === 'function'); -} - -/** - * Performs feature detection on the deprecated Microsoft Internet Explorer - * outdated SubtleCrypto interface. This function should only be used after - * checking for the modern, standard SubtleCrypto interface. + * getCertificate(conn, hint) + * The second parameter is a hint as to which certificate should be + * returned. If the connection entity is a client, then the hint will be + * the CertificateRequest message from the server that is part of the + * TLS protocol. If the connection entity is a server, then it will be + * the servername list provided via an SNI extension the ClientHello, if + * one was provided (empty array if not). The hint can be examined to + * determine which certificate to use (advanced). Most implementations + * will just return a certificate. The return value must be a + * PEM-formatted certificate or an array of PEM-formatted certificates + * that constitute a certificate chain, with the first in the array/chain + * being the client's certificate. + * getPrivateKey(conn, certificate) + * The second parameter is an forge.pki X.509 certificate object that + * is associated with the requested private key. The return value must + * be a PEM-formatted private key. + * getSignature(conn, bytes, callback) + * This callback can be used instead of getPrivateKey if the private key + * is not directly accessible in javascript or should not be. For + * instance, a secure external web service could provide the signature + * in exchange for appropriate credentials. The second parameter is a + * string of bytes to be signed that are part of the TLS protocol. These + * bytes are used to verify that the private key for the previously + * provided client-side certificate is accessible to the client. The + * callback is a function that takes 2 parameters, the TLS connection + * and the RSA encrypted (signed) bytes as a string. This callback must + * be called once the signature is ready. * - * @param fn the feature (function) to detect. + * @param options the options for this connection: + * server: true if the connection is server-side, false for client. + * sessionId: a session ID to reuse, null for a new connection. + * caStore: an array of certificates to trust. + * sessionCache: a session cache to use. + * cipherSuites: an optional array of cipher suites to use, + * see tls.CipherSuites. + * connected: function(conn) called when the first handshake completes. + * virtualHost: the virtual server name to use in a TLS SNI extension. + * verifyClient: true to require a client certificate in server mode, + * 'optional' to request one, false not to (default: false). + * verify: a handler used to custom verify certificates in the chain. + * verifyOptions: an object with options for the certificate chain validation. + * See documentation of pki.verifyCertificateChain for possible options. + * verifyOptions.verify is ignored. If you wish to specify a verify handler + * use the verify key. + * getCertificate: an optional callback used to get a certificate or + * a chain of certificates (as an array). + * getPrivateKey: an optional callback used to get a private key. + * getSignature: an optional callback used to get a signature. + * tlsDataReady: function(conn) called when TLS protocol data has been + * prepared and is ready to be used (typically sent over a socket + * connection to its destination), read from conn.tlsData buffer. + * dataReady: function(conn) called when application data has + * been parsed from a TLS record and should be consumed by the + * application, read from conn.data buffer. + * closed: function(conn) called when the connection has been closed. + * error: function(conn, error) called when there was an error. + * deflate: function(inBytes) if provided, will deflate TLS records using + * the deflate algorithm if the server supports it. + * inflate: function(inBytes) if provided, will inflate TLS records using + * the deflate algorithm if the server supports it. * - * @return true if detected, false if not. + * @return the new TLS connection. */ -function _detectSubtleMsCrypto(fn) { - return (typeof util.globalScope !== 'undefined' && - typeof util.globalScope.msCrypto === 'object' && - typeof util.globalScope.msCrypto.subtle === 'object' && - typeof util.globalScope.msCrypto.subtle[fn] === 'function'); -} - -function _intToUint8Array(x) { - var bytes = forge.util.hexToBytes(x.toString(16)); - var buffer = new Uint8Array(bytes.length); - for(var i = 0; i < bytes.length; ++i) { - buffer[i] = bytes.charCodeAt(i); - } - return buffer; -} - -function _privateKeyFromJwk(jwk) { - if(jwk.kty !== 'RSA') { - throw new Error( - 'Unsupported key algorithm "' + jwk.kty + '"; algorithm must be "RSA".'); - } - return pki.setRsaPrivateKey( - _base64ToBigInt(jwk.n), - _base64ToBigInt(jwk.e), - _base64ToBigInt(jwk.d), - _base64ToBigInt(jwk.p), - _base64ToBigInt(jwk.q), - _base64ToBigInt(jwk.dp), - _base64ToBigInt(jwk.dq), - _base64ToBigInt(jwk.qi)); -} - -function _publicKeyFromJwk(jwk) { - if(jwk.kty !== 'RSA') { - throw new Error('Key algorithm must be "RSA".'); - } - return pki.setRsaPublicKey( - _base64ToBigInt(jwk.n), - _base64ToBigInt(jwk.e)); -} - -function _base64ToBigInt(b64) { - return new BigInteger(forge.util.bytesToHex(forge.util.decode64(b64)), 16); -} +forge.tls.createConnection = tls.createConnection; /***/ }), -/* 527 */ + +/***/ 7173: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -179336,28 +436572,30 @@ function _base64ToBigInt(b64) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.admin = exports.VERSIONS = void 0; +exports.AuthPlus = exports.datamigration_v1beta1 = exports.datamigration_v1 = exports.auth = exports.datamigration = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const datatransfer_v1_1 = __webpack_require__(84); -const directory_v1_1 = __webpack_require__(423); -const reports_v1_1 = __webpack_require__(748); +const v1_1 = __webpack_require__(1922); +Object.defineProperty(exports, "datamigration_v1", { enumerable: true, get: function () { return v1_1.datamigration_v1; } }); +const v1beta1_1 = __webpack_require__(2985); +Object.defineProperty(exports, "datamigration_v1beta1", { enumerable: true, get: function () { return v1beta1_1.datamigration_v1beta1; } }); exports.VERSIONS = { - datatransfer_v1: datatransfer_v1_1.admin_datatransfer_v1.Admin, - directory_v1: directory_v1_1.admin_directory_v1.Admin, - reports_v1: reports_v1_1.admin_reports_v1.Admin, + v1: v1_1.datamigration_v1.Datamigration, + v1beta1: v1beta1_1.datamigration_v1beta1.Datamigration, }; -function admin(versionOrOptions) { - return googleapis_common_1.getAPI('admin', versionOrOptions, exports.VERSIONS, this); +function datamigration(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datamigration', versionOrOptions, exports.VERSIONS, this); } -exports.admin = admin; +exports.datamigration = datamigration; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 528 */, -/* 529 */ + +/***/ 7175: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -179375,32 +436613,27 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.bigqueryconnection_v1beta1 = void 0; +exports.redis_v1beta1 = 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 = __webpack_require__(927); -var bigqueryconnection_v1beta1; -(function (bigqueryconnection_v1beta1) { +var redis_v1beta1; +(function (redis_v1beta1) { /** - * BigQuery Connection API + * Google Cloud Memorystore for Redis API * - * Allows users to manage BigQuery connections to external data sources. + * Creates and manages Redis instances on the Google Cloud Platform. * * @example + * ```js * const {google} = require('googleapis'); - * const bigqueryconnection = google.bigqueryconnection('v1beta1'); - * - * @namespace bigqueryconnection - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Bigqueryconnection + * const redis = google.redis('v1beta1'); + * ``` */ - class Bigqueryconnection { + class Redis { constructor(options, google) { this.context = { _options: options || {}, @@ -179409,57 +436642,21 @@ var bigqueryconnection_v1beta1; this.projects = new Resource$Projects(this.context); } } - bigqueryconnection_v1beta1.Bigqueryconnection = Bigqueryconnection; + redis_v1beta1.Redis = Redis; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - bigqueryconnection_v1beta1.Resource$Projects = Resource$Projects; + redis_v1beta1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.connections = new Resource$Projects$Locations$Connections(this.context); - } - } - bigqueryconnection_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Connections { - 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://bigqueryconnection.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connections').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); - } + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179472,11 +436669,11 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -179484,13 +436681,13 @@ var bigqueryconnection_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179503,10 +436700,10 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -179515,44 +436712,19 @@ var bigqueryconnection_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://bigqueryconnection.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').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); - } + } + redis_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179565,11 +436737,11 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -179577,13 +436749,13 @@ var bigqueryconnection_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179596,11 +436768,11 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -179608,13 +436780,13 @@ var bigqueryconnection_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179627,25 +436799,25 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + failover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179658,25 +436830,25 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCredential(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179689,11 +436861,11 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -179701,93 +436873,30 @@ var bigqueryconnection_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryconnection_v1beta1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; -})(bigqueryconnection_v1beta1 = exports.bigqueryconnection_v1beta1 || (exports.bigqueryconnection_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 530 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudresourcemanager_v1beta1 = 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 = __webpack_require__(927); -var cloudresourcemanager_v1beta1; -(function (cloudresourcemanager_v1beta1) { - /** - * Cloud Resource Manager API - * - * Creates, reads, and updates metadata for Google Cloud Platform resource containers. - * - * @example - * const {google} = require('googleapis'); - * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); - * - * @namespace cloudresourcemanager - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Cloudresourcemanager - */ - class Cloudresourcemanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.organizations = new Resource$Organizations(this.context); - this.projects = new Resource$Projects(this.context); - } - } - cloudresourcemanager_v1beta1.Cloudresourcemanager = Cloudresourcemanager; - class Resource$Organizations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getAuthString(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/authString').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -179796,13 +436905,13 @@ var cloudresourcemanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179815,22 +436924,22 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -179846,25 +436955,25 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/organizations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179877,56 +436986,57 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179939,11 +437049,11 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -179951,140 +437061,19 @@ var cloudresourcemanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudresourcemanager_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Projects { + redis_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects').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); - } - } - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - getAncestry(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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180097,55 +437086,25 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').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); - } - } - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180158,25 +437117,25 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180189,25 +437148,25 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180220,61 +437179,32 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId'], - pathParams: ['projectId'], - 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudresourcemanager_v1beta1.Resource$Projects = Resource$Projects; -})(cloudresourcemanager_v1beta1 = exports.cloudresourcemanager_v1beta1 || (exports.cloudresourcemanager_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + redis_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(redis_v1beta1 = exports.redis_v1beta1 || (exports.redis_v1beta1 = {})); + /***/ }), -/* 531 */ + +/***/ 7182: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -180292,32 +437222,117 @@ var cloudresourcemanager_v1beta1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.managedidentities_v1alpha1 = void 0; +exports.AuthPlus = exports.cloudsearch_v1 = exports.auth = exports.cloudsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3386); +Object.defineProperty(exports, "cloudsearch_v1", { enumerable: true, get: function () { return v1_1.cloudsearch_v1; } }); +exports.VERSIONS = { + v1: v1_1.cloudsearch_v1.Cloudsearch, +}; +function cloudsearch(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudsearch', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudsearch = cloudsearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7206: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.resourcesettings_v1 = exports.auth = exports.resourcesettings = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6769); +Object.defineProperty(exports, "resourcesettings_v1", { enumerable: true, get: function () { return v1_1.resourcesettings_v1; } }); +exports.VERSIONS = { + v1: v1_1.resourcesettings_v1.Resourcesettings, +}; +function resourcesettings(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('resourcesettings', versionOrOptions, exports.VERSIONS, this); +} +exports.resourcesettings = resourcesettings; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7211: +/***/ (function(module) { + +module.exports = require("https"); + +/***/ }), + +/***/ 7215: +/***/ (function(module) { + +module.exports = {"name":"@octokit/rest","version":"16.43.2","publishConfig":{"access":"public"},"description":"GitHub REST API client for Node.js","keywords":["octokit","github","rest","api-client"],"author":"Gregor Martynus (https://github.com/gr2m)","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/rest.js","dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^4.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^6.0.0","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"types":"index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","pretest":"npm run -s lint","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","build":"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},"license":"MIT","files":["index.js","index.d.ts","lib","plugins"],"nyc":{"ignore":["test"]},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}]}; + +/***/ }), + +/***/ 7224: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.workstations_v1beta = 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 = __webpack_require__(927); -var managedidentities_v1alpha1; -(function (managedidentities_v1alpha1) { +var workstations_v1beta; +(function (workstations_v1beta) { /** - * Managed Service for Microsoft Active Directory API + * Cloud Workstations API + * * - * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). * * @example + * ```js * const {google} = require('googleapis'); - * const managedidentities = google.managedidentities('v1alpha1'); - * - * @namespace managedidentities - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Managedidentities + * const workstations = google.workstations('v1beta'); + * ``` */ - class Managedidentities { + class Workstations { constructor(options, google) { this.context = { _options: options || {}, @@ -180326,96 +437341,28 @@ var managedidentities_v1alpha1; this.projects = new Resource$Projects(this.context); } } - managedidentities_v1alpha1.Managedidentities = Managedidentities; + workstations_v1beta.Workstations = Workstations; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - managedidentities_v1alpha1.Resource$Projects = Resource$Projects; + workstations_v1beta.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.global = new Resource$Projects$Locations$Global(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://managedidentities.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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://managedidentities.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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); - } - } - } - managedidentities_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Global { - constructor(context) { - this.context = context; - this.domains = new Resource$Projects$Locations$Global$Domains(this.context); - this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.workstationClusters = + new Resource$Projects$Locations$Workstationclusters(this.context); } } - managedidentities_v1alpha1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Domains { + workstations_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - attachTrust(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180428,10 +437375,10 @@ var managedidentities_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -180440,41 +437387,10 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - 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://managedidentities.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -180490,10 +437406,10 @@ var managedidentities_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -180502,13 +437418,13 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachTrust(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180521,11 +437437,11 @@ var managedidentities_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -180533,13 +437449,13 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180552,10 +437468,10 @@ var managedidentities_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -180564,92 +437480,103 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + workstations_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workstationclusters { + constructor(context) { + this.context = context; + this.workstationConfigs = + new Resource$Projects$Locations$Workstationclusters$Workstationconfigs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/workstationClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -180657,61 +437584,63 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/workstationClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -180719,92 +437648,103 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + workstations_v1beta.Resource$Projects$Locations$Workstationclusters = Resource$Projects$Locations$Workstationclusters; + class Resource$Projects$Locations$Workstationclusters$Workstationconfigs { + constructor(context) { + this.context = context; + this.workstations = + new Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateTrust(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -180812,129 +437752,127 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - managedidentities_v1alpha1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; - class Resource$Projects$Locations$Global$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/workstationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listUsable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstationConfigs:listUsable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -180942,321 +437880,229 @@ var managedidentities_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - managedidentities_v1alpha1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; -})(managedidentities_v1alpha1 = exports.managedidentities_v1alpha1 || (exports.managedidentities_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 532 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.oslogin = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(179); -const v1alpha_1 = __webpack_require__(632); -const v1beta_1 = __webpack_require__(232); -exports.VERSIONS = { - v1: v1_1.oslogin_v1.Oslogin, - v1alpha: v1alpha_1.oslogin_v1alpha.Oslogin, - v1beta: v1beta_1.oslogin_v1beta.Oslogin, -}; -function oslogin(versionOrOptions) { - return googleapis_common_1.getAPI('oslogin', versionOrOptions, exports.VERSIONS, this); -} -exports.oslogin = oslogin; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 533 */, -/* 534 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudbilling_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 = __webpack_require__(927); -var cloudbilling_v1; -(function (cloudbilling_v1) { - /** - * Cloud Billing API - * - * Allows developers to manage billing for their Google Cloud Platform projects programmatically. - * - * @example - * const {google} = require('googleapis'); - * const cloudbilling = google.cloudbilling('v1'); - * - * @namespace cloudbilling - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudbilling - */ - class Cloudbilling { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.billingAccounts = new Resource$Billingaccounts(this.context); - this.projects = new Resource$Projects(this.context); - this.services = new Resource$Services(this.context); - } - } - cloudbilling_v1.Cloudbilling = Cloudbilling; - class Resource$Billingaccounts { - constructor(context) { - this.context = context; - this.projects = new Resource$Billingaccounts$Projects(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + workstations_v1beta.Resource$Projects$Locations$Workstationclusters$Workstationconfigs = Resource$Projects$Locations$Workstationclusters$Workstationconfigs; + class Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/workstations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + generateAccessToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+workstation}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['workstation'], + pathParams: ['workstation'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -181264,104 +438110,95 @@ var cloudbilling_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudbilling_v1.Resource$Billingaccounts = Resource$Billingaccounts; - class Resource$Billingaccounts$Projects { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudbilling_v1.Resource$Billingaccounts$Projects = Resource$Billingaccounts$Projects; - class Resource$Projects { - constructor(context) { - this.context = context; - } - getBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + listUsable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstations:listUsable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -181369,858 +438206,148 @@ var cloudbilling_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudbilling_v1.Resource$Projects = Resource$Projects; - class Resource$Services { - constructor(context) { - this.context = context; - this.skus = new Resource$Services$Skus(this.context); - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudbilling_v1.Resource$Services = Resource$Services; - class Resource$Services$Skus { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - cloudbilling_v1.Resource$Services$Skus = Resource$Services$Skus; -})(cloudbilling_v1 = exports.cloudbilling_v1 || (exports.cloudbilling_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 535 */, -/* 536 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = hasFirstPage - -const deprecate = __webpack_require__(370) -const getPageLinks = __webpack_require__(577) - -function hasFirstPage (link) { - deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).first -} - - -/***/ }), -/* 537 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.Discovery = void 0; -const fs = __webpack_require__(747); -const google_auth_library_1 = __webpack_require__(668); -const resolve = __webpack_require__(835); -const util = __webpack_require__(669); -const apirequest_1 = __webpack_require__(276); -const endpoint_1 = __webpack_require__(165); -const readFile = util.promisify(fs.readFile); -class Discovery { - /** - * Discovery for discovering API endpoints - * - * @param options Options for discovery - */ - constructor(options) { - this.transporter = new google_auth_library_1.DefaultTransporter(); - this.options = options || {}; - } - /** - * Generate and Endpoint from an endpoint schema object. - * - * @param schema The schema from which to generate the Endpoint. - * @return A function that creates an endpoint. - */ - makeEndpoint(schema) { - return (options) => { - const ep = new endpoint_1.Endpoint(options); - ep.applySchema(ep, schema, schema, ep); - return ep; - }; - } - /** - * Log output of generator. Works just like console.log - */ - log(...args) { - if (this.options && this.options.debug) { - console.log(...args); - } - } - /** - * Generate all APIs and return as in-memory object. - * @param discoveryUrl - */ - async discoverAllAPIs(discoveryUrl) { - const headers = this.options.includePrivate - ? {} - : { 'X-User-Ip': '0.0.0.0' }; - const res = await this.transporter.request({ - url: discoveryUrl, - headers, - }); - const items = res.data.items; - const apis = await Promise.all(items.map(async (api) => { - const endpointCreator = await this.discoverAPI(api.discoveryRestUrl); - return { api, endpointCreator }; - })); - const versionIndex = {}; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const apisIndex = {}; - for (const set of apis) { - if (!apisIndex[set.api.name]) { - versionIndex[set.api.name] = {}; - apisIndex[set.api.name] = (options) => { - const type = typeof options; - let version; - if (type === 'string') { - version = options; - options = {}; - } - else if (type === 'object') { - version = options.version; - delete options.version; - } - else { - throw new Error('Argument error: Accepts only string or object'); - } - try { - const ep = set.endpointCreator(options, this); - return Object.freeze(ep); // create new & freeze - } - catch (e) { - throw new Error(util.format('Unable to load endpoint %s("%s"): %s', set.api.name, version, e.message)); - } - }; + return (0, googleapis_common_1.createAPIRequest)(parameters); } - versionIndex[set.api.name][set.api.version] = set.endpointCreator; } - return apisIndex; - } - /** - * Generate API file given discovery URL - * - * @param apiDiscoveryUrl URL or filename of discovery doc for API - * @returns A promise that resolves with a function that creates the endpoint - */ - async discoverAPI(apiDiscoveryUrl) { - if (typeof apiDiscoveryUrl === 'string') { - const parts = resolve.parse(apiDiscoveryUrl); - if (apiDiscoveryUrl && !parts.protocol) { - this.log('Reading from file ' + apiDiscoveryUrl); - const file = await readFile(apiDiscoveryUrl, { encoding: 'utf8' }); - return this.makeEndpoint(JSON.parse(file)); + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - else { - this.log('Requesting ' + apiDiscoveryUrl); - const res = await this.transporter.request({ - url: apiDiscoveryUrl, - }); - return this.makeEndpoint(res.data); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - else { - const options = apiDiscoveryUrl; - this.log('Requesting ' + options.url); - const url = options.url; - delete options.url; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { - options: { url, method: 'GET' }, - requiredParams: [], - pathParams: [], - params: options, - context: { google: { _options: {} }, _options: {} }, - }; - const res = await apirequest_1.createAPIRequest(parameters); - return this.makeEndpoint(res.data); - } - } -} -exports.Discovery = Discovery; -//# sourceMappingURL=discovery.js.map - -/***/ }), -/* 538 */ -/***/ (function(module) { - -module.exports = validateAuth; - -function validateAuth(auth) { - if (typeof auth === "string") { - return; - } - - if (typeof auth === "function") { - return; - } - - if (auth.username && auth.password) { - return; - } - - if (auth.clientId && auth.clientSecret) { - return; - } - - throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`); -} - - -/***/ }), -/* 539 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const url = __webpack_require__(835); -const http = __webpack_require__(605); -const https = __webpack_require__(34); -const pm = __webpack_require__(950); -let tunnel; -var HttpCodes; -(function (HttpCodes) { - HttpCodes[HttpCodes["OK"] = 200] = "OK"; - HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; - HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; - HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; - HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; - HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; - HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; - HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; - HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; - HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; - HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; - HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; - HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; - HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; - HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; - HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; - HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; - HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; - HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; - HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; - HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; - HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; - HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; - HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; - HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; - HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; - HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; -})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); -var Headers; -(function (Headers) { - Headers["Accept"] = "accept"; - Headers["ContentType"] = "content-type"; -})(Headers = exports.Headers || (exports.Headers = {})); -var MediaTypes; -(function (MediaTypes) { - MediaTypes["ApplicationJson"] = "application/json"; -})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); -/** - * Returns the proxy URL, depending upon the supplied url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com - */ -function getProxyUrl(serverUrl) { - let proxyUrl = pm.getProxyUrl(url.parse(serverUrl)); - return proxyUrl ? proxyUrl.href : ''; -} -exports.getProxyUrl = getProxyUrl; -const HttpRedirectCodes = [ - HttpCodes.MovedPermanently, - HttpCodes.ResourceMoved, - HttpCodes.SeeOther, - HttpCodes.TemporaryRedirect, - HttpCodes.PermanentRedirect -]; -const HttpResponseRetryCodes = [ - HttpCodes.BadGateway, - HttpCodes.ServiceUnavailable, - HttpCodes.GatewayTimeout -]; -const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; -const ExponentialBackoffCeiling = 10; -const ExponentialBackoffTimeSlice = 5; -class HttpClientResponse { - constructor(message) { - this.message = message; - } - readBody() { - return new Promise(async (resolve, reject) => { - let output = Buffer.alloc(0); - this.message.on('data', (chunk) => { - output = Buffer.concat([output, chunk]); - }); - this.message.on('end', () => { - resolve(output.toString()); - }); - }); - } -} -exports.HttpClientResponse = HttpClientResponse; -function isHttps(requestUrl) { - let parsedUrl = url.parse(requestUrl); - return parsedUrl.protocol === 'https:'; -} -exports.isHttps = isHttps; -class HttpClient { - constructor(userAgent, handlers, requestOptions) { - this._ignoreSslError = false; - this._allowRedirects = true; - this._allowRedirectDowngrade = false; - this._maxRedirects = 50; - this._allowRetries = false; - this._maxRetries = 1; - this._keepAlive = false; - this._disposed = false; - this.userAgent = userAgent; - this.handlers = handlers || []; - this.requestOptions = requestOptions; - if (requestOptions) { - if (requestOptions.ignoreSslError != null) { - this._ignoreSslError = requestOptions.ignoreSslError; - } - this._socketTimeout = requestOptions.socketTimeout; - if (requestOptions.allowRedirects != null) { - this._allowRedirects = requestOptions.allowRedirects; - } - if (requestOptions.allowRedirectDowngrade != null) { - this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; - } - if (requestOptions.maxRedirects != null) { - this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); - } - if (requestOptions.keepAlive != null) { - this._keepAlive = requestOptions.keepAlive; - } - if (requestOptions.allowRetries != null) { - this._allowRetries = requestOptions.allowRetries; - } - if (requestOptions.maxRetries != null) { - this._maxRetries = requestOptions.maxRetries; - } - } - } - options(requestUrl, additionalHeaders) { - return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); - } - get(requestUrl, additionalHeaders) { - return this.request('GET', requestUrl, null, additionalHeaders || {}); - } - del(requestUrl, additionalHeaders) { - return this.request('DELETE', requestUrl, null, additionalHeaders || {}); - } - post(requestUrl, data, additionalHeaders) { - return this.request('POST', requestUrl, data, additionalHeaders || {}); - } - patch(requestUrl, data, additionalHeaders) { - return this.request('PATCH', requestUrl, data, additionalHeaders || {}); - } - put(requestUrl, data, additionalHeaders) { - return this.request('PUT', requestUrl, data, additionalHeaders || {}); - } - head(requestUrl, additionalHeaders) { - return this.request('HEAD', requestUrl, null, additionalHeaders || {}); - } - sendStream(verb, requestUrl, stream, additionalHeaders) { - return this.request(verb, requestUrl, stream, additionalHeaders); - } - /** - * Gets a typed object from an endpoint - * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise - */ - async getJson(requestUrl, additionalHeaders = {}) { - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - let res = await this.get(requestUrl, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - async postJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - let res = await this.post(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - async putJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - let res = await this.put(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - async patchJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - let res = await this.patch(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - /** - * Makes a raw http request. - * All other methods such as get, post, patch, and request ultimately call this. - * Prefer get, del, post and patch - */ - async request(verb, requestUrl, data, headers) { - if (this._disposed) { - throw new Error('Client has already been disposed.'); - } - let parsedUrl = url.parse(requestUrl); - let info = this._prepareRequest(verb, parsedUrl, headers); - // Only perform retries on reads since writes may not be idempotent. - let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 - ? this._maxRetries + 1 - : 1; - let numTries = 0; - let response; - while (numTries < maxTries) { - response = await this.requestRaw(info, data); - // Check if it's an authentication challenge - if (response && - response.message && - response.message.statusCode === HttpCodes.Unauthorized) { - let authenticationHandler; - for (let i = 0; i < this.handlers.length; i++) { - if (this.handlers[i].canHandleAuthentication(response)) { - authenticationHandler = this.handlers[i]; - break; - } - } - if (authenticationHandler) { - return authenticationHandler.handleAuthentication(this, info, data); - } - else { - // We have received an unauthorized response but have no handlers to handle it. - // Let the response return to the caller. - return response; - } - } - let redirectsRemaining = this._maxRedirects; - while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && - this._allowRedirects && - redirectsRemaining > 0) { - const redirectUrl = response.message.headers['location']; - if (!redirectUrl) { - // if there's no location to redirect to, we won't - break; - } - let parsedRedirectUrl = url.parse(redirectUrl); - if (parsedUrl.protocol == 'https:' && - parsedUrl.protocol != parsedRedirectUrl.protocol && - !this._allowRedirectDowngrade) { - throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); - } - // we need to finish reading the response before reassigning response - // which will leak the open socket. - await response.readBody(); - // strip authorization header if redirected to a different hostname - if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { - for (let header in headers) { - // header names are case insensitive - if (header.toLowerCase() === 'authorization') { - delete headers[header]; - } - } - } - // let's make the request with the new redirectUrl - info = this._prepareRequest(verb, parsedRedirectUrl, headers); - response = await this.requestRaw(info, data); - redirectsRemaining--; - } - if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { - // If not a retry code, return immediately instead of retrying - return response; - } - numTries += 1; - if (numTries < maxTries) { - await response.readBody(); - await this._performExponentialBackoff(numTries); - } - } - return response; - } - /** - * Needs to be called if keepAlive is set to true in request options. - */ - dispose() { - if (this._agent) { - this._agent.destroy(); - } - this._disposed = true; - } - /** - * Raw request. - * @param info - * @param data - */ - requestRaw(info, data) { - return new Promise((resolve, reject) => { - let callbackForResult = function (err, res) { - if (err) { - reject(err); - } - resolve(res); - }; - this.requestRawWithCallback(info, data, callbackForResult); - }); - } - /** - * Raw request with callback. - * @param info - * @param data - * @param onResult - */ - requestRawWithCallback(info, data, onResult) { - let socket; - if (typeof data === 'string') { - info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); - } - let callbackCalled = false; - let handleResult = (err, res) => { - if (!callbackCalled) { - callbackCalled = true; - onResult(err, res); - } - }; - let req = info.httpModule.request(info.options, (msg) => { - let res = new HttpClientResponse(msg); - handleResult(null, res); - }); - req.on('socket', sock => { - socket = sock; - }); - // If we ever get disconnected, we want the socket to timeout eventually - req.setTimeout(this._socketTimeout || 3 * 60000, () => { - if (socket) { - socket.end(); - } - handleResult(new Error('Request timeout: ' + info.options.path), null); - }); - req.on('error', function (err) { - // err has statusCode property - // res should have headers - handleResult(err, null); - }); - if (data && typeof data === 'string') { - req.write(data, 'utf8'); - } - if (data && typeof data !== 'string') { - data.on('close', function () { - req.end(); - }); - data.pipe(req); - } - else { - req.end(); - } - } - /** - * Gets an http agent. This function is useful when you need an http agent that handles - * routing through a proxy server - depending upon the url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com - */ - getAgent(serverUrl) { - let parsedUrl = url.parse(serverUrl); - return this._getAgent(parsedUrl); - } - _prepareRequest(method, requestUrl, headers) { - const info = {}; - info.parsedUrl = requestUrl; - const usingSsl = info.parsedUrl.protocol === 'https:'; - info.httpModule = usingSsl ? https : http; - const defaultPort = usingSsl ? 443 : 80; - info.options = {}; - info.options.host = info.parsedUrl.hostname; - info.options.port = info.parsedUrl.port - ? parseInt(info.parsedUrl.port) - : defaultPort; - info.options.path = - (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); - info.options.method = method; - info.options.headers = this._mergeHeaders(headers); - if (this.userAgent != null) { - info.options.headers['user-agent'] = this.userAgent; - } - info.options.agent = this._getAgent(info.parsedUrl); - // gives handlers an opportunity to participate - if (this.handlers) { - this.handlers.forEach(handler => { - handler.prepareRequest(info.options); - }); - } - return info; - } - _mergeHeaders(headers) { - const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); - if (this.requestOptions && this.requestOptions.headers) { - return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); - } - return lowercaseKeys(headers || {}); - } - _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); - let clientHeader; - if (this.requestOptions && this.requestOptions.headers) { - clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; - } - return additionalHeaders[header] || clientHeader || _default; - } - _getAgent(parsedUrl) { - let agent; - let proxyUrl = pm.getProxyUrl(parsedUrl); - let useProxy = proxyUrl && proxyUrl.hostname; - if (this._keepAlive && useProxy) { - agent = this._proxyAgent; - } - if (this._keepAlive && !useProxy) { - agent = this._agent; - } - // if agent is already assigned use that agent. - if (!!agent) { - return agent; - } - const usingSsl = parsedUrl.protocol === 'https:'; - let maxSockets = 100; - if (!!this.requestOptions) { - maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; - } - if (useProxy) { - // If using proxy, need tunnel - if (!tunnel) { - tunnel = __webpack_require__(856); - } - const agentOptions = { - maxSockets: maxSockets, - keepAlive: this._keepAlive, - proxy: { - proxyAuth: proxyUrl.auth, - host: proxyUrl.hostname, - port: proxyUrl.port - } - }; - let tunnelAgent; - const overHttps = proxyUrl.protocol === 'https:'; - if (usingSsl) { - tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; - } - else { - tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; - } - agent = tunnelAgent(agentOptions); - this._proxyAgent = agent; - } - // if reusing agent across request and tunneling agent isn't assigned create a new agent - if (this._keepAlive && !agent) { - const options = { keepAlive: this._keepAlive, maxSockets: maxSockets }; - agent = usingSsl ? new https.Agent(options) : new http.Agent(options); - this._agent = agent; - } - // if not using private agent and tunnel agent isn't setup then use global agent - if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent; - } - if (usingSsl && this._ignoreSslError) { - // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process - // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options - // we have to cast it to any and change it directly - agent.options = Object.assign(agent.options || {}, { - rejectUnauthorized: false - }); - } - return agent; - } - _performExponentialBackoff(retryNumber) { - retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); - const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise(resolve => setTimeout(() => resolve(), ms)); - } - static dateTimeDeserializer(key, value) { - if (typeof value === 'string') { - let a = new Date(value); - if (!isNaN(a.valueOf())) { - return a; - } - } - return value; - } - async _processResponse(res, options) { - return new Promise(async (resolve, reject) => { - const statusCode = res.message.statusCode; - const response = { - statusCode: statusCode, - result: null, - headers: {} - }; - // not found leads to null obj returned - if (statusCode == HttpCodes.NotFound) { - resolve(response); - } - let obj; - let contents; - // get the result from the body - try { - contents = await res.readBody(); - if (contents && contents.length > 0) { - if (options && options.deserializeDates) { - obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); - } - else { - obj = JSON.parse(contents); - } - response.result = obj; - } - response.headers = res.message.headers; + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - catch (err) { - // Invalid resource (contents not json); leaving result obj null + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - // note that 3xx redirects are handled by the http layer. - if (statusCode > 299) { - let msg; - // if exception/error in body, attempt to get better error - if (obj && obj.message) { - msg = obj.message; - } - else if (contents && contents.length > 0) { - // it may be the case that the exception is in the body message as string - msg = contents; - } - else { - msg = 'Failed request: (' + statusCode + ')'; - } - let err = new Error(msg); - // attach statusCode and body obj (if available) to the error object - err['statusCode'] = statusCode; - if (response.result) { - err['result'] = response.result; - } - reject(err); + } + 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://workstations.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - resolve(response); + return (0, googleapis_common_1.createAPIRequest)(parameters); } - }); + } } -} -exports.HttpClient = HttpClient; + workstations_v1beta.Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations = Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations; +})(workstations_v1beta = exports.workstations_v1beta || (exports.workstations_v1beta = {})); /***/ }), -/* 540 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.sql = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta4_1 = __webpack_require__(475); -exports.VERSIONS = { - v1beta4: v1beta4_1.sql_v1beta4.Sql, -}; -function sql(versionOrOptions) { - return googleapis_common_1.getAPI('sql', versionOrOptions, exports.VERSIONS, this); -} -exports.sql = sql; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 541 */ +/***/ 7233: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -182238,47 +438365,54 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.videointelligence_v1p1beta1 = void 0; +exports.spanner_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 = __webpack_require__(927); -var videointelligence_v1p1beta1; -(function (videointelligence_v1p1beta1) { +var spanner_v1; +(function (spanner_v1) { /** - * Cloud Video Intelligence API + * Cloud Spanner API * - * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service. * * @example + * ```js * const {google} = require('googleapis'); - * const videointelligence = google.videointelligence('v1p1beta1'); - * - * @namespace videointelligence - * @type {Function} - * @version v1p1beta1 - * @variation v1p1beta1 - * @param {object=} options Options for Videointelligence + * const spanner = google.spanner('v1'); + * ``` */ - class Videointelligence { + class Spanner { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.videos = new Resource$Videos(this.context); + this.projects = new Resource$Projects(this.context); + this.scans = new Resource$Scans(this.context); } } - videointelligence_v1p1beta1.Videointelligence = Videointelligence; - class Resource$Videos { + spanner_v1.Spanner = Spanner; + class Resource$Projects { constructor(context) { this.context = context; + this.instanceConfigOperations = + new Resource$Projects$Instanceconfigoperations(this.context); + this.instanceConfigs = new Resource$Projects$Instanceconfigs(this.context); + this.instances = new Resource$Projects$Instances(this.context); } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + spanner_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Instanceconfigoperations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -182289,90 +438423,257 @@ var videointelligence_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/instanceConfigOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - videointelligence_v1p1beta1.Resource$Videos = Resource$Videos; -})(videointelligence_v1p1beta1 = exports.videointelligence_v1p1beta1 || (exports.videointelligence_v1p1beta1 = {})); -//# sourceMappingURL=v1p1beta1.js.map - -/***/ }), -/* 542 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.binaryauthorization_v1beta1 = 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 = __webpack_require__(927); -var binaryauthorization_v1beta1; -(function (binaryauthorization_v1beta1) { - /** - * Binary Authorization API - * - * The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters. - * - * @example - * const {google} = require('googleapis'); - * const binaryauthorization = google.binaryauthorization('v1beta1'); - * - * @namespace binaryauthorization - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Binaryauthorization - */ - class Binaryauthorization { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + spanner_v1.Resource$Projects$Instanceconfigoperations = Resource$Projects$Instanceconfigoperations; + class Resource$Projects$Instanceconfigs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Instanceconfigs$Operations(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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - binaryauthorization_v1beta1.Binaryauthorization = Binaryauthorization; - class Resource$Projects { + spanner_v1.Resource$Projects$Instanceconfigs = Resource$Projects$Instanceconfigs; + class Resource$Projects$Instanceconfigs$Operations { constructor(context) { this.context = context; - this.attestors = new Resource$Projects$Attestors(this.context); - this.policy = new Resource$Projects$Policy(this.context); } - getPolicy(paramsOrCallback, optionsOrCallback, callback) { + 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182385,10 +438686,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -182397,13 +438698,13 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182416,11 +438717,11 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -182428,17 +438729,23 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - binaryauthorization_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Attestors { + spanner_v1.Resource$Projects$Instanceconfigs$Operations = Resource$Projects$Instanceconfigs$Operations; + class Resource$Projects$Instances { constructor(context) { this.context = context; + this.backupOperations = new Resource$Projects$Instances$Backupoperations(this.context); + this.backups = new Resource$Projects$Instances$Backups(this.context); + this.databaseOperations = + new Resource$Projects$Instances$Databaseoperations(this.context); + this.databases = new Resource$Projects$Instances$Databases(this.context); + this.operations = new Resource$Projects$Instances$Operations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -182453,10 +438760,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -182465,10 +438772,10 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -182484,10 +438791,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -182496,10 +438803,10 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -182515,10 +438822,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -182527,10 +438834,10 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -182546,11 +438853,11 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -182558,10 +438865,10 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -182577,10 +438884,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -182589,10 +438896,41 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -182608,10 +438946,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -182620,10 +438958,10 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -182639,10 +438977,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -182651,13 +438989,19 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + spanner_v1.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Backupoperations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182670,31 +439014,32 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/backupOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - binaryauthorization_v1beta1.Resource$Projects$Attestors = Resource$Projects$Attestors; - class Resource$Projects$Policy { + spanner_v1.Resource$Projects$Instances$Backupoperations = Resource$Projects$Instances$Backupoperations; + class Resource$Projects$Instances$Backups { constructor(context) { this.context = context; + this.operations = new Resource$Projects$Instances$Backups$Operations(this.context); } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + copy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182707,22 +439052,208 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups:copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, requiredParams: ['resource'], pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -182738,10 +439269,10 @@ var binaryauthorization_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -182750,10 +439281,10 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -182762,17 +439293,18 @@ var binaryauthorization_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -182781,79 +439313,354 @@ var binaryauthorization_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - binaryauthorization_v1beta1.Resource$Projects$Policy = Resource$Projects$Policy; -})(binaryauthorization_v1beta1 = exports.binaryauthorization_v1beta1 || (exports.binaryauthorization_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 543 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.tagmanager_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 = __webpack_require__(927); -var tagmanager_v2; -(function (tagmanager_v2) { - /** - * Tag Manager API - * - * This API allows clients to access and modify container and tag configuration. - * - * @example - * const {google} = require('googleapis'); - * const tagmanager = google.tagmanager('v2'); - * - * @namespace tagmanager - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Tagmanager - */ - class Tagmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + spanner_v1.Resource$Projects$Instances$Backups = Resource$Projects$Instances$Backups; + class Resource$Projects$Instances$Backups$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://spanner.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, }; - this.accounts = new Resource$Accounts(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - tagmanager_v2.Tagmanager = Tagmanager; - class Resource$Accounts { + spanner_v1.Resource$Projects$Instances$Backups$Operations = Resource$Projects$Instances$Backups$Operations; + class Resource$Projects$Instances$Databaseoperations { constructor(context) { this.context = context; - this.containers = new Resource$Accounts$Containers(this.context); - this.user_permissions = new Resource$Accounts$User_permissions(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databaseOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Databaseoperations = Resource$Projects$Instances$Databaseoperations; + class Resource$Projects$Instances$Databases { + constructor(context) { + this.context = context; + this.databaseRoles = + new Resource$Projects$Instances$Databases$Databaseroles(this.context); + this.operations = new Resource$Projects$Instances$Databases$Operations(this.context); + this.sessions = new Resource$Projects$Instances$Databases$Sessions(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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + dropDatabase(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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getDdl(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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getScans(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -182864,26 +439671,27 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/scans').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -182894,26 +439702,27 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -182924,35 +439733,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Containers { - constructor(context) { - this.context = context; - this.environments = new Resource$Accounts$Containers$Environments(this.context); - this.versions = new Resource$Accounts$Containers$Versions(this.context); - this.version_headers = new Resource$Accounts$Containers$Version_headers(this.context); - this.workspaces = new Resource$Accounts$Containers$Workspaces(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182965,10 +439764,10 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/databases:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -182977,75 +439776,77 @@ var tagmanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateDdl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183058,505 +439859,520 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + spanner_v1.Resource$Projects$Instances$Databases = Resource$Projects$Instances$Databases; + class Resource$Projects$Instances$Databases$Databaseroles { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/databaseRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers = Resource$Accounts$Containers; - class Resource$Accounts$Containers$Environments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + spanner_v1.Resource$Projects$Instances$Databases$Databaseroles = Resource$Projects$Instances$Databases$Databaseroles; + class Resource$Projects$Instances$Databases$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reauthorize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:reauthorize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + spanner_v1.Resource$Projects$Instances$Databases$Operations = Resource$Projects$Instances$Databases$Operations; + class Resource$Projects$Instances$Databases$Sessions { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+database}/sessions:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; - class Resource$Accounts$Containers$Versions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+session}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+session}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - live(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/versions:live').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - set_latest(paramsOrCallback, optionsOrCallback, callback) { + executeBatchDml(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:set_latest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:executeBatchDml').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + executeSql(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:executeSql').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + executeStreamingSql(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+session}:executeStreamingSql').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; - class Resource$Accounts$Containers$Version_headers { - constructor(context) { - this.context = context; - } - latest(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers:latest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -183565,200 +440381,199 @@ var tagmanager_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Version_headers = Resource$Accounts$Containers$Version_headers; - class Resource$Accounts$Containers$Workspaces { - constructor(context) { - this.context = context; - this.built_in_variables = new Resource$Accounts$Containers$Workspaces$Built_in_variables(this.context); - this.folders = new Resource$Accounts$Containers$Workspaces$Folders(this.context); - this.tags = new Resource$Accounts$Containers$Workspaces$Tags(this.context); - this.templates = new Resource$Accounts$Containers$Workspaces$Templates(this.context); - this.triggers = new Resource$Accounts$Containers$Workspaces$Triggers(this.context); - this.variables = new Resource$Accounts$Containers$Workspaces$Variables(this.context); - this.zones = new Resource$Accounts$Containers$Workspaces$Zones(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + partitionQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create_version(paramsOrCallback, optionsOrCallback, callback) { + partitionRead(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:create_version').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:partitionRead').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + read(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+session}:read').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+session}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(paramsOrCallback, optionsOrCallback, callback) { + streamingRead(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}/status').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+session}:streamingRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + spanner_v1.Resource$Projects$Instances$Databases$Sessions = Resource$Projects$Instances$Databases$Sessions; + class Resource$Projects$Instances$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183771,25 +440586,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - quick_preview(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183802,25 +440617,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:quick_preview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve_conflict(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183833,25 +440648,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:resolve_conflict').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sync(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183864,27 +440679,32 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:sync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + spanner_v1.Resource$Projects$Instances$Operations = Resource$Projects$Instances$Operations; + class Resource$Scans { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183895,33 +440715,216 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tagmanager_v2.Resource$Accounts$Containers$Workspaces = Resource$Accounts$Containers$Workspaces; - class Resource$Accounts$Containers$Workspaces$Built_in_variables { + spanner_v1.Resource$Scans = Resource$Scans; +})(spanner_v1 = exports.spanner_v1 || (exports.spanner_v1 = {})); + + +/***/ }), + +/***/ 7253: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.integrations_v1alpha = exports.auth = exports.integrations = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha_1 = __webpack_require__(1200); +Object.defineProperty(exports, "integrations_v1alpha", { enumerable: true, get: function () { return v1alpha_1.integrations_v1alpha; } }); +exports.VERSIONS = { + v1alpha: v1alpha_1.integrations_v1alpha.Integrations, +}; +function integrations(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('integrations', versionOrOptions, exports.VERSIONS, this); +} +exports.integrations = integrations; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7260: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.groupssettings_v1 = exports.auth = exports.groupssettings = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(913); +Object.defineProperty(exports, "groupssettings_v1", { enumerable: true, get: function () { return v1_1.groupssettings_v1; } }); +exports.VERSIONS = { + v1: v1_1.groupssettings_v1.Groupssettings, +}; +function groupssettings(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('groupssettings', versionOrOptions, exports.VERSIONS, this); +} +exports.groupssettings = groupssettings; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7262: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const fs_1 = __webpack_require__(5747); +const os_1 = __webpack_require__(2087); +class Context { + /** + * Hydrate the context from the environment + */ + constructor() { + this.payload = {}; + if (process.env.GITHUB_EVENT_PATH) { + if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) { + this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); + } + else { + const path = process.env.GITHUB_EVENT_PATH; + process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`); + } + } + this.eventName = process.env.GITHUB_EVENT_NAME; + this.sha = process.env.GITHUB_SHA; + this.ref = process.env.GITHUB_REF; + this.workflow = process.env.GITHUB_WORKFLOW; + this.action = process.env.GITHUB_ACTION; + this.actor = process.env.GITHUB_ACTOR; + } + get issue() { + const payload = this.payload; + return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number }); + } + get repo() { + if (process.env.GITHUB_REPOSITORY) { + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); + return { owner, repo }; + } + if (this.payload.repository) { + return { + owner: this.payload.repository.owner.login, + repo: this.payload.repository.name + }; + } + throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); + } +} +exports.Context = Context; +//# sourceMappingURL=context.js.map + +/***/ }), + +/***/ 7281: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.displayvideo_v1dev = 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 = __webpack_require__(927); +var displayvideo_v1dev; +(function (displayvideo_v1dev) { + /** + * Display & Video 360 API + * + * Display & Video 360 API allows users to manage and create campaigns and reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const displayvideo = google.displayvideo('v1dev'); + * ``` + */ + class Displayvideo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); + } + } + displayvideo_v1dev.Displayvideo = Displayvideo; + class Resource$Media { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183932,25 +440935,38 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1dev.Resource$Media = Resource$Media; + class Resource$Sdfdownloadtasks { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtasks$Operations(this.context); + } + } + displayvideo_v1dev.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; + class Resource$Sdfdownloadtasks$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183963,25 +440979,456 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1dev/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1dev.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; +})(displayvideo_v1dev = exports.displayvideo_v1dev || (exports.displayvideo_v1dev = {})); + + +/***/ }), + +/***/ 7289: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.gkehub_v2alpha = exports.gkehub_v1beta1 = exports.gkehub_v1beta = exports.gkehub_v1alpha2 = exports.gkehub_v1alpha = exports.gkehub_v1 = exports.auth = exports.gkehub = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1265); +Object.defineProperty(exports, "gkehub_v1", { enumerable: true, get: function () { return v1_1.gkehub_v1; } }); +const v1alpha_1 = __webpack_require__(9062); +Object.defineProperty(exports, "gkehub_v1alpha", { enumerable: true, get: function () { return v1alpha_1.gkehub_v1alpha; } }); +const v1alpha2_1 = __webpack_require__(5369); +Object.defineProperty(exports, "gkehub_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.gkehub_v1alpha2; } }); +const v1beta_1 = __webpack_require__(3900); +Object.defineProperty(exports, "gkehub_v1beta", { enumerable: true, get: function () { return v1beta_1.gkehub_v1beta; } }); +const v1beta1_1 = __webpack_require__(7365); +Object.defineProperty(exports, "gkehub_v1beta1", { enumerable: true, get: function () { return v1beta1_1.gkehub_v1beta1; } }); +const v2alpha_1 = __webpack_require__(9538); +Object.defineProperty(exports, "gkehub_v2alpha", { enumerable: true, get: function () { return v2alpha_1.gkehub_v2alpha; } }); +exports.VERSIONS = { + v1: v1_1.gkehub_v1.Gkehub, + v1alpha: v1alpha_1.gkehub_v1alpha.Gkehub, + v1alpha2: v1alpha2_1.gkehub_v1alpha2.Gkehub, + v1beta: v1beta_1.gkehub_v1beta.Gkehub, + v1beta1: v1beta1_1.gkehub_v1beta1.Gkehub, + v2alpha: v2alpha_1.gkehub_v2alpha.Gkehub, +}; +function gkehub(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gkehub', versionOrOptions, exports.VERSIONS, this); +} +exports.gkehub = gkehub; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7292: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// 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.ExternalAccountAuthorizedUserClient = exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = void 0; +const authclient_1 = __webpack_require__(5616); +const oauth2common_1 = __webpack_require__(6937); +const gaxios_1 = __webpack_require__(3597); +const stream = __webpack_require__(2413); +const baseexternalclient_1 = __webpack_require__(48); +/** + * The credentials JSON file type for external account authorized user clients. + */ +exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = 'external_account_authorized_user'; +/** + * Handler for token refresh requests sent to the token_url endpoint for external + * authorized user credentials. + */ +class ExternalAccountAuthorizedUserHandler extends oauth2common_1.OAuthClientAuthHandler { + /** + * Initializes an ExternalAccountAuthorizedUserHandler instance. + * @param url The URL of the token refresh endpoint. + * @param transporter The transporter to use for the refresh request. + * @param clientAuthentication The client authentication credentials to use + * for the refresh request. + */ + constructor(url, transporter, clientAuthentication) { + super(clientAuthentication); + this.url = url; + this.transporter = transporter; + } + /** + * Requests a new access token from the token_url endpoint using the provided + * refresh token. + * @param refreshToken The refresh token to use to generate a new access token. + * @param additionalHeaders Optional additional headers to pass along the + * request. + * @return A promise that resolves with the token refresh response containing + * the requested access token and its expiration time. + */ + async refreshToken(refreshToken, additionalHeaders) { + const values = new URLSearchParams({ + grant_type: 'refresh_token', + refresh_token: refreshToken, + }); + const headers = { + 'Content-Type': 'application/x-www-form-urlencoded', + ...additionalHeaders, + }; + const opts = { + url: this.url, + method: 'POST', + headers, + data: values.toString(), + responseType: 'json', + }; + // Apply OAuth client authentication. + this.applyClientAuthenticationOptions(opts); + try { + const response = await this.transporter.request(opts); + // Successful response. + const tokenRefreshResponse = response.data; + tokenRefreshResponse.res = response; + return tokenRefreshResponse; + } + catch (error) { + // Translate error to OAuthError. + if (error instanceof gaxios_1.GaxiosError && error.response) { + throw (0, oauth2common_1.getErrorFromOAuthErrorResponse)(error.response.data, + // Preserve other fields from the original error. + error); + } + // Request could fail before the server responds. + throw error; + } + } +} +/** + * External Account Authorized User Client. This is used for OAuth2 credentials + * sourced using external identities through Workforce Identity Federation. + * Obtaining the initial access and refresh token can be done through the + * Google Cloud CLI. + */ +class ExternalAccountAuthorizedUserClient extends authclient_1.AuthClient { + /** + * Instantiates an ExternalAccountAuthorizedUserClient instances using the + * provided JSON object loaded from a credentials files. + * An error is throws if the credential is not valid. + * @param options The external account authorized user option object typically + * from the external accoutn authorized user JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(); + this.refreshToken = options.refresh_token; + const clientAuth = { + confidentialClientType: 'basic', + clientId: options.client_id, + clientSecret: options.client_secret, + }; + this.externalAccountAuthorizedUserHandler = + new ExternalAccountAuthorizedUserHandler(options.token_url, this.transporter, clientAuth); + this.cachedAccessToken = null; + this.quotaProjectId = options.quota_project_id; + // As threshold could be zero, + // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the + // zero value. + if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { + this.eagerRefreshThresholdMillis = baseexternalclient_1.EXPIRATION_TIME_OFFSET; + } + else { + this.eagerRefreshThresholdMillis = additionalOptions + .eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); + } + async getAccessToken() { + // If cached access token is unavailable or expired, force refresh. + if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return GCP access token in GetAccessTokenResponse format. + return { + token: this.cachedAccessToken.access_token, + res: this.cachedAccessToken.res, + }; + } + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param retry Whether the current attempt is a retry after a failed attempt. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, retry = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * @return A promise that resolves with the refreshed credential. + */ + async refreshAccessTokenAsync() { + // Refresh the access token using the refresh token. + const refreshResponse = await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken); + this.cachedAccessToken = { + access_token: refreshResponse.access_token, + expiry_date: new Date().getTime() + refreshResponse.expires_in * 1000, + res: refreshResponse.res, + }; + if (refreshResponse.refresh_token !== undefined) { + this.refreshToken = refreshResponse.refresh_token; + } + return this.cachedAccessToken; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param credentials The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(credentials) { + const now = new Date().getTime(); + return credentials.expiry_date + ? now >= credentials.expiry_date - this.eagerRefreshThresholdMillis + : false; + } +} +exports.ExternalAccountAuthorizedUserClient = ExternalAccountAuthorizedUserClient; +//# sourceMappingURL=externalAccountAuthorizedUserClient.js.map + +/***/ }), + +/***/ 7293: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticationRequestError; + +const { RequestError } = __webpack_require__(3497); + +function authenticationRequestError(state, error, options) { + if (!error.headers) throw error; + + const otpRequired = /required/.test(error.headers["x-github-otp"] || ""); + // handle "2FA required" error only + if (error.status !== 401 || !otpRequired) { + throw error; + } + + if ( + error.status === 401 && + otpRequired && + error.request && + error.request.headers["x-github-otp"] + ) { + if (state.otp) { + delete state.otp; // no longer valid, request again + } else { + throw new RequestError( + "Invalid one-time password for two-factor authentication", + 401, + { + headers: error.headers, + request: options + } + ); + } + } + + if (typeof state.auth.on2fa !== "function") { + throw new RequestError( + "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication", + 401, + { + headers: error.headers, + request: options + } + ); + } + + return Promise.resolve() + .then(() => { + return state.auth.on2fa(); + }) + .then(oneTimePassword => { + const newOptions = Object.assign(options, { + headers: Object.assign(options.headers, { + "x-github-otp": oneTimePassword + }) + }); + return state.octokit.request(newOptions).then(response => { + // If OTP still valid, then persist it for following requests + state.otp = oneTimePassword; + return response; + }); + }); +} + + +/***/ }), + +/***/ 7298: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudidentity_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudidentity_v1; +(function (cloudidentity_v1) { + /** + * Cloud Identity API + * + * API for provisioning and managing identity resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudidentity = google.cloudidentity('v1'); + * ``` + */ + class Cloudidentity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.devices = new Resource$Devices(this.context); + this.groups = new Resource$Groups(this.context); + this.inboundSamlSsoProfiles = new Resource$Inboundsamlssoprofiles(this.context); + this.inboundSsoAssignments = new Resource$Inboundssoassignments(this.context); + } + } + cloudidentity_v1.Cloudidentity = Cloudidentity; + class Resource$Customers { + constructor(context) { + this.context = context; + this.userinvitations = new Resource$Customers$Userinvitations(this.context); + } + } + cloudidentity_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Userinvitations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183994,25 +441441,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184025,62 +441472,57 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}/built_in_variables:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Built_in_variables = Resource$Accounts$Containers$Workspaces$Built_in_variables; - class Resource$Accounts$Containers$Workspaces$Folders { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + isInvitableUser(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184093,25 +441535,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - entities(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184124,25 +441566,32 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:entities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1.Resource$Customers$Userinvitations = Resource$Customers$Userinvitations; + class Resource$Devices { + constructor(context) { + this.context = context; + this.deviceUsers = new Resource$Devices$Deviceusers(this.context); + } + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184155,27 +441604,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184186,27 +441634,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move_entities_to_folder(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184217,27 +441664,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:move_entities_to_folder').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184248,27 +441694,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184279,33 +441724,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Folders = Resource$Accounts$Containers$Workspaces$Folders; - class Resource$Accounts$Containers$Workspaces$Tags { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + wipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184316,25 +441754,32 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1.Resource$Devices = Resource$Devices; + class Resource$Devices$Deviceusers { + constructor(context) { + this.context = context; + this.clientStates = new Resource$Devices$Deviceusers$Clientstates(this.context); + } + approve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184347,25 +441792,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + block(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184378,25 +441823,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184409,25 +441854,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184440,25 +441885,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184471,31 +441916,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Tags = Resource$Accounts$Containers$Workspaces$Tags; - class Resource$Accounts$Containers$Workspaces$Templates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184508,11 +441947,11 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -184520,13 +441959,13 @@ var tagmanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184539,25 +441978,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + wipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184570,25 +442009,31 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; + class Resource$Devices$Deviceusers$Clientstates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184601,25 +442046,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184632,25 +442077,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/clientStates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184663,33 +442108,33 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Templates = Resource$Accounts$Containers$Workspaces$Templates; - class Resource$Accounts$Containers$Workspaces$Triggers { + cloudidentity_v1.Resource$Devices$Deviceusers$Clientstates = Resource$Devices$Deviceusers$Clientstates; + class Resource$Groups { constructor(context) { this.context = context; + this.memberships = new Resource$Groups$Memberships(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184700,27 +442145,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184731,27 +442175,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184762,25 +442205,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184793,27 +442236,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184824,27 +442266,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184855,33 +442296,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Triggers = Resource$Accounts$Containers$Workspaces$Triggers; - class Resource$Accounts$Containers$Workspaces$Variables { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184892,27 +442326,26 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184923,25 +442356,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184954,41 +442387,48 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1.Resource$Groups = Resource$Groups; + class Resource$Groups$Memberships { + constructor(context) { + this.context = context; + } + checkTransitiveMembership(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -184997,13 +442437,13 @@ var tagmanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185016,25 +442456,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185047,31 +442487,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Variables = Resource$Accounts$Containers$Workspaces$Variables; - class Resource$Accounts$Containers$Workspaces$Zones { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185084,25 +442518,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185115,25 +442549,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185146,25 +442580,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185177,10 +442611,10 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -185189,13 +442623,13 @@ var tagmanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185208,25 +442642,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185239,48 +442673,43 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/memberships:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$Containers$Workspaces$Zones = Resource$Accounts$Containers$Workspaces$Zones; - class Resource$Accounts$User_permissions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + searchTransitiveGroups(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -185288,44 +442717,52 @@ var tagmanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchTransitiveMemberships(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1.Resource$Groups$Memberships = Resource$Groups$Memberships; + class Resource$Inboundsamlssoprofiles { + constructor(context) { + this.context = context; + this.idpCredentials = new Resource$Inboundsamlssoprofiles$Idpcredentials(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185338,25 +442775,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185369,25 +442806,25 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185400,94 +442837,27 @@ var tagmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['path'], - pathParams: ['path'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tagmanager_v2.Resource$Accounts$User_permissions = Resource$Accounts$User_permissions; -})(tagmanager_v2 = exports.tagmanager_v2 || (exports.tagmanager_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 544 */, -/* 545 */, -/* 546 */, -/* 547 */, -/* 548 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adexperiencereport_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 = __webpack_require__(927); -var adexperiencereport_v1; -(function (adexperiencereport_v1) { - /** - * Ad Experience Report API - * - * Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads. - * - * @example - * const {google} = require('googleapis'); - * const adexperiencereport = google.adexperiencereport('v1'); - * - * @namespace adexperiencereport - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Adexperiencereport - */ - class Adexperiencereport { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.sites = new Resource$Sites(this.context); - this.violatingSites = new Resource$Violatingsites(this.context); - } - } - adexperiencereport_v1.Adexperiencereport = Adexperiencereport; - class Resource$Sites { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -185498,31 +442868,25 @@ var adexperiencereport_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexperiencereport_v1.Resource$Sites = Resource$Sites; - class Resource$Violatingsites { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185535,210 +442899,145 @@ var adexperiencereport_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; -})(adexperiencereport_v1 = exports.adexperiencereport_v1 || (exports.adexperiencereport_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 549 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.admob_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 = __webpack_require__(927); -var admob_v1; -(function (admob_v1) { - /** - * AdMob API - * - * The Google AdMob API lets you programmatically get reports on earnings. - * - * @example - * const {google} = require('googleapis'); - * const admob = google.admob('v1'); - * - * @namespace admob - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Admob - */ - class Admob { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - } - } - admob_v1.Admob = Admob; - class Resource$Accounts { + cloudidentity_v1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; + class Resource$Inboundsamlssoprofiles$Idpcredentials { constructor(context) { this.context = context; - this.mediationReport = new Resource$Accounts$Mediationreport(this.context); - this.networkReport = new Resource$Accounts$Networkreport(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admob_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Mediationreport { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admob_v1.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport; - class Resource$Accounts$Networkreport { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/idpCredentials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -185746,90 +443045,17 @@ var admob_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admob_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; -})(admob_v1 = exports.admob_v1 || (exports.admob_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 550 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = getNextPage - -const getPage = __webpack_require__(265) - -function getNextPage (octokit, link, headers) { - return getPage(octokit, link, 'next', headers) -} - - -/***/ }), -/* 551 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.accesscontextmanager_v1beta = 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 = __webpack_require__(927); -var accesscontextmanager_v1beta; -(function (accesscontextmanager_v1beta) { - /** - * Access Context Manager API - * - * An API for setting attribute based access control to requests to GCP services. - * - * @example - * const {google} = require('googleapis'); - * const accesscontextmanager = google.accesscontextmanager('v1beta'); - * - * @namespace accesscontextmanager - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Accesscontextmanager - */ - class Accesscontextmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accessPolicies = new Resource$Accesspolicies(this.context); - this.operations = new Resource$Operations(this.context); - } - } - accesscontextmanager_v1beta.Accesscontextmanager = Accesscontextmanager; - class Resource$Accesspolicies { + cloudidentity_v1.Resource$Inboundsamlssoprofiles$Idpcredentials = Resource$Inboundsamlssoprofiles$Idpcredentials; + class Resource$Inboundssoassignments { constructor(context) { this.context = context; - this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context); - this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -185844,10 +443070,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -185856,10 +443082,10 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -185875,10 +443101,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -185887,10 +443113,10 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -185906,10 +443132,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -185918,10 +443144,10 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -185937,10 +443163,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -185949,10 +443175,10 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -185968,10 +443194,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -185980,17 +443206,125 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accesscontextmanager_v1beta.Resource$Accesspolicies = Resource$Accesspolicies; - class Resource$Accesspolicies$Accesslevels { + cloudidentity_v1.Resource$Inboundssoassignments = Resource$Inboundssoassignments; +})(cloudidentity_v1 = exports.cloudidentity_v1 || (exports.cloudidentity_v1 = {})); + + +/***/ }), + +/***/ 7308: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.searchads360_v0 = exports.auth = exports.searchads360 = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v0_1 = __webpack_require__(4533); +Object.defineProperty(exports, "searchads360_v0", { enumerable: true, get: function () { return v0_1.searchads360_v0; } }); +exports.VERSIONS = { + v0: v0_1.searchads360_v0.Searchads360, +}; +function searchads360(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('searchads360', versionOrOptions, exports.VERSIONS, this); +} +exports.searchads360 = searchads360; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7327: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.run_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var run_v2; +(function (run_v2) { + /** + * Cloud Run Admin API + * + * Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const run = google.run('v2'); + * ``` + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + run_v2.Run = Run; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + run_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); + } + } + run_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { constructor(context) { this.context = context; + this.executions = new Resource$Projects$Locations$Jobs$Executions(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -186005,10 +443339,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -186017,10 +443351,10 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -186036,10 +443370,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -186048,10 +443382,10 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -186067,10 +443401,10 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -186079,13 +443413,13 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186098,25 +443432,25 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186129,31 +443463,25 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accesscontextmanager_v1beta.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; - class Resource$Accesspolicies$Serviceperimeters { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186166,25 +443494,25 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186197,11 +443525,11 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -186209,13 +443537,13 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186228,73 +443556,82 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + run_v2.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobs$Executions { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Jobs$Executions$Tasks(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -186302,20 +443639,15 @@ var accesscontextmanager_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accesscontextmanager_v1beta.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; - class Resource$Operations { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186326,90 +443658,25 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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); - } - } - } - accesscontextmanager_v1beta.Resource$Operations = Resource$Operations; -})(accesscontextmanager_v1beta = exports.accesscontextmanager_v1beta || (exports.accesscontextmanager_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 552 */, -/* 553 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.pubsub_v1beta1a = 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 = __webpack_require__(927); -var pubsub_v1beta1a; -(function (pubsub_v1beta1a) { - /** - * Cloud Pub/Sub API - * - * Provides reliable, many-to-many, asynchronous messaging between applications. - * - * @example - * const {google} = require('googleapis'); - * const pubsub = google.pubsub('v1beta1a'); - * - * @namespace pubsub - * @type {Function} - * @version v1beta1a - * @variation v1beta1a - * @param {object=} options Options for Pubsub - */ - class Pubsub { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.subscriptions = new Resource$Subscriptions(this.context); - this.topics = new Resource$Topics(this.context); - } - } - pubsub_v1beta1a.Pubsub = Pubsub; - class Resource$Subscriptions { - constructor(context) { - this.context = context; + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186422,87 +443689,101 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + run_v2.Resource$Projects$Locations$Jobs$Executions = Resource$Projects$Locations$Jobs$Executions; + class Resource$Projects$Locations$Jobs$Executions$Tasks { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + run_v2.Resource$Projects$Locations$Jobs$Executions$Tasks = Resource$Projects$Locations$Jobs$Executions$Tasks; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186515,25 +443796,25 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186546,25 +443827,25 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186577,25 +443858,25 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186608,25 +443889,32 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(paramsOrCallback, optionsOrCallback, callback) { + } + run_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + this.revisions = new Resource$Projects$Locations$Services$Revisions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186639,25 +443927,25 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/pull').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pullBatch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186670,32 +443958,27 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/pullBatch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - pubsub_v1beta1a.Resource$Subscriptions = Resource$Subscriptions; - class Resource$Topics { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186706,26 +443989,27 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186736,26 +444020,27 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186766,26 +444051,27 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186796,26 +444082,27 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186826,1012 +444113,166 @@ var pubsub_v1beta1a; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publishBatch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/publishBatch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - pubsub_v1beta1a.Resource$Topics = Resource$Topics; -})(pubsub_v1beta1a = exports.pubsub_v1beta1a || (exports.pubsub_v1beta1a = {})); -//# sourceMappingURL=v1beta1a.js.map - -/***/ }), -/* 554 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.analyticsreporting_v4 = 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 = __webpack_require__(927); -var analyticsreporting_v4; -(function (analyticsreporting_v4) { - /** - * Analytics Reporting API - * - * Accesses Analytics report data. - * - * @example - * const {google} = require('googleapis'); - * const analyticsreporting = google.analyticsreporting('v4'); - * - * @namespace analyticsreporting - * @type {Function} - * @version v4 - * @variation v4 - * @param {object=} options Options for Analyticsreporting - */ - class Analyticsreporting { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.reports = new Resource$Reports(this.context); - this.userActivity = new Resource$Useractivity(this.context); - } - } - analyticsreporting_v4.Analyticsreporting = Analyticsreporting; - class Resource$Reports { + run_v2.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Revisions { constructor(context) { this.context = context; } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsreporting_v4.Resource$Reports = Resource$Reports; - class Resource$Useractivity { - constructor(context) { - this.context = context; - } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/userActivity:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsreporting_v4.Resource$Useractivity = Resource$Useractivity; -})(analyticsreporting_v4 = exports.analyticsreporting_v4 || (exports.analyticsreporting_v4 = {})); -//# sourceMappingURL=v4.js.map - -/***/ }), -/* 555 */, -/* 556 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.appsactivity_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 = __webpack_require__(927); -var appsactivity_v1; -(function (appsactivity_v1) { - /** - * Drive Activity API - * - * Provides a historical view of activity. - * - * @example - * const {google} = require('googleapis'); - * const appsactivity = google.appsactivity('v1'); - * - * @namespace appsactivity - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Appsactivity - */ - class Appsactivity { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.activities = new Resource$Activities(this.context); - } - } - appsactivity_v1.Appsactivity = Appsactivity; - class Resource$Activities { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - appsactivity_v1.Resource$Activities = Resource$Activities; -})(appsactivity_v1 = exports.appsactivity_v1 || (exports.appsactivity_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 557 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.youtube = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_1 = __webpack_require__(261); -exports.VERSIONS = { - v3: v3_1.youtube_v3.Youtube, -}; -function youtube(versionOrOptions) { - return googleapis_common_1.getAPI('youtube', versionOrOptions, exports.VERSIONS, this); -} -exports.youtube = youtube; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 558 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = hasPreviousPage - -const deprecate = __webpack_require__(370) -const getPageLinks = __webpack_require__(577) - -function hasPreviousPage (link) { - deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).prev -} - - -/***/ }), -/* 559 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(826); - -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } - - return hasSymbolSham(); -}; - - -/***/ }), -/* 560 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _rng = _interopRequireDefault(__webpack_require__(7)); - -var _stringify = _interopRequireDefault(__webpack_require__(106)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || (0, _stringify.default)(b); -} - -var _default = v1; -exports.default = _default; - -/***/ }), -/* 561 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.verifiedaccess = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(841); -exports.VERSIONS = { - v1: v1_1.verifiedaccess_v1.Verifiedaccess, -}; -function verifiedaccess(versionOrOptions) { - return googleapis_common_1.getAPI('verifiedaccess', versionOrOptions, exports.VERSIONS, this); -} -exports.verifiedaccess = verifiedaccess; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 562 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var osName = _interopDefault(__webpack_require__(2)); - -function getUserAgent() { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return "Windows "; - } - - return ""; - } -} - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 563 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = getPreviousPage - -const getPage = __webpack_require__(265) - -function getPreviousPage (octokit, link, headers) { - return getPage(octokit, link, 'prev', headers) -} - - -/***/ }), -/* 564 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.adsense = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_4_1 = __webpack_require__(206); -exports.VERSIONS = { - 'v1.4': v1_4_1.adsense_v1_4.Adsense, -}; -function adsense(versionOrOptions) { - return googleapis_common_1.getAPI('adsense', versionOrOptions, exports.VERSIONS, this); -} -exports.adsense = adsense; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 565 */ -/***/ (function(module) { - -module.exports = require("http2"); - -/***/ }), -/* 566 */, -/* 567 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var formats = __webpack_require__(852); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - - if (isArray(obj)) { - var compacted = []; - - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } - - item.obj[item.prop] = compacted; - } - } -}; - -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } - - return target; - } - - if (!target || typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; - -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; - -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } - - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } - - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - - if ( - c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || (c >= 0x30 && c <= 0x39) // 0-9 - || (c >= 0x41 && c <= 0x5A) // a-z - || (c >= 0x61 && c <= 0x7A) // A-Z - || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) - ) { - out += string.charAt(i); - continue; - } - - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - out += hexTable[0xF0 | (c >> 18)] - + hexTable[0x80 | ((c >> 12) & 0x3F)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; - } - - return out; -}; - -var compact = function compact(value) { - var queue = [{ obj: { o: value }, prop: 'o' }]; - var refs = []; - - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ obj: obj, prop: key }); - refs.push(val); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - - compactQueue(queue); - - return value; -}; - -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; - -var combine = function combine(a, b) { - return [].concat(a, b); -}; - -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; - -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; - - -/***/ }), -/* 568 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -const path = __webpack_require__(622); -const niceTry = __webpack_require__(948); -const resolveCommand = __webpack_require__(489); -const escape = __webpack_require__(462); -const readShebang = __webpack_require__(389); -const semver = __webpack_require__(280); - -const isWin = process.platform === 'win32'; -const isExecutableRegExp = /\.(?:com|exe)$/i; -const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - -// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0 -const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false; - -function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - - const shebang = parsed.file && readShebang(parsed.file); - - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - - return resolveCommand(parsed); - } - - return parsed.file; -} - -function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - - // Detect & add support for shebangs - const commandFile = detectShebang(parsed); - - // We don't need a shell if the command filename is an executable - const needsShell = !isExecutableRegExp.test(commandFile); - - // If a shell is required, use cmd.exe and take care of escaping everything correctly - // Note that `forceShell` is an hidden option used only in tests - if (parsed.options.forceShell || needsShell) { - // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/` - // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument - // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called, - // we need to double escape them - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - - // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar) - // This is necessary otherwise it will always fail with ENOENT in those cases - parsed.command = path.normalize(parsed.command); - - // Escape command & arguments - parsed.command = escape.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); - - const shellCommand = [parsed.command].concat(parsed.args).join(' '); - - parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; - parsed.command = process.env.comspec || 'cmd.exe'; - parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped - } - - return parsed; -} - -function parseShell(parsed) { - // If node supports the shell option, there's no need to mimic its behavior - if (supportsShellOption) { - return parsed; - } - - // Mimic node shell option - // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335 - const shellCommand = [parsed.command].concat(parsed.args).join(' '); - - if (isWin) { - parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe'; - parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; - parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped - } else { - if (typeof parsed.options.shell === 'string') { - parsed.command = parsed.options.shell; - } else if (process.platform === 'android') { - parsed.command = '/system/bin/sh'; - } else { - parsed.command = '/bin/sh'; - } - - parsed.args = ['-c', shellCommand]; - } - - return parsed; -} - -function parse(command, args, options) { - // Normalize arguments, similar to nodejs - if (args && !Array.isArray(args)) { - options = args; - args = null; - } - - args = args ? args.slice(0) : []; // Clone array to avoid changing the original - options = Object.assign({}, options); // Clone object to avoid changing the original - - // Build our parsed object - const parsed = { - command, - args, - options, - file: undefined, - original: { - command, - args, - }, - }; - - // Delegate further parsing to shell or non-shell - return options.shell ? parseShell(parsed) : parseNonShell(parsed); -} - -module.exports = parse; + run_v2.Resource$Projects$Locations$Services$Revisions = Resource$Projects$Locations$Services$Revisions; +})(run_v2 = exports.run_v2 || (exports.run_v2 = {})); /***/ }), -/* 569 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.texttospeech = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(657); -const v1beta1_1 = __webpack_require__(33); -exports.VERSIONS = { - v1: v1_1.texttospeech_v1.Texttospeech, - v1beta1: v1beta1_1.texttospeech_v1beta1.Texttospeech, -}; -function texttospeech(versionOrOptions) { - return googleapis_common_1.getAPI('texttospeech', versionOrOptions, exports.VERSIONS, this); -} -exports.texttospeech = texttospeech; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 570 */ +/***/ 7328: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -187849,52 +444290,85 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudscheduler_v1 = void 0; +exports.adexchangebuyer2_v2beta1 = 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 = __webpack_require__(927); -var cloudscheduler_v1; -(function (cloudscheduler_v1) { +var adexchangebuyer2_v2beta1; +(function (adexchangebuyer2_v2beta1) { /** - * Cloud Scheduler API + * Ad Exchange Buyer API II * - * Creates and manages jobs run on a regular recurring schedule. + * Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudscheduler = google.cloudscheduler('v1'); - * - * @namespace cloudscheduler - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudscheduler + * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); + * ``` */ - class Cloudscheduler { + class Adexchangebuyer2 { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.accounts = new Resource$Accounts(this.context); + this.bidders = new Resource$Bidders(this.context); } } - cloudscheduler_v1.Cloudscheduler = Cloudscheduler; - class Resource$Projects { + adexchangebuyer2_v2beta1.Adexchangebuyer2 = Adexchangebuyer2; + class Resource$Accounts { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.clients = new Resource$Accounts$Clients(this.context); + this.creatives = new Resource$Accounts$Creatives(this.context); + this.finalizedProposals = new Resource$Accounts$Finalizedproposals(this.context); + this.products = new Resource$Accounts$Products(this.context); + this.proposals = new Resource$Accounts$Proposals(this.context); + this.publisherProfiles = new Resource$Accounts$Publisherprofiles(this.context); } } - cloudscheduler_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + adexchangebuyer2_v2beta1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Clients { constructor(context) { this.context = context; - this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.invitations = new Resource$Accounts$Clients$Invitations(this.context); + this.users = new Resource$Accounts$Clients$Users(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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -187909,22 +444383,23 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -187940,27 +444415,59 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudscheduler_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { + adexchangebuyer2_v2beta1.Resource$Accounts$Clients = Resource$Accounts$Clients; + class Resource$Accounts$Clients$Invitations { constructor(context) { this.context = context; } @@ -187977,25 +444484,26 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188008,24 +444516,63 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'clientAccountId', 'invitationId'], + pathParams: ['accountId', 'clientAccountId', 'invitationId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Invitations = Resource$Accounts$Clients$Invitations; + class Resource$Accounts$Clients$Users { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -188039,22 +444586,23 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'clientAccountId', 'userId'], + pathParams: ['accountId', 'clientAccountId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -188070,25 +444618,26 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188101,25 +444650,33 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'clientAccountId', 'userId'], + pathParams: ['accountId', 'clientAccountId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Users = Resource$Accounts$Clients$Users; + class Resource$Accounts$Creatives { + constructor(context) { + this.context = context; + this.dealAssociations = new Resource$Accounts$Creatives$Dealassociations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188132,25 +444689,25 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188163,25 +444720,25 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188194,130 +444751,229 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopWatching(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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudscheduler_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; -})(cloudscheduler_v1 = exports.cloudscheduler_v1 || (exports.cloudscheduler_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 571 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.networkmanagement = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(838); -exports.VERSIONS = { - v1beta1: v1beta1_1.networkmanagement_v1beta1.Networkmanagement, -}; -function networkmanagement(versionOrOptions) { - return googleapis_common_1.getAPI('networkmanagement', versionOrOptions, exports.VERSIONS, this); -} -exports.networkmanagement = networkmanagement; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 572 */, -/* 573 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudprofiler_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 = __webpack_require__(927); -var cloudprofiler_v2; -(function (cloudprofiler_v2) { - /** - * Stackdriver Profiler API - * - * Manages continuous profiling information. - * - * @example - * const {google} = require('googleapis'); - * const cloudprofiler = google.cloudprofiler('v2'); - * - * @namespace cloudprofiler - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Cloudprofiler - */ - class Cloudprofiler { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + watch(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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}:watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudprofiler_v2.Cloudprofiler = Cloudprofiler; - class Resource$Projects { + adexchangebuyer2_v2beta1.Resource$Accounts$Creatives = Resource$Accounts$Creatives; + class Resource$Accounts$Creatives$Dealassociations { constructor(context) { this.context = context; - this.profiles = new Resource$Projects$Profiles(this.context); + } + add(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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + remove(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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudprofiler_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Profiles { + adexchangebuyer2_v2beta1.Resource$Accounts$Creatives$Dealassociations = Resource$Accounts$Creatives$Dealassociations; + class Resource$Accounts$Finalizedproposals { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188330,25 +444986,25 @@ var cloudprofiler_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createOffline(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188361,25 +445017,26 @@ var cloudprofiler_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/profiles:createOffline').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188392,439 +445049,102 @@ var cloudprofiler_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudprofiler_v2.Resource$Projects$Profiles = Resource$Projects$Profiles; -})(cloudprofiler_v2 = exports.cloudprofiler_v2 || (exports.cloudprofiler_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 574 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.vault = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(460); -exports.VERSIONS = { - v1: v1_1.vault_v1.Vault, -}; -function vault(versionOrOptions) { - return googleapis_common_1.getAPI('vault', versionOrOptions, exports.VERSIONS, this); -} -exports.vault = vault; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 575 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Password-Based Key-Derivation Function #2 implementation. - * - * See RFC 2898 for details. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(0); -__webpack_require__(220); -__webpack_require__(54); - -var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; - -var crypto; -if(forge.util.isNodejs && !forge.options.usePureJavaScript) { - crypto = __webpack_require__(417); -} - -/** - * Derives a key from a password. - * - * @param p the password as a binary-encoded string of bytes. - * @param s the salt as a binary-encoded string of bytes. - * @param c the iteration count, a positive integer. - * @param dkLen the intended length, in bytes, of the derived key, - * (max: 2^32 - 1) * hash length of the PRF. - * @param [md] the message digest (or algorithm identifier as a string) to use - * in the PRF, defaults to SHA-1. - * @param [callback(err, key)] presence triggers asynchronous version, called - * once the operation completes. - * - * @return the derived key, as a binary-encoded string of bytes, for the - * synchronous version (if no callback is specified). - */ -module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function( - p, s, c, dkLen, md, callback) { - if(typeof md === 'function') { - callback = md; - md = null; - } - - // use native implementation if possible and not disabled, note that - // some node versions only support SHA-1, others allow digest to be changed - if(forge.util.isNodejs && !forge.options.usePureJavaScript && - crypto.pbkdf2 && (md === null || typeof md !== 'object') && - (crypto.pbkdf2Sync.length > 4 || (!md || md === 'sha1'))) { - if(typeof md !== 'string') { - // default prf to SHA-1 - md = 'sha1'; - } - p = Buffer.from(p, 'binary'); - s = Buffer.from(s, 'binary'); - if(!callback) { - if(crypto.pbkdf2Sync.length === 4) { - return crypto.pbkdf2Sync(p, s, c, dkLen).toString('binary'); - } - return crypto.pbkdf2Sync(p, s, c, dkLen, md).toString('binary'); - } - if(crypto.pbkdf2Sync.length === 4) { - return crypto.pbkdf2(p, s, c, dkLen, function(err, key) { - if(err) { - return callback(err); + adexchangebuyer2_v2beta1.Resource$Accounts$Finalizedproposals = Resource$Accounts$Finalizedproposals; + class Resource$Accounts$Products { + constructor(context) { + this.context = context; } - callback(null, key.toString('binary')); - }); - } - return crypto.pbkdf2(p, s, c, dkLen, md, function(err, key) { - if(err) { - return callback(err); - } - callback(null, key.toString('binary')); - }); - } - - if(typeof md === 'undefined' || md === null) { - // default prf to SHA-1 - md = 'sha1'; - } - if(typeof md === 'string') { - if(!(md in forge.md.algorithms)) { - throw new Error('Unknown hash algorithm: ' + md); - } - md = forge.md[md].create(); - } - - var hLen = md.digestLength; - - /* 1. If dkLen > (2^32 - 1) * hLen, output "derived key too long" and - stop. */ - if(dkLen > (0xFFFFFFFF * hLen)) { - var err = new Error('Derived key is too long.'); - if(callback) { - return callback(err); - } - throw err; - } - - /* 2. Let len be the number of hLen-octet blocks in the derived key, - rounding up, and let r be the number of octets in the last - block: - - len = CEIL(dkLen / hLen), - r = dkLen - (len - 1) * hLen. */ - var len = Math.ceil(dkLen / hLen); - var r = dkLen - (len - 1) * hLen; - - /* 3. For each block of the derived key apply the function F defined - below to the password P, the salt S, the iteration count c, and - the block index to compute the block: - - T_1 = F(P, S, c, 1), - T_2 = F(P, S, c, 2), - ... - T_len = F(P, S, c, len), - - where the function F is defined as the exclusive-or sum of the - first c iterates of the underlying pseudorandom function PRF - applied to the password P and the concatenation of the salt S - and the block index i: - - F(P, S, c, i) = u_1 XOR u_2 XOR ... XOR u_c - - where - - u_1 = PRF(P, S || INT(i)), - u_2 = PRF(P, u_1), - ... - u_c = PRF(P, u_{c-1}). - - Here, INT(i) is a four-octet encoding of the integer i, most - significant octet first. */ - var prf = forge.hmac.create(); - prf.start(md, p); - var dk = ''; - var xor, u_c, u_c1; - - // sync version - if(!callback) { - for(var i = 1; i <= len; ++i) { - // PRF(P, S || INT(i)) (first iteration) - prf.start(null, null); - prf.update(s); - prf.update(forge.util.int32ToBytes(i)); - xor = u_c1 = prf.digest().getBytes(); - - // PRF(P, u_{c-1}) (other iterations) - for(var j = 2; j <= c; ++j) { - prf.start(null, null); - prf.update(u_c1); - u_c = prf.digest().getBytes(); - // F(p, s, c, i) - xor = forge.util.xorBytes(xor, u_c, hLen); - u_c1 = u_c; - } - - /* 4. Concatenate the blocks and extract the first dkLen octets to - produce a derived key DK: - - DK = T_1 || T_2 || ... || T_len<0..r-1> */ - dk += (i < len) ? xor : xor.substr(0, r); - } - /* 5. Output the derived key DK. */ - return dk; - } - - // async version - var i = 1, j; - function outer() { - if(i > len) { - // done - return callback(null, dk); - } - - // PRF(P, S || INT(i)) (first iteration) - prf.start(null, null); - prf.update(s); - prf.update(forge.util.int32ToBytes(i)); - xor = u_c1 = prf.digest().getBytes(); - - // PRF(P, u_{c-1}) (other iterations) - j = 2; - inner(); - } - - function inner() { - if(j <= c) { - prf.start(null, null); - prf.update(u_c1); - u_c = prf.digest().getBytes(); - // F(p, s, c, i) - xor = forge.util.xorBytes(xor, u_c, hLen); - u_c1 = u_c; - ++j; - return forge.util.setImmediate(inner); - } - - /* 4. Concatenate the blocks and extract the first dkLen octets to - produce a derived key DK: - - DK = T_1 || T_2 || ... || T_len<0..r-1> */ - dk += (i < len) ? xor : xor.substr(0, r); - - ++i; - outer(); - } - - outer(); -}; - - -/***/ }), -/* 576 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.poly = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(930); -exports.VERSIONS = { - v1: v1_1.poly_v1.Poly, -}; -function poly(versionOrOptions) { - return googleapis_common_1.getAPI('poly', versionOrOptions, exports.VERSIONS, this); -} -exports.poly = poly; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 577 */ -/***/ (function(module) { - -module.exports = getPageLinks - -function getPageLinks (link) { - link = link.link || link.headers.link || '' - - const links = {} - - // link format: - // '; rel="next", ; rel="last"' - link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { - links[type] = uri - }) - - return links -} - - -/***/ }), -/* 578 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.language = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(31); -const v1beta1_1 = __webpack_require__(398); -const v1beta2_1 = __webpack_require__(156); -exports.VERSIONS = { - v1: v1_1.language_v1.Language, - v1beta1: v1beta1_1.language_v1beta1.Language, - v1beta2: v1beta2_1.language_v1beta2.Language, -}; -function language(versionOrOptions) { - return googleapis_common_1.getAPI('language', versionOrOptions, exports.VERSIONS, this); -} -exports.language = language; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 579 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.gmail_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 = __webpack_require__(927); -var gmail_v1; -(function (gmail_v1) { - /** - * Gmail API - * - * Access Gmail mailboxes including sending user email. - * - * @example - * const {google} = require('googleapis'); - * const gmail = google.gmail('v1'); - * - * @namespace gmail - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Gmail - */ - class Gmail { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'productId'], + pathParams: ['accountId', 'productId'], + context: this.context, }; - this.users = new Resource$Users(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - gmail_v1.Gmail = Gmail; - class Resource$Users { + adexchangebuyer2_v2beta1.Resource$Accounts$Products = Resource$Accounts$Products; + class Resource$Accounts$Proposals { constructor(context) { this.context = context; - this.drafts = new Resource$Users$Drafts(this.context); - this.history = new Resource$Users$History(this.context); - this.labels = new Resource$Users$Labels(this.context); - this.messages = new Resource$Users$Messages(this.context); - this.settings = new Resource$Users$Settings(this.context); - this.threads = new Resource$Users$Threads(this.context); } - getProfile(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188835,26 +445155,28 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/profile').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addNote(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188865,26 +445187,28 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancelNegotiation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188895,31 +445219,26 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gmail_v1.Resource$Users = Resource$Users; - class Resource$Users$Drafts { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + completeSetup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188932,26 +445251,26 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188964,26 +445283,27 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188994,22 +445314,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -189025,25 +445345,25 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - send(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189056,23 +445376,55 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resume(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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -189088,31 +445440,62 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$Drafts = Resource$Users$Drafts; - class Resource$Users$History { + adexchangebuyer2_v2beta1.Resource$Accounts$Proposals = Resource$Accounts$Proposals; + class Resource$Accounts$Publisherprofiles { 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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'publisherProfileId'], + pathParams: ['accountId', 'publisherProfileId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -189126,29 +445509,57 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/history').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/accounts/{accountId}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$History = Resource$Users$History; - class Resource$Users$Labels { + adexchangebuyer2_v2beta1.Resource$Accounts$Publisherprofiles = Resource$Accounts$Publisherprofiles; + class Resource$Bidders { + constructor(context) { + this.context = context; + this.accounts = new Resource$Bidders$Accounts(this.context); + this.filterSets = new Resource$Bidders$Filtersets(this.context); + } + } + adexchangebuyer2_v2beta1.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Accounts { + constructor(context) { + this.context = context; + this.filterSets = new Resource$Bidders$Accounts$Filtersets(this.context); + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts = Resource$Bidders$Accounts; + class Resource$Bidders$Accounts$Filtersets { constructor(context) { this.context = context; + this.bidMetrics = new Resource$Bidders$Accounts$Filtersets$Bidmetrics(this.context); + this.bidResponseErrors = + new Resource$Bidders$Accounts$Filtersets$Bidresponseerrors(this.context); + this.bidResponsesWithoutBids = + new Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids(this.context); + this.filteredBidRequests = + new Resource$Bidders$Accounts$Filtersets$Filteredbidrequests(this.context); + this.filteredBids = new Resource$Bidders$Accounts$Filtersets$Filteredbids(this.context); + this.impressionMetrics = + new Resource$Bidders$Accounts$Filtersets$Impressionmetrics(this.context); + this.losingBids = new Resource$Bidders$Accounts$Filtersets$Losingbids(this.context); + this.nonBillableWinningBids = + new Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -189163,22 +445574,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['ownerName'], + pathParams: ['ownerName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -189194,26 +445605,27 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -189224,22 +445636,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -189255,344 +445667,430 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['ownerName'], + pathParams: ['ownerName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets = Resource$Bidders$Accounts$Filtersets; + class Resource$Bidders$Accounts$Filtersets$Bidmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidmetrics = Resource$Bidders$Accounts$Filtersets$Bidmetrics; + class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$Labels = Resource$Users$Labels; - class Resource$Users$Messages { + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidresponseerrors = Resource$Bidders$Accounts$Filtersets$Bidresponseerrors; + class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids { constructor(context) { this.context = context; - this.attachments = new Resource$Users$Messages$Attachments(this.context); } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchModify(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids; + class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchModify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbidrequests = Resource$Bidders$Accounts$Filtersets$Filteredbidrequests; + class Resource$Bidders$Accounts$Filtersets$Filteredbids { + constructor(context) { + this.context = context; + this.creatives = + new Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives(this.context); + this.details = + new Resource$Bidders$Accounts$Filtersets$Filteredbids$Details(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids = Resource$Bidders$Accounts$Filtersets$Filteredbids; + class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives = Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives; + class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids$Details = Resource$Bidders$Accounts$Filtersets$Filteredbids$Details; + class Resource$Bidders$Accounts$Filtersets$Impressionmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Impressionmetrics = Resource$Bidders$Accounts$Filtersets$Impressionmetrics; + class Resource$Bidders$Accounts$Filtersets$Losingbids { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modify(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Losingbids = Resource$Bidders$Accounts$Filtersets$Losingbids; + class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - send(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids = Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids; + class Resource$Bidders$Filtersets { + constructor(context) { + this.context = context; + this.bidMetrics = new Resource$Bidders$Filtersets$Bidmetrics(this.context); + this.bidResponseErrors = + new Resource$Bidders$Filtersets$Bidresponseerrors(this.context); + this.bidResponsesWithoutBids = + new Resource$Bidders$Filtersets$Bidresponseswithoutbids(this.context); + this.filteredBidRequests = + new Resource$Bidders$Filtersets$Filteredbidrequests(this.context); + this.filteredBids = new Resource$Bidders$Filtersets$Filteredbids(this.context); + this.impressionMetrics = + new Resource$Bidders$Filtersets$Impressionmetrics(this.context); + this.losingBids = new Resource$Bidders$Filtersets$Losingbids(this.context); + this.nonBillableWinningBids = + new Resource$Bidders$Filtersets$Nonbillablewinningbids(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189605,26 +446103,25 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['ownerName'], + pathParams: ['ownerName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - trash(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189637,25 +446134,25 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - untrash(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189668,31 +446165,25 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gmail_v1.Resource$Users$Messages = Resource$Users$Messages; - class Resource$Users$Messages$Attachments { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189705,36 +446196,31 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'messageId', 'id'], - pathParams: ['id', 'messageId', 'userId'], + requiredParams: ['ownerName'], + pathParams: ['ownerName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$Messages$Attachments = Resource$Users$Messages$Attachments; - class Resource$Users$Settings { + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets = Resource$Bidders$Filtersets; + class Resource$Bidders$Filtersets$Bidmetrics { constructor(context) { this.context = context; - this.delegates = new Resource$Users$Settings$Delegates(this.context); - this.filters = new Resource$Users$Settings$Filters(this.context); - this.forwardingAddresses = new Resource$Users$Settings$Forwardingaddresses(this.context); - this.sendAs = new Resource$Users$Settings$Sendas(this.context); } - getAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189747,118 +446233,147 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getImap(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidmetrics = Resource$Bidders$Filtersets$Bidmetrics; + class Resource$Bidders$Filtersets$Bidresponseerrors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getLanguage(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseerrors = Resource$Bidders$Filtersets$Bidresponseerrors; + class Resource$Bidders$Filtersets$Bidresponseswithoutbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPop(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Filtersets$Bidresponseswithoutbids; + class Resource$Bidders$Filtersets$Filteredbidrequests { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVacation(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbidrequests = Resource$Bidders$Filtersets$Filteredbidrequests; + class Resource$Bidders$Filtersets$Filteredbids { + constructor(context) { + this.context = context; + this.creatives = new Resource$Bidders$Filtersets$Filteredbids$Creatives(this.context); + this.details = new Resource$Bidders$Filtersets$Filteredbids$Details(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189871,118 +446386,147 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids = Resource$Bidders$Filtersets$Filteredbids; + class Resource$Bidders$Filtersets$Filteredbids$Creatives { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateImap(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Creatives = Resource$Bidders$Filtersets$Filteredbids$Creatives; + class Resource$Bidders$Filtersets$Filteredbids$Details { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLanguage(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Details = Resource$Bidders$Filtersets$Filteredbids$Details; + class Resource$Bidders$Filtersets$Impressionmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePop(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Impressionmetrics = Resource$Bidders$Filtersets$Impressionmetrics; + class Resource$Bidders$Filtersets$Losingbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189995,254 +446539,1444 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateVacation(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Losingbids = Resource$Bidders$Filtersets$Losingbids; + class Resource$Bidders$Filtersets$Nonbillablewinningbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$Settings = Resource$Users$Settings; - class Resource$Users$Settings$Delegates { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['userId'], - pathParams: ['userId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['userId', 'delegateEmail'], - pathParams: ['delegateEmail', 'userId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['userId', 'delegateEmail'], - pathParams: ['delegateEmail', 'userId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['userId'], - pathParams: ['userId'], - context: this.context, + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Nonbillablewinningbids = Resource$Bidders$Filtersets$Nonbillablewinningbids; +})(adexchangebuyer2_v2beta1 = exports.adexchangebuyer2_v2beta1 || (exports.adexchangebuyer2_v2beta1 = {})); + + +/***/ }), + +/***/ 7335: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.artifactregistry_v1beta2 = exports.artifactregistry_v1beta1 = exports.artifactregistry_v1 = exports.auth = exports.artifactregistry = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2015); +Object.defineProperty(exports, "artifactregistry_v1", { enumerable: true, get: function () { return v1_1.artifactregistry_v1; } }); +const v1beta1_1 = __webpack_require__(9496); +Object.defineProperty(exports, "artifactregistry_v1beta1", { enumerable: true, get: function () { return v1beta1_1.artifactregistry_v1beta1; } }); +const v1beta2_1 = __webpack_require__(5946); +Object.defineProperty(exports, "artifactregistry_v1beta2", { enumerable: true, get: function () { return v1beta2_1.artifactregistry_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.artifactregistry_v1.Artifactregistry, + v1beta1: v1beta1_1.artifactregistry_v1beta1.Artifactregistry, + v1beta2: v1beta2_1.artifactregistry_v1beta2.Artifactregistry, +}; +function artifactregistry(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('artifactregistry', versionOrOptions, exports.VERSIONS, this); +} +exports.artifactregistry = artifactregistry; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7349: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Copyright (c) 2005 Tom Wu +// All Rights Reserved. +// See "LICENSE" for details. + +// Basic JavaScript BN library - subset useful for RSA encryption. + +/* +Licensing (LICENSE) +------------------- + +This software is covered under the following copyright: +*/ +/* + * Copyright (c) 2003-2005 Tom Wu + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER + * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF + * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * In addition, the following condition applies: + * + * All redistributions must retain an intact copy of this copyright notice + * and disclaimer. + */ +/* +Address all questions regarding this license to: + + Tom Wu + tjw@cs.Stanford.EDU +*/ +var forge = __webpack_require__(239); + +module.exports = forge.jsbn = forge.jsbn || {}; + +// Bits per digit +var dbits; + +// JavaScript engine analysis +var canary = 0xdeadbeefcafe; +var j_lm = ((canary&0xffffff)==0xefcafe); + +// (public) Constructor +function BigInteger(a,b,c) { + this.data = []; + if(a != null) + if("number" == typeof a) this.fromNumber(a,b,c); + else if(b == null && "string" != typeof a) this.fromString(a,256); + else this.fromString(a,b); +} +forge.jsbn.BigInteger = BigInteger; + +// return new, unset BigInteger +function nbi() { return new BigInteger(null); } + +// am: Compute w_j += (x*this_i), propagate carries, +// c is initial carry, returns final carry. +// c < 3*dvalue, x < 2*dvalue, this_i < dvalue +// We need to select the fastest one that works in this environment. + +// am1: use a single mult and divide to get the high bits, +// max digit bits should be 26 because +// max internal value = 2*dvalue^2-2*dvalue (< 2^53) +function am1(i,x,w,j,c,n) { + while(--n >= 0) { + var v = x*this.data[i++]+w.data[j]+c; + c = Math.floor(v/0x4000000); + w.data[j++] = v&0x3ffffff; + } + return c; +} +// am2 avoids a big mult-and-extract completely. +// Max digit bits should be <= 30 because we do bitwise ops +// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) +function am2(i,x,w,j,c,n) { + var xl = x&0x7fff, xh = x>>15; + while(--n >= 0) { + var l = this.data[i]&0x7fff; + var h = this.data[i++]>>15; + var m = xh*l+h*xl; + l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff); + c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); + w.data[j++] = l&0x3fffffff; + } + return c; +} +// Alternately, set max digit bits to 28 since some +// browsers slow down when dealing with 32-bit numbers. +function am3(i,x,w,j,c,n) { + var xl = x&0x3fff, xh = x>>14; + while(--n >= 0) { + var l = this.data[i]&0x3fff; + var h = this.data[i++]>>14; + var m = xh*l+h*xl; + l = xl*l+((m&0x3fff)<<14)+w.data[j]+c; + c = (l>>28)+(m>>14)+xh*h; + w.data[j++] = l&0xfffffff; + } + return c; +} + +// node.js (no browser) +if(typeof(navigator) === 'undefined') +{ + BigInteger.prototype.am = am3; + dbits = 28; +} else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) { + BigInteger.prototype.am = am2; + dbits = 30; +} else if(j_lm && (navigator.appName != "Netscape")) { + BigInteger.prototype.am = am1; + dbits = 26; +} else { // Mozilla/Netscape seems to prefer am3 + BigInteger.prototype.am = am3; + dbits = 28; +} + +BigInteger.prototype.DB = dbits; +BigInteger.prototype.DM = ((1<= 0; --i) r.data[i] = this.data[i]; + r.t = this.t; + r.s = this.s; +} + +// (protected) set from integer value x, -DV <= x < DV +function bnpFromInt(x) { + this.t = 1; + this.s = (x<0)?-1:0; + if(x > 0) this.data[0] = x; + else if(x < -1) this.data[0] = x+this.DV; + else this.t = 0; +} + +// return bigint initialized to value +function nbv(i) { var r = nbi(); r.fromInt(i); return r; } + +// (protected) set from string and radix +function bnpFromString(s,b) { + var k; + if(b == 16) k = 4; + else if(b == 8) k = 3; + else if(b == 256) k = 8; // byte array + else if(b == 2) k = 1; + else if(b == 32) k = 5; + else if(b == 4) k = 2; + else { this.fromRadix(s,b); return; } + this.t = 0; + this.s = 0; + var i = s.length, mi = false, sh = 0; + while(--i >= 0) { + var x = (k==8)?s[i]&0xff:intAt(s,i); + if(x < 0) { + if(s.charAt(i) == "-") mi = true; + continue; + } + mi = false; + if(sh == 0) + this.data[this.t++] = x; + else if(sh+k > this.DB) { + this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); + } else + this.data[this.t-1] |= x<= this.DB) sh -= this.DB; + } + if(k == 8 && (s[0]&0x80) != 0) { + this.s = -1; + if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this.data[this.t-1] == c) --this.t; +} + +// (public) return string representation in given radix +function bnToString(b) { + if(this.s < 0) return "-"+this.negate().toString(b); + var k; + if(b == 16) k = 4; + else if(b == 8) k = 3; + else if(b == 2) k = 1; + else if(b == 32) k = 5; + else if(b == 4) k = 2; + else return this.toRadix(b); + var km = (1< 0) { + if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); } + while(i >= 0) { + if(p < k) { + d = (this.data[i]&((1<>(p+=this.DB-k); + } else { + d = (this.data[i]>>(p-=k))&km; + if(p <= 0) { p += this.DB; --i; } + } + if(d > 0) m = true; + if(m) r += int2char(d); + } + } + return m?r:"0"; +} + +// (public) -this +function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } + +// (public) |this| +function bnAbs() { return (this.s<0)?this.negate():this; } + +// (public) return + if this > a, - if this < a, 0 if equal +function bnCompareTo(a) { + var r = this.s-a.s; + if(r != 0) return r; + var i = this.t; + r = i-a.t; + if(r != 0) return (this.s<0)?-r:r; + while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r; + return 0; +} + +// returns bit length of the integer x +function nbits(x) { + var r = 1, t; + if((t=x>>>16) != 0) { x = t; r += 16; } + if((t=x>>8) != 0) { x = t; r += 8; } + if((t=x>>4) != 0) { x = t; r += 4; } + if((t=x>>2) != 0) { x = t; r += 2; } + if((t=x>>1) != 0) { x = t; r += 1; } + return r; +} + +// (public) return the number of bits in "this" +function bnBitLength() { + if(this.t <= 0) return 0; + return this.DB*(this.t-1)+nbits(this.data[this.t-1]^(this.s&this.DM)); +} + +// (protected) r = this << n*DB +function bnpDLShiftTo(n,r) { + var i; + for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i]; + for(i = n-1; i >= 0; --i) r.data[i] = 0; + r.t = this.t+n; + r.s = this.s; +} + +// (protected) r = this >> n*DB +function bnpDRShiftTo(n,r) { + for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i]; + r.t = Math.max(this.t-n,0); + r.s = this.s; +} + +// (protected) r = this << n +function bnpLShiftTo(n,r) { + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<= 0; --i) { + r.data[i+ds+1] = (this.data[i]>>cbs)|c; + c = (this.data[i]&bm)<= 0; --i) r.data[i] = 0; + r.data[ds] = c; + r.t = this.t+ds+1; + r.s = this.s; + r.clamp(); +} + +// (protected) r = this >> n +function bnpRShiftTo(n,r) { + r.s = this.s; + var ds = Math.floor(n/this.DB); + if(ds >= this.t) { r.t = 0; return; } + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<>bs; + for(var i = ds+1; i < this.t; ++i) { + r.data[i-ds-1] |= (this.data[i]&bm)<>bs; + } + if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<>= this.DB; + } + if(a.t < this.t) { + c -= a.s; + while(i < this.t) { + c += this.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; + } else { + c += this.s; + while(i < a.t) { + c -= a.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c -= a.s; + } + r.s = (c<0)?-1:0; + if(c < -1) r.data[i++] = this.DV+c; + else if(c > 0) r.data[i++] = c; + r.t = i; + r.clamp(); +} + +// (protected) r = this * a, r != this,a (HAC 14.12) +// "this" should be the larger one if appropriate. +function bnpMultiplyTo(a,r) { + var x = this.abs(), y = a.abs(); + var i = x.t; + r.t = i+y.t; + while(--i >= 0) r.data[i] = 0; + for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t); + r.s = 0; + r.clamp(); + if(this.s != a.s) BigInteger.ZERO.subTo(r,r); +} + +// (protected) r = this^2, r != this (HAC 14.16) +function bnpSquareTo(r) { + var x = this.abs(); + var i = r.t = 2*x.t; + while(--i >= 0) r.data[i] = 0; + for(i = 0; i < x.t-1; ++i) { + var c = x.am(i,x.data[i],r,2*i,0,1); + if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { + r.data[i+x.t] -= x.DV; + r.data[i+x.t+1] = 1; + } + } + if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[i],r,2*i,0,1); + r.s = 0; + r.clamp(); +} + +// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) +// r != q, this != m. q or r may be null. +function bnpDivRemTo(m,q,r) { + var pm = m.abs(); + if(pm.t <= 0) return; + var pt = this.abs(); + if(pt.t < pm.t) { + if(q != null) q.fromInt(0); + if(r != null) this.copyTo(r); + return; + } + if(r == null) r = nbi(); + var y = nbi(), ts = this.s, ms = m.s; + var nsh = this.DB-nbits(pm.data[pm.t-1]); // normalize modulus + if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } else { pm.copyTo(y); pt.copyTo(r); } + var ys = y.t; + var y0 = y.data[ys-1]; + if(y0 == 0) return; + var yt = y0*(1<1)?y.data[ys-2]>>this.F2:0); + var d1 = this.FV/yt, d2 = (1<= 0) { + r.data[r.t++] = 1; + r.subTo(t,r); + } + BigInteger.ONE.dlShiftTo(ys,t); + t.subTo(y,y); // "negative" y so we can replace sub with am later + while(y.t < ys) y.data[y.t++] = 0; + while(--j >= 0) { + // Estimate quotient digit + var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2); + if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out + y.dlShiftTo(j,t); + r.subTo(t,r); + while(r.data[i] < --qd) r.subTo(t,r); + } + } + if(q != null) { + r.drShiftTo(ys,q); + if(ts != ms) BigInteger.ZERO.subTo(q,q); + } + r.t = ys; + r.clamp(); + if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder + if(ts < 0) BigInteger.ZERO.subTo(r,r); +} + +// (public) this mod a +function bnMod(a) { + var r = nbi(); + this.abs().divRemTo(a,null,r); + if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); + return r; +} + +// Modular reduction using "classic" algorithm +function Classic(m) { this.m = m; } +function cConvert(x) { + if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); + else return x; +} +function cRevert(x) { return x; } +function cReduce(x) { x.divRemTo(this.m,null,x); } +function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } +function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + +Classic.prototype.convert = cConvert; +Classic.prototype.revert = cRevert; +Classic.prototype.reduce = cReduce; +Classic.prototype.mulTo = cMulTo; +Classic.prototype.sqrTo = cSqrTo; + +// (protected) return "-1/this % 2^DB"; useful for Mont. reduction +// justification: +// xy == 1 (mod m) +// xy = 1+km +// xy(2-xy) = (1+km)(1-km) +// x[y(2-xy)] = 1-k^2m^2 +// x[y(2-xy)] == 1 (mod m^2) +// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 +// should reduce x and y(2-xy) by m^2 at each step to keep size bounded. +// JS multiply "overflows" differently from C/C++, so care is needed here. +function bnpInvDigit() { + if(this.t < 1) return 0; + var x = this.data[0]; + if((x&1) == 0) return 0; + var y = x&3; // y == 1/x mod 2^2 + y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 + y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 + y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 + // last step - calculate inverse mod DV directly; + // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints + y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits + // we really want the negative inverse, and -DV < y < DV + return (y>0)?this.DV-y:-y; +} + +// Montgomery reduction +function Montgomery(m) { + this.m = m; + this.mp = m.invDigit(); + this.mpl = this.mp&0x7fff; + this.mph = this.mp>>15; + this.um = (1<<(m.DB-15))-1; + this.mt2 = 2*m.t; +} + +// xR mod m +function montConvert(x) { + var r = nbi(); + x.abs().dlShiftTo(this.m.t,r); + r.divRemTo(this.m,null,r); + if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r); + return r; +} + +// x/R mod m +function montRevert(x) { + var r = nbi(); + x.copyTo(r); + this.reduce(r); + return r; +} + +// x = x/R mod m (HAC 14.32) +function montReduce(x) { + while(x.t <= this.mt2) // pad x so am has enough room later + x.data[x.t++] = 0; + for(var i = 0; i < this.m.t; ++i) { + // faster way of calculating u0 = x.data[i]*mp mod DV + var j = x.data[i]&0x7fff; + var u0 = (j*this.mpl+(((j*this.mph+(x.data[i]>>15)*this.mpl)&this.um)<<15))&x.DM; + // use am to combine the multiply-shift-add into one call + j = i+this.m.t; + x.data[j] += this.m.am(0,u0,x,i,0,this.m.t); + // propagate carry + while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; } + } + x.clamp(); + x.drShiftTo(this.m.t,x); + if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); +} + +// r = "x^2/R mod m"; x != r +function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + +// r = "xy/R mod m"; x,y != r +function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + +Montgomery.prototype.convert = montConvert; +Montgomery.prototype.revert = montRevert; +Montgomery.prototype.reduce = montReduce; +Montgomery.prototype.mulTo = montMulTo; +Montgomery.prototype.sqrTo = montSqrTo; + +// (protected) true iff this is even +function bnpIsEven() { return ((this.t>0)?(this.data[0]&1):this.s) == 0; } + +// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) +function bnpExp(e,z) { + if(e > 0xffffffff || e < 1) return BigInteger.ONE; + var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; + g.copyTo(r); + while(--i >= 0) { + z.sqrTo(r,r2); + if((e&(1< 0) z.mulTo(r2,g,r); + else { var t = r; r = r2; r2 = t; } + } + return z.revert(r); +} + +// (public) this^e % m, 0 <= e < 2^32 +function bnModPowInt(e,m) { + var z; + if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); + return this.exp(e,z); +} + +// protected +BigInteger.prototype.copyTo = bnpCopyTo; +BigInteger.prototype.fromInt = bnpFromInt; +BigInteger.prototype.fromString = bnpFromString; +BigInteger.prototype.clamp = bnpClamp; +BigInteger.prototype.dlShiftTo = bnpDLShiftTo; +BigInteger.prototype.drShiftTo = bnpDRShiftTo; +BigInteger.prototype.lShiftTo = bnpLShiftTo; +BigInteger.prototype.rShiftTo = bnpRShiftTo; +BigInteger.prototype.subTo = bnpSubTo; +BigInteger.prototype.multiplyTo = bnpMultiplyTo; +BigInteger.prototype.squareTo = bnpSquareTo; +BigInteger.prototype.divRemTo = bnpDivRemTo; +BigInteger.prototype.invDigit = bnpInvDigit; +BigInteger.prototype.isEven = bnpIsEven; +BigInteger.prototype.exp = bnpExp; + +// public +BigInteger.prototype.toString = bnToString; +BigInteger.prototype.negate = bnNegate; +BigInteger.prototype.abs = bnAbs; +BigInteger.prototype.compareTo = bnCompareTo; +BigInteger.prototype.bitLength = bnBitLength; +BigInteger.prototype.mod = bnMod; +BigInteger.prototype.modPowInt = bnModPowInt; + +// "constants" +BigInteger.ZERO = nbv(0); +BigInteger.ONE = nbv(1); + +// jsbn2 lib + +//Copyright (c) 2005-2009 Tom Wu +//All Rights Reserved. +//See "LICENSE" for details (See jsbn.js for LICENSE). + +//Extended JavaScript BN functions, required for RSA private ops. + +//Version 1.1: new BigInteger("0", 10) returns "proper" zero + +//(public) +function bnClone() { var r = nbi(); this.copyTo(r); return r; } + +//(public) return value as integer +function bnIntValue() { +if(this.s < 0) { + if(this.t == 1) return this.data[0]-this.DV; + else if(this.t == 0) return -1; +} else if(this.t == 1) return this.data[0]; +else if(this.t == 0) return 0; +// assumes 16 < DB < 32 +return ((this.data[1]&((1<<(32-this.DB))-1))<>24; } + +//(public) return value as short (assumes DB>=16) +function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; } + +//(protected) return x s.t. r^x < DV +function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } + +//(public) 0 if this == 0, 1 if this > 0 +function bnSigNum() { +if(this.s < 0) return -1; +else if(this.t <= 0 || (this.t == 1 && this.data[0] <= 0)) return 0; +else return 1; +} + +//(protected) convert to radix string +function bnpToRadix(b) { +if(b == null) b = 10; +if(this.signum() == 0 || b < 2 || b > 36) return "0"; +var cs = this.chunkSize(b); +var a = Math.pow(b,cs); +var d = nbv(a), y = nbi(), z = nbi(), r = ""; +this.divRemTo(d,y,z); +while(y.signum() > 0) { + r = (a+z.intValue()).toString(b).substr(1) + r; + y.divRemTo(d,y,z); +} +return z.intValue().toString(b) + r; +} + +//(protected) convert from radix string +function bnpFromRadix(s,b) { +this.fromInt(0); +if(b == null) b = 10; +var cs = this.chunkSize(b); +var d = Math.pow(b,cs), mi = false, j = 0, w = 0; +for(var i = 0; i < s.length; ++i) { + var x = intAt(s,i); + if(x < 0) { + if(s.charAt(i) == "-" && this.signum() == 0) mi = true; + continue; + } + w = b*w+x; + if(++j >= cs) { + this.dMultiply(d); + this.dAddOffset(w,0); + j = 0; + w = 0; + } +} +if(j > 0) { + this.dMultiply(Math.pow(b,j)); + this.dAddOffset(w,0); +} +if(mi) BigInteger.ZERO.subTo(this,this); +} + +//(protected) alternate constructor +function bnpFromNumber(a,b,c) { +if("number" == typeof b) { + // new BigInteger(int,int,RNG) + if(a < 2) this.fromInt(1); + else { + this.fromNumber(a,c); + if(!this.testBit(a-1)) // force MSB set + this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this); + if(this.isEven()) this.dAddOffset(1,0); // force odd + while(!this.isProbablePrime(b)) { + this.dAddOffset(2,0); + if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this); + } + } +} else { + // new BigInteger(int,RNG) + var x = new Array(), t = a&7; + x.length = (a>>3)+1; + b.nextBytes(x); + if(t > 0) x[0] &= ((1< 0) { + if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p) + r[k++] = d|(this.s<<(this.DB-p)); + while(i >= 0) { + if(p < 8) { + d = (this.data[i]&((1<>(p+=this.DB-8); + } else { + d = (this.data[i]>>(p-=8))&0xff; + if(p <= 0) { p += this.DB; --i; } + } + if((d&0x80) != 0) d |= -256; + if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; + if(k > 0 || d != this.s) r[k++] = d; + } +} +return r; +} + +function bnEquals(a) { return(this.compareTo(a)==0); } +function bnMin(a) { return(this.compareTo(a)<0)?this:a; } +function bnMax(a) { return(this.compareTo(a)>0)?this:a; } + +//(protected) r = this op a (bitwise) +function bnpBitwiseTo(a,op,r) { +var i, f, m = Math.min(a.t,this.t); +for(i = 0; i < m; ++i) r.data[i] = op(this.data[i],a.data[i]); +if(a.t < this.t) { + f = a.s&this.DM; + for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f); + r.t = this.t; +} else { + f = this.s&this.DM; + for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]); + r.t = a.t; +} +r.s = op(this.s,a.s); +r.clamp(); +} + +//(public) this & a +function op_and(x,y) { return x&y; } +function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } + +//(public) this | a +function op_or(x,y) { return x|y; } +function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } + +//(public) this ^ a +function op_xor(x,y) { return x^y; } +function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } + +//(public) this & ~a +function op_andnot(x,y) { return x&~y; } +function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } + +//(public) ~this +function bnNot() { +var r = nbi(); +for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i]; +r.t = this.t; +r.s = ~this.s; +return r; +} + +//(public) this << n +function bnShiftLeft(n) { +var r = nbi(); +if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); +return r; +} + +//(public) this >> n +function bnShiftRight(n) { +var r = nbi(); +if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); +return r; +} + +//return index of lowest 1-bit in x, x < 2^31 +function lbit(x) { +if(x == 0) return -1; +var r = 0; +if((x&0xffff) == 0) { x >>= 16; r += 16; } +if((x&0xff) == 0) { x >>= 8; r += 8; } +if((x&0xf) == 0) { x >>= 4; r += 4; } +if((x&3) == 0) { x >>= 2; r += 2; } +if((x&1) == 0) ++r; +return r; +} + +//(public) returns index of lowest 1-bit (or -1 if none) +function bnGetLowestSetBit() { +for(var i = 0; i < this.t; ++i) + if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]); +if(this.s < 0) return this.t*this.DB; +return -1; +} + +//return number of 1 bits in x +function cbit(x) { +var r = 0; +while(x != 0) { x &= x-1; ++r; } +return r; +} + +//(public) return number of set bits +function bnBitCount() { +var r = 0, x = this.s&this.DM; +for(var i = 0; i < this.t; ++i) r += cbit(this.data[i]^x); +return r; +} + +//(public) true iff nth bit is set +function bnTestBit(n) { +var j = Math.floor(n/this.DB); +if(j >= this.t) return(this.s!=0); +return((this.data[j]&(1<<(n%this.DB)))!=0); +} + +//(protected) this op (1<>= this.DB; +} +if(a.t < this.t) { + c += a.s; + while(i < this.t) { + c += this.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; +} else { + c += this.s; + while(i < a.t) { + c += a.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += a.s; +} +r.s = (c<0)?-1:0; +if(c > 0) r.data[i++] = c; +else if(c < -1) r.data[i++] = this.DV+c; +r.t = i; +r.clamp(); +} + +//(public) this + a +function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } + +//(public) this - a +function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } + +//(public) this * a +function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } + +//(public) this / a +function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } + +//(public) this % a +function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } + +//(public) [this/a,this%a] +function bnDivideAndRemainder(a) { +var q = nbi(), r = nbi(); +this.divRemTo(a,q,r); +return new Array(q,r); +} + +//(protected) this *= n, this >= 0, 1 < n < DV +function bnpDMultiply(n) { +this.data[this.t] = this.am(0,n-1,this,0,0,this.t); +++this.t; +this.clamp(); +} + +//(protected) this += n << w words, this >= 0 +function bnpDAddOffset(n,w) { +if(n == 0) return; +while(this.t <= w) this.data[this.t++] = 0; +this.data[w] += n; +while(this.data[w] >= this.DV) { + this.data[w] -= this.DV; + if(++w >= this.t) this.data[this.t++] = 0; + ++this.data[w]; +} +} + +//A "null" reducer +function NullExp() {} +function nNop(x) { return x; } +function nMulTo(x,y,r) { x.multiplyTo(y,r); } +function nSqrTo(x,r) { x.squareTo(r); } + +NullExp.prototype.convert = nNop; +NullExp.prototype.revert = nNop; +NullExp.prototype.mulTo = nMulTo; +NullExp.prototype.sqrTo = nSqrTo; + +//(public) this^e +function bnPow(e) { return this.exp(e,new NullExp()); } + +//(protected) r = lower n words of "this * a", a.t <= n +//"this" should be the larger one if appropriate. +function bnpMultiplyLowerTo(a,n,r) { +var i = Math.min(this.t+a.t,n); +r.s = 0; // assumes a,this >= 0 +r.t = i; +while(i > 0) r.data[--i] = 0; +var j; +for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t); +for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i); +r.clamp(); +} + +//(protected) r = "this * a" without lower n words, n > 0 +//"this" should be the larger one if appropriate. +function bnpMultiplyUpperTo(a,n,r) { +--n; +var i = r.t = this.t+a.t-n; +r.s = 0; // assumes a,this >= 0 +while(--i >= 0) r.data[i] = 0; +for(i = Math.max(n-this.t,0); i < a.t; ++i) + r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n); +r.clamp(); +r.drShiftTo(1,r); +} + +//Barrett modular reduction +function Barrett(m) { +// setup Barrett +this.r2 = nbi(); +this.q3 = nbi(); +BigInteger.ONE.dlShiftTo(2*m.t,this.r2); +this.mu = this.r2.divide(m); +this.m = m; +} + +function barrettConvert(x) { +if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); +else if(x.compareTo(this.m) < 0) return x; +else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } +} + +function barrettRevert(x) { return x; } + +//x = x mod m (HAC 14.42) +function barrettReduce(x) { +x.drShiftTo(this.m.t-1,this.r2); +if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } +this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); +this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); +while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); +x.subTo(this.r2,x); +while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); +} + +//r = x^2 mod m; x != r +function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + +//r = x*y mod m; x,y != r +function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + +Barrett.prototype.convert = barrettConvert; +Barrett.prototype.revert = barrettRevert; +Barrett.prototype.reduce = barrettReduce; +Barrett.prototype.mulTo = barrettMulTo; +Barrett.prototype.sqrTo = barrettSqrTo; + +//(public) this^e % m (HAC 14.85) +function bnModPow(e,m) { +var i = e.bitLength(), k, r = nbv(1), z; +if(i <= 0) return r; +else if(i < 18) k = 1; +else if(i < 48) k = 3; +else if(i < 144) k = 4; +else if(i < 768) k = 5; +else k = 6; +if(i < 8) + z = new Classic(m); +else if(m.isEven()) + z = new Barrett(m); +else + z = new Montgomery(m); + +// precomputation +var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { + var g2 = nbi(); + z.sqrTo(g[1],g2); + while(n <= km) { + g[n] = nbi(); + z.mulTo(g2,g[n-2],g[n]); + n += 2; + } +} + +var j = e.t-1, w, is1 = true, r2 = nbi(), t; +i = nbits(e.data[j])-1; +while(j >= 0) { + if(i >= k1) w = (e.data[j]>>(i-k1))&km; + else { + w = (e.data[j]&((1<<(i+1))-1))<<(k1-i); + if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1); + } + + n = k; + while((w&1) == 0) { w >>= 1; --n; } + if((i -= n) < 0) { i += this.DB; --j; } + if(is1) { // ret == 1, don't bother squaring or multiplying it + g[w].copyTo(r); + is1 = false; + } else { + while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } + if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } + z.mulTo(r2,g[w],r); + } + + while(j >= 0 && (e.data[j]&(1< 0) { + x.rShiftTo(g,x); + y.rShiftTo(g,y); +} +while(x.signum() > 0) { + if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); + if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); + if(x.compareTo(y) >= 0) { + x.subTo(y,x); + x.rShiftTo(1,x); + } else { + y.subTo(x,y); + y.rShiftTo(1,y); + } +} +if(g > 0) y.lShiftTo(g,y); +return y; +} + +//(protected) this % n, n < 2^26 +function bnpModInt(n) { +if(n <= 0) return 0; +var d = this.DV%n, r = (this.s<0)?n-1:0; +if(this.t > 0) + if(d == 0) r = this.data[0]%n; + else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n; +return r; +} + +//(public) 1/this % m (HAC 14.61) +function bnModInverse(m) { +var ac = m.isEven(); +if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO; +var u = m.clone(), v = this.clone(); +var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); +while(u.signum() != 0) { + while(u.isEven()) { + u.rShiftTo(1,u); + if(ac) { + if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } + a.rShiftTo(1,a); + } else if(!b.isEven()) b.subTo(m,b); + b.rShiftTo(1,b); + } + while(v.isEven()) { + v.rShiftTo(1,v); + if(ac) { + if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } + c.rShiftTo(1,c); + } else if(!d.isEven()) d.subTo(m,d); + d.rShiftTo(1,d); + } + if(u.compareTo(v) >= 0) { + u.subTo(v,u); + if(ac) a.subTo(c,a); + b.subTo(d,b); + } else { + v.subTo(u,v); + if(ac) c.subTo(a,c); + d.subTo(b,d); + } +} +if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO; +if(d.compareTo(m) >= 0) return d.subtract(m); +if(d.signum() < 0) d.addTo(m,d); else return d; +if(d.signum() < 0) return d.add(m); else return d; +} + +var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509]; +var lplim = (1<<26)/lowprimes[lowprimes.length-1]; + +//(public) test primality with certainty >= 1-.5^t +function bnIsProbablePrime(t) { +var i, x = this.abs(); +if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) { + for(i = 0; i < lowprimes.length; ++i) + if(x.data[0] == lowprimes[i]) return true; + return false; +} +if(x.isEven()) return false; +i = 1; +while(i < lowprimes.length) { + var m = lowprimes[i], j = i+1; + while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; + m = x.modInt(m); + while(i < j) if(m%lowprimes[i++] == 0) return false; +} +return x.millerRabin(t); +} + +//(protected) true if probably prime (HAC 4.24, Miller-Rabin) +function bnpMillerRabin(t) { +var n1 = this.subtract(BigInteger.ONE); +var k = n1.getLowestSetBit(); +if(k <= 0) return false; +var r = n1.shiftRight(k); +var prng = bnGetPrng(); +var a; +for(var i = 0; i < t; ++i) { + // select witness 'a' at random from between 1 and n1 + do { + a = new BigInteger(this.bitLength(), prng); + } + while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0); + var y = a.modPow(r,this); + if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { + var j = 1; + while(j++ < k && y.compareTo(n1) != 0) { + y = y.modPowInt(2,this); + if(y.compareTo(BigInteger.ONE) == 0) return false; + } + if(y.compareTo(n1) != 0) return false; + } +} +return true; +} + +// get pseudo random number generator +function bnGetPrng() { + // create prng with api that matches BigInteger secure random + return { + // x is an array to fill with bytes + nextBytes: function(x) { + for(var i = 0; i < x.length; ++i) { + x[i] = Math.floor(Math.random() * 0x0100); + } + } + }; +} + +//protected +BigInteger.prototype.chunkSize = bnpChunkSize; +BigInteger.prototype.toRadix = bnpToRadix; +BigInteger.prototype.fromRadix = bnpFromRadix; +BigInteger.prototype.fromNumber = bnpFromNumber; +BigInteger.prototype.bitwiseTo = bnpBitwiseTo; +BigInteger.prototype.changeBit = bnpChangeBit; +BigInteger.prototype.addTo = bnpAddTo; +BigInteger.prototype.dMultiply = bnpDMultiply; +BigInteger.prototype.dAddOffset = bnpDAddOffset; +BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; +BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; +BigInteger.prototype.modInt = bnpModInt; +BigInteger.prototype.millerRabin = bnpMillerRabin; + +//public +BigInteger.prototype.clone = bnClone; +BigInteger.prototype.intValue = bnIntValue; +BigInteger.prototype.byteValue = bnByteValue; +BigInteger.prototype.shortValue = bnShortValue; +BigInteger.prototype.signum = bnSigNum; +BigInteger.prototype.toByteArray = bnToByteArray; +BigInteger.prototype.equals = bnEquals; +BigInteger.prototype.min = bnMin; +BigInteger.prototype.max = bnMax; +BigInteger.prototype.and = bnAnd; +BigInteger.prototype.or = bnOr; +BigInteger.prototype.xor = bnXor; +BigInteger.prototype.andNot = bnAndNot; +BigInteger.prototype.not = bnNot; +BigInteger.prototype.shiftLeft = bnShiftLeft; +BigInteger.prototype.shiftRight = bnShiftRight; +BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; +BigInteger.prototype.bitCount = bnBitCount; +BigInteger.prototype.testBit = bnTestBit; +BigInteger.prototype.setBit = bnSetBit; +BigInteger.prototype.clearBit = bnClearBit; +BigInteger.prototype.flipBit = bnFlipBit; +BigInteger.prototype.add = bnAdd; +BigInteger.prototype.subtract = bnSubtract; +BigInteger.prototype.multiply = bnMultiply; +BigInteger.prototype.divide = bnDivide; +BigInteger.prototype.remainder = bnRemainder; +BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; +BigInteger.prototype.modPow = bnModPow; +BigInteger.prototype.modInverse = bnModInverse; +BigInteger.prototype.pow = bnPow; +BigInteger.prototype.gcd = bnGCD; +BigInteger.prototype.isProbablePrime = bnIsProbablePrime; + +//BigInteger interfaces not implemented in jsbn: + +//BigInteger(int signum, byte[] magnitude) +//double doubleValue() +//float floatValue() +//int hashCode() +//long longValue() +//static BigInteger valueOf(long val) + + +/***/ }), + +/***/ 7365: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkehub_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkehub_v1beta1; +(function (gkehub_v1beta1) { + /** + * GKE Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkehub = google.gkehub('v1beta1'); + * ``` + */ + class Gkehub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.projects = new Resource$Projects(this.context); } } - gmail_v1.Resource$Users$Settings$Delegates = Resource$Users$Settings$Delegates; - class Resource$Users$Settings$Filters { + gkehub_v1beta1.Gkehub = Gkehub; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['userId'], - pathParams: ['userId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + gkehub_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.memberships = new Resource$Projects$Locations$Memberships(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -190257,22 +447991,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -190288,27 +448022,27 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$Settings$Filters = Resource$Users$Settings$Filters; - class Resource$Users$Settings$Forwardingaddresses { + gkehub_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Memberships { constructor(context) { this.context = context; } @@ -190325,22 +448059,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -190356,127 +448090,89 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'forwardingEmail'], - pathParams: ['forwardingEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateConnectManifest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'forwardingEmail'], - pathParams: ['forwardingEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generateExclusivityManifest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:generateExclusivityManifest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - gmail_v1.Resource$Users$Settings$Forwardingaddresses = Resource$Users$Settings$Forwardingaddresses; - class Resource$Users$Settings$Sendas { - constructor(context) { - this.context = context; - this.smimeInfo = new Resource$Users$Settings$Sendas$Smimeinfo(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -190489,53 +448185,54 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -190551,22 +448248,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -190582,222 +448279,127 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - gmail_v1.Resource$Users$Settings$Sendas = Resource$Users$Settings$Sendas; - class Resource$Users$Settings$Sendas$Smimeinfo { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['userId', 'sendAsEmail', 'id'], - pathParams: ['id', 'sendAsEmail', 'userId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['userId', 'sendAsEmail', 'id'], - pathParams: ['id', 'sendAsEmail', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + validateExclusivity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships:validateExclusivity').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefault(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1beta1.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -190810,31 +448412,24 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'sendAsEmail', 'id'], - pathParams: ['id', 'sendAsEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gmail_v1.Resource$Users$Settings$Sendas$Smimeinfo = Resource$Users$Settings$Sendas$Smimeinfo; - class Resource$Users$Threads { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -190848,22 +448443,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -190879,22 +448474,22 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -190910,124 +448505,51 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - modify(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - trash(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - untrash(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gmail_v1.Resource$Users$Threads = Resource$Users$Threads; -})(gmail_v1 = exports.gmail_v1 || (exports.gmail_v1 = {})); -//# sourceMappingURL=v1.js.map + gkehub_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gkehub_v1beta1 = exports.gkehub_v1beta1 || (exports.gkehub_v1beta1 = {})); + + +/***/ }), + +/***/ 7386: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var stringify = __webpack_require__(3897); +var parse = __webpack_require__(8755); +var formats = __webpack_require__(9013); + +module.exports = { + formats: formats, + parse: parse, + stringify: stringify +}; + /***/ }), -/* 580 */ + +/***/ 7390: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -191045,25 +448567,27 @@ var gmail_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.gamesManagement = exports.VERSIONS = void 0; +exports.AuthPlus = exports.licensing_v1 = exports.auth = exports.licensing = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1management_1 = __webpack_require__(604); +const v1_1 = __webpack_require__(5976); +Object.defineProperty(exports, "licensing_v1", { enumerable: true, get: function () { return v1_1.licensing_v1; } }); exports.VERSIONS = { - v1management: v1management_1.gamesManagement_v1management.Gamesmanagement, + v1: v1_1.licensing_v1.Licensing, }; -function gamesManagement(versionOrOptions) { - return googleapis_common_1.getAPI('gamesManagement', versionOrOptions, exports.VERSIONS, this); +function licensing(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('licensing', versionOrOptions, exports.VERSIONS, this); } -exports.gamesManagement = gamesManagement; +exports.licensing = licensing; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 581 */, -/* 582 */, -/* 583 */ + +/***/ 7393: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -191081,59 +448605,41 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.drive_v2 = void 0; +exports.verifiedaccess_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 = __webpack_require__(927); -var drive_v2; -(function (drive_v2) { +var verifiedaccess_v1; +(function (verifiedaccess_v1) { /** - * Drive API + * Chrome Verified Access API * - * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. + * API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network * * @example + * ```js * const {google} = require('googleapis'); - * const drive = google.drive('v2'); - * - * @namespace drive - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Drive + * const verifiedaccess = google.verifiedaccess('v1'); + * ``` */ - class Drive { + class Verifiedaccess { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.about = new Resource$About(this.context); - this.apps = new Resource$Apps(this.context); - this.changes = new Resource$Changes(this.context); - this.channels = new Resource$Channels(this.context); - this.children = new Resource$Children(this.context); - this.comments = new Resource$Comments(this.context); - this.drives = new Resource$Drives(this.context); - this.files = new Resource$Files(this.context); - this.parents = new Resource$Parents(this.context); - this.permissions = new Resource$Permissions(this.context); - this.properties = new Resource$Properties(this.context); - this.replies = new Resource$Replies(this.context); - this.revisions = new Resource$Revisions(this.context); - this.teamdrives = new Resource$Teamdrives(this.context); + this.challenge = new Resource$Challenge(this.context); } } - drive_v2.Drive = Drive; - class Resource$About { + verifiedaccess_v1.Verifiedaccess = Verifiedaccess; + class Resource$Challenge { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -191145,11 +448651,11 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/about').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/challenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -191157,49 +448663,13 @@ var drive_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - drive_v2.Resource$About = Resource$About; - class Resource$Apps { - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/apps/{appId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['appId'], - pathParams: ['appId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -191211,11 +448681,11 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/apps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -191223,20 +448693,133 @@ var drive_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v2.Resource$Apps = Resource$Apps; - class Resource$Changes { + verifiedaccess_v1.Resource$Challenge = Resource$Challenge; +})(verifiedaccess_v1 = exports.verifiedaccess_v1 || (exports.verifiedaccess_v1 = {})); + + +/***/ }), + +/***/ 7406: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const path = __webpack_require__(5622); +const pathKey = __webpack_require__(6829); + +module.exports = opts => { + opts = Object.assign({ + cwd: process.cwd(), + path: process.env[pathKey()] + }, opts); + + let prev; + let pth = path.resolve(opts.cwd); + const ret = []; + + while (prev !== pth) { + ret.push(path.join(pth, 'node_modules/.bin')); + prev = pth; + pth = path.resolve(pth, '..'); + } + + // ensure the running `node` binary is used + ret.push(path.dirname(process.execPath)); + + return ret.concat(opts.path).join(path.delimiter); +}; + +module.exports.env = opts => { + opts = Object.assign({ + env: process.env + }, opts); + + const env = Object.assign({}, opts.env); + const path = pathKey({env}); + + opts.path = env[path]; + env[path] = module.exports(opts); + + return env; +}; + + +/***/ }), + +/***/ 7411: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudidentity_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudidentity_v1beta1; +(function (cloudidentity_v1beta1) { + /** + * Cloud Identity API + * + * API for provisioning and managing identity resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudidentity = google.cloudidentity('v1beta1'); + * ``` + */ + class Cloudidentity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.devices = new Resource$Devices(this.context); + this.groups = new Resource$Groups(this.context); + this.inboundSamlSsoProfiles = new Resource$Inboundsamlssoprofiles(this.context); + this.inboundSsoAssignments = new Resource$Inboundssoassignments(this.context); + this.orgUnits = new Resource$Orgunits(this.context); + } + } + cloudidentity_v1beta1.Cloudidentity = Cloudidentity; + class Resource$Customers { constructor(context) { this.context = context; + this.userinvitations = new Resource$Customers$Userinvitations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudidentity_v1beta1.Resource$Customers = Resource$Customers; + class Resource$Customers$Userinvitations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191247,25 +448830,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['changeId'], - pathParams: ['changeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStartPageToken(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191278,56 +448861,59 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + isInvitableUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/changes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191338,32 +448924,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/changes/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Changes = Resource$Changes; - class Resource$Channels { - constructor(context) { - this.context = context; - } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + send(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191374,92 +448955,34 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v2.Resource$Channels = Resource$Channels; - class Resource$Children { + cloudidentity_v1beta1.Resource$Customers$Userinvitations = Resource$Customers$Userinvitations; + class Resource$Devices { constructor(context) { this.context = context; + this.deviceUsers = new Resource$Devices$Deviceusers(this.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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['folderId', 'childId'], - pathParams: ['childId', 'folderId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['folderId', 'childId'], - pathParams: ['childId', 'folderId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191470,25 +448993,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['folderId'], - pathParams: ['folderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -191500,30 +449023,24 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['folderId'], - pathParams: ['folderId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Children = Resource$Children; - class Resource$Comments { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191536,22 +449053,22 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -191566,151 +449083,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['fileId'], - pathParams: ['fileId'], - 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Comments = Resource$Comments; - class Resource$Drives { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -191722,25 +449113,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + wipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -191752,26 +449143,34 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudidentity_v1beta1.Resource$Devices = Resource$Devices; + class Resource$Devices$Deviceusers { + constructor(context) { + this.context = context; + this.clientStates = new Resource$Devices$Deviceusers$Clientstates(this.context); + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191782,26 +449181,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + block(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191812,26 +449212,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['requestId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191842,26 +449243,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unhide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191872,26 +449274,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191902,32 +449305,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Drives = Resource$Drives; - class Resource$Files { - constructor(context) { - this.context = context; - } - copy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191938,26 +449336,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191968,26 +449367,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - emptyTrash(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + wipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191998,26 +449398,33 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/trash').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudidentity_v1beta1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; + class Resource$Devices$Deviceusers$Clientstates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192028,25 +449435,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'mimeType'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateIds(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192059,25 +449466,32 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1beta1.Resource$Devices$Deviceusers$Clientstates = Resource$Devices$Deviceusers$Clientstates; + class Resource$Groups { + constructor(context) { + this.context = context; + this.memberships = new Resource$Groups$Memberships(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192089,25 +449503,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192119,26 +449533,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + '/upload/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192150,26 +449563,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192180,25 +449594,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - touch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192210,25 +449624,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/touch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - trash(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192240,25 +449654,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/trash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - untrash(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192270,25 +449684,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/untrash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -192300,27 +449714,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192331,62 +449745,66 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v2.Resource$Files = Resource$Files; - class Resource$Parents { + cloudidentity_v1beta1.Resource$Groups = Resource$Groups; + class Resource$Groups$Memberships { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + checkTransitiveMembership(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1beta1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'parentId'], - pathParams: ['fileId', 'parentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192397,26 +449815,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'parentId'], - pathParams: ['fileId', 'parentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192427,26 +449846,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192457,31 +449877,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Parents = Resource$Parents; - class Resource$Permissions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192494,26 +449908,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192524,25 +449939,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIdForEmail(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192555,25 +449970,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/permissionIds/{email}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['email'], - pathParams: ['email'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192586,26 +450001,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192616,93 +450032,97 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + searchTransitiveGroups(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + searchTransitiveMemberships(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1beta1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v2.Resource$Permissions = Resource$Permissions; - class Resource$Properties { + cloudidentity_v1beta1.Resource$Groups$Memberships = Resource$Groups$Memberships; + class Resource$Inboundsamlssoprofiles { constructor(context) { this.context = context; + this.idpCredentials = new Resource$Inboundsamlssoprofiles$Idpcredentials(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192715,26 +450135,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192745,25 +450166,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192776,26 +450197,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192806,26 +450228,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192836,155 +450259,167 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1beta1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; + class Resource$Inboundsamlssoprofiles$Idpcredentials { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Properties = Resource$Properties; - class Resource$Replies { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/idpCredentials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudidentity_v1beta1.Resource$Inboundsamlssoprofiles$Idpcredentials = Resource$Inboundsamlssoprofiles$Idpcredentials; + class Resource$Inboundssoassignments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -192995,26 +450430,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193025,27 +450461,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193056,33 +450492,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v2.Resource$Replies = Resource$Replies; - class Resource$Revisions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193093,26 +450523,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193123,26 +450554,40 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + cloudidentity_v1beta1.Resource$Inboundssoassignments = Resource$Inboundssoassignments; + class Resource$Orgunits { + constructor(context) { + this.context = context; + this.memberships = new Resource$Orgunits$Memberships(this.context); + } + } + cloudidentity_v1beta1.Resource$Orgunits = Resource$Orgunits; + class Resource$Orgunits$Memberships { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193153,26 +450598,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193183,25 +450629,191 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + cloudidentity_v1beta1.Resource$Orgunits$Memberships = Resource$Orgunits$Memberships; +})(cloudidentity_v1beta1 = exports.cloudidentity_v1beta1 || (exports.cloudidentity_v1beta1 = {})); + + +/***/ }), + +/***/ 7413: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = __webpack_require__(8141); + + +/***/ }), + +/***/ 7416: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +const path = __webpack_require__(5622); +const which = __webpack_require__(1088); +const pathKey = __webpack_require__(6829)(); + +function resolveCommandAttempt(parsed, withoutPathExt) { + const cwd = process.cwd(); + const hasCustomCwd = parsed.options.cwd != null; + + // If a custom `cwd` was specified, we need to change the process cwd + // because `which` will do stat calls but does not support a custom cwd + if (hasCustomCwd) { + try { + process.chdir(parsed.options.cwd); + } catch (err) { + /* Empty */ + } + } + + let resolved; + + try { + resolved = which.sync(parsed.command, { + path: (parsed.options.env || process.env)[pathKey], + pathExt: withoutPathExt ? path.delimiter : undefined, + }); + } catch (e) { + /* Empty */ + } finally { + process.chdir(cwd); + } + + // If we successfully resolved, ensure that an absolute path is returned + // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it + if (resolved) { + resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved); + } + + return resolved; +} + +function resolveCommand(parsed) { + return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); +} + +module.exports = resolveCommand; + + +/***/ }), + +/***/ 7425: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.connectors_v2 = exports.connectors_v1 = exports.auth = exports.connectors = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8362); +Object.defineProperty(exports, "connectors_v1", { enumerable: true, get: function () { return v1_1.connectors_v1; } }); +const v2_1 = __webpack_require__(7042); +Object.defineProperty(exports, "connectors_v2", { enumerable: true, get: function () { return v2_1.connectors_v2; } }); +exports.VERSIONS = { + v1: v1_1.connectors_v1.Connectors, + v2: v2_1.connectors_v2.Connectors, +}; +function connectors(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('connectors', versionOrOptions, exports.VERSIONS, this); +} +exports.connectors = connectors; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7430: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.webrisk_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var webrisk_v1; +(function (webrisk_v1) { + /** + * Web Risk API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const webrisk = google.webrisk('v1'); + * ``` + */ + class Webrisk { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.hashes = new Resource$Hashes(this.context); + this.projects = new Resource$Projects(this.context); + this.threatLists = new Resource$Threatlists(this.context); + this.uris = new Resource$Uris(this.context); + } + } + webrisk_v1.Webrisk = Webrisk; + class Resource$Hashes { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -193213,31 +450825,39 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/hashes:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v2.Resource$Revisions = Resource$Revisions; - class Resource$Teamdrives { + webrisk_v1.Resource$Hashes = Resource$Hashes; + class Resource$Projects { constructor(context) { this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + this.submissions = new Resource$Projects$Submissions(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + webrisk_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193250,26 +450870,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193280,25 +450901,25 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193311,26 +450932,27 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['requestId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193341,25 +450963,31 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + webrisk_v1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Submissions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193372,90 +451000,33 @@ var drive_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/submissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v2.Resource$Teamdrives = Resource$Teamdrives; -})(drive_v2 = exports.drive_v2 || (exports.drive_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 584 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.digitalassetlinks_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 = __webpack_require__(927); -var digitalassetlinks_v1; -(function (digitalassetlinks_v1) { - /** - * Digital Asset Links API - * - * Discovers relationships between online assets such as websites or mobile apps. - * - * @example - * const {google} = require('googleapis'); - * const digitalassetlinks = google.digitalassetlinks('v1'); - * - * @namespace digitalassetlinks - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Digitalassetlinks - */ - class Digitalassetlinks { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.assetlinks = new Resource$Assetlinks(this.context); - this.statements = new Resource$Statements(this.context); - } - } - digitalassetlinks_v1.Digitalassetlinks = Digitalassetlinks; - class Resource$Assetlinks { + webrisk_v1.Resource$Projects$Submissions = Resource$Projects$Submissions; + class Resource$Threatlists { constructor(context) { this.context = context; } - check(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + computeDiff(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193466,10 +451037,10 @@ var digitalassetlinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/assetlinks:check').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/threatLists:computeDiff').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -193478,19 +451049,19 @@ var digitalassetlinks_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - digitalassetlinks_v1.Resource$Assetlinks = Resource$Assetlinks; - class Resource$Statements { + webrisk_v1.Resource$Threatlists = Resource$Threatlists; + class Resource$Uris { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -193502,10 +451073,10 @@ var digitalassetlinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/statements:list').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/uris:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -193514,20 +451085,20 @@ var digitalassetlinks_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - digitalassetlinks_v1.Resource$Statements = Resource$Statements; -})(digitalassetlinks_v1 = exports.digitalassetlinks_v1 || (exports.digitalassetlinks_v1 = {})); -//# sourceMappingURL=v1.js.map + webrisk_v1.Resource$Uris = Resource$Uris; +})(webrisk_v1 = exports.webrisk_v1 || (exports.webrisk_v1 = {})); + /***/ }), -/* 585 */, -/* 586 */ + +/***/ 7431: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -193545,32 +451116,27 @@ var digitalassetlinks_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.bigquerydatatransfer_v1 = void 0; +exports.pubsub_v1beta2 = 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 = __webpack_require__(927); -var bigquerydatatransfer_v1; -(function (bigquerydatatransfer_v1) { +var pubsub_v1beta2; +(function (pubsub_v1beta2) { /** - * BigQuery Data Transfer API + * Cloud Pub/Sub API * - * Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis. + * Provides reliable, many-to-many, asynchronous messaging between applications. * * @example + * ```js * const {google} = require('googleapis'); - * const bigquerydatatransfer = google.bigquerydatatransfer('v1'); - * - * @namespace bigquerydatatransfer - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Bigquerydatatransfer + * const pubsub = google.pubsub('v1beta2'); + * ``` */ - class Bigquerydatatransfer { + class Pubsub { constructor(options, google) { this.context = { _options: options || {}, @@ -193579,21 +451145,51 @@ var bigquerydatatransfer_v1; this.projects = new Resource$Projects(this.context); } } - bigquerydatatransfer_v1.Bigquerydatatransfer = Bigquerydatatransfer; + pubsub_v1beta2.Pubsub = Pubsub; class Resource$Projects { constructor(context) { this.context = context; - this.dataSources = new Resource$Projects$Datasources(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.transferConfigs = new Resource$Projects$Transferconfigs(this.context); + this.subscriptions = new Resource$Projects$Subscriptions(this.context); + this.topics = new Resource$Projects$Topics(this.context); } } - bigquerydatatransfer_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Datasources { + pubsub_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Subscriptions { constructor(context) { this.context = context; } - checkValidCreds(paramsOrCallback, optionsOrCallback, callback) { + acknowledge(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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193606,11 +451202,11 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -193618,13 +451214,13 @@ var bigquerydatatransfer_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193637,25 +451233,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193668,33 +451264,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Datasources = Resource$Projects$Datasources; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.dataSources = new Resource$Projects$Locations$Datasources(this.context); - this.transferConfigs = new Resource$Projects$Locations$Transferconfigs(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193707,22 +451295,22 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -193738,31 +451326,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Datasources { - constructor(context) { - this.context = context; - } - checkValidCreds(paramsOrCallback, optionsOrCallback, callback) { + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193775,25 +451357,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193806,25 +451388,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + pull(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193837,32 +451419,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Locations$Datasources = Resource$Projects$Locations$Datasources; - class Resource$Projects$Locations$Transferconfigs { - constructor(context) { - this.context = context; - this.runs = new Resource$Projects$Locations$Transferconfigs$Runs(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193875,56 +451450,64 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + pubsub_v1beta2.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; + class Resource$Projects$Topics { + constructor(context) { + this.context = context; + this.subscriptions = new Resource$Projects$Topics$Subscriptions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193937,11 +451520,11 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -193949,13 +451532,13 @@ var bigquerydatatransfer_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193968,25 +451551,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193999,25 +451582,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194030,25 +451613,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startManualRuns(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194061,32 +451644,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs = Resource$Projects$Locations$Transferconfigs; - class Resource$Projects$Locations$Transferconfigs$Runs { - constructor(context) { - this.context = context; - this.transferLogs = new Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194099,25 +451675,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194130,25 +451706,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194161,27 +451737,27 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs = Resource$Projects$Locations$Transferconfigs$Runs; - class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { + pubsub_v1beta2.Resource$Projects$Topics = Resource$Projects$Topics; + class Resource$Projects$Topics$Subscriptions { constructor(context) { this.context = context; } @@ -194198,34 +451774,85 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs = Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; - class Resource$Projects$Transferconfigs { + pubsub_v1beta2.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; +})(pubsub_v1beta2 = exports.pubsub_v1beta2 || (exports.pubsub_v1beta2 = {})); + + +/***/ }), + +/***/ 7434: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.acceleratedmobilepageurl_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var acceleratedmobilepageurl_v1; +(function (acceleratedmobilepageurl_v1) { + /** + * Accelerated Mobile Pages (AMP) URL API + * + * Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). + * + * @example + * ```js + * const {google} = require('googleapis'); + * const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1'); + * ``` + */ + class Acceleratedmobilepageurl { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.ampUrls = new Resource$Ampurls(this.context); + } + } + acceleratedmobilepageurl_v1.Acceleratedmobilepageurl = Acceleratedmobilepageurl; + class Resource$Ampurls { constructor(context) { this.context = context; - this.runs = new Resource$Projects$Transferconfigs$Runs(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -194236,24 +451863,89 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls; +})(acceleratedmobilepageurl_v1 = exports.acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = {})); + + +/***/ }), + +/***/ 7449: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.deploymentmanager_alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var deploymentmanager_alpha; +(function (deploymentmanager_alpha) { + /** + * Cloud Deployment Manager V2 API + * + * The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const deploymentmanager = google.deploymentmanager('alpha'); + * ``` + */ + class Deploymentmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.compositeTypes = new Resource$Compositetypes(this.context); + this.deployments = new Resource$Deployments(this.context); + this.manifests = new Resource$Manifests(this.context); + this.operations = new Resource$Operations(this.context); + this.resources = new Resource$Resources(this.context); + this.typeProviders = new Resource$Typeproviders(this.context); + this.types = new Resource$Types(this.context); + } + } + deploymentmanager_alpha.Deploymentmanager = Deploymentmanager; + class Resource$Compositetypes { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -194267,22 +451959,23 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -194298,22 +451991,55 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -194329,22 +452055,23 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -194360,25 +452087,26 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194391,25 +452119,32 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startManualRuns(paramsOrCallback, optionsOrCallback, callback) { + } + deploymentmanager_alpha.Resource$Compositetypes = Resource$Compositetypes; + class Resource$Deployments { + constructor(context) { + this.context = context; + } + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194422,31 +452157,25 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Transferconfigs = Resource$Projects$Transferconfigs; - class Resource$Projects$Transferconfigs$Runs { - constructor(context) { - this.context = context; - this.transferLogs = new Resource$Projects$Transferconfigs$Runs$Transferlogs(this.context); - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -194460,27 +452189,27 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -194491,25 +452220,26 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194522,31 +452252,26 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs = Resource$Projects$Transferconfigs$Runs; - class Resource$Projects$Transferconfigs$Runs$Transferlogs { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194559,325 +452284,57 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs$Transferlogs = Resource$Projects$Transferconfigs$Runs$Transferlogs; -})(bigquerydatatransfer_v1 = exports.bigquerydatatransfer_v1 || (exports.bigquerydatatransfer_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 587 */, -/* 588 */, -/* 589 */, -/* 590 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.calendar = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_1 = __webpack_require__(100); -exports.VERSIONS = { - v3: v3_1.calendar_v3.Calendar, -}; -function calendar(versionOrOptions) { - return googleapis_common_1.getAPI('calendar', versionOrOptions, exports.VERSIONS, this); -} -exports.calendar = calendar; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 591 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.speech = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(244); -const v1p1beta1_1 = __webpack_require__(806); -const v2beta1_1 = __webpack_require__(45); -exports.VERSIONS = { - v1: v1_1.speech_v1.Speech, - v1p1beta1: v1p1beta1_1.speech_v1p1beta1.Speech, - v2beta1: v2beta1_1.speech_v2beta1.Speech, -}; -function speech(versionOrOptions) { - return googleapis_common_1.getAPI('speech', versionOrOptions, exports.VERSIONS, this); -} -exports.speech = speech; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 592 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of mask generation function MGF1. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); - -forge.mgf = forge.mgf || {}; -var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; - -/** - * Creates a MGF1 mask generation function object. - * - * @param md the message digest API to use (eg: forge.md.sha1.create()). - * - * @return a mask generation function object. - */ -mgf1.create = function(md) { - var mgf = { - /** - * Generate mask of specified length. - * - * @param {String} seed The seed for mask generation. - * @param maskLen Number of bytes to generate. - * @return {String} The generated mask. - */ - generate: function(seed, maskLen) { - /* 2. Let T be the empty octet string. */ - var t = new forge.util.ByteBuffer(); - - /* 3. For counter from 0 to ceil(maskLen / hLen), do the following: */ - var len = Math.ceil(maskLen / md.digestLength); - for(var i = 0; i < len; i++) { - /* a. Convert counter to an octet string C of length 4 octets */ - var c = new forge.util.ByteBuffer(); - c.putInt32(i); - - /* b. Concatenate the hash of the seed mgfSeed and C to the octet - * string T: */ - md.start(); - md.update(seed + c.getBytes()); - t.putBuffer(md.digest()); - } - - /* Output the leading maskLen octets of T as the octet string mask. */ - t.truncate(t.length() - maskLen); - return t.getBytes(); - } - }; - - return mgf; -}; - - -/***/ }), -/* 593 */, -/* 594 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module*/ -var Buffer = __webpack_require__(407).Buffer; - -module.exports = function toString(obj) { - if (typeof obj === 'string') - return obj; - if (typeof obj === 'number' || Buffer.isBuffer(obj)) - return obj.toString(); - return JSON.stringify(obj); -}; - - -/***/ }), -/* 595 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.groupssettings = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(32); -exports.VERSIONS = { - v1: v1_1.groupssettings_v1.Groupssettings, -}; -function groupssettings(versionOrOptions) { - return googleapis_common_1.getAPI('groupssettings', versionOrOptions, exports.VERSIONS, this); -} -exports.groupssettings = groupssettings; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 596 */, -/* 597 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2018 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 }); -const gaxios_1 = __webpack_require__(830); -exports.Gaxios = gaxios_1.Gaxios; -var common_1 = __webpack_require__(259); -exports.GaxiosError = common_1.GaxiosError; -/** - * The default instance used when the `request` method is directly - * invoked. - */ -exports.instance = new gaxios_1.Gaxios(); -/** - * Make an HTTP request using the given options. - * @param opts Options for the request - */ -async function request(opts) { - return exports.instance.request(opts); -} -exports.request = request; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 598 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.pubsub_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 = __webpack_require__(927); -var pubsub_v1; -(function (pubsub_v1) { - /** - * Cloud Pub/Sub API - * - * Provides reliable, many-to-many, asynchronous messaging between applications. - * - * @example - * const {google} = require('googleapis'); - * const pubsub = google.pubsub('v1'); - * - * @namespace pubsub - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Pubsub - */ - class Pubsub { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); - } - } - pubsub_v1.Pubsub = Pubsub; - class Resource$Projects { - constructor(context) { - this.context = context; - this.snapshots = new Resource$Projects$Snapshots(this.context); - this.subscriptions = new Resource$Projects$Subscriptions(this.context); - this.topics = new Resource$Projects$Topics(this.context); - } - } - pubsub_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Snapshots { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194890,25 +452347,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194921,27 +452379,27 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['snapshot'], - pathParams: ['snapshot'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -194952,25 +452410,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['snapshot'], - pathParams: ['snapshot'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194983,25 +452442,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195014,27 +452474,64 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + deploymentmanager_alpha.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { + 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195045,27 +452542,33 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + deploymentmanager_alpha.Resource$Manifests = Resource$Manifests; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195076,27 +452579,27 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195107,33 +452610,33 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - pubsub_v1.Resource$Projects$Snapshots = Resource$Projects$Snapshots; - class Resource$Projects$Subscriptions { + deploymentmanager_alpha.Resource$Operations = Resource$Operations; + class Resource$Resources { constructor(context) { this.context = context; } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195144,27 +452647,27 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195175,24 +452678,31 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + deploymentmanager_alpha.Resource$Resources = Resource$Resources; + class Resource$Typeproviders { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -195206,25 +452716,58 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195237,25 +452780,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project', 'typeProvider', 'type'], + pathParams: ['project', 'type', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195268,22 +452812,23 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -195299,10 +452844,11 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -195311,13 +452857,13 @@ var pubsub_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + listTypes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195330,25 +452876,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195361,25 +452908,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195392,27 +452940,33 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + deploymentmanager_alpha.Resource$Typeproviders = Resource$Typeproviders; + class Resource$Types { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195423,27 +452977,27 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project', 'type'], + pathParams: ['project', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - seek(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195454,25 +453008,174 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:seek').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + deploymentmanager_alpha.Resource$Types = Resource$Types; +})(deploymentmanager_alpha = exports.deploymentmanager_alpha || (exports.deploymentmanager_alpha = {})); + + +/***/ }), + +/***/ 7463: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var deprecation = __webpack_require__(7692); +var once = _interopDefault(__webpack_require__(6049)); + +const logOnceCode = once(deprecation => console.warn(deprecation)); +const logOnceHeaders = once(deprecation => console.warn(deprecation)); +/** + * Error with extra properties to help with debugging + */ + +class RequestError extends Error { + constructor(message, statusCode, options) { + super(message); // Maintains proper stack trace (only available on V8) + + /* istanbul ignore next */ + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + + this.name = "HttpError"; + this.status = statusCode; + let headers; + + if ("headers" in options && typeof options.headers !== "undefined") { + headers = options.headers; + } + + if ("response" in options) { + this.response = options.response; + headers = options.response.headers; + } // redact request credentials without mutating original request options + + + const requestCopy = Object.assign({}, options.request); + + if (options.request.headers.authorization) { + requestCopy.headers = Object.assign({}, options.request.headers, { + authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") + }); + } + + requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit + // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications + .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended + // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header + .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); + this.request = requestCopy; // deprecations + + Object.defineProperty(this, "code", { + get() { + logOnceCode(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); + return statusCode; + } + + }); + Object.defineProperty(this, "headers", { + get() { + logOnceHeaders(new deprecation.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")); + return headers || {}; + } + + }); + } + +} + +exports.RequestError = RequestError; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 7465: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.realtimebidding_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var realtimebidding_v1alpha; +(function (realtimebidding_v1alpha) { + /** + * Real-time Bidding API + * + * Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive via pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const realtimebidding = google.realtimebidding('v1alpha'); + * ``` + */ + class Realtimebidding { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bidders = new Resource$Bidders(this.context); + } + } + realtimebidding_v1alpha.Realtimebidding = Realtimebidding; + class Resource$Bidders { + constructor(context) { + this.context = context; + this.biddingFunctions = new Resource$Bidders$Biddingfunctions(this.context); + } + } + realtimebidding_v1alpha.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Biddingfunctions { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195485,25 +453188,25 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + archive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195516,32 +453219,24 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - pubsub_v1.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; - class Resource$Projects$Topics { - constructor(context) { - this.context = context; - this.snapshots = new Resource$Projects$Topics$Snapshots(this.context); - this.subscriptions = new Resource$Projects$Topics$Subscriptions(this.context); - } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -195555,25 +453250,25 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/biddingFunctions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195586,25 +453281,87 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/biddingFunctions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + realtimebidding_v1alpha.Resource$Bidders$Biddingfunctions = Resource$Bidders$Biddingfunctions; +})(realtimebidding_v1alpha = exports.realtimebidding_v1alpha || (exports.realtimebidding_v1alpha = {})); + + +/***/ }), + +/***/ 7469: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.webmasters_v3 = 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 = __webpack_require__(927); +var webmasters_v3; +(function (webmasters_v3) { + /** + * Search Console API + * + * View Google Search Console data for your verified sites. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const webmasters = google.webmasters('v3'); + * ``` + */ + class Webmasters { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.searchanalytics = new Resource$Searchanalytics(this.context); + this.sitemaps = new Resource$Sitemaps(this.context); + this.sites = new Resource$Sites(this.context); + } + } + webmasters_v3.Webmasters = Webmasters; + class Resource$Searchanalytics { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195617,27 +453374,32 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + webmasters_v3.Resource$Searchanalytics = Resource$Searchanalytics; + class Resource$Sitemaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195648,27 +453410,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195679,27 +453440,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195710,27 +453470,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195741,27 +453500,32 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + webmasters_v3.Resource$Sitemaps = Resource$Sitemaps; + class Resource$Sites { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195772,27 +453536,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195803,33 +453566,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - pubsub_v1.Resource$Projects$Topics = Resource$Projects$Topics; - class Resource$Projects$Topics$Snapshots { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195840,33 +453596,26 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - pubsub_v1.Resource$Projects$Topics$Snapshots = Resource$Projects$Topics$Snapshots; - class Resource$Projects$Topics$Subscriptions { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -195877,31 +453626,32 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - pubsub_v1.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; -})(pubsub_v1 = exports.pubsub_v1 || (exports.pubsub_v1 = {})); -//# sourceMappingURL=v1.js.map + webmasters_v3.Resource$Sites = Resource$Sites; +})(webmasters_v3 = exports.webmasters_v3 || (exports.webmasters_v3 = {})); + /***/ }), -/* 599 */ + +/***/ 7487: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -195919,49 +453669,50 @@ var pubsub_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudasset_v1beta1 = void 0; +exports.healthcare_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 = __webpack_require__(927); -var cloudasset_v1beta1; -(function (cloudasset_v1beta1) { +var healthcare_v1; +(function (healthcare_v1) { /** - * Cloud Asset API + * Cloud Healthcare API * - * The cloud asset API manages the history and inventory of cloud resources. + * Manage, store, and access healthcare data in Google Cloud Platform. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudasset = google.cloudasset('v1beta1'); - * - * @namespace cloudasset - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Cloudasset + * const healthcare = google.healthcare('v1'); + * ``` */ - class Cloudasset { + class Healthcare { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.folders = new Resource$Folders(this.context); - this.organizations = new Resource$Organizations(this.context); this.projects = new Resource$Projects(this.context); } } - cloudasset_v1beta1.Cloudasset = Cloudasset; - class Resource$Folders { + healthcare_v1.Healthcare = Healthcare; + class Resource$Projects { constructor(context) { this.context = context; - this.operations = new Resource$Folders$Operations(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195974,31 +453725,25 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1beta1.Resource$Folders = Resource$Folders; - class Resource$Folders$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196011,10 +453756,10 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -196023,20 +453768,25 @@ var cloudasset_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudasset_v1beta1.Resource$Folders$Operations = Resource$Folders$Operations; - class Resource$Organizations { + healthcare_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasets { constructor(context) { this.context = context; - this.operations = new Resource$Organizations$Operations(this.context); + this.consentStores = + new Resource$Projects$Locations$Datasets$Consentstores(this.context); + this.dicomStores = new Resource$Projects$Locations$Datasets$Dicomstores(this.context); + this.fhirStores = new Resource$Projects$Locations$Datasets$Fhirstores(this.context); + this.hl7V2Stores = new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context); + this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); } - batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196049,11 +453799,11 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -196061,13 +453811,13 @@ var cloudasset_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { + deidentify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196080,31 +453830,25 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['sourceDataset'], + pathParams: ['sourceDataset'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196117,11 +453861,11 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -196129,20 +453873,13 @@ var cloudasset_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Operations(this.context); - } - batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196155,25 +453892,25 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196186,31 +453923,25 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196223,110 +453954,25 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; -})(cloudasset_v1beta1 = exports.cloudasset_v1beta1 || (exports.cloudasset_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 600 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.recommender_v1beta1 = 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 = __webpack_require__(927); -var recommender_v1beta1; -(function (recommender_v1beta1) { - /** - * Recommender API - * - * - * - * @example - * const {google} = require('googleapis'); - * const recommender = google.recommender('v1beta1'); - * - * @namespace recommender - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Recommender - */ - class Recommender { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - recommender_v1beta1.Recommender = Recommender; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - recommender_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.insightTypes = new Resource$Projects$Locations$Insighttypes(this.context); - this.recommenders = new Resource$Projects$Locations$Recommenders(this.context); - } - } - recommender_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Insighttypes { - constructor(context) { - this.context = context; - this.insights = new Resource$Projects$Locations$Insighttypes$Insights(this.context); - } - } - recommender_v1beta1.Resource$Projects$Locations$Insighttypes = Resource$Projects$Locations$Insighttypes; - class Resource$Projects$Locations$Insighttypes$Insights { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196339,11 +453985,11 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -196351,13 +453997,13 @@ var recommender_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196370,117 +454016,121 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - recommender_v1beta1.Resource$Projects$Locations$Insighttypes$Insights = Resource$Projects$Locations$Insighttypes$Insights; - class Resource$Projects$Locations$Recommenders { - constructor(context) { - this.context = context; - this.recommendations = new Resource$Projects$Locations$Recommenders$Recommendations(this.context); - } - } - recommender_v1beta1.Resource$Projects$Locations$Recommenders = Resource$Projects$Locations$Recommenders; - class Resource$Projects$Locations$Recommenders$Recommendations { + healthcare_v1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Consentstores { constructor(context) { this.context = context; + this.attributeDefinitions = + new Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions(this.context); + this.consentArtifacts = + new Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts(this.context); + this.consents = + new Resource$Projects$Locations$Datasets$Consentstores$Consents(this.context); + this.userDataMappings = + new Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + checkDataAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+consentStore}:checkDataAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -196488,30 +454138,31 @@ var recommender_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -196519,61 +454170,63 @@ var recommender_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(paramsOrCallback, optionsOrCallback, callback) { + evaluateUserConsents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+consentStore}:evaluateUserConsents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -196581,124 +454234,95 @@ var recommender_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - recommender_v1beta1.Resource$Projects$Locations$Recommenders$Recommendations = Resource$Projects$Locations$Recommenders$Recommendations; -})(recommender_v1beta1 = exports.recommender_v1beta1 || (exports.recommender_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 601 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.runtimeconfig_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 = __webpack_require__(927); -var runtimeconfig_v1; -(function (runtimeconfig_v1) { - /** - * Cloud Runtime Configuration API - * - * The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. - * - * @example - * const {google} = require('googleapis'); - * const runtimeconfig = google.runtimeconfig('v1'); - * - * @namespace runtimeconfig - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Runtimeconfig - */ - class Runtimeconfig { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://healthcare.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, }; - this.operations = new Resource$Operations(this.context); - } - } - runtimeconfig_v1.Runtimeconfig = Runtimeconfig; - class Resource$Operations { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -196706,143 +454330,111 @@ var runtimeconfig_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + queryAccessibleData(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+consentStore}:queryAccessibleData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - runtimeconfig_v1.Resource$Operations = Resource$Operations; -})(runtimeconfig_v1 = exports.runtimeconfig_v1 || (exports.runtimeconfig_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 602 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.toolresults = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta3_1 = __webpack_require__(61); -exports.VERSIONS = { - v1beta3: v1beta3_1.toolresults_v1beta3.Toolresults, -}; -function toolresults(versionOrOptions) { - return googleapis_common_1.getAPI('toolresults', versionOrOptions, exports.VERSIONS, this); -} -exports.toolresults = toolresults; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 603 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudtrace_v2beta1 = 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 = __webpack_require__(927); -var cloudtrace_v2beta1; -(function (cloudtrace_v2beta1) { - /** - * Cloud Trace API - * - * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus. - * - * @example - * const {google} = require('googleapis'); - * const cloudtrace = google.cloudtrace('v2beta1'); - * - * @namespace cloudtrace - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Cloudtrace - */ - class Cloudtrace { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://healthcare.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, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - cloudtrace_v2beta1.Cloudtrace = Cloudtrace; - class Resource$Projects { - constructor(context) { - this.context = context; - this.traceSinks = new Resource$Projects$Tracesinks(this.context); + 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://healthcare.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudtrace_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Tracesinks { + healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores = Resource$Projects$Locations$Datasets$Consentstores; + class Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions { constructor(context) { this.context = context; } @@ -196852,17 +454444,18 @@ var cloudtrace_v2beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -196871,10 +454464,10 @@ var cloudtrace_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -196883,17 +454476,18 @@ var cloudtrace_v2beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -196902,10 +454496,10 @@ var cloudtrace_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -196914,17 +454508,18 @@ var cloudtrace_v2beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -196933,10 +454528,10 @@ var cloudtrace_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -196945,17 +454540,18 @@ var cloudtrace_v2beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -196964,10 +454560,10 @@ var cloudtrace_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -196976,17 +454572,18 @@ var cloudtrace_v2beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -196995,1218 +454592,900 @@ var cloudtrace_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudtrace_v2beta1.Resource$Projects$Tracesinks = Resource$Projects$Tracesinks; -})(cloudtrace_v2beta1 = exports.cloudtrace_v2beta1 || (exports.cloudtrace_v2beta1 = {})); -//# sourceMappingURL=v2beta1.js.map - -/***/ }), -/* 604 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.gamesManagement_v1management = 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 = __webpack_require__(927); -var gamesManagement_v1management; -(function (gamesManagement_v1management) { - /** - * Google Play Game Services Management API - * - * The Management API for Google Play Game Services. - * - * @example - * const {google} = require('googleapis'); - * const gamesManagement = google.gamesManagement('v1management'); - * - * @namespace gamesManagement - * @type {Function} - * @version v1management - * @variation v1management - * @param {object=} options Options for Gamesmanagement - */ - class Gamesmanagement { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.achievements = new Resource$Achievements(this.context); - this.applications = new Resource$Applications(this.context); - this.events = new Resource$Events(this.context); - this.players = new Resource$Players(this.context); - this.rooms = new Resource$Rooms(this.context); - this.scores = new Resource$Scores(this.context); - this.turnBasedMatches = new Resource$Turnbasedmatches(this.context); - } - } - gamesManagement_v1management.Gamesmanagement = Gamesmanagement; - class Resource$Achievements { + healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions = Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions; + class Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts { constructor(context) { this.context = context; } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/games/v1management/achievements/{achievementId}/reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - resetAll(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/achievements/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/achievements/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/achievements/{achievementId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/achievements/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gamesManagement_v1management.Resource$Achievements = Resource$Achievements; - class Resource$Applications { + healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts = Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts; + class Resource$Projects$Locations$Datasets$Consentstores$Consents { constructor(context) { this.context = context; } - listHidden(paramsOrCallback, optionsOrCallback, callback) { + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/applications/{applicationId}/players/hidden').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gamesManagement_v1management.Resource$Applications = Resource$Applications; - class Resource$Events { - constructor(context) { - this.context = context; - } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/events/{eventId}/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['eventId'], - pathParams: ['eventId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/events/reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/events/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/events/{eventId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['eventId'], - pathParams: ['eventId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/events/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gamesManagement_v1management.Resource$Events = Resource$Events; - class Resource$Players { - constructor(context) { - this.context = context; - } - hide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listRevisions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['applicationId', 'playerId'], - pathParams: ['applicationId', 'playerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unhide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['applicationId', 'playerId'], - pathParams: ['applicationId', 'playerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gamesManagement_v1management.Resource$Players = Resource$Players; - class Resource$Rooms { - constructor(context) { - this.context = context; - } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + reject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/rooms/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:reject').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + revoke(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/rooms/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - gamesManagement_v1management.Resource$Rooms = Resource$Rooms; - class Resource$Scores { + healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores$Consents = Resource$Projects$Locations$Datasets$Consentstores$Consents; + class Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings { constructor(context) { this.context = context; } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + archive(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/leaderboards/{leaderboardId}/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/scores/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/leaderboards/{leaderboardId}/scores/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/scores/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gamesManagement_v1management.Resource$Scores = Resource$Scores; - class Resource$Turnbasedmatches { - constructor(context) { - this.context = context; - } - reset(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1management/turnbasedmatches/reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings = Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings; + class Resource$Projects$Locations$Datasets$Dicomstores { + constructor(context) { + this.context = context; + this.studies = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1management/turnbasedmatches/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gamesManagement_v1management.Resource$Turnbasedmatches = Resource$Turnbasedmatches; -})(gamesManagement_v1management = exports.gamesManagement_v1management || (exports.gamesManagement_v1management = {})); -//# sourceMappingURL=v1management.js.map - -/***/ }), -/* 605 */ -/***/ (function(module) { - -module.exports = require("http"); - -/***/ }), -/* 606 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.bigquerydatatransfer = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(586); -exports.VERSIONS = { - v1: v1_1.bigquerydatatransfer_v1.Bigquerydatatransfer, -}; -function bigquerydatatransfer(versionOrOptions) { - return googleapis_common_1.getAPI('bigquerydatatransfer', versionOrOptions, exports.VERSIONS, this); -} -exports.bigquerydatatransfer = bigquerydatatransfer; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 607 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.vision = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(932); -const v1p1beta1_1 = __webpack_require__(468); -const v1p2beta1_1 = __webpack_require__(781); -exports.VERSIONS = { - v1: v1_1.vision_v1.Vision, - v1p1beta1: v1p1beta1_1.vision_v1p1beta1.Vision, - v1p2beta1: v1p2beta1_1.vision_v1p2beta1.Vision, -}; -function vision(versionOrOptions) { - return googleapis_common_1.getAPI('vision', versionOrOptions, exports.VERSIONS, this); -} -exports.vision = vision; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 608 */, -/* 609 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.blogger = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(52); -const v3_1 = __webpack_require__(303); -exports.VERSIONS = { - v2: v2_1.blogger_v2.Blogger, - v3: v3_1.blogger_v3.Blogger, -}; -function blogger(versionOrOptions) { - return googleapis_common_1.getAPI('blogger', versionOrOptions, exports.VERSIONS, this); -} -exports.blogger = blogger; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 610 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.servicenetworking = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(73); -const v1beta_1 = __webpack_require__(709); -exports.VERSIONS = { - v1: v1_1.servicenetworking_v1.Servicenetworking, - v1beta: v1beta_1.servicenetworking_v1beta.Servicenetworking, -}; -function servicenetworking(versionOrOptions) { - return googleapis_common_1.getAPI('servicenetworking', versionOrOptions, exports.VERSIONS, this); -} -exports.servicenetworking = servicenetworking; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 611 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.dns_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 = __webpack_require__(927); -var dns_v1; -(function (dns_v1) { - /** - * Google Cloud DNS API - * - * Configures and serves authoritative DNS records. - * - * @example - * const {google} = require('googleapis'); - * const dns = google.dns('v1'); - * - * @namespace dns - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Dns - */ - class Dns { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.changes = new Resource$Changes(this.context); - this.dnsKeys = new Resource$Dnskeys(this.context); - this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); - this.managedZones = new Resource$Managedzones(this.context); - this.policies = new Resource$Policies(this.context); - this.projects = new Resource$Projects(this.context); - this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); - } - } - dns_v1.Dns = Dns; - class Resource$Changes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone', 'changeId'], - pathParams: ['changeId', 'managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Changes = Resource$Changes; - class Resource$Dnskeys { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Dnskeys = Resource$Dnskeys; - class Resource$Managedzoneoperations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'operation'], - pathParams: ['managedZone', 'operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -198215,2611 +455494,2387 @@ var dns_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; - class Resource$Managedzones { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + searchForStudies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + storeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Managedzones = Resource$Managedzones; - class Resource$Policies { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores = Resource$Projects$Locations$Datasets$Dicomstores; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies { + constructor(context) { + this.context = context; + this.series = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context); + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], - 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://dns.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Policies = Resource$Policies; - class Resource$Projects { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Projects = Resource$Projects; - class Resource$Resourcerecordsets { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + storeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dns_v1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; -})(dns_v1 = exports.dns_v1 || (exports.dns_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 612 */, -/* 613 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.books_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 = __webpack_require__(927); -var books_v1; -(function (books_v1) { - /** - * Books API - * - * Searches for books and manages your Google Books library. - * - * @example - * const {google} = require('googleapis'); - * const books = google.books('v1'); - * - * @namespace books - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Books - */ - class Books { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.bookshelves = new Resource$Bookshelves(this.context); - this.cloudloading = new Resource$Cloudloading(this.context); - this.dictionary = new Resource$Dictionary(this.context); - this.familysharing = new Resource$Familysharing(this.context); - this.layers = new Resource$Layers(this.context); - this.myconfig = new Resource$Myconfig(this.context); - this.mylibrary = new Resource$Mylibrary(this.context); - this.notification = new Resource$Notification(this.context); - this.onboarding = new Resource$Onboarding(this.context); - this.personalizedstream = new Resource$Personalizedstream(this.context); - this.promooffer = new Resource$Promooffer(this.context); - this.series = new Resource$Series(this.context); - this.volumes = new Resource$Volumes(this.context); - } - } - books_v1.Books = Books; - class Resource$Bookshelves { + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series { constructor(context) { this.context = context; - this.volumes = new Resource$Bookshelves$Volumes(this.context); + this.instances = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userId', 'shelf'], - pathParams: ['shelf', 'userId'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/users/{userId}/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Bookshelves = Resource$Bookshelves; - class Resource$Bookshelves$Volumes { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'shelf'], - pathParams: ['shelf', 'userId'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Bookshelves$Volumes = Resource$Bookshelves$Volumes; - class Resource$Cloudloading { - constructor(context) { - this.context = context; - } - addBook(paramsOrCallback, optionsOrCallback, callback) { + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/cloudloading/addBook').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteBook(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances { + constructor(context) { + this.context = context; + this.frames = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/cloudloading/deleteBook').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['volumeId'], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBook(paramsOrCallback, optionsOrCallback, callback) { + retrieveInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/cloudloading/updateBook').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Cloudloading = Resource$Cloudloading; - class Resource$Dictionary { - constructor(context) { - this.context = context; - } - listOfflineMetadata(paramsOrCallback, optionsOrCallback, callback) { + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/dictionary/listOfflineMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['cpksver'], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Dictionary = Resource$Dictionary; - class Resource$Familysharing { - constructor(context) { - this.context = context; - } - getFamilyInfo(paramsOrCallback, optionsOrCallback, callback) { + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/familysharing/getFamilyInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - share(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames { + constructor(context) { + this.context = context; + } + retrieveFrames(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/familysharing/share').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unshare(paramsOrCallback, optionsOrCallback, callback) { + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/familysharing/unshare').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - books_v1.Resource$Familysharing = Resource$Familysharing; - class Resource$Layers { + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames; + class Resource$Projects$Locations$Datasets$Fhirstores { constructor(context) { this.context = context; - this.annotationData = new Resource$Layers$Annotationdata(this.context); - this.volumeAnnotations = new Resource$Layers$Volumeannotations(this.context); + this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary/{summaryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId', 'summaryId'], - pathParams: ['summaryId', 'volumeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Layers = Resource$Layers; - class Resource$Layers$Annotationdata { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'volumeId', - 'layerId', - 'annotationDataId', - 'contentVersion', - ], - pathParams: ['annotationDataId', 'layerId', 'volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}/data').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId', 'layerId', 'contentVersion'], - pathParams: ['layerId', 'volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Layers$Annotationdata = Resource$Layers$Annotationdata; - class Resource$Layers$Volumeannotations { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['volumeId', 'layerId', 'annotationId'], - pathParams: ['annotationId', 'layerId', 'volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getFHIRStoreMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getFHIRStoreMetrics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['volumeId', 'layerId', 'contentVersion'], - pathParams: ['layerId', 'volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Layers$Volumeannotations = Resource$Layers$Volumeannotations; - class Resource$Myconfig { - constructor(context) { - this.context = context; - } - getUserSettings(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/getUserSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - releaseDownloadAccess(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/releaseDownloadAccess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['volumeIds', 'cpksver'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestAccess(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/requestAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['source', 'volumeId', 'nonce', 'cpksver'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - syncVolumeLicenses(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/syncVolumeLicenses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['source', 'nonce', 'cpksver'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateUserSettings(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/updateUserSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Myconfig = Resource$Myconfig; - class Resource$Mylibrary { - constructor(context) { - this.context = context; - this.annotations = new Resource$Mylibrary$Annotations(this.context); - this.bookshelves = new Resource$Mylibrary$Bookshelves(this.context); - this.readingpositions = new Resource$Mylibrary$Readingpositions(this.context); - } - } - books_v1.Resource$Mylibrary = Resource$Mylibrary; - class Resource$Mylibrary$Annotations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['annotationId'], - pathParams: ['annotationId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations$Datasets$Fhirstores = Resource$Projects$Locations$Datasets$Fhirstores; + class Resource$Projects$Locations$Datasets$Fhirstores$Fhir { + constructor(context) { + this.context = context; + } + capabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - summary(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations/summary').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['layerIds', 'volumeId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + executeBundle(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['annotationId'], - pathParams: ['annotationId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Mylibrary$Annotations = Resource$Mylibrary$Annotations; - class Resource$Mylibrary$Bookshelves { - constructor(context) { - this.context = context; - this.volumes = new Resource$Mylibrary$Bookshelves$Volumes(this.context); - } - addVolume(paramsOrCallback, optionsOrCallback, callback) { + history(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/addVolume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['shelf', 'volumeId'], - pathParams: ['shelf'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clearVolumes(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/clearVolumes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['shelf'], - pathParams: ['shelf'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + PatientEverything(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['shelf'], - pathParams: ['shelf'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + read(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveVolume(paramsOrCallback, optionsOrCallback, callback) { + ResourcePurge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/moveVolume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['shelf', 'volumeId', 'volumePosition'], - pathParams: ['shelf'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeVolume(paramsOrCallback, optionsOrCallback, callback) { + ResourceValidate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/removeVolume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fhir/{+type}/$validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['shelf', 'volumeId'], - pathParams: ['shelf'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Mylibrary$Bookshelves = Resource$Mylibrary$Bookshelves; - class Resource$Mylibrary$Bookshelves$Volumes { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['shelf'], - pathParams: ['shelf'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Mylibrary$Bookshelves$Volumes = Resource$Mylibrary$Bookshelves$Volumes; - class Resource$Mylibrary$Readingpositions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + searchType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/readingpositions/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/fhir/{resourceType}/_search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['parent', 'resourceType'], + pathParams: ['parent', 'resourceType'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPosition(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/books/v1/mylibrary/readingpositions/{volumeId}/setPosition').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['volumeId', 'timestamp', 'position'], - pathParams: ['volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Mylibrary$Readingpositions = Resource$Mylibrary$Readingpositions; - class Resource$Notification { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + vread(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/notification/get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['notification_id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - books_v1.Resource$Notification = Resource$Notification; - class Resource$Onboarding { + healthcare_v1.Resource$Projects$Locations$Datasets$Fhirstores$Fhir = Resource$Projects$Locations$Datasets$Fhirstores$Fhir; + class Resource$Projects$Locations$Datasets$Hl7v2stores { constructor(context) { this.context = context; + this.messages = + new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context); } - listCategories(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/onboarding/listCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listCategoryVolumes(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/onboarding/listCategoryVolumes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Onboarding = Resource$Onboarding; - class Resource$Personalizedstream { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/personalizedstream/get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Personalizedstream = Resource$Personalizedstream; - class Resource$Promooffer { - constructor(context) { - this.context = context; - } - accept(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/promooffer/accept').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/promooffer/dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/promooffer/get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Promooffer = Resource$Promooffer; - class Resource$Series { - constructor(context) { - this.context = context; - this.membership = new Resource$Series$Membership(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/series/get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['series_id'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Series = Resource$Series; - class Resource$Series$Membership { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/series/membership/get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['series_id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Series$Membership = Resource$Series$Membership; - class Resource$Volumes { - constructor(context) { - this.context = context; - this.associated = new Resource$Volumes$Associated(this.context); - this.mybooks = new Resource$Volumes$Mybooks(this.context); - this.recommended = new Resource$Volumes$Recommended(this.context); - this.useruploaded = new Resource$Volumes$Useruploaded(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['q'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - books_v1.Resource$Volumes = Resource$Volumes; - class Resource$Volumes$Associated { + healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; + class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/associated').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Volumes$Associated = Resource$Volumes$Associated; - class Resource$Volumes$Mybooks { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/mybooks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Volumes$Mybooks = Resource$Volumes$Mybooks; - class Resource$Volumes$Recommended { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/recommended').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rate(paramsOrCallback, optionsOrCallback, callback) { + ingest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/recommended/rate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['rating', 'volumeId'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Volumes$Recommended = Resource$Volumes$Recommended; - class Resource$Volumes$Useruploaded { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/useruploaded').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Volumes$Useruploaded = Resource$Volumes$Useruploaded; -})(books_v1 = exports.books_v1 || (exports.books_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 614 */ -/***/ (function(module) { - -module.exports = require("events"); - -/***/ }), -/* 615 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudkms = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(973); -exports.VERSIONS = { - v1: v1_1.cloudkms_v1.Cloudkms, -}; -function cloudkms(versionOrOptions) { - return googleapis_common_1.getAPI('cloudkms', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudkms = cloudkms; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 616 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2012 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 }); -const events_1 = __webpack_require__(614); -const transporters_1 = __webpack_require__(974); -class AuthClient extends events_1.EventEmitter { - constructor() { - super(...arguments); - this.transporter = new transporters_1.DefaultTransporter(); - this.credentials = {}; - } - /** - * Sets the auth credentials. - */ - setCredentials(credentials) { - this.credentials = credentials; - } - /** - * Append additional headers, e.g., x-goog-user-project, shared across the - * classes inheriting AuthClient. This method should be used by any method - * that overrides getRequestMetadataAsync(), which is a shared helper for - * setting request information in both gRPC and HTTP API calls. - * - * @param headers objedcdt to append additional headers to. - */ - addSharedMetadataHeaders(headers) { - // quota_project_id, stored in application_default_credentials.json, is set in - // the x-goog-user-project header, to indicate an alternate account for - // billing and quota: - if (!headers['x-goog-user-project'] && // don't override a value the user sets. - this.quotaProjectId) { - headers['x-goog-user-project'] = this.quotaProjectId; - } - return headers; - } -} -exports.AuthClient = AuthClient; -//# sourceMappingURL=authclient.js.map - -/***/ }), -/* 617 */, -/* 618 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.datastore_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 = __webpack_require__(927); -var datastore_v1; -(function (datastore_v1) { - /** - * Cloud Datastore API - * - * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. - * - * @example - * const {google} = require('googleapis'); - * const datastore = google.datastore('v1'); - * - * @namespace datastore - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Datastore - */ - class Datastore { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - datastore_v1.Datastore = Datastore; - class Resource$Projects { - constructor(context) { - this.context = context; - this.indexes = new Resource$Projects$Indexes(this.context); - this.operations = new Resource$Projects$Operations(this.context); - } - allocateIds(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages = Resource$Projects$Locations$Datasets$Hl7v2stores$Messages; + class Resource$Projects$Locations$Datasets$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + healthcare_v1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + this.nlp = new Resource$Projects$Locations$Services$Nlp(this.context); + } + } + healthcare_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Nlp { + constructor(context) { + this.context = context; + } + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+nlpService}:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['nlpService'], + pathParams: ['nlpService'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + healthcare_v1.Resource$Projects$Locations$Services$Nlp = Resource$Projects$Locations$Services$Nlp; +})(healthcare_v1 = exports.healthcare_v1 || (exports.healthcare_v1 = {})); + + +/***/ }), + +/***/ 7494: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firestore_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firestore_v1beta1; +(function (firestore_v1beta1) { + /** + * Cloud Firestore API + * + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firestore = google.firestore('v1beta1'); + * ``` + */ + class Firestore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firestore_v1beta1.Firestore = Firestore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Databases(this.context); + } + } + firestore_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Databases$Documents(this.context); + this.indexes = new Resource$Projects$Databases$Indexes(this.context); + } + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -200830,25 +457885,25 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reserveIds(paramsOrCallback, optionsOrCallback, callback) { + importDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200861,25 +457916,31 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1beta1.Resource$Projects$Databases = Resource$Projects$Databases; + class Resource$Projects$Databases$Documents { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200892,25 +457953,25 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { + batchWrite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200923,62 +457984,57 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:batchWrite').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datastore_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Indexes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200991,56 +458047,57 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'indexId'], - pathParams: ['indexId', 'projectId'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + createDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'indexId'], - pathParams: ['indexId', 'projectId'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201053,31 +458110,25 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datastore_v1.Resource$Projects$Indexes = Resource$Projects$Indexes; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201090,11 +458141,11 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -201102,13 +458153,13 @@ var datastore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201121,152 +458172,91 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datastore_v1.Resource$Projects$Operations = Resource$Projects$Operations; -})(datastore_v1 = exports.datastore_v1 || (exports.datastore_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 619 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudidentity_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 = __webpack_require__(927); -var cloudidentity_v1; -(function (cloudidentity_v1) { - /** - * Cloud Identity API - * - * API for provisioning and managing identity resources. - * - * @example - * const {google} = require('googleapis'); - * const cloudidentity = google.cloudidentity('v1'); - * - * @namespace cloudidentity - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudidentity - */ - class Cloudidentity { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.groups = new Resource$Groups(this.context); - } - } - cloudidentity_v1.Cloudidentity = Cloudidentity; - class Resource$Groups { - constructor(context) { - this.context = context; - this.memberships = new Resource$Groups$Memberships(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listen(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -201277,56 +458267,59 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + partitionQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -201337,11 +458330,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -201349,14 +458342,15 @@ var cloudidentity_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -201367,56 +458361,59 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + runAggregationQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + runQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -201427,26 +458424,27 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -201457,27 +458455,27 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudidentity_v1.Resource$Groups = Resource$Groups; - class Resource$Groups$Memberships { + firestore_v1beta1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; + class Resource$Projects$Databases$Indexes { constructor(context) { this.context = context; } @@ -201494,10 +458492,10 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -201506,10 +458504,10 @@ var cloudidentity_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -201525,10 +458523,10 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -201537,10 +458535,10 @@ var cloudidentity_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -201556,10 +458554,10 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -201568,10 +458566,10 @@ var cloudidentity_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -201587,41 +458585,10 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').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); - } - } - lookup(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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -201630,19 +458597,48 @@ var cloudidentity_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudidentity_v1.Resource$Groups$Memberships = Resource$Groups$Memberships; -})(cloudidentity_v1 = exports.cloudidentity_v1 || (exports.cloudidentity_v1 = {})); -//# sourceMappingURL=v1.js.map + firestore_v1beta1.Resource$Projects$Databases$Indexes = Resource$Projects$Databases$Indexes; +})(firestore_v1beta1 = exports.firestore_v1beta1 || (exports.firestore_v1beta1 = {})); + + +/***/ }), + +/***/ 7496: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(__webpack_require__(4089)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.slice(14, 15), 16); +} + +var _default = version; +exports.default = _default; /***/ }), -/* 620 */ + +/***/ 7502: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -201660,68 +458656,60 @@ var cloudidentity_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudsearch_v1 = void 0; +exports.policysimulator_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 = __webpack_require__(927); -var cloudsearch_v1; -(function (cloudsearch_v1) { +var policysimulator_v1; +(function (policysimulator_v1) { /** - * Cloud Search API + * Policy Simulator API * - * Cloud Search provides cloud-based search capabilities over G Suite data. The Cloud Search API allows indexing of non-G Suite data into Cloud Search. + * Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A `Replay` is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a `Replay`, Policy Simulator re-evaluates, or replays, past access attempts under both the current policy and your proposed policy, and compares those results to determine how your members' access might change under the proposed policy. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudsearch = google.cloudsearch('v1'); - * - * @namespace cloudsearch - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudsearch + * const policysimulator = google.policysimulator('v1'); + * ``` */ - class Cloudsearch { + class Policysimulator { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.debug = new Resource$Debug(this.context); - this.indexing = new Resource$Indexing(this.context); - this.media = new Resource$Media(this.context); + this.folders = new Resource$Folders(this.context); this.operations = new Resource$Operations(this.context); - this.query = new Resource$Query(this.context); - this.settings = new Resource$Settings(this.context); - this.stats = new Resource$Stats(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } } - cloudsearch_v1.Cloudsearch = Cloudsearch; - class Resource$Debug { + policysimulator_v1.Policysimulator = Policysimulator; + class Resource$Folders { constructor(context) { this.context = context; - this.datasources = new Resource$Debug$Datasources(this.context); - this.identitysources = new Resource$Debug$Identitysources(this.context); + this.locations = new Resource$Folders$Locations(this.context); } } - cloudsearch_v1.Resource$Debug = Resource$Debug; - class Resource$Debug$Datasources { + policysimulator_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { constructor(context) { this.context = context; - this.items = new Resource$Debug$Datasources$Items(this.context); + this.replays = new Resource$Folders$Locations$Replays(this.context); } } - cloudsearch_v1.Resource$Debug$Datasources = Resource$Debug$Datasources; - class Resource$Debug$Datasources$Items { + policysimulator_v1.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Replays { constructor(context) { this.context = context; - this.unmappedids = new Resource$Debug$Datasources$Items$Unmappedids(this.context); + this.operations = new Resource$Folders$Locations$Replays$Operations(this.context); + this.results = new Resource$Folders$Locations$Replays$Results(this.context); } - checkAccess(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201734,25 +458722,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+name}:checkAccess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchByViewUrl(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201765,11 +458753,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+name}/items:searchByViewUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -201777,19 +458765,19 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Debug$Datasources$Items = Resource$Debug$Datasources$Items; - class Resource$Debug$Datasources$Items$Unmappedids { + policysimulator_v1.Resource$Folders$Locations$Replays = Resource$Folders$Locations$Replays; + class Resource$Folders$Locations$Replays$Operations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201802,39 +458790,63 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Debug$Datasources$Items$Unmappedids = Resource$Debug$Datasources$Items$Unmappedids; - class Resource$Debug$Identitysources { - constructor(context) { - this.context = context; - this.items = new Resource$Debug$Identitysources$Items(this.context); - this.unmappedids = new Resource$Debug$Identitysources$Unmappedids(this.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://policysimulator.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudsearch_v1.Resource$Debug$Identitysources = Resource$Debug$Identitysources; - class Resource$Debug$Identitysources$Items { + policysimulator_v1.Resource$Folders$Locations$Replays$Operations = Resource$Folders$Locations$Replays$Operations; + class Resource$Folders$Locations$Replays$Results { constructor(context) { this.context = context; } - listForunmappedidentity(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201847,10 +458859,10 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+parent}/items:forunmappedidentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -201859,21 +458871,50 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Debug$Identitysources$Items = Resource$Debug$Identitysources$Items; - class Resource$Debug$Identitysources$Unmappedids { + policysimulator_v1.Resource$Folders$Locations$Replays$Results = Resource$Folders$Locations$Replays$Results; + class Resource$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://policysimulator.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -201884,39 +458925,47 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Debug$Identitysources$Unmappedids = Resource$Debug$Identitysources$Unmappedids; - class Resource$Indexing { + policysimulator_v1.Resource$Operations = Resource$Operations; + class Resource$Organizations { constructor(context) { this.context = context; - this.datasources = new Resource$Indexing$Datasources(this.context); + this.locations = new Resource$Organizations$Locations(this.context); } } - cloudsearch_v1.Resource$Indexing = Resource$Indexing; - class Resource$Indexing$Datasources { + policysimulator_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { constructor(context) { this.context = context; - this.items = new Resource$Indexing$Datasources$Items(this.context); + this.replays = new Resource$Organizations$Locations$Replays(this.context); } - deleteSchema(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Locations$Replays$Operations(this.context); + this.results = new Resource$Organizations$Locations$Replays$Results(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201929,11 +458978,42 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://policysimulator.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -201941,29 +459021,36 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSchema(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.Resource$Organizations$Locations$Replays = Resource$Organizations$Locations$Replays; + class Resource$Organizations$Locations$Replays$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -201972,30 +459059,31 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSchema(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -202003,50 +459091,73 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Indexing$Datasources = Resource$Indexing$Datasources; - class Resource$Indexing$Datasources$Items { + policysimulator_v1.Resource$Organizations$Locations$Replays$Operations = Resource$Organizations$Locations$Replays$Operations; + class Resource$Organizations$Locations$Replays$Results { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteQueueItems(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.Resource$Organizations$Locations$Replays$Results = Resource$Organizations$Locations$Replays$Results; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + policysimulator_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.replays = new Resource$Projects$Locations$Replays(this.context); + } + } + policysimulator_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Replays$Operations(this.context); + this.results = new Resource$Projects$Locations$Replays$Results(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202059,22 +459170,22 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items:deleteQueueItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -202090,10 +459201,10 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -202102,30 +459213,37 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - index(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.Resource$Projects$Locations$Replays = Resource$Projects$Locations$Replays; + class Resource$Projects$Locations$Replays$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}:index').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -202133,10 +459251,10 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -202145,17 +459263,18 @@ var cloudsearch_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -202164,13 +459283,19 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - poll(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; + class Resource$Projects$Locations$Replays$Results { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202183,25 +459308,84 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items:poll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - push(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.Resource$Projects$Locations$Replays$Results = Resource$Projects$Locations$Replays$Results; +})(policysimulator_v1 = exports.policysimulator_v1 || (exports.policysimulator_v1 = {})); + + +/***/ }), + +/***/ 7507: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinessnotifications_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinessnotifications_v1; +(function (mybusinessnotifications_v1) { + /** + * My Business Notifications API + * + * The My Business Notification Settings API enables managing notification settings for business accounts. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessnotifications = google.mybusinessnotifications('v1'); + * ``` + */ + class Mybusinessnotifications { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + mybusinessnotifications_v1.Mybusinessnotifications = Mybusinessnotifications; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + getNotificationSetting(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202214,11 +459398,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessnotifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -202226,13 +459410,13 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unreserve(paramsOrCallback, optionsOrCallback, callback) { + updateNotificationSetting(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202245,11 +459429,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessnotifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items:unreserve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -202257,15 +459441,116 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + mybusinessnotifications_v1.Resource$Accounts = Resource$Accounts; +})(mybusinessnotifications_v1 = exports.mybusinessnotifications_v1 || (exports.mybusinessnotifications_v1 = {})); + + +/***/ }), + +/***/ 7510: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.discovery_v1 = exports.auth = exports.discovery = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(358); +Object.defineProperty(exports, "discovery_v1", { enumerable: true, get: function () { return v1_1.discovery_v1; } }); +exports.VERSIONS = { + v1: v1_1.discovery_v1.Discovery, +}; +function discovery(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('discovery', versionOrOptions, exports.VERSIONS, this); +} +exports.discovery = discovery; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7545: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.drivelabels_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var drivelabels_v2beta; +(function (drivelabels_v2beta) { + /** + * Drive Labels API + * + * An API for managing Drive Labels + * + * @example + * ```js + * const {google} = require('googleapis'); + * const drivelabels = google.drivelabels('v2beta'); + * ``` + */ + class Drivelabels { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.labels = new Resource$Labels(this.context); + this.limits = new Resource$Limits(this.context); + this.users = new Resource$Users(this.context); + } + } + drivelabels_v2beta.Drivelabels = Drivelabels; + class Resource$Labels { + constructor(context) { + this.context = context; + this.locks = new Resource$Labels$Locks(this.context); + this.permissions = new Resource$Labels$Permissions(this.context); + this.revisions = new Resource$Labels$Revisions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202276,31 +459561,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}:upload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/labels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Indexing$Datasources$Items = Resource$Indexing$Datasources$Items; - class Resource$Media { - constructor(context) { - this.context = context; - } - upload(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -202312,32 +459591,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Media = Resource$Media; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delta(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -202349,11 +459621,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:delta').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -202361,20 +459633,13 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Operations = Resource$Operations; - class Resource$Query { - constructor(context) { - this.context = context; - this.sources = new Resource$Query$Sources(this.context); - } - search(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -202386,25 +459651,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/query/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggest(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -202416,33 +459681,26 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/query/suggest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Query = Resource$Query; - class Resource$Query$Sources { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202453,41 +459711,26 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/query/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Query$Sources = Resource$Query$Sources; - class Resource$Settings { - constructor(context) { - this.context = context; - this.datasources = new Resource$Settings$Datasources(this.context); - this.searchapplications = new Resource$Settings$Searchapplications(this.context); - } - } - cloudsearch_v1.Resource$Settings = Resource$Settings; - class Resource$Settings$Datasources { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202498,11 +459741,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -202510,15 +459753,14 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202529,11 +459771,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -202541,13 +459783,13 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateLabelCopyMode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202560,11 +459802,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:updateLabelCopyMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -202572,13 +459814,13 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updatePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202591,25 +459833,31 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + drivelabels_v2beta.Resource$Labels = Resource$Labels; + class Resource$Labels$Locks { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202622,31 +459870,31 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Settings$Datasources = Resource$Settings$Datasources; - class Resource$Settings$Searchapplications { + drivelabels_v2beta.Resource$Labels$Locks = Resource$Labels$Locks; + class Resource$Labels$Permissions { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202659,25 +459907,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202690,25 +459938,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202721,25 +459969,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202752,25 +460000,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202783,25 +460031,33 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + drivelabels_v2beta.Resource$Labels$Permissions = Resource$Labels$Permissions; + class Resource$Labels$Revisions { + constructor(context) { + this.context = context; + this.locks = new Resource$Labels$Revisions$Locks(this.context); + this.permissions = new Resource$Labels$Revisions$Permissions(this.context); + } + updatePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202814,36 +460070,33 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Settings$Searchapplications = Resource$Settings$Searchapplications; - class Resource$Stats { + drivelabels_v2beta.Resource$Labels$Revisions = Resource$Labels$Revisions; + class Resource$Labels$Revisions$Locks { constructor(context) { this.context = context; - this.index = new Resource$Stats$Index(this.context); - this.query = new Resource$Stats$Query(this.context); - this.session = new Resource$Stats$Session(this.context); - this.user = new Resource$Stats$User(this.context); } - getIndex(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202854,26 +460107,33 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/index').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getQuery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + drivelabels_v2beta.Resource$Labels$Revisions$Locks = Resource$Labels$Revisions$Locks; + class Resource$Labels$Revisions$Permissions { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202884,26 +460144,27 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSession(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202914,26 +460175,27 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/session').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getUser(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202944,38 +460206,25 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/user').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Stats = Resource$Stats; - class Resource$Stats$Index { - constructor(context) { - this.context = context; - this.datasources = new Resource$Stats$Index$Datasources(this.context); - } - } - cloudsearch_v1.Resource$Stats$Index = Resource$Stats$Index; - class Resource$Stats$Index$Datasources { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202988,11 +460237,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/index/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -203000,26 +460249,13 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsearch_v1.Resource$Stats$Index$Datasources = Resource$Stats$Index$Datasources; - class Resource$Stats$Query { - constructor(context) { - this.context = context; - this.searchapplications = new Resource$Stats$Query$Searchapplications(this.context); - } - } - cloudsearch_v1.Resource$Stats$Query = Resource$Stats$Query; - class Resource$Stats$Query$Searchapplications { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203032,40 +460268,32 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/query/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Stats$Query$Searchapplications = Resource$Stats$Query$Searchapplications; - class Resource$Stats$Session { - constructor(context) { - this.context = context; - this.searchapplications = new Resource$Stats$Session$Searchapplications(this.context); - } - } - cloudsearch_v1.Resource$Stats$Session = Resource$Stats$Session; - class Resource$Stats$Session$Searchapplications { + drivelabels_v2beta.Resource$Labels$Revisions$Permissions = Resource$Labels$Revisions$Permissions; + class Resource$Limits { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getLabel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203076,38 +460304,31 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/session/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/limits/label').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Stats$Session$Searchapplications = Resource$Stats$Session$Searchapplications; - class Resource$Stats$User { - constructor(context) { - this.context = context; - this.searchapplications = new Resource$Stats$User$Searchapplications(this.context); - } - } - cloudsearch_v1.Resource$Stats$User = Resource$Stats$User; - class Resource$Stats$User$Searchapplications { + drivelabels_v2beta.Resource$Limits = Resource$Limits; + class Resource$Users { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + getCapabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203120,10 +460341,10 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/user/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -203132,81 +460353,31 @@ var cloudsearch_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudsearch_v1.Resource$Stats$User$Searchapplications = Resource$Stats$User$Searchapplications; -})(cloudsearch_v1 = exports.cloudsearch_v1 || (exports.cloudsearch_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 621 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const path = __webpack_require__(622); -const pathKey = __webpack_require__(39); - -module.exports = opts => { - opts = Object.assign({ - cwd: process.cwd(), - path: process.env[pathKey()] - }, opts); - - let prev; - let pth = path.resolve(opts.cwd); - const ret = []; - - while (prev !== pth) { - ret.push(path.join(pth, 'node_modules/.bin')); - prev = pth; - pth = path.resolve(pth, '..'); - } - - // ensure the running `node` binary is used - ret.push(path.dirname(process.execPath)); - - return ret.concat(opts.path).join(path.delimiter); -}; - -module.exports.env = opts => { - opts = Object.assign({ - env: process.env - }, opts); - - const env = Object.assign({}, opts.env); - const path = pathKey({env}); - - opts.path = env[path]; - env[path] = module.exports(opts); - - return env; -}; + drivelabels_v2beta.Resource$Users = Resource$Users; +})(drivelabels_v2beta = exports.drivelabels_v2beta || (exports.drivelabels_v2beta = {})); /***/ }), -/* 622 */ -/***/ (function(module) { - -module.exports = require("path"); -/***/ }), -/* 623 */ +/***/ 7549: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; -// Copyright 2020 Google LLC +// Copyright 2021 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 +// 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, @@ -203214,25 +460385,350 @@ module.exports = require("path"); // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.redis = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(473); -const v1beta1_1 = __webpack_require__(175); -exports.VERSIONS = { - v1: v1_1.redis_v1.Redis, - v1beta1: v1beta1_1.redis_v1beta1.Redis, +exports.AwsClient = void 0; +const awsrequestsigner_1 = __webpack_require__(6509); +const baseexternalclient_1 = __webpack_require__(48); +/** + * AWS external account client. This is used for AWS workloads, where + * AWS STS GetCallerIdentity serialized signed requests are exchanged for + * GCP access token. + */ +class AwsClient extends baseexternalclient_1.BaseExternalAccountClient { + /** + * Instantiates an AwsClient instance using the provided JSON + * object loaded from an external account credentials file. + * An error is thrown if the credential is not a valid AWS credential. + * @param options The external account options object typically loaded + * from the external account JSON credential file. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + */ + constructor(options, additionalOptions) { + super(options, additionalOptions); + this.environmentId = options.credential_source.environment_id; + // This is only required if the AWS region is not available in the + // AWS_REGION or AWS_DEFAULT_REGION environment variables. + this.regionUrl = options.credential_source.region_url; + // This is only required if AWS security credentials are not available in + // environment variables. + this.securityCredentialsUrl = options.credential_source.url; + this.regionalCredVerificationUrl = + options.credential_source.regional_cred_verification_url; + this.imdsV2SessionTokenUrl = + options.credential_source.imdsv2_session_token_url; + this.awsRequestSigner = null; + this.region = ''; + // Data validators. + this.validateEnvironmentId(); + } + validateEnvironmentId() { + var _a; + const match = (_a = this.environmentId) === null || _a === void 0 ? void 0 : _a.match(/^(aws)(\d+)$/); + if (!match || !this.regionalCredVerificationUrl) { + throw new Error('No valid AWS "credential_source" provided'); + } + else if (parseInt(match[2], 10) !== 1) { + throw new Error(`aws version "${match[2]}" is not supported in the current build.`); + } + } + /** + * Triggered when an external subject token is needed to be exchanged for a + * GCP access token via GCP STS endpoint. + * This uses the `options.credential_source` object to figure out how + * to retrieve the token using the current environment. In this case, + * this uses a serialized AWS signed request to the STS GetCallerIdentity + * endpoint. + * The logic is summarized as: + * 1. If imdsv2_session_token_url is provided in the credential source, then + * fetch the aws session token and include it in the headers of the + * metadata requests. This is a requirement for IDMSv2 but optional + * for IDMSv1. + * 2. Retrieve AWS region from availability-zone. + * 3a. Check AWS credentials in environment variables. If not found, get + * from security-credentials endpoint. + * 3b. Get AWS credentials from security-credentials endpoint. In order + * to retrieve this, the AWS role needs to be determined by calling + * security-credentials endpoint without any argument. Then the + * credentials can be retrieved via: security-credentials/role_name + * 4. Generate the signed request to AWS STS GetCallerIdentity action. + * 5. Inject x-goog-cloud-target-resource into header and serialize the + * signed request. This will be the subject-token to pass to GCP STS. + * @return A promise that resolves with the external subject token. + */ + async retrieveSubjectToken() { + // Initialize AWS request signer if not already initialized. + if (!this.awsRequestSigner) { + const metadataHeaders = {}; + // Only retrieve the IMDSv2 session token if both the security credentials and region are + // not retrievable through the environment. + // The credential config contains all the URLs by default but clients may be running this + // where the metadata server is not available and returning the credentials through the environment. + // Removing this check may break them. + if (this.shouldUseMetadataServer() && this.imdsV2SessionTokenUrl) { + metadataHeaders['x-aws-ec2-metadata-token'] = + await this.getImdsV2SessionToken(); + } + this.region = await this.getAwsRegion(metadataHeaders); + this.awsRequestSigner = new awsrequestsigner_1.AwsRequestSigner(async () => { + // Check environment variables for permanent credentials first. + // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html + if (this.securityCredentialsFromEnv) { + return this.securityCredentialsFromEnv; + } + // Since the role on a VM can change, we don't need to cache it. + const roleName = await this.getAwsRoleName(metadataHeaders); + // Temporary credentials typically last for several hours. + // Expiration is returned in response. + // Consider future optimization of this logic to cache AWS tokens + // until their natural expiration. + const awsCreds = await this.getAwsSecurityCredentials(roleName, metadataHeaders); + return { + accessKeyId: awsCreds.AccessKeyId, + secretAccessKey: awsCreds.SecretAccessKey, + token: awsCreds.Token, + }; + }, this.region); + } + // Generate signed request to AWS STS GetCallerIdentity API. + // Use the required regional endpoint. Otherwise, the request will fail. + const options = await this.awsRequestSigner.getRequestOptions({ + url: this.regionalCredVerificationUrl.replace('{region}', this.region), + method: 'POST', + }); + // The GCP STS endpoint expects the headers to be formatted as: + // [ + // {key: 'x-amz-date', value: '...'}, + // {key: 'Authorization', value: '...'}, + // ... + // ] + // And then serialized as: + // encodeURIComponent(JSON.stringify({ + // url: '...', + // method: 'POST', + // headers: [{key: 'x-amz-date', value: '...'}, ...] + // })) + const reformattedHeader = []; + const extendedHeaders = Object.assign({ + // The full, canonical resource name of the workload identity pool + // provider, with or without the HTTPS prefix. + // Including this header as part of the signature is recommended to + // ensure data integrity. + 'x-goog-cloud-target-resource': this.audience, + }, options.headers); + // Reformat header to GCP STS expected format. + for (const key in extendedHeaders) { + reformattedHeader.push({ + key, + value: extendedHeaders[key], + }); + } + // Serialize the reformatted signed request. + return encodeURIComponent(JSON.stringify({ + url: options.url, + method: options.method, + headers: reformattedHeader, + })); + } + /** + * @return A promise that resolves with the IMDSv2 Session Token. + */ + async getImdsV2SessionToken() { + const opts = { + url: this.imdsV2SessionTokenUrl, + method: 'PUT', + responseType: 'text', + headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' }, + }; + const response = await this.transporter.request(opts); + return response.data; + } + /** + * @param headers The headers to be used in the metadata request. + * @return A promise that resolves with the current AWS region. + */ + async getAwsRegion(headers) { + // Priority order for region determination: + // AWS_REGION > AWS_DEFAULT_REGION > metadata server. + if (this.regionFromEnv) { + return this.regionFromEnv; + } + if (!this.regionUrl) { + throw new Error('Unable to determine AWS region due to missing ' + + '"options.credential_source.region_url"'); + } + const opts = { + url: this.regionUrl, + method: 'GET', + responseType: 'text', + headers: headers, + }; + const response = await this.transporter.request(opts); + // Remove last character. For example, if us-east-2b is returned, + // the region would be us-east-2. + return response.data.substr(0, response.data.length - 1); + } + /** + * @param headers The headers to be used in the metadata request. + * @return A promise that resolves with the assigned role to the current + * AWS VM. This is needed for calling the security-credentials endpoint. + */ + async getAwsRoleName(headers) { + if (!this.securityCredentialsUrl) { + throw new Error('Unable to determine AWS role name due to missing ' + + '"options.credential_source.url"'); + } + const opts = { + url: this.securityCredentialsUrl, + method: 'GET', + responseType: 'text', + headers: headers, + }; + const response = await this.transporter.request(opts); + return response.data; + } + /** + * Retrieves the temporary AWS credentials by calling the security-credentials + * endpoint as specified in the `credential_source` object. + * @param roleName The role attached to the current VM. + * @param headers The headers to be used in the metadata request. + * @return A promise that resolves with the temporary AWS credentials + * needed for creating the GetCallerIdentity signed request. + */ + async getAwsSecurityCredentials(roleName, headers) { + const response = await this.transporter.request({ + url: `${this.securityCredentialsUrl}/${roleName}`, + responseType: 'json', + headers: headers, + }); + return response.data; + } + shouldUseMetadataServer() { + // The metadata server must be used when either the AWS region or AWS security + // credentials cannot be retrieved through their defined environment variables. + return !this.regionFromEnv || !this.securityCredentialsFromEnv; + } + get regionFromEnv() { + // The AWS region can be provided through AWS_REGION or AWS_DEFAULT_REGION. + // Only one is required. + return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION'] || null); + } + get securityCredentialsFromEnv() { + // Both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are required. + if (process.env['AWS_ACCESS_KEY_ID'] && + process.env['AWS_SECRET_ACCESS_KEY']) { + return { + accessKeyId: process.env['AWS_ACCESS_KEY_ID'], + secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'], + token: process.env['AWS_SESSION_TOKEN'], + }; + } + return null; + } +} +exports.AwsClient = AwsClient; +AwsClient.AWS_EC2_METADATA_IPV4_ADDRESS = '169.254.169.254'; +AwsClient.AWS_EC2_METADATA_IPV6_ADDRESS = 'fd00:ec2::254'; +//# sourceMappingURL=awsclient.js.map + +/***/ }), + +/***/ 7554: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); }; -function redis(versionOrOptions) { - return googleapis_common_1.getAPI('redis', versionOrOptions, exports.VERSIONS, this); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } } -exports.redis = redis; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Bearer ${this.token}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; +//# sourceMappingURL=auth.js.map + +/***/ }), + +/***/ 7565: +/***/ (function(module) { + +module.exports = require("http2"); /***/ }), -/* 624 */ + +/***/ 7567: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -203250,180 +460746,27 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.cloudprofiler = exports.VERSIONS = void 0; +exports.AuthPlus = exports.webfonts_v1 = exports.auth = exports.webfonts = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(573); +const v1_1 = __webpack_require__(561); +Object.defineProperty(exports, "webfonts_v1", { enumerable: true, get: function () { return v1_1.webfonts_v1; } }); exports.VERSIONS = { - v2: v2_1.cloudprofiler_v2.Cloudprofiler, + v1: v1_1.webfonts_v1.Webfonts, }; -function cloudprofiler(versionOrOptions) { - return googleapis_common_1.getAPI('cloudprofiler', versionOrOptions, exports.VERSIONS, this); +function webfonts(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('webfonts', versionOrOptions, exports.VERSIONS, this); } -exports.cloudprofiler = cloudprofiler; +exports.webfonts = webfonts; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 625 */ -/***/ (function(module) { - -"use strict"; - - -const isStream = stream => - stream !== null && - typeof stream === 'object' && - typeof stream.pipe === 'function'; - -isStream.writable = stream => - isStream(stream) && - stream.writable !== false && - typeof stream._write === 'function' && - typeof stream._writableState === 'object'; - -isStream.readable = stream => - isStream(stream) && - stream.readable !== false && - typeof stream._read === 'function' && - typeof stream._readableState === 'object'; - -isStream.duplex = stream => - isStream.writable(stream) && - isStream.readable(stream); - -isStream.transform = stream => - isStream.duplex(stream) && - typeof stream._transform === 'function' && - typeof stream._transformState === 'object'; - -module.exports = isStream; - - -/***/ }), -/* 626 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Copyright 2021 The Oppia Authors. All Rights Reserved. -// -// 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. - -/** - * @fileoverview File to handle checks when a pull request is labeled. - */ - -const core = __webpack_require__(470); -const { context, GitHub } = __webpack_require__(469); -const DONT_MERGE_LABEL_PREFIX = "PR: don't merge"; - -const checkLabels = async () => { - core.info('Checking newly added label...'); - const token = core.getInput('repo-token'); - const label = context.payload.label; - const octokit = new GitHub(token); - - if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { - await handleDontMergeLabel(octokit, label.name); - } -}; - -/** - * Handles cases when a good first issue gets added by a non whitelisted user. - * - * @param {import('@actions/github').GitHub} octokit - */ -const handleDontMergeLabel = async (octokit, label) => { - core.setFailed( - 'This PR should not be merged because it has a ' + label + ' label.' - ); -}; - -/** - * Handles cases when a good first issue gets added by a non whitelisted user. - * - * @param {import('@actions/github').GitHub} octokit - */ -const handleDontMergeLabelRemoved = async(octokit) => { - const {data: pullRequest} = await octokit.pulls.get({ - pull_number: context.payload.pull_request.number, - owner: context.payload.repository.owner.login, - repo: context.payload.repository.name, - }); - - const labelNames = pullRequest.labels.map(label => label.name); - - const dontMergeLabel = labelNames.find( - label => label.startsWith(DONT_MERGE_LABEL_PREFIX) - ); - - if (dontMergeLabel) { - await handleDontMergeLabel(octokit, dontMergeLabel); - } else { - core.info("This PR does not contain a PR don't merge label"); - } -}; - -const checkUnLabeled = async () => { - core.info('Checking newly removed label...'); - const token = core.getInput('repo-token'); - const label = context.payload.label; - const octokit = new GitHub(token); - - if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { - await handleDontMergeLabelRemoved(octokit, label.name); - } -}; - -module.exports = { - checkLabels, - checkUnLabeled, -}; - - -/***/ }), -/* 627 */, -/* 628 */, -/* 629 */, -/* 630 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(915); - -var callBind = __webpack_require__(749); - -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); - -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 631 */ -/***/ (function(module) { -module.exports = require("net"); - -/***/ }), -/* 632 */ +/***/ 7578: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -203441,48 +460784,42 @@ module.exports = require("net"); // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.oslogin_v1alpha = void 0; +exports.pubsub_v1beta1a = 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 = __webpack_require__(927); -var oslogin_v1alpha; -(function (oslogin_v1alpha) { +var pubsub_v1beta1a; +(function (pubsub_v1beta1a) { /** - * Cloud OS Login API + * Cloud Pub/Sub API * - * You can use OS Login to manage access to your VM instances using IAM roles. + * Provides reliable, many-to-many, asynchronous messaging between applications. * * @example + * ```js * const {google} = require('googleapis'); - * const oslogin = google.oslogin('v1alpha'); - * - * @namespace oslogin - * @type {Function} - * @version v1alpha - * @variation v1alpha - * @param {object=} options Options for Oslogin + * const pubsub = google.pubsub('v1beta1a'); + * ``` */ - class Oslogin { + class Pubsub { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.users = new Resource$Users(this.context); + this.subscriptions = new Resource$Subscriptions(this.context); + this.topics = new Resource$Topics(this.context); } } - oslogin_v1alpha.Oslogin = Oslogin; - class Resource$Users { + pubsub_v1beta1a.Pubsub = Pubsub; + class Resource$Subscriptions { constructor(context) { this.context = context; - this.projects = new Resource$Users$Projects(this.context); - this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); } - getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203495,25 +460832,25 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1a/subscriptions/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203526,30 +460863,24 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oslogin_v1alpha.Resource$Users = Resource$Users; - class Resource$Users$Projects { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -203563,31 +460894,25 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oslogin_v1alpha.Resource$Users$Projects = Resource$Users$Projects; - class Resource$Users$Sshpublickeys { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203600,25 +460925,25 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203631,25 +460956,25 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203662,90 +460987,25 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1a/subscriptions/modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oslogin_v1alpha.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; -})(oslogin_v1alpha = exports.oslogin_v1alpha || (exports.oslogin_v1alpha = {})); -//# sourceMappingURL=v1alpha.js.map - -/***/ }), -/* 633 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.youtubeAnalytics_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 = __webpack_require__(927); -var youtubeAnalytics_v2; -(function (youtubeAnalytics_v2) { - /** - * YouTube Analytics API - * - * Retrieves your YouTube Analytics data. - * - * @example - * const {google} = require('googleapis'); - * const youtubeAnalytics = google.youtubeAnalytics('v2'); - * - * @namespace youtubeAnalytics - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Youtubeanalytics - */ - class Youtubeanalytics { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.groupItems = new Resource$Groupitems(this.context); - this.groups = new Resource$Groups(this.context); - this.reports = new Resource$Reports(this.context); - } - } - youtubeAnalytics_v2.Youtubeanalytics = Youtubeanalytics; - class Resource$Groupitems { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203758,11 +461018,11 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1a/subscriptions/modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -203770,13 +461030,13 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + pull(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203789,10 +461049,10 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions/pull').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -203801,14 +461061,15 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + pullBatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203819,11 +461080,11 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1a/subscriptions/pullBatch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -203831,19 +461092,19 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtubeAnalytics_v2.Resource$Groupitems = Resource$Groupitems; - class Resource$Groups { + pubsub_v1beta1a.Resource$Subscriptions = Resource$Subscriptions; + class Resource$Topics { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -203855,11 +461116,11 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -203867,13 +461128,13 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -203885,22 +461146,52 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -203915,10 +461206,10 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -203927,13 +461218,13 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -203945,11 +461236,11 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1a/topics/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -203957,20 +461248,15 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtubeAnalytics_v2.Resource$Groups = Resource$Groups; - class Resource$Reports { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + publishBatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203981,11 +461267,11 @@ var youtubeAnalytics_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1a/topics/publishBatch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -203993,20 +461279,20 @@ var youtubeAnalytics_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - youtubeAnalytics_v2.Resource$Reports = Resource$Reports; -})(youtubeAnalytics_v2 = exports.youtubeAnalytics_v2 || (exports.youtubeAnalytics_v2 = {})); -//# sourceMappingURL=v2.js.map + pubsub_v1beta1a.Resource$Topics = Resource$Topics; +})(pubsub_v1beta1a = exports.pubsub_v1beta1a || (exports.pubsub_v1beta1a = {})); + /***/ }), -/* 634 */, -/* 635 */ + +/***/ 7581: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -204024,144 +461310,82 @@ var youtubeAnalytics_v2; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.compute_v1 = void 0; +exports.tpu_v2alpha1 = 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 = __webpack_require__(927); -var compute_v1; -(function (compute_v1) { +var tpu_v2alpha1; +(function (tpu_v2alpha1) { /** - * Compute Engine API + * Cloud TPU API * - * Creates and runs virtual machines on Google Cloud Platform. + * TPU API provides customers with access to Google TPU technology. * * @example + * ```js * const {google} = require('googleapis'); - * const compute = google.compute('v1'); - * - * @namespace compute - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Compute + * const tpu = google.tpu('v2alpha1'); + * ``` */ - class Compute { + class Tpu { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.acceleratorTypes = new Resource$Acceleratortypes(this.context); - this.addresses = new Resource$Addresses(this.context); - this.autoscalers = new Resource$Autoscalers(this.context); - this.backendBuckets = new Resource$Backendbuckets(this.context); - this.backendServices = new Resource$Backendservices(this.context); - this.disks = new Resource$Disks(this.context); - this.diskTypes = new Resource$Disktypes(this.context); - this.externalVpnGateways = new Resource$Externalvpngateways(this.context); - this.firewalls = new Resource$Firewalls(this.context); - this.forwardingRules = new Resource$Forwardingrules(this.context); - this.globalAddresses = new Resource$Globaladdresses(this.context); - this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); - this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); - this.globalOperations = new Resource$Globaloperations(this.context); - this.healthChecks = new Resource$Healthchecks(this.context); - this.httpHealthChecks = new Resource$Httphealthchecks(this.context); - this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); - this.images = new Resource$Images(this.context); - this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); - this.instanceGroups = new Resource$Instancegroups(this.context); - this.instances = new Resource$Instances(this.context); - this.instanceTemplates = new Resource$Instancetemplates(this.context); - this.interconnectAttachments = new Resource$Interconnectattachments(this.context); - this.interconnectLocations = new Resource$Interconnectlocations(this.context); - this.interconnects = new Resource$Interconnects(this.context); - this.licenseCodes = new Resource$Licensecodes(this.context); - this.licenses = new Resource$Licenses(this.context); - this.machineTypes = new Resource$Machinetypes(this.context); - this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); - this.networks = new Resource$Networks(this.context); - this.nodeGroups = new Resource$Nodegroups(this.context); - this.nodeTemplates = new Resource$Nodetemplates(this.context); - this.nodeTypes = new Resource$Nodetypes(this.context); - this.packetMirrorings = new Resource$Packetmirrorings(this.context); this.projects = new Resource$Projects(this.context); - this.regionAutoscalers = new Resource$Regionautoscalers(this.context); - this.regionBackendServices = new Resource$Regionbackendservices(this.context); - this.regionCommitments = new Resource$Regioncommitments(this.context); - this.regionDisks = new Resource$Regiondisks(this.context); - this.regionDiskTypes = new Resource$Regiondisktypes(this.context); - this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); - this.regionInstanceGroupManagers = new Resource$Regioninstancegroupmanagers(this.context); - this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); - this.regionOperations = new Resource$Regionoperations(this.context); - this.regions = new Resource$Regions(this.context); - this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); - this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); - this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); - this.regionUrlMaps = new Resource$Regionurlmaps(this.context); - this.reservations = new Resource$Reservations(this.context); - this.resourcePolicies = new Resource$Resourcepolicies(this.context); - this.routers = new Resource$Routers(this.context); - this.routes = new Resource$Routes(this.context); - this.securityPolicies = new Resource$Securitypolicies(this.context); - this.snapshots = new Resource$Snapshots(this.context); - this.sslCertificates = new Resource$Sslcertificates(this.context); - this.sslPolicies = new Resource$Sslpolicies(this.context); - this.subnetworks = new Resource$Subnetworks(this.context); - this.targetHttpProxies = new Resource$Targethttpproxies(this.context); - this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); - this.targetInstances = new Resource$Targetinstances(this.context); - this.targetPools = new Resource$Targetpools(this.context); - this.targetSslProxies = new Resource$Targetsslproxies(this.context); - this.targetTcpProxies = new Resource$Targettcpproxies(this.context); - this.targetVpnGateways = new Resource$Targetvpngateways(this.context); - this.urlMaps = new Resource$Urlmaps(this.context); - this.vpnGateways = new Resource$Vpngateways(this.context); - this.vpnTunnels = new Resource$Vpntunnels(this.context); - this.zoneOperations = new Resource$Zoneoperations(this.context); - this.zones = new Resource$Zones(this.context); } } - compute_v1.Compute = Compute; - class Resource$Acceleratortypes { + tpu_v2alpha1.Tpu = Tpu; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); + this.nodes = new Resource$Projects$Locations$Nodes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.queuedResources = new Resource$Projects$Locations$Queuedresources(this.context); + this.runtimeVersions = new Resource$Projects$Locations$Runtimeversions(this.context); + } + generateServiceIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -204177,23 +461401,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'acceleratorType'], - pathParams: ['acceleratorType', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -204209,32 +461432,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Acceleratortypes = Resource$Acceleratortypes; - class Resource$Addresses { + tpu_v2alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Acceleratortypes { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204247,119 +461469,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204370,32 +461500,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Addresses = Resource$Addresses; - class Resource$Autoscalers { + tpu_v2alpha1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; + class Resource$Projects$Locations$Nodes { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204408,22 +461537,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -204439,27 +461568,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204470,59 +461599,59 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}:getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204533,23 +461662,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -204565,64 +461693,57 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha1/{+name}:simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Autoscalers = Resource$Autoscalers; - class Resource$Backendbuckets { - constructor(context) { - this.context = context; - } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204635,26 +461756,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204667,26 +461787,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204699,26 +461824,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket', 'keyName'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204731,26 +461855,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204763,22 +461886,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -204794,95 +461917,95 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Queuedresources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha1/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Backendbuckets = Resource$Backendbuckets; - class Resource$Backendservices { - constructor(context) { - this.context = context; - } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204895,26 +462018,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204927,26 +462049,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204959,26 +462080,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.Resource$Projects$Locations$Queuedresources = Resource$Projects$Locations$Queuedresources; + class Resource$Projects$Locations$Runtimeversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204991,26 +462117,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService', 'keyName'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205023,26 +462148,164 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+parent}/runtimeVersions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.Resource$Projects$Locations$Runtimeversions = Resource$Projects$Locations$Runtimeversions; +})(tpu_v2alpha1 = exports.tpu_v2alpha1 || (exports.tpu_v2alpha1 = {})); + + +/***/ }), + +/***/ 7594: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudiot_v1 = exports.auth = exports.cloudiot = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2206); +Object.defineProperty(exports, "cloudiot_v1", { enumerable: true, get: function () { return v1_1.cloudiot_v1; } }); +exports.VERSIONS = { + v1: v1_1.cloudiot_v1.Cloudiot, +}; +function cloudiot(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudiot', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudiot = cloudiot; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7604: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.playdeveloperreporting_v1beta1 = exports.playdeveloperreporting_v1alpha1 = exports.auth = exports.playdeveloperreporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(5099); +Object.defineProperty(exports, "playdeveloperreporting_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.playdeveloperreporting_v1alpha1; } }); +const v1beta1_1 = __webpack_require__(3937); +Object.defineProperty(exports, "playdeveloperreporting_v1beta1", { enumerable: true, get: function () { return v1beta1_1.playdeveloperreporting_v1beta1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.playdeveloperreporting_v1alpha1.Playdeveloperreporting, + v1beta1: v1beta1_1.playdeveloperreporting_v1beta1.Playdeveloperreporting, +}; +function playdeveloperreporting(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('playdeveloperreporting', versionOrOptions, exports.VERSIONS, this); +} +exports.playdeveloperreporting = playdeveloperreporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7641: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.slides_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var slides_v1; +(function (slides_v1) { + /** + * Google Slides API + * + * Reads and writes Google Slides presentations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const slides = google.slides('v1'); + * ``` + */ + class Slides { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.presentations = new Resource$Presentations(this.context); + } + } + slides_v1.Slides = Slides; + class Resource$Presentations { + constructor(context) { + this.context = context; + this.pages = new Resource$Presentations$Pages(this.context); + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205055,26 +462318,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/presentations/{presentationId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['presentationId'], + pathParams: ['presentationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205087,25 +462349,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/presentations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205118,25 +462380,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/presentations/{+presentationId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['presentationId'], + pathParams: ['presentationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + slides_v1.Resource$Presentations = Resource$Presentations; + class Resource$Presentations$Pages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205149,26 +462417,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/presentations/{presentationId}/pages/{pageObjectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['presentationId', 'pageObjectId'], + pathParams: ['pageObjectId', 'presentationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + getThumbnail(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205181,64 +462449,506 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['presentationId', 'pageObjectId'], + pathParams: ['pageObjectId', 'presentationId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + } + slides_v1.Resource$Presentations$Pages = Resource$Presentations$Pages; +})(slides_v1 = exports.slides_v1 || (exports.slides_v1 = {})); + + +/***/ }), + +/***/ 7665: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; +const os_1 = __webpack_require__(2087); +const fs_1 = __webpack_require__(5747); +const { access, appendFile, writeFile } = fs_1.promises; +exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; +exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; +class Summary { + constructor() { + this._buffer = ''; + } + /** + * Finds the summary file path from the environment, rejects if env var is not found or file does not exist + * Also checks r/w permissions. + * + * @returns step summary file path + */ + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); } - else { - return googleapis_common_1.createAPIRequest(parameters); + catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + /** + * Wraps content in an HTML tag, adding any HTML attributes + * + * @param {string} tag HTML tag to wrap + * @param {string | null} content content within the tag + * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add + * + * @returns {string} content wrapped in HTML element + */ + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs) + .map(([key, value]) => ` ${key}="${value}"`) + .join(''); + if (!content) { + return `<${tag}${htmlAttrs}>`; } + return `<${tag}${htmlAttrs}>${content}`; } - compute_v1.Resource$Backendservices = Resource$Backendservices; - class Resource$Disks { + /** + * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. + * + * @param {SummaryWriteOptions} [options] (optional) options for write operation + * + * @returns {Promise

} summary instance + */ + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); + return this.emptyBuffer(); + }); + } + /** + * Clears the summary buffer and wipes the summary file + * + * @returns {Summary} summary instance + */ + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + /** + * Returns the current summary buffer as a string + * + * @returns {string} string of summary buffer + */ + stringify() { + return this._buffer; + } + /** + * If the summary buffer is empty + * + * @returns {boolen} true if the buffer is empty + */ + isEmptyBuffer() { + return this._buffer.length === 0; + } + /** + * Resets the summary buffer without writing to summary file + * + * @returns {Summary} summary instance + */ + emptyBuffer() { + this._buffer = ''; + return this; + } + /** + * Adds raw text to the summary buffer + * + * @param {string} text content to add + * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) + * + * @returns {Summary} summary instance + */ + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + /** + * Adds the operating system-specific end-of-line marker to the buffer + * + * @returns {Summary} summary instance + */ + addEOL() { + return this.addRaw(os_1.EOL); + } + /** + * Adds an HTML codeblock to the summary buffer + * + * @param {string} code content to render within fenced code block + * @param {string} lang (optional) language to syntax highlight code + * + * @returns {Summary} summary instance + */ + addCodeBlock(code, lang) { + const attrs = Object.assign({}, (lang && { lang })); + const element = this.wrap('pre', this.wrap('code', code), attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML list to the summary buffer + * + * @param {string[]} items list of items to render + * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) + * + * @returns {Summary} summary instance + */ + addList(items, ordered = false) { + const tag = ordered ? 'ol' : 'ul'; + const listItems = items.map(item => this.wrap('li', item)).join(''); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML table to the summary buffer + * + * @param {SummaryTableCell[]} rows table rows + * + * @returns {Summary} summary instance + */ + addTable(rows) { + const tableBody = rows + .map(row => { + const cells = row + .map(cell => { + if (typeof cell === 'string') { + return this.wrap('td', cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? 'th' : 'td'; + const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })); + return this.wrap(tag, data, attrs); + }) + .join(''); + return this.wrap('tr', cells); + }) + .join(''); + const element = this.wrap('table', tableBody); + return this.addRaw(element).addEOL(); + } + /** + * Adds a collapsable HTML details element to the summary buffer + * + * @param {string} label text for the closed state + * @param {string} content collapsable content + * + * @returns {Summary} summary instance + */ + addDetails(label, content) { + const element = this.wrap('details', this.wrap('summary', label) + content); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML image tag to the summary buffer + * + * @param {string} src path to the image you to embed + * @param {string} alt text description of the image + * @param {SummaryImageOptions} options (optional) addition image attributes + * + * @returns {Summary} summary instance + */ + addImage(src, alt, options) { + const { width, height } = options || {}; + const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height })); + const element = this.wrap('img', null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML section heading element + * + * @param {string} text heading text + * @param {number | string} [level=1] (optional) the heading level, default: 1 + * + * @returns {Summary} summary instance + */ + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag) + ? tag + : 'h1'; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML thematic break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addSeparator() { + const element = this.wrap('hr', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML line break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addBreak() { + const element = this.wrap('br', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML blockquote to the summary buffer + * + * @param {string} text quote text + * @param {string} cite (optional) citation url + * + * @returns {Summary} summary instance + */ + addQuote(text, cite) { + const attrs = Object.assign({}, (cite && { cite })); + const element = this.wrap('blockquote', text, attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML anchor tag to the summary buffer + * + * @param {string} text link text/content + * @param {string} href hyperlink + * + * @returns {Summary} summary instance + */ + addLink(text, href) { + const element = this.wrap('a', text, { href }); + return this.addRaw(element).addEOL(); + } +} +const _summary = new Summary(); +/** + * @deprecated use `core.summary` + */ +exports.markdownSummary = _summary; +exports.summary = _summary; +//# sourceMappingURL=summary.js.map + +/***/ }), + +/***/ 7674: +/***/ (function(module) { + +"use strict"; + + +var test = { + foo: {} +}; + +var $Object = Object; + +module.exports = function hasProto() { + return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); +}; + + +/***/ }), + +/***/ 7692: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +class Deprecation extends Error { + constructor(message) { + super(message); // Maintains proper stack trace (only available on V8) + + /* istanbul ignore next */ + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + + this.name = 'Deprecation'; + } + +} + +exports.Deprecation = Deprecation; + + +/***/ }), + +/***/ 7721: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.contactcenteraiplatform_v1alpha1 = exports.auth = exports.contactcenteraiplatform = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha1_1 = __webpack_require__(8744); +Object.defineProperty(exports, "contactcenteraiplatform_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.contactcenteraiplatform_v1alpha1; } }); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.contactcenteraiplatform_v1alpha1.Contactcenteraiplatform, +}; +function contactcenteraiplatform(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('contactcenteraiplatform', versionOrOptions, exports.VERSIONS, this); +} +exports.contactcenteraiplatform = contactcenteraiplatform; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7728: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.chromepolicy_v1 = exports.auth = exports.chromepolicy = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8486); +Object.defineProperty(exports, "chromepolicy_v1", { enumerable: true, get: function () { return v1_1.chromepolicy_v1; } }); +exports.VERSIONS = { + v1: v1_1.chromepolicy_v1.Chromepolicy, +}; +function chromepolicy(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('chromepolicy', versionOrOptions, exports.VERSIONS, this); +} +exports.chromepolicy = chromepolicy; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7732: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinessqanda_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinessqanda_v1; +(function (mybusinessqanda_v1) { + /** + * My Business Q&A API + * + * The My Business Q&A API allows questions and answers to be posted for specific listings. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessqanda = google.mybusinessqanda('v1'); + * ``` + */ + class Mybusinessqanda { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + } + } + mybusinessqanda_v1.Mybusinessqanda = Mybusinessqanda; + class Resource$Locations { constructor(context) { this.context = context; + this.questions = new Resource$Locations$Questions(this.context); } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinessqanda_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Questions { + constructor(context) { + this.context = context; + this.answers = new Resource$Locations$Questions$Answers(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205251,26 +462961,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205283,25 +462992,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205314,27 +463023,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205345,27 +463054,33 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + mybusinessqanda_v1.Resource$Locations$Questions = Resource$Locations$Questions; + class Resource$Locations$Questions$Answers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205376,26 +463091,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/answers:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205408,27 +463122,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/answers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + upsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205439,55 +463153,195 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/answers:upsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], - context: this.context, + } + mybusinessqanda_v1.Resource$Locations$Questions$Answers = Resource$Locations$Questions$Answers; +})(mybusinessqanda_v1 = exports.mybusinessqanda_v1 || (exports.mybusinessqanda_v1 = {})); + + +/***/ }), + +/***/ 7760: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Copyright 2020 The Oppia Authors. All Rights Reserved. +// +// 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. + +/** + * @fileoverview Handles dispatching events and actions to different handlers. + */ + +const core = __webpack_require__(6470); +const { context } = __webpack_require__(1469); +const issueLabelsModule = __webpack_require__(8293); +const claCheckGithubActionModule = __webpack_require__(373); +const constants = __webpack_require__(3208); +const PRLabelsModule = __webpack_require__(4837); +const wipDraftModule = __webpack_require__(7911); + +module.exports = { + async dispatch(event, action) { + core.info(`Received Event:${event} Action:${action}.`); + const checkEvent = `${event}_${action}`; + const repoName = context.payload.repository.name.toLowerCase(); + const checksWhitelist = constants.getChecksWhitelist(); + if (Object.prototype.hasOwnProperty.call(checksWhitelist, repoName)) { + core.info('Repo is whitelisted'); + const checks = checksWhitelist[repoName]; + if ((Object.prototype.hasOwnProperty.call(checks, checkEvent))) { + core.info('Valid checkevent'); + const checkList = checks[checkEvent]; + for (var i = 0; i < checkList.length; i++) { + switch (checkList[i]) { + case constants.issuesLabelCheck: + core.info('issue label check triggered'); + await issueLabelsModule.checkLabels(); + break; + case constants.claCheckGithubAction: + core.info('cla check triggered'); + await claCheckGithubActionModule.claCheckGithubAction(); + break; + case constants.prLabelCheck: + core.info('PR label check triggered'); + await PRLabelsModule.checkLabels(); + break; + case constants.dontMergeLabelCheck: + core.info('Don\'t label check triggered'); + await PRLabelsModule.checkUnLabeled(); + break; + case constants.wipCheck: + core.info('WIP check triggered'); + await wipDraftModule.checkWIP(); + break; + } + } + } + } + } +}; + + +/***/ }), + +/***/ 7768: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var osName = _interopDefault(__webpack_require__(8002)); + +function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + + throw error; + } +} + +exports.getUserAgent = getUserAgent; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 7780: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.accessapproval_v1beta1 = 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 = __webpack_require__(927); +var accessapproval_v1beta1; +(function (accessapproval_v1beta1) { + /** + * Access Approval API + * + * An API for controlling access to data by Google personnel. + * + * @example + * const {google} = require('googleapis'); + * const accessapproval = google.accessapproval('v1beta1'); + * + * @namespace accessapproval + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Accessapproval + */ + class Accessapproval { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + } + accessapproval_v1beta1.Accessapproval = Accessapproval; + class Resource$Folders { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205500,27 +463354,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205531,26 +463385,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205563,27 +463416,33 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + accessapproval_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205594,26 +463453,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + dismiss(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205626,32 +463484,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Disks = Resource$Disks; - class Resource$Disktypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205664,26 +463515,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205694,27 +463546,34 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'diskType'], - pathParams: ['diskType', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + accessapproval_v1beta1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205725,31 +463584,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Disktypes = Resource$Disktypes; - class Resource$Externalvpngateways { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205762,26 +463615,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205794,26 +463646,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + accessapproval_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205826,26 +463683,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + dismiss(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205858,26 +463714,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205890,26 +463745,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205922,33 +463776,34 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Externalvpngateways = Resource$Externalvpngateways; - class Resource$Firewalls { + accessapproval_v1beta1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; + class Resource$Projects { constructor(context) { this.context = context; + this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205959,27 +463814,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205990,27 +463845,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206021,26 +463876,33 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + accessapproval_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206051,26 +463913,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206081,27 +463944,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206112,32 +463975,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Firewalls = Resource$Firewalls; - class Resource$Forwardingrules { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206150,26 +464006,100 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + accessapproval_v1beta1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; +})(accessapproval_v1beta1 = exports.accessapproval_v1beta1 || (exports.accessapproval_v1beta1 = {})); + + +/***/ }), + +/***/ 7814: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networkconnectivity_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networkconnectivity_v1; +(function (networkconnectivity_v1) { + /** + * Network Connectivity API + * + * This API enables connectivity with and between Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networkconnectivity = google.networkconnectivity('v1'); + * ``` + */ + class Networkconnectivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networkconnectivity_v1.Networkconnectivity = Networkconnectivity; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networkconnectivity_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + this.internalRanges = new Resource$Projects$Locations$Internalranges(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serviceClasses = new Resource$Projects$Locations$Serviceclasses(this.context); + this.serviceConnectionMaps = + new Resource$Projects$Locations$Serviceconnectionmaps(this.context); + this.serviceConnectionPolicies = + new Resource$Projects$Locations$Serviceconnectionpolicies(this.context); + this.spokes = new Resource$Projects$Locations$Spokes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206182,26 +464112,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206214,26 +464143,40 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.hubs = new Resource$Projects$Locations$Global$Hubs(this.context); + this.policyBasedRoutes = + new Resource$Projects$Locations$Global$Policybasedroutes(this.context); + } + } + networkconnectivity_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Hubs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206246,26 +464189,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206278,26 +464220,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206310,64 +464251,57 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Forwardingrules = Resource$Forwardingrules; - class Resource$Globaladdresses { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206380,26 +464314,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206412,189 +464345,197 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Globaladdresses = Resource$Globaladdresses; - class Resource$Globalforwardingrules { + networkconnectivity_v1.Resource$Projects$Locations$Global$Hubs = Resource$Projects$Locations$Global$Hubs; + class Resource$Projects$Locations$Global$Policybasedroutes { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Global$Policybasedroutes = Resource$Projects$Locations$Global$Policybasedroutes; + class Resource$Projects$Locations$Internalranges { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206607,25 +464548,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206638,26 +464579,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206670,32 +464610,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Globalforwardingrules = Resource$Globalforwardingrules; - class Resource$Globalnetworkendpointgroups { - constructor(context) { - this.context = context; - } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206708,26 +464641,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206740,26 +464672,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Internalranges = Resource$Projects$Locations$Internalranges; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206772,26 +464709,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206804,26 +464740,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206836,23 +464771,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -206868,322 +464802,337 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Serviceclasses { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; - class Resource$Globaloperations { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Serviceclasses = Resource$Projects$Locations$Serviceclasses; + class Resource$Projects$Locations$Serviceconnectionmaps { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Globaloperations = Resource$Globaloperations; - class Resource$Healthchecks { + networkconnectivity_v1.Resource$Projects$Locations$Serviceconnectionmaps = Resource$Projects$Locations$Serviceconnectionmaps; + class Resource$Projects$Locations$Serviceconnectionpolicies { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Serviceconnectionpolicies = Resource$Projects$Locations$Serviceconnectionpolicies; + class Resource$Projects$Locations$Spokes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207196,25 +465145,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207227,25 +465176,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207258,26 +465207,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207290,32 +465238,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Healthchecks = Resource$Healthchecks; - class Resource$Httphealthchecks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207328,26 +465269,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207360,26 +465300,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207392,56 +465331,168 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Spokes = Resource$Projects$Locations$Spokes; +})(networkconnectivity_v1 = exports.networkconnectivity_v1 || (exports.networkconnectivity_v1 = {})); + + +/***/ }), + +/***/ 7826: +/***/ (function(module) { + +"use strict"; + + +/* eslint complexity: [2, 18], max-statements: [2, 33] */ +module.exports = function hasSymbols() { + if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } + if (typeof Symbol.iterator === 'symbol') { return true; } + + var obj = {}; + var sym = Symbol('test'); + var symObj = Object(sym); + if (typeof sym === 'string') { return false; } + + if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } + if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } + + // temp disabled per https://github.com/ljharb/object.assign/issues/17 + // if (sym instanceof Symbol) { return false; } + // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 + // if (!(symObj instanceof Symbol)) { return false; } + + // if (typeof Symbol.prototype.toString !== 'function') { return false; } + // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } + + var symVal = 42; + obj[sym] = symVal; + for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop + if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } + + if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } + + var syms = Object.getOwnPropertySymbols(obj); + if (syms.length !== 1 || syms[0] !== sym) { return false; } + + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } + + if (typeof Object.getOwnPropertyDescriptor === 'function') { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } + } + + return true; +}; + + +/***/ }), + +/***/ 7827: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigtableadmin_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var bigtableadmin_v2; +(function (bigtableadmin_v2) { + /** + * Cloud Bigtable Admin API + * + * Administer your Cloud Bigtable tables and instances. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigtableadmin = google.bigtableadmin('v2'); + * ``` + */ + class Bigtableadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + bigtableadmin_v2.Bigtableadmin = Bigtableadmin; + class Resource$Operations { + constructor(context) { + this.context = context; + this.projects = new Resource$Operations$Projects(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207454,26 +465505,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207486,34 +465536,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Httphealthchecks = Resource$Httphealthchecks; - class Resource$Httpshealthchecks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207524,26 +465566,38 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + bigtableadmin_v2.Resource$Operations = Resource$Operations; + class Resource$Operations$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Operations$Projects$Operations(this.context); + } + } + bigtableadmin_v2.Resource$Operations$Projects = Resource$Operations$Projects; + class Resource$Operations$Projects$Operations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207556,26 +465610,42 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + bigtableadmin_v2.Resource$Operations$Projects$Operations = Resource$Operations$Projects$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigtableadmin_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + this.appProfiles = new Resource$Projects$Instances$Appprofiles(this.context); + this.clusters = new Resource$Projects$Instances$Clusters(this.context); + this.tables = new Resource$Projects$Instances$Tables(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207588,26 +465658,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207620,26 +465689,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207652,26 +465720,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207684,33 +465751,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Httpshealthchecks = Resource$Httpshealthchecks; - class Resource$Images { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207721,26 +465782,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deprecate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + partialUpdateInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207751,27 +465813,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207782,25 +465844,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207813,26 +465875,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'family'], - pathParams: ['family', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207845,27 +465906,33 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + bigtableadmin_v2.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Appprofiles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207876,26 +465943,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207906,25 +465974,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207937,27 +466005,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207968,26 +466036,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208000,32 +466067,33 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Images = Resource$Images; - class Resource$Instancegroupmanagers { + bigtableadmin_v2.Resource$Projects$Instances$Appprofiles = Resource$Projects$Instances$Appprofiles; + class Resource$Projects$Instances$Clusters { constructor(context) { this.context = context; + this.backups = new Resource$Projects$Instances$Clusters$Backups(this.context); + this.hotTablets = new Resource$Projects$Instances$Clusters$Hottablets(this.context); } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208038,26 +466106,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208070,26 +466137,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208102,26 +466168,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208134,58 +466199,57 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + partialUpdateCluster(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208198,26 +466262,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters = Resource$Projects$Instances$Clusters; + class Resource$Projects$Instances$Clusters$Backups { + constructor(context) { + this.context = context; + } + copy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208230,90 +466299,89 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/backups:copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208326,58 +466394,57 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208390,192 +466457,197 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters$Backups = Resource$Projects$Instances$Clusters$Backups; + class Resource$Projects$Instances$Clusters$Hottablets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/hotTablets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; - class Resource$Instancegroups { + bigtableadmin_v2.Resource$Projects$Instances$Clusters$Hottablets = Resource$Projects$Instances$Clusters$Hottablets; + class Resource$Projects$Instances$Tables { constructor(context) { this.context = context; } - addInstances(paramsOrCallback, optionsOrCallback, callback) { + checkConsistency(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:checkConsistency').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208588,23 +466660,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -208620,26 +466691,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + dropRowRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208652,58 +466722,57 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:dropRowRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + generateConsistencyToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:generateConsistencyToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208716,26 +466785,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208748,26 +466816,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208780,64 +466847,57 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + modifyColumnFamilies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:modifyColumnFamilies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Instancegroups = Resource$Instancegroups; - class Resource$Instances { - constructor(context) { - this.context = context; - } - addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208850,26 +466910,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208882,26 +466941,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tables:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208914,58 +466972,59 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachDisk(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208976,26 +467035,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + } + bigtableadmin_v2.Resource$Projects$Instances$Tables = Resource$Projects$Instances$Tables; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209008,32 +467072,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'accessConfig', - 'networkInterface', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachDisk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209046,27 +467103,87 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'deviceName'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + bigtableadmin_v2.Resource$Projects$Locations = Resource$Projects$Locations; +})(bigtableadmin_v2 = exports.bigtableadmin_v2 || (exports.bigtableadmin_v2 = {})); + + +/***/ }), + +/***/ 7834: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.mybusinesslodging_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var mybusinesslodging_v1; +(function (mybusinesslodging_v1) { + /** + * My Business Lodging API + * + * The My Business Lodging API enables managing lodging business information on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinesslodging = google.mybusinesslodging('v1'); + * ``` + */ + class Mybusinesslodging { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + } + } + mybusinesslodging_v1.Mybusinesslodging = Mybusinesslodging; + class Resource$Locations { + constructor(context) { + this.context = context; + this.lodging = new Resource$Locations$Lodging(this.context); + } + getLodging(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209077,26 +467194,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + updateLodging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209109,26 +467225,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinesslodging_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Lodging { + constructor(context) { + this.context = context; + } + getGoogleUpdated(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209141,26 +467262,129 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinesslodging_v1.Resource$Locations$Lodging = Resource$Locations$Lodging; +})(mybusinesslodging_v1 = exports.mybusinesslodging_v1 || (exports.mybusinesslodging_v1 = {})); + + +/***/ }), + +/***/ 7850: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.language_v1beta2 = exports.language_v1beta1 = exports.language_v1 = exports.auth = exports.language = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4974); +Object.defineProperty(exports, "language_v1", { enumerable: true, get: function () { return v1_1.language_v1; } }); +const v1beta1_1 = __webpack_require__(2763); +Object.defineProperty(exports, "language_v1beta1", { enumerable: true, get: function () { return v1beta1_1.language_v1beta1; } }); +const v1beta2_1 = __webpack_require__(1142); +Object.defineProperty(exports, "language_v1beta2", { enumerable: true, get: function () { return v1beta2_1.language_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.language_v1.Language, + v1beta1: v1beta1_1.language_v1beta1.Language, + v1beta2: v1beta2_1.language_v1beta2.Language, +}; +function language(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('language', versionOrOptions, exports.VERSIONS, this); +} +exports.language = language; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7861: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.digitalassetlinks_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var digitalassetlinks_v1; +(function (digitalassetlinks_v1) { + /** + * Digital Asset Links API + * + * Discovers relationships between online assets such as websites or mobile apps. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const digitalassetlinks = google.digitalassetlinks('v1'); + * ``` + */ + class Digitalassetlinks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assetlinks = new Resource$Assetlinks(this.context); + this.statements = new Resource$Statements(this.context); + } + } + digitalassetlinks_v1.Digitalassetlinks = Digitalassetlinks; + class Resource$Assetlinks { + constructor(context) { + this.context = context; + } + bulkCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209173,28 +467397,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/assetlinks:bulkCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209205,26 +467427,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/assetlinks:check').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + digitalassetlinks_v1.Resource$Assetlinks = Resource$Assetlinks; + class Resource$Statements { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -209236,25 +467463,85 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/statements:list').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + digitalassetlinks_v1.Resource$Statements = Resource$Statements; +})(digitalassetlinks_v1 = exports.digitalassetlinks_v1 || (exports.digitalassetlinks_v1 = {})); + + +/***/ }), + +/***/ 7865: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebaseappdistribution_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebaseappdistribution_v1; +(function (firebaseappdistribution_v1) { + /** + * Firebase App Distribution API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebaseappdistribution = google.firebaseappdistribution('v1'); + * ``` + */ + class Firebaseappdistribution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.projects = new Resource$Projects(this.context); + } + } + firebaseappdistribution_v1.Firebaseappdistribution = Firebaseappdistribution; + class Resource$Media { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -209266,25 +467553,42 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+app}/releases:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + mediaUrl: (rootUrl + '/upload/v1/{+app}/releases:upload').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listReferrers(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappdistribution_v1.Resource$Media = Resource$Media; + class Resource$Projects { + constructor(context) { + this.context = context; + this.apps = new Resource$Projects$Apps(this.context); + this.groups = new Resource$Projects$Groups(this.context); + this.testers = new Resource$Projects$Testers(this.context); + } + } + firebaseappdistribution_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Apps { + constructor(context) { + this.context = context; + this.releases = new Resource$Projects$Apps$Releases(this.context); + } + getAabInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209297,26 +467601,34 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappdistribution_v1.Resource$Projects$Apps = Resource$Projects$Apps; + class Resource$Projects$Apps$Releases { + constructor(context) { + this.context = context; + this.feedbackReports = + new Resource$Projects$Apps$Releases$Feedbackreports(this.context); + this.operations = new Resource$Projects$Apps$Releases$Operations(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209329,27 +467641,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/releases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + distribute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209360,26 +467672,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:distribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209392,26 +467703,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209424,32 +467734,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'autoDelete', - 'deviceName', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209462,122 +467765,133 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappdistribution_v1.Resource$Projects$Apps$Releases = Resource$Projects$Apps$Releases; + class Resource$Projects$Apps$Releases$Feedbackreports { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/feedbackReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMetadata(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappdistribution_v1.Resource$Projects$Apps$Releases$Feedbackreports = Resource$Projects$Apps$Releases$Feedbackreports; + class Resource$Projects$Apps$Releases$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209590,26 +467904,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209622,26 +467935,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setScheduling(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209654,26 +467966,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209686,26 +467997,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209718,26 +468028,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTags(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappdistribution_v1.Resource$Projects$Apps$Releases$Operations = Resource$Projects$Apps$Releases$Operations; + class Resource$Projects$Groups { + constructor(context) { + this.context = context; + } + batchJoin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209750,26 +468065,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+group}:batchJoin').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + batchLeave(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209782,27 +468096,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+group}:batchLeave').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209813,26 +468127,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209845,27 +468158,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209876,26 +468189,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209908,27 +468220,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209939,26 +468251,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappdistribution_v1.Resource$Projects$Groups = Resource$Projects$Groups; + class Resource$Projects$Testers { + constructor(context) { + this.context = context; + } + batchAdd(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209971,26 +468288,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+project}/testers:batchAdd').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + batchRemove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210003,26 +468319,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+project}/testers:batchRemove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210035,26 +468350,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/testers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210067,34 +468381,1133 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + firebaseappdistribution_v1.Resource$Projects$Testers = Resource$Projects$Testers; +})(firebaseappdistribution_v1 = exports.firebaseappdistribution_v1 || (exports.firebaseappdistribution_v1 = {})); + + +/***/ }), + +/***/ 7883: +/***/ (function(module) { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as the `TypeError` message for "Functions" methods. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_SAFE_INTEGER = 9007199254740991; + +/** `Object#toString` result references. */ +var funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + symbolTag = '[object Symbol]'; + +/** Used to match property names within property paths. */ +var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/, + reLeadingDot = /^\./, + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to match backslashes in property paths. */ +var reEscapeChar = /\\(\\)?/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} + +/** Used for built-in method references. */ +var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** Built-in value references. */ +var Symbol = root.Symbol, + splice = arrayProto.splice; + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'), + nativeCreate = getNative(Object, 'create'); + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; +} + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; +} + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; +} + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); +} + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; +} + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; +} + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + return getMapData(this, key)['delete'](key); +} + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; +} + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || + (value === undefined && !(key in object))) { + object[key] = value; + } +} + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +/** + * The base implementation of `_.set`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ +function baseSet(object, path, value, customizer) { + if (!isObject(object)) { + return object; + } + path = isKey(path, object) ? [path] : castPath(path); + + var index = -1, + length = path.length, + lastIndex = length - 1, + nested = object; + + while (nested != null && ++index < length) { + var key = toKey(path[index]), + newValue = value; + + if (index != lastIndex) { + var objValue = nested[key]; + newValue = customizer ? customizer(objValue, key, nested) : undefined; + if (newValue === undefined) { + newValue = isObject(objValue) + ? objValue + : (isIndex(path[index + 1]) ? [] : {}); + } + } + assignValue(nested, key, newValue); + nested = nested[key]; + } + return object; +} + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +/** + * Casts `value` to a path array if it's not one. + * + * @private + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast property path array. + */ +function castPath(value) { + return isArray(value) ? value : stringToPath(value); +} + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && + (typeof value == 'number' || reIsUint.test(value)) && + (value > -1 && value % 1 == 0 && value < length); +} + +/** + * Checks if `value` is a property name and not a property path. + * + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + */ +function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == 'number' || type == 'symbol' || type == 'boolean' || + value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || + (object != null && value in Object(object)); +} + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +/** + * Converts `string` to a property path array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the property path array. + */ +var stringToPath = memoize(function(string) { + string = toString(string); + + var result = []; + if (reLeadingDot.test(string)) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, string) { + result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; +}); + +/** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ +function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to process. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +/** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */ +function memoize(func, resolver) { + if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache); + return memoized; +} + +// Assign cache to `_.memoize`. +memoize.Cache = MapCache; + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString.call(value) == symbolTag); +} + +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {string} Returns the string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} + +/** + * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, + * it's created. Arrays are created for missing index properties while objects + * are created for all other missing properties. Use `_.setWith` to customize + * `path` creation. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @returns {Object} Returns `object`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.set(object, 'a[0].b.c', 4); + * console.log(object.a[0].b.c); + * // => 4 + * + * _.set(object, ['x', '0', 'y', 'z'], 5); + * console.log(object.x[0].y.z); + * // => 5 + */ +function set(object, path, value) { + return object == null ? object : baseSet(object, path, value); +} + +module.exports = set; + + +/***/ }), + +/***/ 7888: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.managedidentities_v1beta1 = exports.managedidentities_v1alpha1 = exports.managedidentities_v1 = exports.auth = exports.managedidentities = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(813); +Object.defineProperty(exports, "managedidentities_v1", { enumerable: true, get: function () { return v1_1.managedidentities_v1; } }); +const v1alpha1_1 = __webpack_require__(9531); +Object.defineProperty(exports, "managedidentities_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.managedidentities_v1alpha1; } }); +const v1beta1_1 = __webpack_require__(3274); +Object.defineProperty(exports, "managedidentities_v1beta1", { enumerable: true, get: function () { return v1beta1_1.managedidentities_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.managedidentities_v1.Managedidentities, + v1alpha1: v1alpha1_1.managedidentities_v1alpha1.Managedidentities, + v1beta1: v1beta1_1.managedidentities_v1beta1.Managedidentities, +}; +function managedidentities(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('managedidentities', versionOrOptions, exports.VERSIONS, this); +} +exports.managedidentities = managedidentities; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7895: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.bigquery_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var bigquery_v2; +(function (bigquery_v2) { + /** + * BigQuery API + * + * A data platform for customers to create, manage, share and query data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const bigquery = google.bigquery('v2'); + * ``` + */ + class Bigquery { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.datasets = new Resource$Datasets(this.context); + this.jobs = new Resource$Jobs(this.context); + this.models = new Resource$Models(this.context); + this.projects = new Resource$Projects(this.context); + this.routines = new Resource$Routines(this.context); + this.rowAccessPolicies = new Resource$Rowaccesspolicies(this.context); + this.tabledata = new Resource$Tabledata(this.context); + this.tables = new Resource$Tables(this.context); } } - compute_v1.Resource$Instances = Resource$Instances; - class Resource$Instancetemplates { + bigquery_v2.Bigquery = Bigquery; + class Resource$Datasets { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210105,60 +469518,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], - 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210169,28 +469548,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210201,28 +469578,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210233,28 +469608,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210265,28 +469638,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210297,34 +469668,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Instancetemplates = Resource$Instancetemplates; - class Resource$Interconnectattachments { + bigquery_v2.Resource$Datasets = Resource$Datasets; + class Resource$Jobs { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210335,28 +469704,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210367,28 +469734,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/jobs/{+jobId}/delete').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210399,58 +469765,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getQueryResults(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210463,28 +469796,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210495,34 +469826,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + mediaUrl: (rootUrl + '/upload/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Interconnectattachments = Resource$Interconnectattachments; - class Resource$Interconnectlocations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210533,28 +469857,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210565,34 +469887,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Interconnectlocations = Resource$Interconnectlocations; - class Resource$Interconnects { + bigquery_v2.Resource$Jobs = Resource$Jobs; + class Resource$Models { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210603,60 +469923,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210667,59 +469954,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210730,27 +469985,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210761,33 +470016,34 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Interconnects = Resource$Interconnects; - class Resource$Licensecodes { + bigquery_v2.Resource$Models = Resource$Models; + class Resource$Projects { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210798,28 +470054,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210830,28 +470084,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/bigquery/v2/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Licensecodes = Resource$Licensecodes; - class Resource$Licenses { + bigquery_v2.Resource$Projects = Resource$Projects; + class Resource$Routines { constructor(context) { this.context = context; } @@ -210867,23 +470120,23 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -210898,55 +470151,23 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -210961,22 +470182,23 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -210991,126 +470213,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - compute_v1.Resource$Licenses = Resource$Licenses; - class Resource$Machinetypes { - constructor(context) { - this.context = context; - } - aggregatedList(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -211122,160 +470244,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Machinetypes = Resource$Machinetypes; - class Resource$Networkendpointgroups { + bigquery_v2.Resource$Routines = Resource$Routines; + class Resource$Rowaccesspolicies { constructor(context) { this.context = context; } - aggregatedList(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - attachNetworkEndpoints(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211288,26 +470282,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211320,58 +470313,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211384,26 +470345,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211416,26 +470376,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + bigquery_v2.Resource$Rowaccesspolicies = Resource$Rowaccesspolicies; + class Resource$Tabledata { + constructor(context) { + this.context = context; + } + insertAll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211448,34 +470413,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Networkendpointgroups = Resource$Networkendpointgroups; - class Resource$Networks { - constructor(context) { - this.context = context; - } - addPeering(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211486,25 +470444,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + bigquery_v2.Resource$Tabledata = Resource$Tabledata; + class Resource$Tables { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211517,23 +470481,23 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -211548,27 +470512,28 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211579,25 +470544,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -211609,27 +470574,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211640,23 +470605,23 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -211671,26 +470636,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePeering(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211703,26 +470668,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211735,28 +470699,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePeering(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211767,32 +470729,181 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Networks = Resource$Networks; - class Resource$Nodegroups { + bigquery_v2.Resource$Tables = Resource$Tables; +})(bigquery_v2 = exports.bigquery_v2 || (exports.bigquery_v2 = {})); + + +/***/ }), + +/***/ 7911: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Copyright 2021 The Oppia Authors. All Rights Reserved. +// +// 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. + +/** + * @fileoverview File to handle checks when a draft or work in progress + * pull request is opened or reopened. + */ + +const core = __webpack_require__(6470); +const { context, GitHub } = __webpack_require__(1469); +const { commentAndAssignUsers } = __webpack_require__(8917); + +/** + * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest + * @returns {Boolean} + */ +const isDraftPr = (pullRequest) => { + return pullRequest.draft; +}; + +/** + * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest + * @returns {Boolean} + */ +const isWIPPr = ({ title, body }) => { + return ( + title.toLowerCase().includes('wip') || body.toLowerCase().includes('wip') + ); +}; + +/** + * @param {import('@octokit/rest').Octokit} octokit + * @returns {Promise} + */ +const isSkipCICommit = async (octokit) => { + const pullRequest = context.payload.pull_request; + + const commitParams = { + commit_sha: pullRequest.head.sha, + ...context.repo + }; + const commitResponse = await octokit.git.getCommit(commitParams); + + return ( + commitResponse.data.message.startsWith('[ci skip]') || + commitResponse.data.message.startsWith('[skip ci]') + ); +}; + +module.exports.checkWIP = async () => { + const token = core.getInput('repo-token'); + const octokit = new GitHub(token); + const pullRequest = context.payload.pull_request; + const prAuthor = pullRequest.user.login; + + if (isDraftPr(pullRequest) || isWIPPr(pullRequest)) { + const hasSkipCIMessage = await isSkipCICommit(octokit); + if (!hasSkipCIMessage) { + // Ping and assign PR author. + const link = 'here'.link( + 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia' + + '#wip--draft-pull-requests' + ); + + const commentBody = + 'Hi @' + prAuthor + ', when creating WIP/Draft PRs, ensure that ' + + 'your commit messages are prefixed with **[ci skip]** or ' + + '**[skip ci]** to prevent CI checks from running. ' + + 'You can learn more about it ' + link + '.'; + + await commentAndAssignUsers( + octokit, pullRequest, [prAuthor], commentBody + ); + } + } +}; + + +/***/ }), + +/***/ 7922: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudsupport_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudsupport_v2beta; +(function (cloudsupport_v2beta) { + /** + * Google Cloud Support API + * + * Manages Google Cloud technical support cases for Customer Care support offerings. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudsupport = google.cloudsupport('v2beta'); + * ``` + */ + class Cloudsupport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.caseClassifications = new Resource$Caseclassifications(this.context); + this.cases = new Resource$Cases(this.context); + this.media = new Resource$Media(this.context); + } + } + cloudsupport_v2beta.Cloudsupport = Cloudsupport; + class Resource$Caseclassifications { constructor(context) { this.context = context; } - addNodes(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211805,28 +470916,34 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/caseClassifications:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudsupport_v2beta.Resource$Caseclassifications = Resource$Caseclassifications; + class Resource$Cases { + constructor(context) { + this.context = context; + this.attachments = new Resource$Cases$Attachments(this.context); + this.comments = new Resource$Cases$Comments(this.context); + } + close(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211837,27 +470954,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211868,28 +470984,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteNodes(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + escalate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211900,23 +471014,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}:escalate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -211931,28 +471044,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211963,28 +471074,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211995,25 +471104,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'initialNodeCount'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -212025,25 +471134,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/cases:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNodes(paramsOrCallback, optionsOrCallback, callback) { + } + cloudsupport_v2beta.Resource$Cases = Resource$Cases; + class Resource$Cases$Attachments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212056,27 +471171,33 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudsupport_v2beta.Resource$Cases$Attachments = Resource$Cases$Attachments; + class Resource$Cases$Comments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -212087,26 +471208,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212119,28 +471239,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudsupport_v2beta.Resource$Cases$Comments = Resource$Cases$Comments; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -212151,28 +471275,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -212183,32 +471305,101 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + mediaUrl: (rootUrl + '/upload/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Nodegroups = Resource$Nodegroups; - class Resource$Nodetemplates { + cloudsupport_v2beta.Resource$Media = Resource$Media; +})(cloudsupport_v2beta = exports.cloudsupport_v2beta || (exports.cloudsupport_v2beta = {})); + + +/***/ }), + +/***/ 7923: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.run_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var run_v1; +(function (run_v1) { + /** + * Cloud Run Admin API + * + * Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const run = google.run('v1'); + * ``` + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.namespaces = new Resource$Namespaces(this.context); + this.projects = new Resource$Projects(this.context); + } + } + run_v1.Run = Run; + class Resource$Namespaces { constructor(context) { this.context = context; + this.authorizeddomains = new Resource$Namespaces$Authorizeddomains(this.context); + this.configurations = new Resource$Namespaces$Configurations(this.context); + this.domainmappings = new Resource$Namespaces$Domainmappings(this.context); + this.executions = new Resource$Namespaces$Executions(this.context); + this.jobs = new Resource$Namespaces$Jobs(this.context); + this.revisions = new Resource$Namespaces$Revisions(this.context); + this.routes = new Resource$Namespaces$Routes(this.context); + this.services = new Resource$Namespaces$Services(this.context); + this.tasks = new Resource$Namespaces$Tasks(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212221,26 +471412,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Authorizeddomains = Resource$Namespaces$Authorizeddomains; + class Resource$Namespaces$Configurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212253,26 +471450,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212285,26 +471481,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Configurations = Resource$Namespaces$Configurations; + class Resource$Namespaces$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212317,26 +471518,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212349,26 +471549,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212381,26 +471580,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212413,26 +471611,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Domainmappings = Resource$Namespaces$Domainmappings; + class Resource$Namespaces$Executions { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212445,32 +471648,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Nodetemplates = Resource$Nodetemplates; - class Resource$Nodetypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212483,26 +471679,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -212513,27 +471710,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -212544,31 +471741,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Nodetypes = Resource$Nodetypes; - class Resource$Packetmirrorings { + run_v1.Resource$Namespaces$Executions = Resource$Namespaces$Executions; + class Resource$Namespaces$Jobs { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212581,23 +471778,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -212613,23 +471809,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -212645,55 +471840,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -212709,26 +471871,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + replaceJob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212741,26 +471902,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212773,32 +471933,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Packetmirrorings = Resource$Packetmirrorings; - class Resource$Projects { + run_v1.Resource$Namespaces$Jobs = Resource$Namespaces$Jobs; + class Resource$Namespaces$Revisions { constructor(context) { this.context = context; } - disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212811,25 +471970,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212842,25 +472001,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212873,25 +472032,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Revisions = Resource$Namespaces$Revisions; + class Resource$Namespaces$Routes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212904,26 +472069,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -212934,25 +472100,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Routes = Resource$Namespaces$Routes; + class Resource$Namespaces$Services { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212965,25 +472137,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212996,25 +472168,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213027,25 +472199,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDisk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213058,25 +472230,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveInstance(paramsOrCallback, optionsOrCallback, callback) { + replaceService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213089,25 +472261,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Services = Resource$Namespaces$Services; + class Resource$Namespaces$Tasks { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213120,26 +472298,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213152,25 +472329,39 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Tasks = Resource$Namespaces$Tasks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.authorizeddomains = new Resource$Projects$Authorizeddomains(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + run_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213183,31 +472374,39 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Projects = Resource$Projects; - class Resource$Regionautoscalers { + run_v1.Resource$Projects$Authorizeddomains = Resource$Projects$Authorizeddomains; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.authorizeddomains = + new Resource$Projects$Locations$Authorizeddomains(this.context); + this.configurations = new Resource$Projects$Locations$Configurations(this.context); + this.domainmappings = new Resource$Projects$Locations$Domainmappings(this.context); + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.revisions = new Resource$Projects$Locations$Revisions(this.context); + this.routes = new Resource$Projects$Locations$Routes(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213220,58 +472419,69 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Projects$Locations$Authorizeddomains = Resource$Projects$Locations$Authorizeddomains; + class Resource$Projects$Locations$Configurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213284,23 +472494,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -213316,26 +472525,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Projects$Locations$Configurations = Resource$Projects$Locations$Configurations; + class Resource$Projects$Locations$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213348,26 +472562,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213380,32 +472593,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionautoscalers = Resource$Regionautoscalers; - class Resource$Regionbackendservices { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213418,26 +472624,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213450,26 +472655,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213482,26 +472692,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213514,58 +472723,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213578,26 +472792,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213610,32 +472823,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionbackendservices = Resource$Regionbackendservices; - class Resource$Regioncommitments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213648,24 +472854,30 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + run_v1.Resource$Projects$Locations$Revisions = Resource$Projects$Locations$Revisions; + class Resource$Projects$Locations$Routes { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -213679,26 +472891,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213711,26 +472922,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Projects$Locations$Routes = Resource$Projects$Locations$Routes; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213743,32 +472959,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regioncommitments = Resource$Regioncommitments; - class Resource$Regiondisks { - constructor(context) { - this.context = context; - } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213781,26 +472990,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213813,26 +473021,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213845,27 +473052,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -213876,58 +473083,59 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + replaceService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -213938,585 +473146,1609 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; +})(run_v1 = exports.run_v1 || (exports.run_v1 = {})); + + +/***/ }), + +/***/ 7935: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.indexing_v3 = exports.auth = exports.indexing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v3_1 = __webpack_require__(3641); +Object.defineProperty(exports, "indexing_v3", { enumerable: true, get: function () { return v3_1.indexing_v3; } }); +exports.VERSIONS = { + v3: v3_1.indexing_v3.Indexing, +}; +function indexing(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('indexing', versionOrOptions, exports.VERSIONS, this); +} +exports.indexing = indexing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7938: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getPem = void 0; +const fs = __webpack_require__(5747); +const forge = __webpack_require__(4285); +const util_1 = __webpack_require__(1669); +const readFile = (0, util_1.promisify)(fs.readFile); +function getPem(filename, callback) { + if (callback) { + getPemAsync(filename) + .then(pem => callback(null, pem)) + .catch(err => callback(err, null)); + } + else { + return getPemAsync(filename); + } +} +exports.getPem = getPem; +function getPemAsync(filename) { + return readFile(filename, { encoding: 'base64' }).then(keyp12 => { + return convertToPem(keyp12); + }); +} +/** + * Converts a P12 in base64 encoding to a pem. + * @param p12base64 String containing base64 encoded p12. + * @returns a string containing the pem. + */ +function convertToPem(p12base64) { + const p12Der = forge.util.decode64(p12base64); + const p12Asn1 = forge.asn1.fromDer(p12Der); + const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret'); + const bags = p12.getBags({ friendlyName: 'privatekey' }); + if (bags.friendlyName) { + const privateKey = bags.friendlyName[0].key; + const pem = forge.pki.privateKeyToPem(privateKey); + return pem.replace(/\r\n/g, '\n'); + } + else { + throw new Error('Unable to get friendly name.'); + } +} +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 7939: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.storagetransfer_v1 = exports.auth = exports.storagetransfer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(4102); +Object.defineProperty(exports, "storagetransfer_v1", { enumerable: true, get: function () { return v1_1.storagetransfer_v1; } }); +exports.VERSIONS = { + v1: v1_1.storagetransfer_v1.Storagetransfer, +}; +function storagetransfer(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('storagetransfer', versionOrOptions, exports.VERSIONS, this); +} +exports.storagetransfer = storagetransfer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7948: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.books_v1 = exports.auth = exports.books = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6613); +Object.defineProperty(exports, "books_v1", { enumerable: true, get: function () { return v1_1.books_v1; } }); +exports.VERSIONS = { + v1: v1_1.books_v1.Books, +}; +function books(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('books', versionOrOptions, exports.VERSIONS, this); +} +exports.books = books; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7963: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of PKCS#7 v1.5. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2012-2015 Digital Bazaar, Inc. + * + * Currently this implementation only supports ContentType of EnvelopedData, + * EncryptedData, or SignedData at the root level. The top level elements may + * contain only a ContentInfo of ContentType Data, i.e. plain data. Further + * nesting is not (yet) supported. + * + * The Forge validators for PKCS #7's ASN.1 structures are available from + * a separate file pkcs7asn1.js, since those are referenced from other + * PKCS standards like PKCS #12. + */ +var forge = __webpack_require__(239); +__webpack_require__(828); +__webpack_require__(1431); +__webpack_require__(6155); +__webpack_require__(1988); +__webpack_require__(4076); +__webpack_require__(6638); +__webpack_require__(5707); +__webpack_require__(7152); +__webpack_require__(2249); + +// shortcut for ASN.1 API +var asn1 = forge.asn1; + +// shortcut for PKCS#7 API +var p7 = module.exports = forge.pkcs7 = forge.pkcs7 || {}; + +/** + * Converts a PKCS#7 message from PEM format. + * + * @param pem the PEM-formatted PKCS#7 message. + * + * @return the PKCS#7 message. + */ +p7.messageFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PKCS7') { + var error = new Error('Could not convert PKCS#7 message from PEM; PEM ' + + 'header type is not "PKCS#7".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert PKCS#7 message from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return p7.messageFromAsn1(obj); +}; + +/** + * Converts a PKCS#7 message to PEM format. + * + * @param msg The PKCS#7 message object + * @param maxline The maximum characters per line, defaults to 64. + * + * @return The PEM-formatted PKCS#7 message. + */ +p7.messageToPem = function(msg, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var pemObj = { + type: 'PKCS7', + body: asn1.toDer(msg.toAsn1()).getBytes() + }; + return forge.pem.encode(pemObj, {maxline: maxline}); +}; + +/** + * Converts a PKCS#7 message from an ASN.1 object. + * + * @param obj the ASN.1 representation of a ContentInfo. + * + * @return the PKCS#7 message. + */ +p7.messageFromAsn1 = function(obj) { + // validate root level ContentInfo and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.contentInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 message. ' + + 'ASN.1 object is not an PKCS#7 ContentInfo.'); + error.errors = errors; + throw error; + } + + var contentType = asn1.derToOid(capture.contentType); + var msg; + + switch(contentType) { + case forge.pki.oids.envelopedData: + msg = p7.createEnvelopedData(); + break; + + case forge.pki.oids.encryptedData: + msg = p7.createEncryptedData(); + break; + + case forge.pki.oids.signedData: + msg = p7.createSignedData(); + break; + + default: + throw new Error('Cannot read PKCS#7 message. ContentType with OID ' + + contentType + ' is not (yet) supported.'); + } + + msg.fromAsn1(capture.content.value[0]); + return msg; +}; + +p7.createSignedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.signedData, + version: 1, + certificates: [], + crls: [], + // TODO: add json-formatted signer stuff here? + signers: [], + // populated during sign() + digestAlgorithmIdentifiers: [], + contentInfo: null, + signerInfos: [], + + fromAsn1: function(obj) { + // validate SignedData content block and capture data. + _fromAsn1(msg, obj, p7.asn1.signedDataValidator); + msg.certificates = []; + msg.crls = []; + msg.digestAlgorithmIdentifiers = []; + msg.contentInfo = null; + msg.signerInfos = []; + + if(msg.rawCapture.certificates) { + var certs = msg.rawCapture.certificates.value; + for(var i = 0; i < certs.length; ++i) { + msg.certificates.push(forge.pki.certificateFromAsn1(certs[i])); + } + } + + // TODO: parse crls + }, + + toAsn1: function() { + // degenerate case with no content + if(!msg.contentInfo) { + msg.sign(); + } + + var certs = []; + for(var i = 0; i < msg.certificates.length; ++i) { + certs.push(forge.pki.certificateToAsn1(msg.certificates[i])); + } + + var crls = []; + // TODO: implement CRLs + + // [0] SignedData + var signedData = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(msg.version).getBytes()), + // DigestAlgorithmIdentifiers + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SET, true, + msg.digestAlgorithmIdentifiers), + // ContentInfo + msg.contentInfo + ]) + ]); + if(certs.length > 0) { + // [0] IMPLICIT ExtendedCertificatesAndCertificates OPTIONAL + signedData.value[0].value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, certs)); + } + if(crls.length > 0) { + // [1] IMPLICIT CertificateRevocationLists OPTIONAL + signedData.value[0].value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, crls)); + } + // SignerInfos + signedData.value[0].value.push( + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, + msg.signerInfos)); + + // ContentInfo + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(msg.type).getBytes()), + // [0] SignedData + signedData + ]); + }, + + /** + * Add (another) entity to list of signers. + * + * Note: If authenticatedAttributes are provided, then, per RFC 2315, + * they must include at least two attributes: content type and + * message digest. The message digest attribute value will be + * auto-calculated during signing and will be ignored if provided. + * + * Here's an example of providing these two attributes: + * + * forge.pkcs7.createSignedData(); + * p7.addSigner({ + * issuer: cert.issuer.attributes, + * serialNumber: cert.serialNumber, + * key: privateKey, + * digestAlgorithm: forge.pki.oids.sha1, + * authenticatedAttributes: [{ + * type: forge.pki.oids.contentType, + * value: forge.pki.oids.data + * }, { + * type: forge.pki.oids.messageDigest + * }] + * }); + * + * TODO: Support [subjectKeyIdentifier] as signer's ID. + * + * @param signer the signer information: + * key the signer's private key. + * [certificate] a certificate containing the public key + * associated with the signer's private key; use this option as + * an alternative to specifying signer.issuer and + * signer.serialNumber. + * [issuer] the issuer attributes (eg: cert.issuer.attributes). + * [serialNumber] the signer's certificate's serial number in + * hexadecimal (eg: cert.serialNumber). + * [digestAlgorithm] the message digest OID, as a string, to use + * (eg: forge.pki.oids.sha1). + * [authenticatedAttributes] an optional array of attributes + * to also sign along with the content. + */ + addSigner: function(signer) { + var issuer = signer.issuer; + var serialNumber = signer.serialNumber; + if(signer.certificate) { + var cert = signer.certificate; + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + issuer = cert.issuer.attributes; + serialNumber = cert.serialNumber; + } + var key = signer.key; + if(!key) { + throw new Error( + 'Could not add PKCS#7 signer; no private key specified.'); + } + if(typeof key === 'string') { + key = forge.pki.privateKeyFromPem(key); + } + + // ensure OID known for digest algorithm + var digestAlgorithm = signer.digestAlgorithm || forge.pki.oids.sha1; + switch(digestAlgorithm) { + case forge.pki.oids.sha1: + case forge.pki.oids.sha256: + case forge.pki.oids.sha384: + case forge.pki.oids.sha512: + case forge.pki.oids.md5: + break; + default: + throw new Error( + 'Could not add PKCS#7 signer; unknown message digest algorithm: ' + + digestAlgorithm); + } + + // if authenticatedAttributes is present, then the attributes + // must contain at least PKCS #9 content-type and message-digest + var authenticatedAttributes = signer.authenticatedAttributes || []; + if(authenticatedAttributes.length > 0) { + var contentType = false; + var messageDigest = false; + for(var i = 0; i < authenticatedAttributes.length; ++i) { + var attr = authenticatedAttributes[i]; + if(!contentType && attr.type === forge.pki.oids.contentType) { + contentType = true; + if(messageDigest) { + break; + } + continue; + } + if(!messageDigest && attr.type === forge.pki.oids.messageDigest) { + messageDigest = true; + if(contentType) { + break; + } + continue; + } + } + + if(!contentType || !messageDigest) { + throw new Error('Invalid signer.authenticatedAttributes. If ' + + 'signer.authenticatedAttributes is specified, then it must ' + + 'contain at least two attributes, PKCS #9 content-type and ' + + 'PKCS #9 message-digest.'); + } + } + + msg.signers.push({ + key: key, + version: 1, + issuer: issuer, + serialNumber: serialNumber, + digestAlgorithm: digestAlgorithm, + signatureAlgorithm: forge.pki.oids.rsaEncryption, + signature: null, + authenticatedAttributes: authenticatedAttributes, + unauthenticatedAttributes: [] + }); + }, + + /** + * Signs the content. + * @param options Options to apply when signing: + * [detached] boolean. If signing should be done in detached mode. Defaults to false. + */ + sign: function(options) { + options = options || {}; + // auto-generate content info + if(typeof msg.content !== 'object' || msg.contentInfo === null) { + // use Data ContentInfo + msg.contentInfo = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(forge.pki.oids.data).getBytes()) + ]); + + // add actual content, if present + if('content' in msg) { + var content; + if(msg.content instanceof forge.util.ByteBuffer) { + content = msg.content.bytes(); + } else if(typeof msg.content === 'string') { + content = forge.util.encodeUtf8(msg.content); + } + + if (options.detached) { + msg.detachedContent = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, content); + } else { + msg.contentInfo.value.push( + // [0] EXPLICIT content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + content) + ])); + } + } + } + + // no signers, return early (degenerate case for certificate container) + if(msg.signers.length === 0) { + return; + } + + // generate digest algorithm identifiers + var mds = addDigestAlgorithmIds(); + + // generate signerInfos + addSignerInfos(mds); + }, + + verify: function() { + throw new Error('PKCS#7 signature verification not yet implemented.'); + }, + + /** + * Add a certificate. + * + * @param cert the certificate to add. + */ + addCertificate: function(cert) { + // convert from PEM + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + msg.certificates.push(cert); + }, + + /** + * Add a certificate revokation list. + * + * @param crl the certificate revokation list to add. + */ + addCertificateRevokationList: function(crl) { + throw new Error('PKCS#7 CRL support not yet implemented.'); + } + }; + return msg; + + function addDigestAlgorithmIds() { + var mds = {}; + + for(var i = 0; i < msg.signers.length; ++i) { + var signer = msg.signers[i]; + var oid = signer.digestAlgorithm; + if(!(oid in mds)) { + // content digest + mds[oid] = forge.md[forge.pki.oids[oid]].create(); + } + if(signer.authenticatedAttributes.length === 0) { + // no custom attributes to digest; use content message digest + signer.md = mds[oid]; + } else { + // custom attributes to be digested; use own message digest + // TODO: optimize to just copy message digest state if that + // feature is ever supported with message digests + signer.md = forge.md[forge.pki.oids[oid]].create(); + } + } + + // add unique digest algorithm identifiers + msg.digestAlgorithmIdentifiers = []; + for(var oid in mds) { + msg.digestAlgorithmIdentifiers.push( + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oid).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + } + + return mds; + } + + function addSignerInfos(mds) { + var content; + + if (msg.detachedContent) { + // Signature has been made in detached mode. + content = msg.detachedContent; + } else { + // Note: ContentInfo is a SEQUENCE with 2 values, second value is + // the content field and is optional for a ContentInfo but required here + // since signers are present + // get ContentInfo content + content = msg.contentInfo.value[1]; + // skip [0] EXPLICIT content wrapper + content = content.value[0]; + } + + if(!content) { + throw new Error( + 'Could not sign PKCS#7 message; there is no content to sign.'); + } + + // get ContentInfo content type + var contentType = asn1.derToOid(msg.contentInfo.value[0].value); + + // serialize content + var bytes = asn1.toDer(content); + + // skip identifier and length per RFC 2315 9.3 + // skip identifier (1 byte) + bytes.getByte(); + // read and discard length bytes + asn1.getBerValueLength(bytes); + bytes = bytes.getBytes(); + + // digest content DER value bytes + for(var oid in mds) { + mds[oid].start().update(bytes); + } + + // sign content + var signingTime = new Date(); + for(var i = 0; i < msg.signers.length; ++i) { + var signer = msg.signers[i]; + + if(signer.authenticatedAttributes.length === 0) { + // if ContentInfo content type is not "Data", then + // authenticatedAttributes must be present per RFC 2315 + if(contentType !== forge.pki.oids.data) { + throw new Error( + 'Invalid signer; authenticatedAttributes must be present ' + + 'when the ContentInfo content type is not PKCS#7 Data.'); + } + } else { + // process authenticated attributes + // [0] IMPLICIT + signer.authenticatedAttributesAsn1 = asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + + // per RFC 2315, attributes are to be digested using a SET container + // not the above [0] IMPLICIT container + var attrsAsn1 = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SET, true, []); + + for(var ai = 0; ai < signer.authenticatedAttributes.length; ++ai) { + var attr = signer.authenticatedAttributes[ai]; + if(attr.type === forge.pki.oids.messageDigest) { + // use content message digest as value + attr.value = mds[signer.digestAlgorithm].digest(); + } else if(attr.type === forge.pki.oids.signingTime) { + // auto-populate signing time if not already set + if(!attr.value) { + attr.value = signingTime; } + } + + // convert to ASN.1 and push onto Attributes SET (for signing) and + // onto authenticatedAttributesAsn1 to complete SignedData ASN.1 + // TODO: optimize away duplication + attrsAsn1.value.push(_attributeToAsn1(attr)); + signer.authenticatedAttributesAsn1.value.push(_attributeToAsn1(attr)); + } + + // DER-serialize and digest SET OF attributes only + bytes = asn1.toDer(attrsAsn1).getBytes(); + signer.md.start().update(bytes); + } + + // sign digest + signer.signature = signer.key.sign(signer.md, 'RSASSA-PKCS1-V1_5'); + } + + // add signer info + msg.signerInfos = _signersToAsn1(msg.signers); + } +}; + +/** + * Creates an empty PKCS#7 message of type EncryptedData. + * + * @return the message. + */ +p7.createEncryptedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.encryptedData, + version: 0, + encryptedContent: { + algorithm: forge.pki.oids['aes256-CBC'] + }, + + /** + * Reads an EncryptedData content block (in ASN.1 format) + * + * @param obj The ASN.1 representation of the EncryptedData content block + */ + fromAsn1: function(obj) { + // Validate EncryptedData content block and capture data. + _fromAsn1(msg, obj, p7.asn1.encryptedDataValidator); + }, + + /** + * Decrypt encrypted content + * + * @param key The (symmetric) key as a byte buffer + */ + decrypt: function(key) { + if(key !== undefined) { + msg.encryptedContent.key = key; + } + _decryptContent(msg); + } + }; + return msg; +}; + +/** + * Creates an empty PKCS#7 message of type EnvelopedData. + * + * @return the message. + */ +p7.createEnvelopedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.envelopedData, + version: 0, + recipients: [], + encryptedContent: { + algorithm: forge.pki.oids['aes256-CBC'] + }, + + /** + * Reads an EnvelopedData content block (in ASN.1 format) + * + * @param obj the ASN.1 representation of the EnvelopedData content block. + */ + fromAsn1: function(obj) { + // validate EnvelopedData content block and capture data + var capture = _fromAsn1(msg, obj, p7.asn1.envelopedDataValidator); + msg.recipients = _recipientsFromAsn1(capture.recipientInfos.value); + }, + + toAsn1: function() { + // ContentInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(msg.type).getBytes()), + // [0] EnvelopedData + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(msg.version).getBytes()), + // RecipientInfos + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, + _recipientsToAsn1(msg.recipients)), + // EncryptedContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, + _encryptedContentToAsn1(msg.encryptedContent)) + ]) + ]) + ]); + }, + + /** + * Find recipient by X.509 certificate's issuer. + * + * @param cert the certificate with the issuer to look for. + * + * @return the recipient object. + */ + findRecipient: function(cert) { + var sAttr = cert.issuer.attributes; + + for(var i = 0; i < msg.recipients.length; ++i) { + var r = msg.recipients[i]; + var rAttr = r.issuer; + + if(r.serialNumber !== cert.serialNumber) { + continue; } - resize(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + if(rAttr.length !== sAttr.length) { + continue; } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + var match = true; + for(var j = 0; j < sAttr.length; ++j) { + if(rAttr[j].type !== sAttr[j].type || + rAttr[j].value !== sAttr[j].value) { + match = false; + break; + } } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + if(match) { + return r; } - } - compute_v1.Resource$Regiondisks = Resource$Regiondisks; - class Resource$Regiondisktypes { - constructor(context) { - this.context = context; + } + + return null; + }, + + /** + * Decrypt enveloped content + * + * @param recipient The recipient object related to the private key + * @param privKey The (RSA) private key object + */ + decrypt: function(recipient, privKey) { + if(msg.encryptedContent.key === undefined && recipient !== undefined && + privKey !== undefined) { + switch(recipient.encryptedContent.algorithm) { + case forge.pki.oids.rsaEncryption: + case forge.pki.oids.desCBC: + var key = privKey.decrypt(recipient.encryptedContent.content); + msg.encryptedContent.key = forge.util.createBuffer(key); + break; + + default: + throw new Error('Unsupported asymmetric cipher, ' + + 'OID ' + recipient.encryptedContent.algorithm); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + + _decryptContent(msg); + }, + + /** + * Add (another) entity to list of recipients. + * + * @param cert The certificate of the entity to add. + */ + addRecipient: function(cert) { + msg.recipients.push({ + version: 0, + issuer: cert.issuer.attributes, + serialNumber: cert.serialNumber, + encryptedContent: { + // We simply assume rsaEncryption here, since forge.pki only + // supports RSA so far. If the PKI module supports other + // ciphers one day, we need to modify this one as well. + algorithm: forge.pki.oids.rsaEncryption, + key: cert.publicKey } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + }); + }, + + /** + * Encrypt enveloped content. + * + * This function supports two optional arguments, cipher and key, which + * can be used to influence symmetric encryption. Unless cipher is + * provided, the cipher specified in encryptedContent.algorithm is used + * (defaults to AES-256-CBC). If no key is provided, encryptedContent.key + * is (re-)used. If that one's not set, a random key will be generated + * automatically. + * + * @param [key] The key to be used for symmetric encryption. + * @param [cipher] The OID of the symmetric cipher to use. + */ + encrypt: function(key, cipher) { + // Part 1: Symmetric encryption + if(msg.encryptedContent.content === undefined) { + cipher = cipher || msg.encryptedContent.algorithm; + key = key || msg.encryptedContent.key; + + var keyLen, ivLen, ciphFn; + switch(cipher) { + case forge.pki.oids['aes128-CBC']: + keyLen = 16; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['aes192-CBC']: + keyLen = 24; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['aes256-CBC']: + keyLen = 32; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['des-EDE3-CBC']: + keyLen = 24; + ivLen = 8; + ciphFn = forge.des.createEncryptionCipher; + break; + + default: + throw new Error('Unsupported symmetric cipher, OID ' + cipher); } - } - compute_v1.Resource$Regiondisktypes = Resource$Regiondisktypes; - class Resource$Regionhealthchecks { - constructor(context) { - this.context = context; + + if(key === undefined) { + key = forge.util.createBuffer(forge.random.getBytes(keyLen)); + } else if(key.length() != keyLen) { + throw new Error('Symmetric key has wrong length; ' + + 'got ' + key.length() + ' bytes, expected ' + keyLen + '.'); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + // Keep a copy of the key & IV in the object, so the caller can + // use it for whatever reason. + msg.encryptedContent.algorithm = cipher; + msg.encryptedContent.key = key; + msg.encryptedContent.parameter = forge.util.createBuffer( + forge.random.getBytes(ivLen)); + + var ciph = ciphFn(key); + ciph.start(msg.encryptedContent.parameter.copy()); + ciph.update(msg.content); + + // The finish function does PKCS#7 padding by default, therefore + // no action required by us. + if(!ciph.finish()) { + throw new Error('Symmetric encryption failed.'); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + msg.encryptedContent.content = ciph.output; + } + + // Part 2: asymmetric encryption for each recipient + for(var i = 0; i < msg.recipients.length; ++i) { + var recipient = msg.recipients[i]; + + // Nothing to do, encryption already done. + if(recipient.encryptedContent.content !== undefined) { + continue; } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + switch(recipient.encryptedContent.algorithm) { + case forge.pki.oids.rsaEncryption: + recipient.encryptedContent.content = + recipient.encryptedContent.key.encrypt( + msg.encryptedContent.key.data); + break; + + default: + throw new Error('Unsupported asymmetric cipher, OID ' + + recipient.encryptedContent.algorithm); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + } + }; + return msg; +}; + +/** + * Converts a single recipient from an ASN.1 object. + * + * @param obj the ASN.1 RecipientInfo. + * + * @return the recipient object. + */ +function _recipientFromAsn1(obj) { + // validate EnvelopedData content block and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.recipientInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 RecipientInfo. ' + + 'ASN.1 object is not an PKCS#7 RecipientInfo.'); + error.errors = errors; + throw error; + } + + return { + version: capture.version.charCodeAt(0), + issuer: forge.pki.RDNAttributesAsArray(capture.issuer), + serialNumber: forge.util.createBuffer(capture.serial).toHex(), + encryptedContent: { + algorithm: asn1.derToOid(capture.encAlgorithm), + parameter: capture.encParameter ? capture.encParameter.value : undefined, + content: capture.encKey + } + }; +} + +/** + * Converts a single recipient object to an ASN.1 object. + * + * @param obj the recipient object. + * + * @return the ASN.1 RecipientInfo. + */ +function _recipientToAsn1(obj) { + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(obj.version).getBytes()), + // IssuerAndSerialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Name + forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), + // Serial + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(obj.serialNumber)) + ]), + // KeyEncryptionAlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.encryptedContent.algorithm).getBytes()), + // Parameter, force NULL, only RSA supported for now. + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // EncryptedKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + obj.encryptedContent.content) + ]); +} + +/** + * Map a set of RecipientInfo ASN.1 objects to recipient objects. + * + * @param infos an array of ASN.1 representations RecipientInfo (i.e. SET OF). + * + * @return an array of recipient objects. + */ +function _recipientsFromAsn1(infos) { + var ret = []; + for(var i = 0; i < infos.length; ++i) { + ret.push(_recipientFromAsn1(infos[i])); + } + return ret; +} + +/** + * Map an array of recipient objects to ASN.1 RecipientInfo objects. + * + * @param recipients an array of recipientInfo objects. + * + * @return an array of ASN.1 RecipientInfos. + */ +function _recipientsToAsn1(recipients) { + var ret = []; + for(var i = 0; i < recipients.length; ++i) { + ret.push(_recipientToAsn1(recipients[i])); + } + return ret; +} + +/** + * Converts a single signer from an ASN.1 object. + * + * @param obj the ASN.1 representation of a SignerInfo. + * + * @return the signer object. + */ +function _signerFromAsn1(obj) { + // validate EnvelopedData content block and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.signerInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 SignerInfo. ' + + 'ASN.1 object is not an PKCS#7 SignerInfo.'); + error.errors = errors; + throw error; + } + + var rval = { + version: capture.version.charCodeAt(0), + issuer: forge.pki.RDNAttributesAsArray(capture.issuer), + serialNumber: forge.util.createBuffer(capture.serial).toHex(), + digestAlgorithm: asn1.derToOid(capture.digestAlgorithm), + signatureAlgorithm: asn1.derToOid(capture.signatureAlgorithm), + signature: capture.signature, + authenticatedAttributes: [], + unauthenticatedAttributes: [] + }; + + // TODO: convert attributes + var authenticatedAttributes = capture.authenticatedAttributes || []; + var unauthenticatedAttributes = capture.unauthenticatedAttributes || []; + + return rval; +} + +/** + * Converts a single signerInfo object to an ASN.1 object. + * + * @param obj the signerInfo object. + * + * @return the ASN.1 representation of a SignerInfo. + */ +function _signerToAsn1(obj) { + // SignerInfo + var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(obj.version).getBytes()), + // issuerAndSerialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // name + forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), + // serial + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(obj.serialNumber)) + ]), + // digestAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.digestAlgorithm).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ]); + + // authenticatedAttributes (OPTIONAL) + if(obj.authenticatedAttributesAsn1) { + // add ASN.1 previously generated during signing + rval.value.push(obj.authenticatedAttributesAsn1); + } + + // digestEncryptionAlgorithm + rval.value.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.signatureAlgorithm).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + + // encryptedDigest + rval.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, obj.signature)); + + // unauthenticatedAttributes (OPTIONAL) + if(obj.unauthenticatedAttributes.length > 0) { + // [1] IMPLICIT + var attrsAsn1 = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, []); + for(var i = 0; i < obj.unauthenticatedAttributes.length; ++i) { + var attr = obj.unauthenticatedAttributes[i]; + attrsAsn1.values.push(_attributeToAsn1(attr)); + } + rval.value.push(attrsAsn1); + } + + return rval; +} + +/** + * Map a set of SignerInfo ASN.1 objects to an array of signer objects. + * + * @param signerInfoAsn1s an array of ASN.1 SignerInfos (i.e. SET OF). + * + * @return an array of signers objects. + */ +function _signersFromAsn1(signerInfoAsn1s) { + var ret = []; + for(var i = 0; i < signerInfoAsn1s.length; ++i) { + ret.push(_signerFromAsn1(signerInfoAsn1s[i])); + } + return ret; +} + +/** + * Map an array of signer objects to ASN.1 objects. + * + * @param signers an array of signer objects. + * + * @return an array of ASN.1 SignerInfos. + */ +function _signersToAsn1(signers) { + var ret = []; + for(var i = 0; i < signers.length; ++i) { + ret.push(_signerToAsn1(signers[i])); + } + return ret; +} + +/** + * Convert an attribute object to an ASN.1 Attribute. + * + * @param attr the attribute object. + * + * @return the ASN.1 Attribute. + */ +function _attributeToAsn1(attr) { + var value; + + // TODO: generalize to support more attributes + if(attr.type === forge.pki.oids.contentType) { + value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.value).getBytes()); + } else if(attr.type === forge.pki.oids.messageDigest) { + value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + attr.value.bytes()); + } else if(attr.type === forge.pki.oids.signingTime) { + /* Note per RFC 2985: Dates between 1 January 1950 and 31 December 2049 + (inclusive) MUST be encoded as UTCTime. Any dates with year values + before 1950 or after 2049 MUST be encoded as GeneralizedTime. [Further,] + UTCTime values MUST be expressed in Greenwich Mean Time (Zulu) and MUST + include seconds (i.e., times are YYMMDDHHMMSSZ), even where the + number of seconds is zero. Midnight (GMT) must be represented as + "YYMMDD000000Z". */ + // TODO: make these module-level constants + var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); + var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); + var date = attr.value; + if(typeof date === 'string') { + // try to parse date + var timestamp = Date.parse(date); + if(!isNaN(timestamp)) { + date = new Date(timestamp); + } else if(date.length === 13) { + // YYMMDDHHMMSSZ (13 chars for UTCTime) + date = asn1.utcTimeToDate(date); + } else { + // assume generalized time + date = asn1.generalizedTimeToDate(date); + } + } + + if(date >= jan_1_1950 && date < jan_1_2050) { + value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, + asn1.dateToUtcTime(date)); + } else { + value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, + asn1.dateToGeneralizedTime(date)); + } + } + + // TODO: expose as common API call + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + // AttributeValue + value + ]) + ]); +} + +/** + * Map messages encrypted content to ASN.1 objects. + * + * @param ec The encryptedContent object of the message. + * + * @return ASN.1 representation of the encryptedContent object (SEQUENCE). + */ +function _encryptedContentToAsn1(ec) { + return [ + // ContentType, always Data for the moment + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(forge.pki.oids.data).getBytes()), + // ContentEncryptionAlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(ec.algorithm).getBytes()), + // Parameters (IV) + !ec.parameter ? + undefined : + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + ec.parameter.getBytes()) + ]), + // [0] EncryptedContent + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + ec.content.getBytes()) + ]) + ]; +} + +/** + * Reads the "common part" of an PKCS#7 content block (in ASN.1 format) + * + * This function reads the "common part" of the PKCS#7 content blocks + * EncryptedData and EnvelopedData, i.e. version number and symmetrically + * encrypted content block. + * + * The result of the ASN.1 validate and capture process is returned + * to allow the caller to extract further data, e.g. the list of recipients + * in case of a EnvelopedData object. + * + * @param msg the PKCS#7 object to read the data to. + * @param obj the ASN.1 representation of the content block. + * @param validator the ASN.1 structure validator object to use. + * + * @return the value map captured by validator object. + */ +function _fromAsn1(msg, obj, validator) { + var capture = {}; + var errors = []; + if(!asn1.validate(obj, validator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 message. ' + + 'ASN.1 object is not a supported PKCS#7 message.'); + error.errors = error; + throw error; + } + + // Check contentType, so far we only support (raw) Data. + var contentType = asn1.derToOid(capture.contentType); + if(contentType !== forge.pki.oids.data) { + throw new Error('Unsupported PKCS#7 message. ' + + 'Only wrapped ContentType Data supported.'); + } + + if(capture.encryptedContent) { + var content = ''; + if(forge.util.isArray(capture.encryptedContent)) { + for(var i = 0; i < capture.encryptedContent.length; ++i) { + if(capture.encryptedContent[i].type !== asn1.Type.OCTETSTRING) { + throw new Error('Malformed PKCS#7 message, expecting encrypted ' + + 'content constructed of only OCTET STRING objects.'); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + content += capture.encryptedContent[i].value; + } + } else { + content = capture.encryptedContent; + } + msg.encryptedContent = { + algorithm: asn1.derToOid(capture.encAlgorithm), + parameter: forge.util.createBuffer(capture.encParameter.value), + content: forge.util.createBuffer(content) + }; + } + + if(capture.content) { + var content = ''; + if(forge.util.isArray(capture.content)) { + for(var i = 0; i < capture.content.length; ++i) { + if(capture.content[i].type !== asn1.Type.OCTETSTRING) { + throw new Error('Malformed PKCS#7 message, expecting ' + + 'content constructed of only OCTET STRING objects.'); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], - context: this.context, + content += capture.content[i].value; + } + } else { + content = capture.content; + } + msg.content = forge.util.createBuffer(content); + } + + msg.version = capture.version.charCodeAt(0); + msg.rawCapture = capture; + + return capture; +} + +/** + * Decrypt the symmetrically encrypted content block of the PKCS#7 message. + * + * Decryption is skipped in case the PKCS#7 message object already has a + * (decrypted) content attribute. The algorithm, key and cipher parameters + * (probably the iv) are taken from the encryptedContent attribute of the + * message object. + * + * @param The PKCS#7 message object. + */ +function _decryptContent(msg) { + if(msg.encryptedContent.key === undefined) { + throw new Error('Symmetric key not available.'); + } + + if(msg.content === undefined) { + var ciph; + + switch(msg.encryptedContent.algorithm) { + case forge.pki.oids['aes128-CBC']: + case forge.pki.oids['aes192-CBC']: + case forge.pki.oids['aes256-CBC']: + ciph = forge.aes.createDecryptionCipher(msg.encryptedContent.key); + break; + + case forge.pki.oids['desCBC']: + case forge.pki.oids['des-EDE3-CBC']: + ciph = forge.des.createDecryptionCipher(msg.encryptedContent.key); + break; + + default: + throw new Error('Unsupported symmetric cipher, OID ' + + msg.encryptedContent.algorithm); + } + ciph.start(msg.encryptedContent.parameter); + ciph.update(msg.encryptedContent.content); + + if(!ciph.finish()) { + throw new Error('Symmetric decryption failed.'); + } + + msg.content = ciph.output; + } +} + + +/***/ }), + +/***/ 7970: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.oauth2_v2 = exports.auth = exports.oauth2 = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(2980); +Object.defineProperty(exports, "oauth2_v2", { enumerable: true, get: function () { return v2_1.oauth2_v2; } }); +exports.VERSIONS = { + v2: v2_1.oauth2_v2.Oauth2, +}; +function oauth2(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('oauth2', versionOrOptions, exports.VERSIONS, this); +} +exports.oauth2 = oauth2; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7981: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networkservices_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networkservices_v1; +(function (networkservices_v1) { + /** + * Network Services API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networkservices = google.networkservices('v1'); + * ``` + */ + class Networkservices { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.projects = new Resource$Projects(this.context); } } - compute_v1.Resource$Regionhealthchecks = Resource$Regionhealthchecks; - class Resource$Regioninstancegroupmanagers { + networkservices_v1.Networkservices = Networkservices; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - abandonInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - applyUpdatesToInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - createInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - deleteInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + networkservices_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.edgeCacheKeysets = new Resource$Projects$Locations$Edgecachekeysets(this.context); + this.edgeCacheOrigins = new Resource$Projects$Locations$Edgecacheorigins(this.context); + this.edgeCacheServices = + new Resource$Projects$Locations$Edgecacheservices(this.context); + this.endpointPolicies = new Resource$Projects$Locations$Endpointpolicies(this.context); + this.gateways = new Resource$Projects$Locations$Gateways(this.context); + this.grpcRoutes = new Resource$Projects$Locations$Grpcroutes(this.context); + this.httpRoutes = new Resource$Projects$Locations$Httproutes(this.context); + this.meshes = new Resource$Projects$Locations$Meshes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serviceBindings = new Resource$Projects$Locations$Servicebindings(this.context); + this.tcpRoutes = new Resource$Projects$Locations$Tcproutes(this.context); + this.tlsRoutes = new Resource$Projects$Locations$Tlsroutes(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -214531,55 +474763,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -214595,619 +474794,398 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - listErrors(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - listManagedInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + networkservices_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Edgecachekeysets { + constructor(context) { + this.context = context; } - resize(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; - class Resource$Regioninstancegroups { + networkservices_v1.Resource$Projects$Locations$Edgecachekeysets = Resource$Projects$Locations$Edgecachekeysets; + class Resource$Projects$Locations$Edgecacheorigins { 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Regioninstancegroups = Resource$Regioninstancegroups; - class Resource$Regionoperations { + networkservices_v1.Resource$Projects$Locations$Edgecacheorigins = Resource$Projects$Locations$Edgecacheorigins; + class Resource$Projects$Locations$Edgecacheservices { 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Regionoperations = Resource$Regionoperations; - class Resource$Regions { + networkservices_v1.Resource$Projects$Locations$Edgecacheservices = Resource$Projects$Locations$Edgecacheservices; + class Resource$Projects$Locations$Endpointpolicies { 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - 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 || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regions = Resource$Regions; - class Resource$Regionsslcertificates { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -215223,55 +475201,54 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -215287,358 +475264,127 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - compute_v1.Resource$Regionsslcertificates = Resource$Regionsslcertificates; - class Resource$Regiontargethttpproxies { - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; - class Resource$Regiontargethttpsproxies { + networkservices_v1.Resource$Projects$Locations$Endpointpolicies = Resource$Projects$Locations$Endpointpolicies; + class Resource$Projects$Locations$Gateways { 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - setSslCertificates(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215651,31 +475397,24 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; - class Resource$Regionurlmaps { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -215689,23 +475428,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -215721,26 +475459,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215753,23 +475490,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -215785,23 +475521,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -215817,26 +475552,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215849,64 +475583,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Regionurlmaps = Resource$Regionurlmaps; - class Resource$Reservations { + networkservices_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Grpcroutes { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215919,22 +475652,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -215950,89 +475683,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216045,23 +475714,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -216077,26 +475745,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216109,26 +475776,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1.Resource$Projects$Locations$Grpcroutes = Resource$Projects$Locations$Grpcroutes; + class Resource$Projects$Locations$Httproutes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216141,26 +475813,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216173,32 +475844,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Reservations = Resource$Reservations; - class Resource$Resourcepolicies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216211,26 +475875,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216243,26 +475906,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216275,26 +475937,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1.Resource$Projects$Locations$Httproutes = Resource$Projects$Locations$Httproutes; + class Resource$Projects$Locations$Meshes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216307,26 +475974,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216339,26 +476005,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216371,26 +476036,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216403,26 +476067,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216435,32 +476098,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Resourcepolicies = Resource$Resourcepolicies; - class Resource$Routers { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216473,26 +476129,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -216503,57 +476160,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1.Resource$Projects$Locations$Meshes = Resource$Projects$Locations$Meshes; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216566,26 +476229,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216598,27 +476260,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -216629,27 +476291,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -216660,89 +476322,97 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + networkservices_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Servicebindings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - preview(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -216753,63 +476423,59 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Routers = Resource$Routers; - class Resource$Routes { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -216820,91 +476486,95 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Routes = Resource$Routes; - class Resource$Securitypolicies { + networkservices_v1.Resource$Projects$Locations$Servicebindings = Resource$Projects$Locations$Servicebindings; + class Resource$Projects$Locations$Tcproutes { constructor(context) { this.context = context; } - addRule(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216917,23 +476587,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -216949,23 +476618,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -216981,26 +476649,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217013,26 +476680,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217045,25 +476711,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1.Resource$Projects$Locations$Tcproutes = Resource$Projects$Locations$Tcproutes; + class Resource$Projects$Locations$Tlsroutes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217076,25 +476748,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217107,26 +476779,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217139,26 +476810,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217171,26 +476841,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217203,452 +476872,1206 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Securitypolicies = Resource$Securitypolicies; - class Resource$Snapshots { - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', '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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } + networkservices_v1.Resource$Projects$Locations$Tlsroutes = Resource$Projects$Locations$Tlsroutes; +})(networkservices_v1 = exports.networkservices_v1 || (exports.networkservices_v1 = {})); + + +/***/ }), + +/***/ 7984: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.networkconnectivity_v1alpha1 = exports.networkconnectivity_v1 = exports.auth = exports.networkconnectivity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7814); +Object.defineProperty(exports, "networkconnectivity_v1", { enumerable: true, get: function () { return v1_1.networkconnectivity_v1; } }); +const v1alpha1_1 = __webpack_require__(4693); +Object.defineProperty(exports, "networkconnectivity_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.networkconnectivity_v1alpha1; } }); +exports.VERSIONS = { + v1: v1_1.networkconnectivity_v1.Networkconnectivity, + v1alpha1: v1alpha1_1.networkconnectivity_v1alpha1.Networkconnectivity, +}; +function networkconnectivity(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('networkconnectivity', versionOrOptions, exports.VERSIONS, this); +} +exports.networkconnectivity = networkconnectivity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 7997: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of PKCS#12. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * The ASN.1 representation of PKCS#12 is as follows + * (see ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12-tc1.pdf for details) + * + * PFX ::= SEQUENCE { + * version INTEGER {v3(3)}(v3,...), + * authSafe ContentInfo, + * macData MacData OPTIONAL + * } + * + * MacData ::= SEQUENCE { + * mac DigestInfo, + * macSalt OCTET STRING, + * iterations INTEGER DEFAULT 1 + * } + * Note: The iterations default is for historical reasons and its use is + * deprecated. A higher value, like 1024, is recommended. + * + * DigestInfo is defined in PKCS#7 as follows: + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of SHA1 there is none. + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * Digest ::= OCTET STRING + * + * + * ContentInfo ::= SEQUENCE { + * contentType ContentType, + * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL + * } + * + * ContentType ::= OBJECT IDENTIFIER + * + * AuthenticatedSafe ::= SEQUENCE OF ContentInfo + * -- Data if unencrypted + * -- EncryptedData if password-encrypted + * -- EnvelopedData if public key-encrypted + * + * + * SafeContents ::= SEQUENCE OF SafeBag + * + * SafeBag ::= SEQUENCE { + * bagId BAG-TYPE.&id ({PKCS12BagSet}) + * bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}), + * bagAttributes SET OF PKCS12Attribute OPTIONAL + * } + * + * PKCS12Attribute ::= SEQUENCE { + * attrId ATTRIBUTE.&id ({PKCS12AttrSet}), + * attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId}) + * } -- This type is compatible with the X.500 type 'Attribute' + * + * PKCS12AttrSet ATTRIBUTE ::= { + * friendlyName | -- from PKCS #9 + * localKeyId, -- from PKCS #9 + * ... -- Other attributes are allowed + * } + * + * CertBag ::= SEQUENCE { + * certId BAG-TYPE.&id ({CertTypes}), + * certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId}) + * } + * + * x509Certificate BAG-TYPE ::= {OCTET STRING IDENTIFIED BY {certTypes 1}} + * -- DER-encoded X.509 certificate stored in OCTET STRING + * + * sdsiCertificate BAG-TYPE ::= {IA5String IDENTIFIED BY {certTypes 2}} + * -- Base64-encoded SDSI certificate stored in IA5String + * + * CertTypes BAG-TYPE ::= { + * x509Certificate | + * sdsiCertificate, + * ... -- For future extensions + * } + */ +var forge = __webpack_require__(239); +__webpack_require__(1431); +__webpack_require__(3000); +__webpack_require__(1988); +__webpack_require__(6638); +__webpack_require__(8131); +__webpack_require__(5707); +__webpack_require__(1526); +__webpack_require__(2707); +__webpack_require__(7152); +__webpack_require__(2249); + +// shortcut for asn.1 & PKI API +var asn1 = forge.asn1; +var pki = forge.pki; + +// shortcut for PKCS#12 API +var p12 = module.exports = forge.pkcs12 = forge.pkcs12 || {}; + +var contentInfoValidator = { + name: 'ContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // a ContentInfo + constructed: true, + value: [{ + name: 'ContentInfo.contentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'ContentInfo.content', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + captureAsn1: 'content' + }] +}; + +var pfxValidator = { + name: 'PFX', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PFX.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, + contentInfoValidator, { + name: 'PFX.macData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'mac', + value: [{ + name: 'PFX.macData.mac', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // DigestInfo + constructed: true, + value: [{ + name: 'PFX.macData.mac.digestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // DigestAlgorithmIdentifier + constructed: true, + value: [{ + name: 'PFX.macData.mac.digestAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'macAlgorithm' + }, { + name: 'PFX.macData.mac.digestAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + captureAsn1: 'macAlgorithmParameters' + }] + }, { + name: 'PFX.macData.mac.digest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'macDigest' + }] + }, { + name: 'PFX.macData.macSalt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'macSalt' + }, { + name: 'PFX.macData.iterations', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + optional: true, + capture: 'macIterations' + }] + }] +}; + +var safeBagValidator = { + name: 'SafeBag', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SafeBag.bagId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'bagId' + }, { + name: 'SafeBag.bagValue', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + captureAsn1: 'bagValue' + }, { + name: 'SafeBag.bagAttributes', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + optional: true, + capture: 'bagAttributes' + }] +}; + +var attributeValidator = { + name: 'Attribute', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Attribute.attrId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'oid' + }, { + name: 'Attribute.attrValues', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + capture: 'values' + }] +}; + +var certBagValidator = { + name: 'CertBag', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'CertBag.certId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certId' + }, { + name: 'CertBag.certValue', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + /* So far we only support X.509 certificates (which are wrapped in + an OCTET STRING, hence hard code that here). */ + value: [{ + name: 'CertBag.certValue[0]', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.OCTETSTRING, + constructed: false, + capture: 'cert' + }] + }] +}; + +/** + * Search SafeContents structure for bags with matching attributes. + * + * The search can optionally be narrowed by a certain bag type. + * + * @param safeContents the SafeContents structure to search in. + * @param attrName the name of the attribute to compare against. + * @param attrValue the attribute value to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of matching bags. + */ +function _getBagsByAttribute(safeContents, attrName, attrValue, bagType) { + var result = []; + + for(var i = 0; i < safeContents.length; i++) { + for(var j = 0; j < safeContents[i].safeBags.length; j++) { + var bag = safeContents[i].safeBags[j]; + if(bagType !== undefined && bag.type !== bagType) { + continue; + } + // only filter by bag type, no attribute specified + if(attrName === null) { + result.push(bag); + continue; + } + if(bag.attributes[attrName] !== undefined && + bag.attributes[attrName].indexOf(attrValue) >= 0) { + result.push(bag); + } + } + } + + return result; +} + +/** + * Converts a PKCS#12 PFX in ASN.1 notation into a PFX object. + * + * @param obj The PKCS#12 PFX in ASN.1 notation. + * @param strict true to use strict DER decoding, false not to (default: true). + * @param {String} password Password to decrypt with (optional). + * + * @return PKCS#12 PFX object. + */ +p12.pkcs12FromAsn1 = function(obj, strict, password) { + // handle args + if(typeof strict === 'string') { + password = strict; + strict = true; + } else if(strict === undefined) { + strict = true; + } + + // validate PFX and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, pfxValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 PFX. ' + + 'ASN.1 object is not an PKCS#12 PFX.'); + error.errors = error; + throw error; + } + + var pfx = { + version: capture.version.charCodeAt(0), + safeContents: [], + + /** + * Gets bags with matching attributes. + * + * @param filter the attributes to filter by: + * [localKeyId] the localKeyId to search for. + * [localKeyIdHex] the localKeyId in hex to search for. + * [friendlyName] the friendly name to search for. + * [bagType] bag type to narrow each attribute search by. + * + * @return a map of attribute type to an array of matching bags or, if no + * attribute was given but a bag type, the map key will be the + * bag type. + */ + getBags: function(filter) { + var rval = {}; + + var localKeyId; + if('localKeyId' in filter) { + localKeyId = filter.localKeyId; + } else if('localKeyIdHex' in filter) { + localKeyId = forge.util.hexToBytes(filter.localKeyIdHex); + } + + // filter on bagType only + if(localKeyId === undefined && !('friendlyName' in filter) && + 'bagType' in filter) { + rval[filter.bagType] = _getBagsByAttribute( + pfx.safeContents, null, null, filter.bagType); + } + + if(localKeyId !== undefined) { + rval.localKeyId = _getBagsByAttribute( + pfx.safeContents, 'localKeyId', + localKeyId, filter.bagType); + } + if('friendlyName' in filter) { + rval.friendlyName = _getBagsByAttribute( + pfx.safeContents, 'friendlyName', + filter.friendlyName, filter.bagType); + } + + return rval; + }, + + /** + * DEPRECATED: use getBags() instead. + * + * Get bags with matching friendlyName attribute. + * + * @param friendlyName the friendly name to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of bags with matching friendlyName attribute. + */ + getBagsByFriendlyName: function(friendlyName, bagType) { + return _getBagsByAttribute( + pfx.safeContents, 'friendlyName', friendlyName, bagType); + }, + + /** + * DEPRECATED: use getBags() instead. + * + * Get bags with matching localKeyId attribute. + * + * @param localKeyId the localKeyId to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of bags with matching localKeyId attribute. + */ + getBagsByLocalKeyId: function(localKeyId, bagType) { + return _getBagsByAttribute( + pfx.safeContents, 'localKeyId', localKeyId, bagType); + } + }; + + if(capture.version.charCodeAt(0) !== 3) { + var error = new Error('PKCS#12 PFX of version other than 3 not supported.'); + error.version = capture.version.charCodeAt(0); + throw error; + } + + if(asn1.derToOid(capture.contentType) !== pki.oids.data) { + var error = new Error('Only PKCS#12 PFX in password integrity mode supported.'); + error.oid = asn1.derToOid(capture.contentType); + throw error; + } + + var data = capture.content.value[0]; + if(data.tagClass !== asn1.Class.UNIVERSAL || + data.type !== asn1.Type.OCTETSTRING) { + throw new Error('PKCS#12 authSafe content data is not an OCTET STRING.'); + } + data = _decodePkcs7Data(data); + + // check for MAC + if(capture.mac) { + var md = null; + var macKeyBytes = 0; + var macAlgorithm = asn1.derToOid(capture.macAlgorithm); + switch(macAlgorithm) { + case pki.oids.sha1: + md = forge.md.sha1.create(); + macKeyBytes = 20; + break; + case pki.oids.sha256: + md = forge.md.sha256.create(); + macKeyBytes = 32; + break; + case pki.oids.sha384: + md = forge.md.sha384.create(); + macKeyBytes = 48; + break; + case pki.oids.sha512: + md = forge.md.sha512.create(); + macKeyBytes = 64; + break; + case pki.oids.md5: + md = forge.md.md5.create(); + macKeyBytes = 16; + break; + } + if(md === null) { + throw new Error('PKCS#12 uses unsupported MAC algorithm: ' + macAlgorithm); + } + + // verify MAC (iterations default to 1) + var macSalt = new forge.util.ByteBuffer(capture.macSalt); + var macIterations = (('macIterations' in capture) ? + parseInt(forge.util.bytesToHex(capture.macIterations), 16) : 1); + var macKey = p12.generateKey( + password, macSalt, 3, macIterations, macKeyBytes, md); + var mac = forge.hmac.create(); + mac.start(md, macKey); + mac.update(data.value); + var macValue = mac.getMac(); + if(macValue.getBytes() !== capture.macDigest) { + throw new Error('PKCS#12 MAC could not be verified. Invalid password?'); + } + } + + _decodeAuthenticatedSafe(pfx, data.value, strict, password); + return pfx; +}; + +/** + * Decodes PKCS#7 Data. PKCS#7 (RFC 2315) defines "Data" as an OCTET STRING, + * but it is sometimes an OCTET STRING that is composed/constructed of chunks, + * each its own OCTET STRING. This is BER-encoding vs. DER-encoding. This + * function transforms this corner-case into the usual simple, + * non-composed/constructed OCTET STRING. + * + * This function may be moved to ASN.1 at some point to better deal with + * more BER-encoding issues, should they arise. + * + * @param data the ASN.1 Data object to transform. + */ +function _decodePkcs7Data(data) { + // handle special case of "chunked" data content: an octet string composed + // of other octet strings + if(data.composed || data.constructed) { + var value = forge.util.createBuffer(); + for(var i = 0; i < data.value.length; ++i) { + value.putBytes(data.value[i].value); + } + data.composed = data.constructed = false; + data.value = value.getBytes(); + } + return data; +} + +/** + * Decode PKCS#12 AuthenticatedSafe (BER encoded) into PFX object. + * + * The AuthenticatedSafe is a BER-encoded SEQUENCE OF ContentInfo. + * + * @param pfx The PKCS#12 PFX object to fill. + * @param {String} authSafe BER-encoded AuthenticatedSafe. + * @param strict true to use strict DER decoding, false not to. + * @param {String} password Password to decrypt with (optional). + */ +function _decodeAuthenticatedSafe(pfx, authSafe, strict, password) { + authSafe = asn1.fromDer(authSafe, strict); /* actually it's BER encoded */ + + if(authSafe.tagClass !== asn1.Class.UNIVERSAL || + authSafe.type !== asn1.Type.SEQUENCE || + authSafe.constructed !== true) { + throw new Error('PKCS#12 AuthenticatedSafe expected to be a ' + + 'SEQUENCE OF ContentInfo'); + } + + for(var i = 0; i < authSafe.value.length; i++) { + var contentInfo = authSafe.value[i]; + + // validate contentInfo and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(contentInfo, contentInfoValidator, capture, errors)) { + var error = new Error('Cannot read ContentInfo.'); + error.errors = errors; + throw error; + } + + var obj = { + encrypted: false + }; + var safeContents = null; + var data = capture.content.value[0]; + switch(asn1.derToOid(capture.contentType)) { + case pki.oids.data: + if(data.tagClass !== asn1.Class.UNIVERSAL || + data.type !== asn1.Type.OCTETSTRING) { + throw new Error('PKCS#12 SafeContents Data is not an OCTET STRING.'); + } + safeContents = _decodePkcs7Data(data).value; + break; + case pki.oids.encryptedData: + safeContents = _decryptSafeContents(data, password); + obj.encrypted = true; + break; + default: + var error = new Error('Unsupported PKCS#12 contentType.'); + error.contentType = asn1.derToOid(capture.contentType); + throw error; } - compute_v1.Resource$Snapshots = Resource$Snapshots; - class Resource$Sslcertificates { - constructor(context) { - this.context = context; - } - aggregatedList(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + obj.safeBags = _decodeSafeContents(safeContents, strict, password); + pfx.safeContents.push(obj); + } +} + +/** + * Decrypt PKCS#7 EncryptedData structure. + * + * @param data ASN.1 encoded EncryptedContentInfo object. + * @param password The user-provided password. + * + * @return The decrypted SafeContents (ASN.1 object). + */ +function _decryptSafeContents(data, password) { + var capture = {}; + var errors = []; + if(!asn1.validate( + data, forge.pkcs7.asn1.encryptedDataValidator, capture, errors)) { + var error = new Error('Cannot read EncryptedContentInfo.'); + error.errors = errors; + throw error; + } + + var oid = asn1.derToOid(capture.contentType); + if(oid !== pki.oids.data) { + var error = new Error( + 'PKCS#12 EncryptedContentInfo ContentType is not Data.'); + error.oid = oid; + throw error; + } + + // get cipher + oid = asn1.derToOid(capture.encAlgorithm); + var cipher = pki.pbe.getCipher(oid, capture.encParameter, password); + + // get encrypted data + var encryptedContentAsn1 = _decodePkcs7Data(capture.encryptedContentAsn1); + var encrypted = forge.util.createBuffer(encryptedContentAsn1.value); + + cipher.update(encrypted); + if(!cipher.finish()) { + throw new Error('Failed to decrypt PKCS#12 SafeContents.'); + } + + return cipher.output.getBytes(); +} + +/** + * Decode PKCS#12 SafeContents (BER-encoded) into array of Bag objects. + * + * The safeContents is a BER-encoded SEQUENCE OF SafeBag. + * + * @param {String} safeContents BER-encoded safeContents. + * @param strict true to use strict DER decoding, false not to. + * @param {String} password Password to decrypt with (optional). + * + * @return {Array} Array of Bag objects. + */ +function _decodeSafeContents(safeContents, strict, password) { + // if strict and no safe contents, return empty safes + if(!strict && safeContents.length === 0) { + return []; + } + + // actually it's BER-encoded + safeContents = asn1.fromDer(safeContents, strict); + + if(safeContents.tagClass !== asn1.Class.UNIVERSAL || + safeContents.type !== asn1.Type.SEQUENCE || + safeContents.constructed !== true) { + throw new Error( + 'PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.'); + } + + var res = []; + for(var i = 0; i < safeContents.value.length; i++) { + var safeBag = safeContents.value[i]; + + // validate SafeBag and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(safeBag, safeBagValidator, capture, errors)) { + var error = new Error('Cannot read SafeBag.'); + error.errors = errors; + throw error; + } + + /* Create bag object and push to result array. */ + var bag = { + type: asn1.derToOid(capture.bagId), + attributes: _decodeBagAttributes(capture.bagAttributes) + }; + res.push(bag); + + var validator, decoder; + var bagAsn1 = capture.bagValue.value[0]; + switch(bag.type) { + case pki.oids.pkcs8ShroudedKeyBag: + /* bagAsn1 has a EncryptedPrivateKeyInfo, which we need to decrypt. + Afterwards we can handle it like a keyBag, + which is a PrivateKeyInfo. */ + bagAsn1 = pki.decryptPrivateKeyInfo(bagAsn1, password); + if(bagAsn1 === null) { + throw new Error( + 'Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?'); } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + + /* fall through */ + case pki.oids.keyBag: + /* A PKCS#12 keyBag is a simple PrivateKeyInfo as understood by our + PKI module, hence we don't have to do validation/capturing here, + just pass what we already got. */ + try { + bag.key = pki.privateKeyFromAsn1(bagAsn1); + } catch(e) { + // ignore unknown key type, pass asn1 value + bag.key = null; + bag.asn1 = bagAsn1; } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, + continue; /* Nothing more to do. */ + + case pki.oids.certBag: + /* A PKCS#12 certBag can wrap both X.509 and sdsi certificates. + Therefore put the SafeBag content through another validator to + capture the fields. Afterwards check & store the results. */ + validator = certBagValidator; + decoder = function() { + if(asn1.derToOid(capture.certId) !== pki.oids.x509Certificate) { + var error = new Error( + 'Unsupported certificate type, only X.509 supported.'); + error.oid = asn1.derToOid(capture.certId); + throw error; + } + + // true=produce cert hash + var certAsn1 = asn1.fromDer(capture.cert, strict); + try { + bag.cert = pki.certificateFromAsn1(certAsn1, true); + } catch(e) { + // ignore unknown cert type, pass asn1 value + bag.cert = null; + bag.asn1 = certAsn1; + } + }; + break; + + default: + var error = new Error('Unsupported PKCS#12 SafeBag type.'); + error.oid = bag.type; + throw error; + } + + /* Validate SafeBag value (i.e. CertBag, etc.) and capture data if needed. */ + if(validator !== undefined && + !asn1.validate(bagAsn1, validator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 ' + validator.name); + error.errors = errors; + throw error; + } + + /* Call decoder function from above to store the results. */ + decoder(); + } + + return res; +} + +/** + * Decode PKCS#12 SET OF PKCS12Attribute into JavaScript object. + * + * @param attributes SET OF PKCS12Attribute (ASN.1 object). + * + * @return the decoded attributes. + */ +function _decodeBagAttributes(attributes) { + var decodedAttrs = {}; + + if(attributes !== undefined) { + for(var i = 0; i < attributes.length; ++i) { + var capture = {}; + var errors = []; + if(!asn1.validate(attributes[i], attributeValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 BagAttribute.'); + error.errors = errors; + throw error; + } + + var oid = asn1.derToOid(capture.oid); + if(pki.oids[oid] === undefined) { + // unsupported attribute type, ignore. + continue; + } + + decodedAttrs[pki.oids[oid]] = []; + for(var j = 0; j < capture.values.length; ++j) { + decodedAttrs[pki.oids[oid]].push(capture.values[j].value); + } + } + } + + return decodedAttrs; +} + +/** + * Wraps a private key and certificate in a PKCS#12 PFX wrapper. If a + * password is provided then the private key will be encrypted. + * + * An entire certificate chain may also be included. To do this, pass + * an array for the "cert" parameter where the first certificate is + * the one that is paired with the private key and each subsequent one + * verifies the previous one. The certificates may be in PEM format or + * have been already parsed by Forge. + * + * @todo implement password-based-encryption for the whole package + * + * @param key the private key. + * @param cert the certificate (may be an array of certificates in order + * to specify a certificate chain). + * @param password the password to use, null for none. + * @param options: + * algorithm the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. + * count the iteration count to use. + * saltSize the salt size to use. + * useMac true to include a MAC, false not to, defaults to true. + * localKeyId the local key ID to use, in hex. + * friendlyName the friendly name to use. + * generateLocalKeyId true to generate a random local key ID, + * false not to, defaults to true. + * + * @return the PKCS#12 PFX ASN.1 object. + */ +p12.toPkcs12Asn1 = function(key, cert, password, options) { + // set default options + options = options || {}; + options.saltSize = options.saltSize || 8; + options.count = options.count || 2048; + options.algorithm = options.algorithm || options.encAlgorithm || 'aes128'; + if(!('useMac' in options)) { + options.useMac = true; + } + if(!('localKeyId' in options)) { + options.localKeyId = null; + } + if(!('generateLocalKeyId' in options)) { + options.generateLocalKeyId = true; + } + + var localKeyId = options.localKeyId; + var bagAttrs; + if(localKeyId !== null) { + localKeyId = forge.util.hexToBytes(localKeyId); + } else if(options.generateLocalKeyId) { + // use SHA-1 of paired cert, if available + if(cert) { + var pairedCert = forge.util.isArray(cert) ? cert[0] : cert; + if(typeof pairedCert === 'string') { + pairedCert = pki.certificateFromPem(pairedCert); + } + var sha1 = forge.md.sha1.create(); + sha1.update(asn1.toDer(pki.certificateToAsn1(pairedCert)).getBytes()); + localKeyId = sha1.digest().getBytes(); + } else { + // FIXME: consider using SHA-1 of public key (which can be generated + // from private key components), see: cert.generateSubjectKeyIdentifier + // generate random bytes + localKeyId = forge.random.getBytes(20); + } + } + + var attrs = []; + if(localKeyId !== null) { + attrs.push( + // localKeyID + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // attrId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.localKeyId).getBytes()), + // attrValues + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + localKeyId) + ]) + ])); + } + if('friendlyName' in options) { + attrs.push( + // friendlyName + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // attrId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.friendlyName).getBytes()), + // attrValues + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BMPSTRING, false, + options.friendlyName) + ]) + ])); + } + + if(attrs.length > 0) { + bagAttrs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, attrs); + } + + // collect contents for AuthenticatedSafe + var contents = []; + + // create safe bag(s) for certificate chain + var chain = []; + if(cert !== null) { + if(forge.util.isArray(cert)) { + chain = cert; + } else { + chain = [cert]; + } + } + + var certSafeBags = []; + for(var i = 0; i < chain.length; ++i) { + // convert cert from PEM as necessary + cert = chain[i]; + if(typeof cert === 'string') { + cert = pki.certificateFromPem(cert); + } + + // SafeBag + var certBagAttrs = (i === 0) ? bagAttrs : undefined; + var certAsn1 = pki.certificateToAsn1(cert); + var certSafeBag = + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.certBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // CertBag + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // certId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.x509Certificate).getBytes()), + // certValue (x509Certificate) + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(certAsn1).getBytes()) + ])])]), + // bagAttributes (OPTIONAL) + certBagAttrs + ]); + certSafeBags.push(certSafeBag); + } + + if(certSafeBags.length > 0) { + // SafeContents + var certSafeContents = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, certSafeBags); + + // ContentInfo + var certCI = + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(certSafeContents).getBytes()) + ]) + ]); + contents.push(certCI); + } + + // create safe contents for private key + var keyBag = null; + if(key !== null) { + // SafeBag + var pkAsn1 = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(key)); + if(password === null) { + // no encryption + keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.keyBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // PrivateKeyInfo + pkAsn1 + ]), + // bagAttributes (OPTIONAL) + bagAttrs + ]); + } else { + // encrypted PrivateKeyInfo + keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.pkcs8ShroudedKeyBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // EncryptedPrivateKeyInfo + pki.encryptPrivateKeyInfo(pkAsn1, password, options) + ]), + // bagAttributes (OPTIONAL) + bagAttrs + ]); + } + + // SafeContents + var keySafeContents = + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [keyBag]); + + // ContentInfo + var keyCI = + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(keySafeContents).getBytes()) + ]) + ]); + contents.push(keyCI); + } + + // create AuthenticatedSafe by stringing together the contents + var safe = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, contents); + + var macData; + if(options.useMac) { + // MacData + var sha1 = forge.md.sha1.create(); + var macSalt = new forge.util.ByteBuffer( + forge.random.getBytes(options.saltSize)); + var count = options.count; + // 160-bit key + var key = p12.generateKey(password, macSalt, 3, count, 20); + var mac = forge.hmac.create(); + mac.start(sha1, key); + mac.update(asn1.toDer(safe).getBytes()); + var macValue = mac.getMac(); + macData = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // mac DigestInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // digestAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm = SHA-1 + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.sha1).getBytes()), + // parameters = Null + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // digest + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, + false, macValue.getBytes()) + ]), + // macSalt OCTET STRING + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, macSalt.getBytes()), + // iterations INTEGER (XXX: Only support count < 65536) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(count).getBytes() + ) + ]); + } + + // PFX + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (3) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(3).getBytes()), + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(safe).getBytes()) + ]) + ]), + macData + ]); +}; + +/** + * Derives a PKCS#12 key. + * + * @param password the password to derive the key material from, null or + * undefined for none. + * @param salt the salt, as a ByteBuffer, to use. + * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). + * @param iter the iteration count. + * @param n the number of bytes to derive from the password. + * @param md the message digest to use, defaults to SHA-1. + * + * @return a ByteBuffer with the bytes derived from the password. + */ +p12.generateKey = forge.pbe.generatePkcs12Key; + + +/***/ }), + +/***/ 7999: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.area120tables_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var area120tables_v1alpha1; +(function (area120tables_v1alpha1) { + /** + * Area120 Tables API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const area120tables = google.area120tables('v1alpha1'); + * ``` + */ + class Area120tables { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.tables = new Resource$Tables(this.context); + this.workspaces = new Resource$Workspaces(this.context); } } - compute_v1.Resource$Sslcertificates = Resource$Sslcertificates; - class Resource$Sslpolicies { + area120tables_v1alpha1.Area120tables = Area120tables; + class Resource$Tables { 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.rows = new Resource$Tables$Rows(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -217662,54 +478085,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), - params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -217724,25 +478115,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/tables').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + } + area120tables_v1alpha1.Resource$Tables = Resource$Tables; + class Resource$Tables$Rows { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217755,26 +478152,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217787,32 +478183,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Sslpolicies = Resource$Sslpolicies; - class Resource$Subnetworks { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217825,25 +478214,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217856,26 +478245,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217888,23 +478276,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -217919,28 +478306,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -217951,26 +478336,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217983,26 +478367,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + area120tables_v1alpha1.Resource$Tables$Rows = Resource$Tables$Rows; + class Resource$Workspaces { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -218014,28 +478403,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -218046,26 +478433,94 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/workspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + area120tables_v1alpha1.Resource$Workspaces = Resource$Workspaces; +})(area120tables_v1alpha1 = exports.area120tables_v1alpha1 || (exports.area120tables_v1alpha1 = {})); + + +/***/ }), + +/***/ 8000: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.apigateway_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var apigateway_v1; +(function (apigateway_v1) { + /** + * API Gateway API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const apigateway = google.apigateway('v1'); + * ``` + */ + class Apigateway { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + apigateway_v1.Apigateway = Apigateway; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + apigateway_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.apis = new Resource$Projects$Locations$Apis(this.context); + this.gateways = new Resource$Projects$Locations$Gateways(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218078,26 +478533,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218110,26 +478564,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + } + apigateway_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Apis { + constructor(context) { + this.context = context; + this.configs = new Resource$Projects$Locations$Apis$Configs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218142,26 +478602,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218174,32 +478633,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Subnetworks = Resource$Subnetworks; - class Resource$Targethttpproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218212,26 +478664,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218244,26 +478695,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218276,26 +478726,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218308,26 +478757,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218340,64 +478788,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Targethttpproxies = Resource$Targethttpproxies; - class Resource$Targethttpsproxies { + apigateway_v1.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; + class Resource$Projects$Locations$Apis$Configs { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218410,23 +478857,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -218442,23 +478888,22 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -218474,55 +478919,54 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -218538,26 +478982,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218570,90 +479013,95 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + } + apigateway_v1.Resource$Projects$Locations$Apis$Configs = Resource$Projects$Locations$Apis$Configs; + class Resource$Projects$Locations$Gateways { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218666,32 +479114,56 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targethttpsproxies = Resource$Targethttpsproxies; - class Resource$Targetinstances { - 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://apigateway.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218704,26 +479176,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218736,26 +479207,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218768,26 +479238,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218800,26 +479269,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218832,32 +479300,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://apigateway.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Targetinstances = Resource$Targetinstances; - class Resource$Targetpools { + apigateway_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218870,26 +479369,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addInstance(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218902,26 +479400,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218934,25 +479431,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218965,26 +479462,84 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + apigateway_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apigateway_v1 = exports.apigateway_v1 || (exports.apigateway_v1 = {})); + + +/***/ }), + +/***/ 8001: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.policytroubleshooter_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var policytroubleshooter_v1; +(function (policytroubleshooter_v1) { + /** + * Policy Troubleshooter API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const policytroubleshooter = google.policytroubleshooter('v1'); + * ``` + */ + class Policytroubleshooter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iam = new Resource$Iam(this.context); + } + } + policytroubleshooter_v1.Policytroubleshooter = Policytroubleshooter; + class Resource$Iam { + constructor(context) { + this.context = context; + } + troubleshoot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -218996,26 +479551,139 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policytroubleshooter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + policytroubleshooter_v1.Resource$Iam = Resource$Iam; +})(policytroubleshooter_v1 = exports.policytroubleshooter_v1 || (exports.policytroubleshooter_v1 = {})); + + +/***/ }), + +/***/ 8002: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const os = __webpack_require__(2087); +const macosRelease = __webpack_require__(6118); +const winRelease = __webpack_require__(8049); + +const osName = (platform, release) => { + if (!platform && release) { + throw new Error('You can\'t specify a `release` without specifying `platform`'); + } + + platform = platform || os.platform(); + + let id; + + if (platform === 'darwin') { + if (!release && os.platform() === 'darwin') { + release = os.release(); + } + + const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS'; + id = release ? macosRelease(release).name : ''; + return prefix + (id ? ' ' + id : ''); + } + + if (platform === 'linux') { + if (!release && os.platform() === 'linux') { + release = os.release(); + } + + id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : ''; + return 'Linux' + (id ? ' ' + id : ''); + } + + if (platform === 'win32') { + if (!release && os.platform() === 'win32') { + release = os.release(); + } + + id = release ? winRelease(release) : ''; + return 'Windows' + (id ? ' ' + id : ''); + } + + return platform; +}; + +module.exports = osName; + + +/***/ }), + +/***/ 8004: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.playablelocations_v3 = 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 = __webpack_require__(927); +var playablelocations_v3; +(function (playablelocations_v3) { + /** + * Playable Locations API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const playablelocations = google.playablelocations('v3'); + * ``` + */ + class Playablelocations { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v3 = new Resource$V3(this.context); + } + } + playablelocations_v3.Playablelocations = Playablelocations; + class Resource$V3 { + constructor(context) { + this.context = context; + } + logImpressions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219028,26 +479696,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playablelocations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3:logImpressions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + logPlayerReports(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219060,27 +479727,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playablelocations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3:logPlayerReports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + samplePlayableLocations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219091,26 +479758,213 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playablelocations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3:samplePlayableLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + } + playablelocations_v3.Resource$V3 = Resource$V3; +})(playablelocations_v3 = exports.playablelocations_v3 || (exports.playablelocations_v3 = {})); + + +/***/ }), + +/***/ 8013: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.analyticsdata_v1beta = exports.analyticsdata_v1alpha = exports.auth = exports.analyticsdata = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha_1 = __webpack_require__(8894); +Object.defineProperty(exports, "analyticsdata_v1alpha", { enumerable: true, get: function () { return v1alpha_1.analyticsdata_v1alpha; } }); +const v1beta_1 = __webpack_require__(1372); +Object.defineProperty(exports, "analyticsdata_v1beta", { enumerable: true, get: function () { return v1beta_1.analyticsdata_v1beta; } }); +exports.VERSIONS = { + v1alpha: v1alpha_1.analyticsdata_v1alpha.Analyticsdata, + v1beta: v1beta_1.analyticsdata_v1beta.Analyticsdata, +}; +function analyticsdata(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('analyticsdata', versionOrOptions, exports.VERSIONS, this); +} +exports.analyticsdata = analyticsdata; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8015: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.advisorynotifications_v1 = exports.auth = exports.advisorynotifications = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6938); +Object.defineProperty(exports, "advisorynotifications_v1", { enumerable: true, get: function () { return v1_1.advisorynotifications_v1; } }); +exports.VERSIONS = { + v1: v1_1.advisorynotifications_v1.Advisorynotifications, +}; +function advisorynotifications(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('advisorynotifications', versionOrOptions, exports.VERSIONS, this); +} +exports.advisorynotifications = advisorynotifications; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8019: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = authenticationPlugin; + +const { Deprecation } = __webpack_require__(7692); +const once = __webpack_require__(6049); + +const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation)); + +const authenticate = __webpack_require__(2674); +const beforeRequest = __webpack_require__(1471); +const requestError = __webpack_require__(2349); + +function authenticationPlugin(octokit, options) { + if (options.auth) { + octokit.authenticate = () => { + deprecateAuthenticate( + octokit.log, + new Deprecation( + '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor' + ) + ); + }; + return; + } + const state = { + octokit, + auth: false + }; + octokit.authenticate = authenticate.bind(null, state); + octokit.hook.before("request", beforeRequest.bind(null, state)); + octokit.hook.error("request", requestError.bind(null, state)); +} + + +/***/ }), + +/***/ 8021: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.securitycenter_v1p1alpha1 = 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 = __webpack_require__(927); +var securitycenter_v1p1alpha1; +(function (securitycenter_v1p1alpha1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1p1alpha1'); + * + * @namespace securitycenter + * @type {Function} + * @version v1p1alpha1 + * @variation v1p1alpha1 + * @param {object=} options Options for Securitycenter + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1p1alpha1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Operations(this.context); + } + } + securitycenter_v1p1alpha1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219123,26 +479977,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstance(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219155,26 +480008,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackup(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219187,32 +480039,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targetpools = Resource$Targetpools; - class Resource$Targetsslproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219225,26 +480070,88 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1p1alpha1.Resource$Organizations$Operations = Resource$Organizations$Operations; +})(securitycenter_v1p1alpha1 = exports.securitycenter_v1p1alpha1 || (exports.securitycenter_v1p1alpha1 = {})); + + +/***/ }), + +/***/ 8027: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.searchconsole_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var searchconsole_v1; +(function (searchconsole_v1) { + /** + * Google Search Console API + * + * The Search Console API provides access to both Search Console data (verified users only) and to public information on an URL basis (anyone) + * + * @example + * ```js + * const {google} = require('googleapis'); + * const searchconsole = google.searchconsole('v1'); + * ``` + */ + class Searchconsole { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.searchanalytics = new Resource$Searchanalytics(this.context); + this.sitemaps = new Resource$Sitemaps(this.context); + this.sites = new Resource$Sites(this.context); + this.urlInspection = new Resource$Urlinspection(this.context); + this.urlTestingTools = new Resource$Urltestingtools(this.context); + } + } + searchconsole_v1.Searchconsole = Searchconsole; + class Resource$Searchanalytics { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219257,28 +480164,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + searchconsole_v1.Resource$Searchanalytics = Resource$Searchanalytics; + class Resource$Sitemaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219289,27 +480200,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219320,27 +480230,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219351,28 +480260,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219383,28 +480290,32 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + searchconsole_v1.Resource$Sitemaps = Resource$Sitemaps; + class Resource$Sites { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219415,28 +480326,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219447,34 +480356,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targetsslproxies = Resource$Targetsslproxies; - class Resource$Targettcpproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219485,28 +480386,26 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219517,26 +480416,38 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + searchconsole_v1.Resource$Sites = Resource$Sites; + class Resource$Urlinspection { + constructor(context) { + this.context = context; + this.index = new Resource$Urlinspection$Index(this.context); + } + } + searchconsole_v1.Resource$Urlinspection = Resource$Urlinspection; + class Resource$Urlinspection$Index { + constructor(context) { + this.context = context; + } + inspect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219549,25 +480460,38 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/urlInspection/index:inspect').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + searchconsole_v1.Resource$Urlinspection$Index = Resource$Urlinspection$Index; + class Resource$Urltestingtools { + constructor(context) { + this.context = context; + this.mobileFriendlyTest = new Resource$Urltestingtools$Mobilefriendlytest(this.context); + } + } + searchconsole_v1.Resource$Urltestingtools = Resource$Urltestingtools; + class Resource$Urltestingtools$Mobilefriendlytest { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219580,27 +480504,125 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/urlTestingTools/mobileFriendlyTest:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + searchconsole_v1.Resource$Urltestingtools$Mobilefriendlytest = Resource$Urltestingtools$Mobilefriendlytest; +})(searchconsole_v1 = exports.searchconsole_v1 || (exports.searchconsole_v1 = {})); + + +/***/ }), + +/***/ 8032: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.localservices_v1 = exports.auth = exports.localservices = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1525); +Object.defineProperty(exports, "localservices_v1", { enumerable: true, get: function () { return v1_1.localservices_v1; } }); +exports.VERSIONS = { + v1: v1_1.localservices_v1.Localservices, +}; +function localservices(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('localservices', versionOrOptions, exports.VERSIONS, this); +} +exports.localservices = localservices; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8034: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebaserules_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebaserules_v1; +(function (firebaserules_v1) { + /** + * Firebase Rules API + * + * Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebaserules = google.firebaserules('v1'); + * ``` + */ + class Firebaserules { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firebaserules_v1.Firebaserules = Firebaserules; + class Resource$Projects { + constructor(context) { + this.context = context; + this.releases = new Resource$Projects$Releases(this.context); + this.rulesets = new Resource$Projects$Rulesets(this.context); + } + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219611,26 +480633,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:test').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + } + firebaserules_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Releases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219643,32 +480670,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targettcpproxies = Resource$Targettcpproxies; - class Resource$Targetvpngateways { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219681,26 +480701,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219713,26 +480732,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getExecutable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219745,26 +480763,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getExecutable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219777,26 +480794,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219809,32 +480825,31 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Targetvpngateways = Resource$Targetvpngateways; - class Resource$Urlmaps { + firebaserules_v1.Resource$Projects$Releases = Resource$Projects$Releases; + class Resource$Projects$Rulesets { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219847,26 +480862,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219877,26 +480893,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219907,26 +480924,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219937,27 +480955,85 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + firebaserules_v1.Resource$Projects$Rulesets = Resource$Projects$Rulesets; +})(firebaserules_v1 = exports.firebaserules_v1 || (exports.firebaserules_v1 = {})); + + +/***/ }), + +/***/ 8039: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.videointelligence_v1p2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var videointelligence_v1p2beta1; +(function (videointelligence_v1p2beta1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1p2beta1'); + * ``` + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1p2beta1.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219968,27 +481044,201 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + videointelligence_v1p2beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p2beta1 = exports.videointelligence_v1p2beta1 || (exports.videointelligence_v1p2beta1 = {})); + + +/***/ }), + +/***/ 8049: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +const os = __webpack_require__(2087); +const execa = __webpack_require__(4675); + +// Reference: https://www.gaijin.at/en/lstwinver.php +const names = new Map([ + ['10.0', '10'], + ['6.3', '8.1'], + ['6.2', '8'], + ['6.1', '7'], + ['6.0', 'Vista'], + ['5.2', 'Server 2003'], + ['5.1', 'XP'], + ['5.0', '2000'], + ['4.9', 'ME'], + ['4.1', '98'], + ['4.0', '95'] +]); + +const windowsRelease = release => { + const version = /\d+\.\d/.exec(release || os.release()); + + if (release && !version) { + throw new Error('`release` argument doesn\'t match `n.n`'); + } + + const ver = (version || [])[0]; + + // Server 2008, 2012, 2016, and 2019 versions are ambiguous with desktop versions and must be detected at runtime. + // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version + // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx + // If `wmic` is obsoloete (later versions of Windows 10), use PowerShell instead. + // If the resulting caption contains the year 2008, 2012, 2016 or 2019, it is a server version, so return a server OS name. + if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) { + let stdout; + try { + stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || ''; + } catch (_) { + stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || ''; + } + + const year = (stdout.match(/2008|2012|2016|2019/) || [])[0]; + + if (year) { + return `Server ${year}`; + } + } + + return names.get(ver); +}; + +module.exports = windowsRelease; + + +/***/ }), + +/***/ 8053: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.gmailpostmastertools_v1beta1 = exports.gmailpostmastertools_v1 = exports.auth = exports.gmailpostmastertools = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(118); +Object.defineProperty(exports, "gmailpostmastertools_v1", { enumerable: true, get: function () { return v1_1.gmailpostmastertools_v1; } }); +const v1beta1_1 = __webpack_require__(2606); +Object.defineProperty(exports, "gmailpostmastertools_v1beta1", { enumerable: true, get: function () { return v1beta1_1.gmailpostmastertools_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.gmailpostmastertools_v1.Gmailpostmastertools, + v1beta1: v1beta1_1.gmailpostmastertools_v1beta1.Gmailpostmastertools, +}; +function gmailpostmastertools(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gmailpostmastertools', versionOrOptions, exports.VERSIONS, this); +} +exports.gmailpostmastertools = gmailpostmastertools; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8066: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.migrationcenter_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var migrationcenter_v1alpha1; +(function (migrationcenter_v1alpha1) { + /** + * Migration Center API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const migrationcenter = google.migrationcenter('v1alpha1'); + * ``` + */ + class Migrationcenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + migrationcenter_v1alpha1.Migrationcenter = Migrationcenter; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + migrationcenter_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.assets = new Resource$Projects$Locations$Assets(this.context); + this.groups = new Resource$Projects$Locations$Groups(this.context); + this.importJobs = new Resource$Projects$Locations$Importjobs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.preferenceSets = new Resource$Projects$Locations$Preferencesets(this.context); + this.reportConfigs = new Resource$Projects$Locations$Reportconfigs(this.context); + this.sources = new Resource$Projects$Locations$Sources(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -219999,26 +481249,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220029,26 +481280,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220059,26 +481311,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220089,63 +481342,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Urlmaps = Resource$Urlmaps; - class Resource$Vpngateways { + migrationcenter_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Assets { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + aggregateValues(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/assets:aggregateValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220158,27 +481411,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/assets:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220189,26 +481442,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/assets:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220221,26 +481473,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220253,27 +481504,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220284,26 +481535,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220316,64 +481566,63 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + reportAssetFrames(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/assets:reportAssetFrames').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Vpngateways = Resource$Vpngateways; - class Resource$Vpntunnels { + migrationcenter_v1alpha1.Resource$Projects$Locations$Assets = Resource$Projects$Locations$Assets; + class Resource$Projects$Locations$Groups { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + addAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220386,25 +481635,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+group}:addAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220417,57 +481666,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220480,63 +481697,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Vpntunnels = Resource$Vpntunnels; - class Resource$Zoneoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220549,26 +481728,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220581,26 +481759,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220613,25 +481790,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + removeAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220644,33 +481821,35 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+group}:removeAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_v1.Resource$Zoneoperations = Resource$Zoneoperations; - class Resource$Zones { + migrationcenter_v1alpha1.Resource$Projects$Locations$Groups = Resource$Projects$Locations$Groups; + class Resource$Projects$Locations$Importjobs { constructor(context) { this.context = context; + this.importDataFiles = + new Resource$Projects$Locations$Importjobs$Importdatafiles(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220681,26 +481860,27 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220711,91 +481891,25 @@ var compute_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Zones = Resource$Zones; -})(compute_v1 = exports.compute_v1 || (exports.compute_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 636 */, -/* 637 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.translate_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 = __webpack_require__(927); -var translate_v2; -(function (translate_v2) { - /** - * Google Cloud Translation API - * - * The Google Cloud Translation API lets websites and programs integrate with Google Translate programmatically. - * - * @example - * const {google} = require('googleapis'); - * const translate = google.translate('v2'); - * - * @namespace translate - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Translate - */ - class Translate { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.detections = new Resource$Detections(this.context); - this.languages = new Resource$Languages(this.context); - this.translations = new Resource$Translations(this.context); - } - } - translate_v2.Translate = Translate; - class Resource$Detections { - constructor(context) { - this.context = context; - } - detect(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220808,26 +481922,27 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220838,32 +481953,27 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['q'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - translate_v2.Resource$Detections = Resource$Detections; - class Resource$Languages { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -220874,31 +481984,25 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2/languages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - translate_v2.Resource$Languages = Resource$Languages; - class Resource$Translations { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220911,25 +482015,25 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['q', 'target'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translate(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220942,827 +482046,145 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - translate_v2.Resource$Translations = Resource$Translations; -})(translate_v2 = exports.translate_v2 || (exports.translate_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 638 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of ASN.1 validators for PKCS#7 v1.5. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2012-2015 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * The ASN.1 representation of PKCS#7 is as follows - * (see RFC #2315 for details, http://www.ietf.org/rfc/rfc2315.txt): - * - * A PKCS#7 message consists of a ContentInfo on root level, which may - * contain any number of further ContentInfo nested into it. - * - * ContentInfo ::= SEQUENCE { - * contentType ContentType, - * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL - * } - * - * ContentType ::= OBJECT IDENTIFIER - * - * EnvelopedData ::= SEQUENCE { - * version Version, - * recipientInfos RecipientInfos, - * encryptedContentInfo EncryptedContentInfo - * } - * - * EncryptedData ::= SEQUENCE { - * version Version, - * encryptedContentInfo EncryptedContentInfo - * } - * - * id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) - * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } - * - * SignedData ::= SEQUENCE { - * version INTEGER, - * digestAlgorithms DigestAlgorithmIdentifiers, - * contentInfo ContentInfo, - * certificates [0] IMPLICIT Certificates OPTIONAL, - * crls [1] IMPLICIT CertificateRevocationLists OPTIONAL, - * signerInfos SignerInfos - * } - * - * SignerInfos ::= SET OF SignerInfo - * - * SignerInfo ::= SEQUENCE { - * version Version, - * issuerAndSerialNumber IssuerAndSerialNumber, - * digestAlgorithm DigestAlgorithmIdentifier, - * authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, - * digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, - * encryptedDigest EncryptedDigest, - * unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL - * } - * - * EncryptedDigest ::= OCTET STRING - * - * Attributes ::= SET OF Attribute - * - * Attribute ::= SEQUENCE { - * attrType OBJECT IDENTIFIER, - * attrValues SET OF AttributeValue - * } - * - * AttributeValue ::= ANY - * - * Version ::= INTEGER - * - * RecipientInfos ::= SET OF RecipientInfo - * - * EncryptedContentInfo ::= SEQUENCE { - * contentType ContentType, - * contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, - * encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL - * } - * - * ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters - * for the algorithm, if any. In the case of AES and DES3, there is only one, - * the IV. - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * EncryptedContent ::= OCTET STRING - * - * RecipientInfo ::= SEQUENCE { - * version Version, - * issuerAndSerialNumber IssuerAndSerialNumber, - * keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, - * encryptedKey EncryptedKey - * } - * - * IssuerAndSerialNumber ::= SEQUENCE { - * issuer Name, - * serialNumber CertificateSerialNumber - * } - * - * CertificateSerialNumber ::= INTEGER - * - * KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * EncryptedKey ::= OCTET STRING - */ -var forge = __webpack_require__(239); -__webpack_require__(784); -__webpack_require__(54); - -// shortcut for ASN.1 API -var asn1 = forge.asn1; - -// shortcut for PKCS#7 API -var p7v = module.exports = forge.pkcs7asn1 = forge.pkcs7asn1 || {}; -forge.pkcs7 = forge.pkcs7 || {}; -forge.pkcs7.asn1 = p7v; - -var contentInfoValidator = { - name: 'ContentInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'ContentInfo.ContentType', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'contentType' - }, { - name: 'ContentInfo.content', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - captureAsn1: 'content' - }] -}; -p7v.contentInfoValidator = contentInfoValidator; - -var encryptedContentInfoValidator = { - name: 'EncryptedContentInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedContentInfo.contentType', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'contentType' - }, { - name: 'EncryptedContentInfo.contentEncryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedContentInfo.contentEncryptionAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encAlgorithm' - }, { - name: 'EncryptedContentInfo.contentEncryptionAlgorithm.parameter', - tagClass: asn1.Class.UNIVERSAL, - captureAsn1: 'encParameter' - }] - }, { - name: 'EncryptedContentInfo.encryptedContent', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - /* The PKCS#7 structure output by OpenSSL somewhat differs from what - * other implementations do generate. - * - * OpenSSL generates a structure like this: - * SEQUENCE { - * ... - * [0] - * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 - * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 - * ... - * } - * - * Whereas other implementations (and this PKCS#7 module) generate: - * SEQUENCE { - * ... - * [0] { - * OCTET STRING - * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 - * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 - * ... - * } - * } - * - * In order to support both, we just capture the context specific - * field here. The OCTET STRING bit is removed below. - */ - capture: 'encryptedContent', - captureAsn1: 'encryptedContentAsn1' - }] -}; - -p7v.envelopedDataValidator = { - name: 'EnvelopedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EnvelopedData.Version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, { - name: 'EnvelopedData.RecipientInfos', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - captureAsn1: 'recipientInfos' - }].concat(encryptedContentInfoValidator) -}; - -p7v.encryptedDataValidator = { - name: 'EncryptedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedData.Version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }].concat(encryptedContentInfoValidator) -}; - -var signerValidator = { - name: 'SignerInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignerInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false - }, { - name: 'SignerInfo.issuerAndSerialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignerInfo.issuerAndSerialNumber.issuer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'issuer' - }, { - name: 'SignerInfo.issuerAndSerialNumber.serialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'serial' - }] - }, { - name: 'SignerInfo.digestAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignerInfo.digestAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'digestAlgorithm' - }, { - name: 'SignerInfo.digestAlgorithm.parameter', - tagClass: asn1.Class.UNIVERSAL, - constructed: false, - captureAsn1: 'digestParameter', - optional: true - }] - }, { - name: 'SignerInfo.authenticatedAttributes', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - capture: 'authenticatedAttributes' - }, { - name: 'SignerInfo.digestEncryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - capture: 'signatureAlgorithm' - }, { - name: 'SignerInfo.encryptedDigest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'signature' - }, { - name: 'SignerInfo.unauthenticatedAttributes', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - constructed: true, - optional: true, - capture: 'unauthenticatedAttributes' - }] -}; - -p7v.signedDataValidator = { - name: 'SignedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignedData.Version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, { - name: 'SignedData.DigestAlgorithms', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - captureAsn1: 'digestAlgorithms' - }, - contentInfoValidator, - { - name: 'SignedData.Certificates', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - optional: true, - captureAsn1: 'certificates' - }, { - name: 'SignedData.CertificateRevocationLists', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - optional: true, - captureAsn1: 'crls' - }, { - name: 'SignedData.SignerInfos', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - capture: 'signerInfos', - optional: true, - value: [signerValidator] - }] -}; - -p7v.recipientInfoValidator = { - name: 'RecipientInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'RecipientInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, { - name: 'RecipientInfo.issuerAndSerial', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'RecipientInfo.issuerAndSerial.issuer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'issuer' - }, { - name: 'RecipientInfo.issuerAndSerial.serialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'serial' - }] - }, { - name: 'RecipientInfo.keyEncryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'RecipientInfo.keyEncryptionAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encAlgorithm' - }, { - name: 'RecipientInfo.keyEncryptionAlgorithm.parameter', - tagClass: asn1.Class.UNIVERSAL, - constructed: false, - captureAsn1: 'encParameter' - }] - }, { - name: 'RecipientInfo.encryptedKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encKey' - }] -}; - - -/***/ }), -/* 639 */, -/* 640 */, -/* 641 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.indexing_v3 = 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 = __webpack_require__(927); -var indexing_v3; -(function (indexing_v3) { - /** - * Indexing API - * - * Notifies Google when your web pages change. - * - * @example - * const {google} = require('googleapis'); - * const indexing = google.indexing('v3'); - * - * @namespace indexing - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Indexing - */ - class Indexing { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.urlNotifications = new Resource$Urlnotifications(this.context); - } - } - indexing_v3.Indexing = Indexing; - class Resource$Urlnotifications { + migrationcenter_v1alpha1.Resource$Projects$Locations$Importjobs = Resource$Projects$Locations$Importjobs; + class Resource$Projects$Locations$Importjobs$Importdatafiles { constructor(context) { this.context = context; } - getMetadata(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/urlNotifications/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/importDataFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/urlNotifications:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - indexing_v3.Resource$Urlnotifications = Resource$Urlnotifications; -})(indexing_v3 = exports.indexing_v3 || (exports.indexing_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 642 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -// Copyright 2018 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 }); -async function getRetryConfig(err) { - let config = getConfig(err); - if (!err || !err.config || (!config && !err.config.retry)) { - return { shouldRetry: false }; - } - config = config || {}; - config.currentRetryAttempt = config.currentRetryAttempt || 0; - config.retry = - config.retry === undefined || config.retry === null ? 3 : config.retry; - config.httpMethodsToRetry = config.httpMethodsToRetry || [ - 'GET', - 'HEAD', - 'PUT', - 'OPTIONS', - 'DELETE', - ]; - config.noResponseRetries = - config.noResponseRetries === undefined || config.noResponseRetries === null - ? 2 - : config.noResponseRetries; - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - const retryRanges = [ - // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes - // 1xx - Retry (Informational, request still processing) - // 2xx - Do not retry (Success) - // 3xx - Do not retry (Redirect) - // 4xx - Do not retry (Client errors) - // 429 - Retry ("Too Many Requests") - // 5xx - Retry (Server errors) - [100, 199], - [429, 429], - [500, 599], - ]; - config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; - // Put the config back into the err - err.config.retryConfig = config; - // Determine if we should retry the request - const shouldRetryFn = config.shouldRetry || shouldRetryRequest; - if (!(await shouldRetryFn(err))) { - return { shouldRetry: false, config: err.config }; - } - // Calculate time to wait with exponential backoff. - // Formula: (2^c - 1 / 2) * 1000 - const delay = ((Math.pow(2, config.currentRetryAttempt) - 1) / 2) * 1000; - // We're going to retry! Incremenent the counter. - err.config.retryConfig.currentRetryAttempt += 1; - // Create a promise that invokes the retry after the backOffDelay - const backoff = new Promise(resolve => { - setTimeout(resolve, delay); - }); - // Notify the user if they added an `onRetryAttempt` handler - if (config.onRetryAttempt) { - config.onRetryAttempt(err); - } - // Return the promise in which recalls Gaxios to retry the request - await backoff; - return { shouldRetry: true, config: err.config }; -} -exports.getRetryConfig = getRetryConfig; -/** - * Determine based on config if we should retry the request. - * @param err The GaxiosError passed to the interceptor. - */ -function shouldRetryRequest(err) { - const config = getConfig(err); - // node-fetch raises an AbortError if signaled: - // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal - if (err.name === 'AbortError') { - return false; - } - // If there's no config, or retries are disabled, return. - if (!config || config.retry === 0) { - return false; - } - // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) - if (!err.response && - (config.currentRetryAttempt || 0) >= config.noResponseRetries) { - return false; - } - // Only retry with configured HttpMethods. - if (!err.config.method || - config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { - return false; - } - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - if (err.response && err.response.status) { - let isInRange = false; - for (const [min, max] of config.statusCodesToRetry) { - const status = err.response.status; - if (status >= min && status <= max) { - isInRange = true; - break; + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - if (!isInRange) { - return false; - } - } - // If we are out of retry attempts, return - config.currentRetryAttempt = config.currentRetryAttempt || 0; - if (config.currentRetryAttempt >= config.retry) { - return false; - } - return true; -} -/** - * Acquire the raxConfig object from an GaxiosError if available. - * @param err The Gaxios error with a config object. - */ -function getConfig(err) { - if (err && err.config && err.config.retryConfig) { - return err.config.retryConfig; - } - return; -} -//# sourceMappingURL=retry.js.map - -/***/ }), -/* 643 */, -/* 644 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.containeranalysis_v1beta1 = 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 = __webpack_require__(927); -var containeranalysis_v1beta1; -(function (containeranalysis_v1beta1) { - /** - * Container Analysis API - * - * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. - * - * @example - * const {google} = require('googleapis'); - * const containeranalysis = google.containeranalysis('v1beta1'); - * - * @namespace containeranalysis - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Containeranalysis - */ - class Containeranalysis { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - containeranalysis_v1beta1.Containeranalysis = Containeranalysis; - class Resource$Projects { - constructor(context) { - this.context = context; - this.notes = new Resource$Projects$Notes(this.context); - this.occurrences = new Resource$Projects$Occurrences(this.context); - this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); - } - } - containeranalysis_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Notes { - constructor(context) { - this.context = context; - this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); - } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/importDataFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -221770,13 +482192,19 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + migrationcenter_v1alpha1.Resource$Projects$Locations$Importjobs$Importdatafiles = Resource$Projects$Locations$Importjobs$Importdatafiles; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221789,11 +482217,11 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -221801,13 +482229,13 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221820,11 +482248,11 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -221832,13 +482260,13 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221851,22 +482279,22 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -221882,25 +482310,31 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + migrationcenter_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Preferencesets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221913,25 +482347,25 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/preferenceSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221944,25 +482378,25 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221975,30 +482409,24 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1beta1.Resource$Projects$Notes = Resource$Projects$Notes; - class Resource$Projects$Notes$Occurrences { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -222012,31 +482440,25 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/preferenceSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1beta1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; - class Resource$Projects$Occurrences { - constructor(context) { - this.context = context; - } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222049,24 +482471,31 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + migrationcenter_v1alpha1.Resource$Projects$Locations$Preferencesets = Resource$Projects$Locations$Preferencesets; + class Resource$Projects$Locations$Reportconfigs { + constructor(context) { + this.context = context; + this.reports = new Resource$Projects$Locations$Reportconfigs$Reports(this.context); + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -222080,10 +482509,10 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/reportConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -222092,10 +482521,10 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -222111,10 +482540,10 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -222123,10 +482552,10 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -222142,10 +482571,10 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -222154,13 +482583,13 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222173,149 +482602,165 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/reportConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNotes(paramsOrCallback, optionsOrCallback, callback) { + } + migrationcenter_v1alpha1.Resource$Projects$Locations$Reportconfigs = Resource$Projects$Locations$Reportconfigs; + class Resource$Projects$Locations$Reportconfigs$Reports { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + migrationcenter_v1alpha1.Resource$Projects$Locations$Reportconfigs$Reports = Resource$Projects$Locations$Reportconfigs$Reports; + class Resource$Projects$Locations$Sources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222328,25 +482773,25 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222359,30 +482804,24 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1beta1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; - class Resource$Projects$Scanconfigs { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -222396,10 +482835,10 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -222408,10 +482847,10 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -222427,10 +482866,10 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -222439,13 +482878,13 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222458,11 +482897,11 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -222470,19 +482909,93 @@ var containeranalysis_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - containeranalysis_v1beta1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; -})(containeranalysis_v1beta1 = exports.containeranalysis_v1beta1 || (exports.containeranalysis_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + migrationcenter_v1alpha1.Resource$Projects$Locations$Sources = Resource$Projects$Locations$Sources; +})(migrationcenter_v1alpha1 = exports.migrationcenter_v1alpha1 || (exports.migrationcenter_v1alpha1 = {})); + + +/***/ }), + +/***/ 8078: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _regex = _interopRequireDefault(__webpack_require__(6456)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function validate(uuid) { + return typeof uuid === 'string' && _regex.default.test(uuid); +} + +var _default = validate; +exports.default = _default; + +/***/ }), + +/***/ 8079: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; +/*jshint node:true */ + +var Buffer = __webpack_require__(4293).Buffer; // browserify +var SlowBuffer = __webpack_require__(4293).SlowBuffer; + +module.exports = bufferEq; + +function bufferEq(a, b) { + + // shortcutting on type is necessary for correctness + if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { + return false; + } + + // buffer sizes should be well-known information, so despite this + // shortcutting, it doesn't leak any information about the *contents* of the + // buffers. + if (a.length !== b.length) { + return false; + } + + var c = 0; + for (var i = 0; i < a.length; i++) { + /*jshint bitwise:false */ + c |= a[i] ^ b[i]; // XOR + } + return c === 0; +} + +bufferEq.install = function() { + Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { + return bufferEq(this, that); + }; +}; + +var origBufEqual = Buffer.prototype.equal; +var origSlowBufEqual = SlowBuffer.prototype.equal; +bufferEq.restore = function() { + Buffer.prototype.equal = origBufEqual; + SlowBuffer.prototype.equal = origSlowBufEqual; +}; + /***/ }), -/* 645 */ + +/***/ 8094: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -222500,24 +483013,33 @@ var containeranalysis_v1beta1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.spanner = exports.VERSIONS = void 0; +exports.AuthPlus = exports.metastore_v1beta = exports.metastore_v1alpha = exports.metastore_v1 = exports.auth = exports.metastore = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(161); +const v1_1 = __webpack_require__(4773); +Object.defineProperty(exports, "metastore_v1", { enumerable: true, get: function () { return v1_1.metastore_v1; } }); +const v1alpha_1 = __webpack_require__(2926); +Object.defineProperty(exports, "metastore_v1alpha", { enumerable: true, get: function () { return v1alpha_1.metastore_v1alpha; } }); +const v1beta_1 = __webpack_require__(6077); +Object.defineProperty(exports, "metastore_v1beta", { enumerable: true, get: function () { return v1beta_1.metastore_v1beta; } }); exports.VERSIONS = { - v1: v1_1.spanner_v1.Spanner, + v1: v1_1.metastore_v1.Metastore, + v1alpha: v1alpha_1.metastore_v1alpha.Metastore, + v1beta: v1beta_1.metastore_v1beta.Metastore, }; -function spanner(versionOrOptions) { - return googleapis_common_1.getAPI('spanner', versionOrOptions, exports.VERSIONS, this); +function metastore(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('metastore', versionOrOptions, exports.VERSIONS, this); } -exports.spanner = spanner; +exports.metastore = metastore; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 646 */, -/* 647 */ + +/***/ 8112: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -222535,23 +483057,1060 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.displayvideo = exports.VERSIONS = void 0; +exports.AuthPlus = exports.assuredworkloads_v1beta1 = exports.assuredworkloads_v1 = exports.auth = exports.assuredworkloads = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(164); +const v1_1 = __webpack_require__(140); +Object.defineProperty(exports, "assuredworkloads_v1", { enumerable: true, get: function () { return v1_1.assuredworkloads_v1; } }); +const v1beta1_1 = __webpack_require__(3752); +Object.defineProperty(exports, "assuredworkloads_v1beta1", { enumerable: true, get: function () { return v1beta1_1.assuredworkloads_v1beta1; } }); exports.VERSIONS = { - v1: v1_1.displayvideo_v1.Displayvideo, + v1: v1_1.assuredworkloads_v1.Assuredworkloads, + v1beta1: v1beta1_1.assuredworkloads_v1beta1.Assuredworkloads, }; -function displayvideo(versionOrOptions) { - return googleapis_common_1.getAPI('displayvideo', versionOrOptions, exports.VERSIONS, this); +function assuredworkloads(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('assuredworkloads', versionOrOptions, exports.VERSIONS, this); +} +exports.assuredworkloads = assuredworkloads; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8131: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Password-based encryption functions. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * An EncryptedPrivateKeyInfo: + * + * EncryptedPrivateKeyInfo ::= SEQUENCE { + * encryptionAlgorithm EncryptionAlgorithmIdentifier, + * encryptedData EncryptedData } + * + * EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * EncryptedData ::= OCTET STRING + */ +var forge = __webpack_require__(239); +__webpack_require__(828); +__webpack_require__(1431); +__webpack_require__(6155); +__webpack_require__(1220); +__webpack_require__(1988); +__webpack_require__(1575); +__webpack_require__(4076); +__webpack_require__(5707); +__webpack_require__(4385); +__webpack_require__(1526); +__webpack_require__(7152); + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Password-based encryption implementation. */ +var pki = forge.pki = forge.pki || {}; +module.exports = pki.pbe = forge.pbe = forge.pbe || {}; +var oids = pki.oids; + +// validator for an EncryptedPrivateKeyInfo structure +// Note: Currently only works w/algorithm params +var encryptedPrivateKeyValidator = { + name: 'EncryptedPrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedPrivateKeyInfo.encryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encryptionOid' + }, { + name: 'AlgorithmIdentifier.parameters', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'encryptionParams' + }] + }, { + // encryptedData + name: 'EncryptedPrivateKeyInfo.encryptedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encryptedData' + }] +}; + +// validator for a PBES2Algorithms structure +// Note: Currently only works w/PBKDF2 + AES encryption schemes +var PBES2AlgorithmsValidator = { + name: 'PBES2Algorithms', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.keyDerivationFunc', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.keyDerivationFunc.oid', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'kdfOid' + }, { + name: 'PBES2Algorithms.params', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.params.salt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'kdfSalt' + }, { + name: 'PBES2Algorithms.params.iterationCount', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'kdfIterationCount' + }, { + name: 'PBES2Algorithms.params.keyLength', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + optional: true, + capture: 'keyLength' + }, { + // prf + name: 'PBES2Algorithms.params.prf', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'PBES2Algorithms.params.prf.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'prfOid' + }] + }] + }] + }, { + name: 'PBES2Algorithms.encryptionScheme', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.encryptionScheme.oid', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encOid' + }, { + name: 'PBES2Algorithms.encryptionScheme.iv', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encIv' + }] + }] +}; + +var pkcs12PbeParamsValidator = { + name: 'pkcs-12PbeParams', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'pkcs-12PbeParams.salt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'salt' + }, { + name: 'pkcs-12PbeParams.iterations', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'iterations' + }] +}; + +/** + * Encrypts a ASN.1 PrivateKeyInfo object, producing an EncryptedPrivateKeyInfo. + * + * PBES2Algorithms ALGORITHM-IDENTIFIER ::= + * { {PBES2-params IDENTIFIED BY id-PBES2}, ...} + * + * id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13} + * + * PBES2-params ::= SEQUENCE { + * keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}}, + * encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} + * } + * + * PBES2-KDFs ALGORITHM-IDENTIFIER ::= + * { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... } + * + * PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... } + * + * PBKDF2-params ::= SEQUENCE { + * salt CHOICE { + * specified OCTET STRING, + * otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}} + * }, + * iterationCount INTEGER (1..MAX), + * keyLength INTEGER (1..MAX) OPTIONAL, + * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 + * } + * + * @param obj the ASN.1 PrivateKeyInfo object. + * @param password the password to encrypt with. + * @param options: + * algorithm the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. + * count the iteration count to use. + * saltSize the salt size to use. + * prfAlgorithm the PRF message digest algorithm to use + * ('sha1', 'sha224', 'sha256', 'sha384', 'sha512') + * + * @return the ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptPrivateKeyInfo = function(obj, password, options) { + // set default options + options = options || {}; + options.saltSize = options.saltSize || 8; + options.count = options.count || 2048; + options.algorithm = options.algorithm || 'aes128'; + options.prfAlgorithm = options.prfAlgorithm || 'sha1'; + + // generate PBE params + var salt = forge.random.getBytesSync(options.saltSize); + var count = options.count; + var countBytes = asn1.integerToDer(count); + var dkLen; + var encryptionAlgorithm; + var encryptedData; + if(options.algorithm.indexOf('aes') === 0 || options.algorithm === 'des') { + // do PBES2 + var ivLen, encOid, cipherFn; + switch(options.algorithm) { + case 'aes128': + dkLen = 16; + ivLen = 16; + encOid = oids['aes128-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes192': + dkLen = 24; + ivLen = 16; + encOid = oids['aes192-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes256': + dkLen = 32; + ivLen = 16; + encOid = oids['aes256-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'des': + dkLen = 8; + ivLen = 8; + encOid = oids['desCBC']; + cipherFn = forge.des.createEncryptionCipher; + break; + default: + var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); + error.algorithm = options.algorithm; + throw error; + } + + // get PRF message digest + var prfAlgorithm = 'hmacWith' + options.prfAlgorithm.toUpperCase(); + var md = prfAlgorithmToMessageDigest(prfAlgorithm); + + // encrypt private key using pbe SHA-1 and AES/DES + var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); + var iv = forge.random.getBytesSync(ivLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(asn1.toDer(obj)); + cipher.finish(); + encryptedData = cipher.output.getBytes(); + + // get PBKDF2-params + var params = createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm); + + encryptionAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pkcs5PBES2']).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // keyDerivationFunc + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pkcs5PBKDF2']).getBytes()), + // PBKDF2-params + params + ]), + // encryptionScheme + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(encOid).getBytes()), + // iv + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, iv) + ]) + ]) + ]); + } else if(options.algorithm === '3des') { + // Do PKCS12 PBE + dkLen = 24; + + var saltBytes = new forge.util.ByteBuffer(salt); + var dk = pki.pbe.generatePkcs12Key(password, saltBytes, 1, count, dkLen); + var iv = pki.pbe.generatePkcs12Key(password, saltBytes, 2, count, dkLen); + var cipher = forge.des.createEncryptionCipher(dk); + cipher.start(iv); + cipher.update(asn1.toDer(obj)); + cipher.finish(); + encryptedData = cipher.output.getBytes(); + + encryptionAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pbeWithSHAAnd3-KeyTripleDES-CBC']).getBytes()), + // pkcs-12PbeParams + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // salt + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), + // iteration count + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + countBytes.getBytes()) + ]) + ]); + } else { + var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); + error.algorithm = options.algorithm; + throw error; + } + + // EncryptedPrivateKeyInfo + var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // encryptionAlgorithm + encryptionAlgorithm, + // encryptedData + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, encryptedData) + ]); + return rval; +}; + +/** + * Decrypts a ASN.1 PrivateKeyInfo object. + * + * @param obj the ASN.1 EncryptedPrivateKeyInfo object. + * @param password the password to decrypt with. + * + * @return the ASN.1 PrivateKeyInfo on success, null on failure. + */ +pki.decryptPrivateKeyInfo = function(obj, password) { + var rval = null; + + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(obj, encryptedPrivateKeyValidator, capture, errors)) { + var error = new Error('Cannot read encrypted private key. ' + + 'ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + // get cipher + var oid = asn1.derToOid(capture.encryptionOid); + var cipher = pki.pbe.getCipher(oid, capture.encryptionParams, password); + + // get encrypted data + var encrypted = forge.util.createBuffer(capture.encryptedData); + + cipher.update(encrypted); + if(cipher.finish()) { + rval = asn1.fromDer(cipher.output); + } + + return rval; +}; + +/** + * Converts a EncryptedPrivateKeyInfo to PEM format. + * + * @param epki the EncryptedPrivateKeyInfo. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted encrypted private key. + */ +pki.encryptedPrivateKeyToPem = function(epki, maxline) { + // convert to DER, then PEM-encode + var msg = { + type: 'ENCRYPTED PRIVATE KEY', + body: asn1.toDer(epki).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts a PEM-encoded EncryptedPrivateKeyInfo to ASN.1 format. Decryption + * is not performed. + * + * @param pem the EncryptedPrivateKeyInfo in PEM-format. + * + * @return the ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptedPrivateKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'ENCRYPTED PRIVATE KEY') { + var error = new Error('Could not convert encrypted private key from PEM; ' + + 'PEM header type is "ENCRYPTED PRIVATE KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert encrypted private key from PEM; ' + + 'PEM is encrypted.'); + } + + // convert DER to ASN.1 object + return asn1.fromDer(msg.body); +}; + +/** + * Encrypts an RSA private key. By default, the key will be wrapped in + * a PrivateKeyInfo and encrypted to produce a PKCS#8 EncryptedPrivateKeyInfo. + * This is the standard, preferred way to encrypt a private key. + * + * To produce a non-standard PEM-encrypted private key that uses encapsulated + * headers to indicate the encryption algorithm (old-style non-PKCS#8 OpenSSL + * private key encryption), set the 'legacy' option to true. Note: Using this + * option will cause the iteration count to be forced to 1. + * + * Note: The 'des' algorithm is supported, but it is not considered to be + * secure because it only uses a single 56-bit key. If possible, it is highly + * recommended that a different algorithm be used. + * + * @param rsaKey the RSA key to encrypt. + * @param password the password to use. + * @param options: + * algorithm: the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des', 'des'). + * count: the iteration count to use. + * saltSize: the salt size to use. + * legacy: output an old non-PKCS#8 PEM-encrypted+encapsulated + * headers (DEK-Info) private key. + * + * @return the PEM-encoded ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptRsaPrivateKey = function(rsaKey, password, options) { + // standard PKCS#8 + options = options || {}; + if(!options.legacy) { + // encrypt PrivateKeyInfo + var rval = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(rsaKey)); + rval = pki.encryptPrivateKeyInfo(rval, password, options); + return pki.encryptedPrivateKeyToPem(rval); + } + + // legacy non-PKCS#8 + var algorithm; + var iv; + var dkLen; + var cipherFn; + switch(options.algorithm) { + case 'aes128': + algorithm = 'AES-128-CBC'; + dkLen = 16; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes192': + algorithm = 'AES-192-CBC'; + dkLen = 24; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes256': + algorithm = 'AES-256-CBC'; + dkLen = 32; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case '3des': + algorithm = 'DES-EDE3-CBC'; + dkLen = 24; + iv = forge.random.getBytesSync(8); + cipherFn = forge.des.createEncryptionCipher; + break; + case 'des': + algorithm = 'DES-CBC'; + dkLen = 8; + iv = forge.random.getBytesSync(8); + cipherFn = forge.des.createEncryptionCipher; + break; + default: + var error = new Error('Could not encrypt RSA private key; unsupported ' + + 'encryption algorithm "' + options.algorithm + '".'); + error.algorithm = options.algorithm; + throw error; + } + + // encrypt private key using OpenSSL legacy key derivation + var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(asn1.toDer(pki.privateKeyToAsn1(rsaKey))); + cipher.finish(); + + var msg = { + type: 'RSA PRIVATE KEY', + procType: { + version: '4', + type: 'ENCRYPTED' + }, + dekInfo: { + algorithm: algorithm, + parameters: forge.util.bytesToHex(iv).toUpperCase() + }, + body: cipher.output.getBytes() + }; + return forge.pem.encode(msg); +}; + +/** + * Decrypts an RSA private key. + * + * @param pem the PEM-formatted EncryptedPrivateKeyInfo to decrypt. + * @param password the password to use. + * + * @return the RSA key on success, null on failure. + */ +pki.decryptRsaPrivateKey = function(pem, password) { + var rval = null; + + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'ENCRYPTED PRIVATE KEY' && + msg.type !== 'PRIVATE KEY' && + msg.type !== 'RSA PRIVATE KEY') { + var error = new Error('Could not convert private key from PEM; PEM header type ' + + 'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".'); + error.headerType = error; + throw error; + } + + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + var dkLen; + var cipherFn; + switch(msg.dekInfo.algorithm) { + case 'DES-CBC': + dkLen = 8; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'DES-EDE3-CBC': + dkLen = 24; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'AES-128-CBC': + dkLen = 16; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'AES-192-CBC': + dkLen = 24; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'AES-256-CBC': + dkLen = 32; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'RC2-40-CBC': + dkLen = 5; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 40); + }; + break; + case 'RC2-64-CBC': + dkLen = 8; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 64); + }; + break; + case 'RC2-128-CBC': + dkLen = 16; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 128); + }; + break; + default: + var error = new Error('Could not decrypt private key; unsupported ' + + 'encryption algorithm "' + msg.dekInfo.algorithm + '".'); + error.algorithm = msg.dekInfo.algorithm; + throw error; + } + + // use OpenSSL legacy key derivation + var iv = forge.util.hexToBytes(msg.dekInfo.parameters); + var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(forge.util.createBuffer(msg.body)); + if(cipher.finish()) { + rval = cipher.output.getBytes(); + } else { + return rval; + } + } else { + rval = msg.body; + } + + if(msg.type === 'ENCRYPTED PRIVATE KEY') { + rval = pki.decryptPrivateKeyInfo(asn1.fromDer(rval), password); + } else { + // decryption already performed above + rval = asn1.fromDer(rval); + } + + if(rval !== null) { + rval = pki.privateKeyFromAsn1(rval); + } + + return rval; +}; + +/** + * Derives a PKCS#12 key. + * + * @param password the password to derive the key material from, null or + * undefined for none. + * @param salt the salt, as a ByteBuffer, to use. + * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). + * @param iter the iteration count. + * @param n the number of bytes to derive from the password. + * @param md the message digest to use, defaults to SHA-1. + * + * @return a ByteBuffer with the bytes derived from the password. + */ +pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) { + var j, l; + + if(typeof md === 'undefined' || md === null) { + if(!('sha1' in forge.md)) { + throw new Error('"sha1" hash algorithm unavailable.'); + } + md = forge.md.sha1.create(); + } + + var u = md.digestLength; + var v = md.blockLength; + var result = new forge.util.ByteBuffer(); + + /* Convert password to Unicode byte buffer + trailing 0-byte. */ + var passBuf = new forge.util.ByteBuffer(); + if(password !== null && password !== undefined) { + for(l = 0; l < password.length; l++) { + passBuf.putInt16(password.charCodeAt(l)); + } + passBuf.putInt16(0); + } + + /* Length of salt and password in BYTES. */ + var p = passBuf.length(); + var s = salt.length(); + + /* 1. Construct a string, D (the "diversifier"), by concatenating + v copies of ID. */ + var D = new forge.util.ByteBuffer(); + D.fillWithByte(id, v); + + /* 2. Concatenate copies of the salt together to create a string S of length + v * ceil(s / v) bytes (the final copy of the salt may be trunacted + to create S). + Note that if the salt is the empty string, then so is S. */ + var Slen = v * Math.ceil(s / v); + var S = new forge.util.ByteBuffer(); + for(l = 0; l < Slen; l++) { + S.putByte(salt.at(l % s)); + } + + /* 3. Concatenate copies of the password together to create a string P of + length v * ceil(p / v) bytes (the final copy of the password may be + truncated to create P). + Note that if the password is the empty string, then so is P. */ + var Plen = v * Math.ceil(p / v); + var P = new forge.util.ByteBuffer(); + for(l = 0; l < Plen; l++) { + P.putByte(passBuf.at(l % p)); + } + + /* 4. Set I=S||P to be the concatenation of S and P. */ + var I = S; + I.putBuffer(P); + + /* 5. Set c=ceil(n / u). */ + var c = Math.ceil(n / u); + + /* 6. For i=1, 2, ..., c, do the following: */ + for(var i = 1; i <= c; i++) { + /* a) Set Ai=H^r(D||I). (l.e. the rth hash of D||I, H(H(H(...H(D||I)))) */ + var buf = new forge.util.ByteBuffer(); + buf.putBytes(D.bytes()); + buf.putBytes(I.bytes()); + for(var round = 0; round < iter; round++) { + md.start(); + md.update(buf.getBytes()); + buf = md.digest(); + } + + /* b) Concatenate copies of Ai to create a string B of length v bytes (the + final copy of Ai may be truncated to create B). */ + var B = new forge.util.ByteBuffer(); + for(l = 0; l < v; l++) { + B.putByte(buf.at(l % u)); + } + + /* c) Treating I as a concatenation I0, I1, ..., Ik-1 of v-byte blocks, + where k=ceil(s / v) + ceil(p / v), modify I by setting + Ij=(Ij+B+1) mod 2v for each j. */ + var k = Math.ceil(s / v) + Math.ceil(p / v); + var Inew = new forge.util.ByteBuffer(); + for(j = 0; j < k; j++) { + var chunk = new forge.util.ByteBuffer(I.getBytes(v)); + var x = 0x1ff; + for(l = B.length() - 1; l >= 0; l--) { + x = x >> 8; + x += B.at(l) + chunk.at(l); + chunk.setAt(l, x & 0xff); + } + Inew.putBuffer(chunk); + } + I = Inew; + + /* Add Ai to A. */ + result.putBuffer(buf); + } + + result.truncate(result.length() - n); + return result; +}; + +/** + * Get new Forge cipher object instance. + * + * @param oid the OID (in string notation). + * @param params the ASN.1 params object. + * @param password the password to decrypt with. + * + * @return new cipher object instance. + */ +pki.pbe.getCipher = function(oid, params, password) { + switch(oid) { + case pki.oids['pkcs5PBES2']: + return pki.pbe.getCipherForPBES2(oid, params, password); + + case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: + case pki.oids['pbewithSHAAnd40BitRC2-CBC']: + return pki.pbe.getCipherForPKCS12PBE(oid, params, password); + + default: + var error = new Error('Cannot read encrypted PBE data block. Unsupported OID.'); + error.oid = oid; + error.supportedOids = [ + 'pkcs5PBES2', + 'pbeWithSHAAnd3-KeyTripleDES-CBC', + 'pbewithSHAAnd40BitRC2-CBC' + ]; + throw error; + } +}; + +/** + * Get new Forge cipher object instance according to PBES2 params block. + * + * The returned cipher instance is already started using the IV + * from PBES2 parameter block. + * + * @param oid the PKCS#5 PBKDF2 OID (in string notation). + * @param params the ASN.1 PBES2-params object. + * @param password the password to decrypt with. + * + * @return new cipher object instance. + */ +pki.pbe.getCipherForPBES2 = function(oid, params, password) { + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(params, PBES2AlgorithmsValidator, capture, errors)) { + var error = new Error('Cannot read password-based-encryption algorithm ' + + 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + // check oids + oid = asn1.derToOid(capture.kdfOid); + if(oid !== pki.oids['pkcs5PBKDF2']) { + var error = new Error('Cannot read encrypted private key. ' + + 'Unsupported key derivation function OID.'); + error.oid = oid; + error.supportedOids = ['pkcs5PBKDF2']; + throw error; + } + oid = asn1.derToOid(capture.encOid); + if(oid !== pki.oids['aes128-CBC'] && + oid !== pki.oids['aes192-CBC'] && + oid !== pki.oids['aes256-CBC'] && + oid !== pki.oids['des-EDE3-CBC'] && + oid !== pki.oids['desCBC']) { + var error = new Error('Cannot read encrypted private key. ' + + 'Unsupported encryption scheme OID.'); + error.oid = oid; + error.supportedOids = [ + 'aes128-CBC', 'aes192-CBC', 'aes256-CBC', 'des-EDE3-CBC', 'desCBC']; + throw error; + } + + // set PBE params + var salt = capture.kdfSalt; + var count = forge.util.createBuffer(capture.kdfIterationCount); + count = count.getInt(count.length() << 3); + var dkLen; + var cipherFn; + switch(pki.oids[oid]) { + case 'aes128-CBC': + dkLen = 16; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'aes192-CBC': + dkLen = 24; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'aes256-CBC': + dkLen = 32; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'des-EDE3-CBC': + dkLen = 24; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'desCBC': + dkLen = 8; + cipherFn = forge.des.createDecryptionCipher; + break; + } + + // get PRF message digest + var md = prfOidToMessageDigest(capture.prfOid); + + // decrypt private key using pbe with chosen PRF and AES/DES + var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); + var iv = capture.encIv; + var cipher = cipherFn(dk); + cipher.start(iv); + + return cipher; +}; + +/** + * Get new Forge cipher object instance for PKCS#12 PBE. + * + * The returned cipher instance is already started using the key & IV + * derived from the provided password and PKCS#12 PBE salt. + * + * @param oid The PKCS#12 PBE OID (in string notation). + * @param params The ASN.1 PKCS#12 PBE-params object. + * @param password The password to decrypt with. + * + * @return the new cipher object instance. + */ +pki.pbe.getCipherForPKCS12PBE = function(oid, params, password) { + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(params, pkcs12PbeParamsValidator, capture, errors)) { + var error = new Error('Cannot read password-based-encryption algorithm ' + + 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + var salt = forge.util.createBuffer(capture.salt); + var count = forge.util.createBuffer(capture.iterations); + count = count.getInt(count.length() << 3); + + var dkLen, dIvLen, cipherFn; + switch(oid) { + case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: + dkLen = 24; + dIvLen = 8; + cipherFn = forge.des.startDecrypting; + break; + + case pki.oids['pbewithSHAAnd40BitRC2-CBC']: + dkLen = 5; + dIvLen = 8; + cipherFn = function(key, iv) { + var cipher = forge.rc2.createDecryptionCipher(key, 40); + cipher.start(iv, null); + return cipher; + }; + break; + + default: + var error = new Error('Cannot read PKCS #12 PBE data block. Unsupported OID.'); + error.oid = oid; + throw error; + } + + // get PRF message digest + var md = prfOidToMessageDigest(capture.prfOid); + var key = pki.pbe.generatePkcs12Key(password, salt, 1, count, dkLen, md); + md.start(); + var iv = pki.pbe.generatePkcs12Key(password, salt, 2, count, dIvLen, md); + + return cipherFn(key, iv); +}; + +/** + * OpenSSL's legacy key derivation function. + * + * See: http://www.openssl.org/docs/crypto/EVP_BytesToKey.html + * + * @param password the password to derive the key from. + * @param salt the salt to use, null for none. + * @param dkLen the number of bytes needed for the derived key. + * @param [options] the options to use: + * [md] an optional message digest object to use. + */ +pki.pbe.opensslDeriveBytes = function(password, salt, dkLen, md) { + if(typeof md === 'undefined' || md === null) { + if(!('md5' in forge.md)) { + throw new Error('"md5" hash algorithm unavailable.'); + } + md = forge.md.md5.create(); + } + if(salt === null) { + salt = ''; + } + var digests = [hash(md, password + salt)]; + for(var length = 16, i = 1; length < dkLen; ++i, length += 16) { + digests.push(hash(md, digests[i - 1] + password + salt)); + } + return digests.join('').substr(0, dkLen); +}; + +function hash(md, bytes) { + return md.start().update(bytes).digest().getBytes(); +} + +function prfOidToMessageDigest(prfOid) { + // get PRF algorithm, default to SHA-1 + var prfAlgorithm; + if(!prfOid) { + prfAlgorithm = 'hmacWithSHA1'; + } else { + prfAlgorithm = pki.oids[asn1.derToOid(prfOid)]; + if(!prfAlgorithm) { + var error = new Error('Unsupported PRF OID.'); + error.oid = prfOid; + error.supported = [ + 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', + 'hmacWithSHA512']; + throw error; + } + } + return prfAlgorithmToMessageDigest(prfAlgorithm); +} + +function prfAlgorithmToMessageDigest(prfAlgorithm) { + var factory = forge.md; + switch(prfAlgorithm) { + case 'hmacWithSHA224': + factory = forge.md.sha512; + case 'hmacWithSHA1': + case 'hmacWithSHA256': + case 'hmacWithSHA384': + case 'hmacWithSHA512': + prfAlgorithm = prfAlgorithm.substr(8).toLowerCase(); + break; + default: + var error = new Error('Unsupported PRF algorithm.'); + error.algorithm = prfAlgorithm; + error.supported = [ + 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', + 'hmacWithSHA512']; + throw error; + } + if(!factory || !(prfAlgorithm in factory)) { + throw new Error('Unknown hash algorithm: ' + prfAlgorithm); + } + return factory[prfAlgorithm].create(); +} + +function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) { + var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // salt + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), + // iteration count + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + countBytes.getBytes()) + ]); + // when PRF algorithm is not SHA-1 default, add key length and PRF algorithm + if(prfAlgorithm !== 'hmacWithSHA1') { + params.value.push( + // key length + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(dkLen.toString(16))), + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids[prfAlgorithm]).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + } + return params; } -exports.displayvideo = displayvideo; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map + /***/ }), -/* 648 */ + +/***/ 8140: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -222569,1992 +484128,351 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.datacatalog = exports.VERSIONS = void 0; +exports.AuthPlus = exports.servicemanagement_v1 = exports.auth = exports.servicemanagement = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(350); +const v1_1 = __webpack_require__(2239); +Object.defineProperty(exports, "servicemanagement_v1", { enumerable: true, get: function () { return v1_1.servicemanagement_v1; } }); exports.VERSIONS = { - v1beta1: v1beta1_1.datacatalog_v1beta1.Datacatalog, + v1: v1_1.servicemanagement_v1.Servicemanagement, }; -function datacatalog(versionOrOptions) { - return googleapis_common_1.getAPI('datacatalog', versionOrOptions, exports.VERSIONS, this); +function servicemanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('servicemanagement', versionOrOptions, exports.VERSIONS, this); } -exports.datacatalog = datacatalog; +exports.servicemanagement = servicemanagement; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 649 */ -/***/ (function(module, __unusedexports, __webpack_require__) { -module.exports = getLastPage +/***/ 8141: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -const getPage = __webpack_require__(265) +"use strict"; -function getLastPage (octokit, link, headers) { - return getPage(octokit, link, 'last', headers) -} +var net = __webpack_require__(1631); +var tls = __webpack_require__(4016); +var http = __webpack_require__(8605); +var https = __webpack_require__(7211); +var events = __webpack_require__(8614); +var assert = __webpack_require__(2357); +var util = __webpack_require__(1669); -/***/ }), -/* 650 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; +exports.httpOverHttp = httpOverHttp; +exports.httpsOverHttp = httpsOverHttp; +exports.httpOverHttps = httpOverHttps; +exports.httpsOverHttps = httpsOverHttps; -// 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.closeSession = exports.request = exports.sessions = void 0; -const http2 = __webpack_require__(565); -const zlib = __webpack_require__(761); -const url_1 = __webpack_require__(835); -const qs = __webpack_require__(418); -const extend = __webpack_require__(374); -const stream_1 = __webpack_require__(413); -const util = __webpack_require__(669); -const process = __webpack_require__(765); -const common_1 = __webpack_require__(906); -const { HTTP2_HEADER_CONTENT_ENCODING, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS, } = http2.constants; -const DEBUG = !!process.env.HTTP2_DEBUG; -/** - * List of sessions current in use. - * @private - */ -exports.sessions = {}; -let warned = false; -/** - * Public method to make an http2 request. - * @param config - Request options. - */ -async function request(config) { - // Make sure users know this API is unstable - if (!warned) { - const message = ` - The HTTP/2 API in googleapis is unstable! This is an early implementation - that should not be used in production. It may change in unpredictable - ways. Please only use this for experimentation. - `; - process.emitWarning(message, 'GOOG_HTTP2'); - warned = true; - } - const opts = extend(true, {}, config); - opts.validateStatus = opts.validateStatus || validateStatus; - opts.responseType = opts.responseType || 'json'; - const url = new url_1.URL(opts.url); - // Check for an existing session to this host, or go create a new one. - const sessionData = _getClient(url.host); - // Since we're using this session, clear the timeout handle to ensure - // it stays in memory and connected for a while further. - if (sessionData.timeoutHandle !== undefined) { - clearTimeout(sessionData.timeoutHandle); - } - // Assemble the querystring based on config.params. We're using the - // `qs` module to make life a little easier. - let pathWithQs = url.pathname; - if (config.params && Object.keys(config.params).length > 0) { - const q = qs.stringify(opts.params); - pathWithQs += `?${q}`; - } - // Assemble the headers based on basic HTTP2 primitives (path, method) and - // custom headers sent from the consumer. Note: I am using `Object.assign` - // here making the assumption these objects are not deep. If it turns out - // they are, we may need to use the `extend` npm module for deep cloning. - const headers = Object.assign({}, opts.headers, { - [HTTP2_HEADER_PATH]: pathWithQs, - [HTTP2_HEADER_METHOD]: config.method || 'GET', - }); - // NOTE: This is working around an upstream bug in `apirequest.ts`. The - // request path assumes that the `content-type` header is going to be set in - // the underlying HTTP Client. This hack provides bug for bug compatability - // with this bug in gaxios: - // https://github.com/googleapis/gaxios/blob/master/src/gaxios.ts#L202 - if (!headers[HTTP2_HEADER_CONTENT_TYPE]) { - if (opts.responseType !== 'text') { - headers[HTTP2_HEADER_CONTENT_TYPE] = 'application/json'; - } - } - const res = { - config, - request: {}, - headers: [], - status: 0, - data: {}, - statusText: '', - }; - const chunks = []; - const session = sessionData.session; - let req; - return new Promise((resolve, reject) => { - try { - req = session - .request(headers) - .on('response', headers => { - res.headers = headers; - res.status = Number(headers[HTTP2_HEADER_STATUS]); - let stream = req; - if (headers[HTTP2_HEADER_CONTENT_ENCODING] === 'gzip') { - stream = req.pipe(zlib.createGunzip()); - } - if (opts.responseType === 'stream') { - res.data = stream; - resolve(res); - return; - } - stream - .on('data', d => { - chunks.push(d); - }) - .on('error', err => { - reject(err); - return; - }) - .on('end', () => { - const buf = Buffer.concat(chunks); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let data = buf; - if (buf) { - if (opts.responseType === 'json') { - try { - data = JSON.parse(buf.toString('utf8')); - } - catch (_a) { - data = buf.toString('utf8'); - } - } - else if (opts.responseType === 'text') { - data = buf.toString('utf8'); - } - else if (opts.responseType === 'arraybuffer') { - data = buf.buffer; - } - res.data = data; - } - if (!opts.validateStatus(res.status)) { - let message = `Request failed with status code ${res.status}. `; - if (res.data && typeof res.data === 'object') { - const body = util.inspect(res.data, { depth: 5 }); - message = `${message}\n'${body}`; - } - reject(new common_1.GaxiosError(message, opts, res)); - } - resolve(res); - return; - }); - }) - .on('error', e => { - reject(e); - return; - }); - } - catch (e) { - closeSession(url); - reject(e); - } - res.request = req; - // If data was provided, write it to the request in the form of - // a stream, string data, or a basic object. - if (config.data) { - if (config.data instanceof stream_1.Stream) { - config.data.pipe(req); - } - else if (typeof config.data === 'string') { - const data = Buffer.from(config.data); - req.end(data); - } - else if (typeof config.data === 'object') { - const data = JSON.stringify(config.data); - req.end(data); - } - } - // Create a timeout so the Http2Session will be cleaned up after - // a period of non-use. 500 milliseconds was chosen because it's - // a nice round number, and I don't know what would be a better - // choice. Keeping this channel open will hold a file descriptor - // which will prevent the process from exiting. - sessionData.timeoutHandle = setTimeout(() => { - closeSession(url); - }, 500); - }); -} -exports.request = request; -/** - * By default, throw for any non-2xx status code - * @param status - status code from the HTTP response - */ -function validateStatus(status) { - return status >= 200 && status < 300; -} -/** - * Obtain an existing h2 session or go create a new one. - * @param host - The hostname to which the session belongs. - */ -function _getClient(host) { - if (!exports.sessions[host]) { - if (DEBUG) { - console.log(`Creating client for ${host}`); - } - const session = http2.connect(`https://${host}`); - session - .on('error', e => { - console.error(`*ERROR*: ${e}`); - delete exports.sessions[host]; - }) - .on('goaway', (errorCode, lastStreamId) => { - console.error(`*GOAWAY*: ${errorCode} : ${lastStreamId}`); - delete exports.sessions[host]; - }); - exports.sessions[host] = { session }; - } - else { - if (DEBUG) { - console.log(`Used cached client for ${host}`); - } - } - return exports.sessions[host]; -} -async function closeSession(url) { - const sessionData = exports.sessions[url.host]; - if (!sessionData) { - return; - } - const { session } = sessionData; - delete exports.sessions[url.host]; - if (DEBUG) { - console.error(`Closing ${url.host}`); - } - session.close(() => { - if (DEBUG) { - console.error(`Closed ${url.host}`); - } - }); - setTimeout(() => { - if (session && !session.destroyed) { - if (DEBUG) { - console.log(`Forcing close ${url.host}`); - } - if (session) { - session.destroy(); - } - } - }, 1000); + +function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + return agent; } -exports.closeSession = closeSession; -//# sourceMappingURL=http2.js.map -/***/ }), -/* 651 */, -/* 652 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} -"use strict"; +function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; +} -// 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.auth = exports.dataflow = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1b3_1 = __webpack_require__(236); -exports.VERSIONS = { - v1b3: v1b3_1.dataflow_v1b3.Dataflow, -}; -function dataflow(versionOrOptions) { - return googleapis_common_1.getAPI('dataflow', versionOrOptions, exports.VERSIONS, this); +function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } -exports.dataflow = dataflow; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 653 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; +function TunnelingAgent(options) { + var self = this; + self.options = options || {}; + self.proxyOptions = self.options.proxy || {}; + self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; + self.requests = []; + self.sockets = []; -// 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.monitoring_v3 = 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 = __webpack_require__(927); -var monitoring_v3; -(function (monitoring_v3) { - /** - * Cloud Monitoring API - * - * Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Cloud Monitoring documentation. - * - * @example - * const {google} = require('googleapis'); - * const monitoring = google.monitoring('v3'); - * - * @namespace monitoring - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Monitoring - */ - class Monitoring { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - this.services = new Resource$Services(this.context); - this.uptimeCheckIps = new Resource$Uptimecheckips(this.context); - } - } - monitoring_v3.Monitoring = Monitoring; - class Resource$Projects { - constructor(context) { - this.context = context; - this.alertPolicies = new Resource$Projects$Alertpolicies(this.context); - this.collectdTimeSeries = new Resource$Projects$Collectdtimeseries(this.context); - this.groups = new Resource$Projects$Groups(this.context); - this.metricDescriptors = new Resource$Projects$Metricdescriptors(this.context); - this.monitoredResourceDescriptors = new Resource$Projects$Monitoredresourcedescriptors(this.context); - this.notificationChannelDescriptors = new Resource$Projects$Notificationchanneldescriptors(this.context); - this.notificationChannels = new Resource$Projects$Notificationchannels(this.context); - this.timeSeries = new Resource$Projects$Timeseries(this.context); - this.uptimeCheckConfigs = new Resource$Projects$Uptimecheckconfigs(this.context); - } - } - monitoring_v3.Resource$Projects = Resource$Projects; - class Resource$Projects$Alertpolicies { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/alertPolicies').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/alertPolicies').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); - } - } - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } - } - } - monitoring_v3.Resource$Projects$Alertpolicies = Resource$Projects$Alertpolicies; - class Resource$Projects$Collectdtimeseries { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/collectdTimeSeries').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); - } - } - } - monitoring_v3.Resource$Projects$Collectdtimeseries = Resource$Projects$Collectdtimeseries; - class Resource$Projects$Groups { - constructor(context) { - this.context = context; - this.members = new Resource$Projects$Groups$Members(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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/groups').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/groups').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); - } - } - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - monitoring_v3.Resource$Projects$Groups = Resource$Projects$Groups; - class Resource$Projects$Groups$Members { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/members').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); - } - } - } - monitoring_v3.Resource$Projects$Groups$Members = Resource$Projects$Groups$Members; - class Resource$Projects$Metricdescriptors { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/metricDescriptors').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/metricDescriptors').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); - } - } - } - monitoring_v3.Resource$Projects$Metricdescriptors = Resource$Projects$Metricdescriptors; - class Resource$Projects$Monitoredresourcedescriptors { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/monitoredResourceDescriptors').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); - } - } - } - monitoring_v3.Resource$Projects$Monitoredresourcedescriptors = Resource$Projects$Monitoredresourcedescriptors; - class Resource$Projects$Notificationchanneldescriptors { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/notificationChannelDescriptors').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); - } - } + self.on('free', function onFree(socket, host, port, localAddress) { + var options = toOptions(host, port, localAddress); + for (var i = 0, len = self.requests.length; i < len; ++i) { + var pending = self.requests[i]; + if (pending.host === options.host && pending.port === options.port) { + // Detect the request to connect same origin server, + // reuse the connection. + self.requests.splice(i, 1); + pending.request.onSocket(socket); + return; + } } - monitoring_v3.Resource$Projects$Notificationchanneldescriptors = Resource$Projects$Notificationchanneldescriptors; - class Resource$Projects$Notificationchannels { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/notificationChannels').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } - } - getVerificationCode(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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}:getVerificationCode').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/notificationChannels').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); - } - } - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } - } - sendVerificationCode(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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}:sendVerificationCode').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); - } - } - verify(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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}:verify').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); - } - } + socket.destroy(); + self.removeSocket(socket); + }); +} +util.inherits(TunnelingAgent, events.EventEmitter); + +TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self = this; + var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); + + if (self.sockets.length >= this.maxSockets) { + // We are over limit so we'll add it to the queue. + self.requests.push(options); + return; + } + + // If we are under maxSockets create a new one. + self.createSocket(options, function(socket) { + socket.on('free', onFree); + socket.on('close', onCloseOrRemove); + socket.on('agentRemove', onCloseOrRemove); + req.onSocket(socket); + + function onFree() { + self.emit('free', socket, options); } - monitoring_v3.Resource$Projects$Notificationchannels = Resource$Projects$Notificationchannels; - class Resource$Projects$Timeseries { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries').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); - } - } - query(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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries:query').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); - } - } + + function onCloseOrRemove(err) { + self.removeSocket(socket); + socket.removeListener('free', onFree); + socket.removeListener('close', onCloseOrRemove); + socket.removeListener('agentRemove', onCloseOrRemove); } - monitoring_v3.Resource$Projects$Timeseries = Resource$Projects$Timeseries; - class Resource$Projects$Uptimecheckconfigs { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } - } + }); +}; + +TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self = this; + var placeholder = {}; + self.sockets.push(placeholder); + + var connectOptions = mergeOptions({}, self.proxyOptions, { + method: 'CONNECT', + path: options.host + ':' + options.port, + agent: false, + headers: { + host: options.host + ':' + options.port } - monitoring_v3.Resource$Projects$Uptimecheckconfigs = Resource$Projects$Uptimecheckconfigs; - class Resource$Services { - constructor(context) { - this.context = context; - this.serviceLevelObjectives = new Resource$Services$Servicelevelobjectives(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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/services').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/services').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } - } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers['Proxy-Authorization'] = 'Basic ' + + new Buffer(connectOptions.proxyAuth).toString('base64'); + } + + debug('making CONNECT request'); + var connectReq = self.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; // for v0.6 + connectReq.once('response', onResponse); // for v0.6 + connectReq.once('upgrade', onUpgrade); // for v0.6 + connectReq.once('connect', onConnect); // for v0.7 or later + connectReq.once('error', onError); + connectReq.end(); + + function onResponse(res) { + // Very hacky. This is necessary to avoid http-parser leaks. + res.upgrade = true; + } + + function onUpgrade(res, socket, head) { + // Hacky. + process.nextTick(function() { + onConnect(res, socket, head); + }); + } + + function onConnect(res, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + + if (res.statusCode !== 200) { + debug('tunneling socket could not be established, statusCode=%d', + res.statusCode); + socket.destroy(); + var error = new Error('tunneling socket could not be established, ' + + 'statusCode=' + res.statusCode); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; } - monitoring_v3.Resource$Services = Resource$Services; - class Resource$Services$Servicelevelobjectives { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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); - } - } + if (head.length > 0) { + debug('got illegal response body from proxy'); + socket.destroy(); + var error = new Error('got illegal response body from proxy'); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; } - monitoring_v3.Resource$Services$Servicelevelobjectives = Resource$Services$Servicelevelobjectives; - class Resource$Uptimecheckips { - 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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/uptimeCheckIps').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); - } + debug('tunneling connection has established'); + self.sockets[self.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + + function onError(cause) { + connectReq.removeAllListeners(); + + debug('tunneling socket could not be established, cause=%s\n', + cause.message, cause.stack); + var error = new Error('tunneling socket could not be established, ' + + 'cause=' + cause.message); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + } +}; + +TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket) + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + + var pending = this.requests.shift(); + if (pending) { + // If we have pending requests and a socket gets closed a new one + // needs to be created to take over in the pool for the one that closed. + this.createSocket(pending, function(socket) { + pending.request.onSocket(socket); + }); + } +}; + +function createSecureSocket(options, cb) { + var self = this; + TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { + var hostHeader = options.request.getHeader('host'); + var tlsOptions = mergeOptions({}, self.options, { + socket: socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host + }); + + // 0 is dummy port for v0.6 + var secureSocket = tls.connect(0, tlsOptions); + self.sockets[self.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); +} + + +function toOptions(host, port, localAddress) { + if (typeof host === 'string') { // since v0.10 + return { + host: host, + port: port, + localAddress: localAddress + }; + } + return host; // for v0.11 or later +} + +function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === 'object') { + var keys = Object.keys(overrides); + for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { + var k = keys[j]; + if (overrides[k] !== undefined) { + target[k] = overrides[k]; } + } } - monitoring_v3.Resource$Uptimecheckips = Resource$Uptimecheckips; -})(monitoring_v3 = exports.monitoring_v3 || (exports.monitoring_v3 = {})); -//# sourceMappingURL=v3.js.map + } + return target; +} -/***/ }), -/* 654 */ -/***/ (function(module) { -// This is not the set of all possible signals. -// -// It IS, however, the set of all signals that trigger -// an exit on either Linux or BSD systems. Linux is a -// superset of the signal names supported on BSD, and -// the unknown signals just fail to register, so we can -// catch that easily enough. -// -// Don't bother with SIGKILL. It's uncatchable, which -// means that we can't fire any callbacks anyway. -// -// If a user does happen to register a handler on a non- -// fatal signal like SIGWINCH or something, and then -// exit, it'll end up firing `process.emit('exit')`, so -// the handler will be fired anyway. -// -// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised -// artificially, inherently leave the process in a -// state from which it is not safe to try and enter JS -// listeners. -module.exports = [ - 'SIGABRT', - 'SIGALRM', - 'SIGHUP', - 'SIGINT', - 'SIGTERM' -] +var debug; +if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === 'string') { + args[0] = 'TUNNEL: ' + args[0]; + } else { + args.unshift('TUNNEL:'); + } + console.error.apply(console, args); + } +} else { + debug = function() {}; +} +exports.debug = debug; // for test -if (process.platform !== 'win32') { - module.exports.push( - 'SIGVTALRM', - 'SIGXCPU', - 'SIGXFSZ', - 'SIGUSR2', - 'SIGTRAP', - 'SIGSYS', - 'SIGQUIT', - 'SIGIOT' - // should detect profiler and enable/disable accordingly. - // see #21 - // 'SIGPROF' - ) + +/***/ }), + +/***/ 8148: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = paginatePlugin; + +const { paginateRest } = __webpack_require__(299); + +function paginatePlugin(octokit) { + Object.assign(octokit, paginateRest(octokit)); } -if (process.platform === 'linux') { - module.exports.push( - 'SIGIO', - 'SIGPOLL', - 'SIGPWR', - 'SIGSTKFLT', - 'SIGUNUSED' - ) + +/***/ }), + +/***/ 8151: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.playintegrity_v1 = exports.auth = exports.playintegrity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1480); +Object.defineProperty(exports, "playintegrity_v1", { enumerable: true, get: function () { return v1_1.playintegrity_v1; } }); +exports.VERSIONS = { + v1: v1_1.playintegrity_v1.Playintegrity, +}; +function playintegrity(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('playintegrity', versionOrOptions, exports.VERSIONS, this); } +exports.playintegrity = playintegrity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 655 */ + +/***/ 8157: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -224572,46 +484490,41 @@ if (process.platform === 'linux') { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.docs_v1 = void 0; +exports.firebaseml_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 = __webpack_require__(927); -var docs_v1; -(function (docs_v1) { +var firebaseml_v1; +(function (firebaseml_v1) { /** - * Google Docs API + * Firebase ML API * - * Reads and writes Google Docs documents. + * Access custom machine learning models hosted via Firebase ML. * * @example + * ```js * const {google} = require('googleapis'); - * const docs = google.docs('v1'); - * - * @namespace docs - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Docs + * const firebaseml = google.firebaseml('v1'); + * ``` */ - class Docs { + class Firebaseml { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.documents = new Resource$Documents(this.context); + this.operations = new Resource$Operations(this.context); } } - docs_v1.Docs = Docs; - class Resource$Documents { + firebaseml_v1.Firebaseml = Firebaseml; + class Resource$Operations { constructor(context) { this.context = context; } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -224624,26 +484537,27 @@ var docs_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents/{documentId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['documentId'], - pathParams: ['documentId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -224654,25 +484568,25 @@ var docs_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -224684,31 +484598,32 @@ var docs_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents/{documentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['documentId'], - pathParams: ['documentId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - docs_v1.Resource$Documents = Resource$Documents; -})(docs_v1 = exports.docs_v1 || (exports.docs_v1 = {})); -//# sourceMappingURL=v1.js.map + firebaseml_v1.Resource$Operations = Resource$Operations; +})(firebaseml_v1 = exports.firebaseml_v1 || (exports.firebaseml_v1 = {})); + /***/ }), -/* 656 */ + +/***/ 8164: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -224726,105 +484641,40 @@ var docs_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudresourcemanager_v2beta1 = void 0; +exports.libraryagent_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 = __webpack_require__(927); -var cloudresourcemanager_v2beta1; -(function (cloudresourcemanager_v2beta1) { +var libraryagent_v1; +(function (libraryagent_v1) { /** - * Cloud Resource Manager API + * Library Agent API * - * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * A simple Google Example Library API. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudresourcemanager = google.cloudresourcemanager('v2beta1'); - * - * @namespace cloudresourcemanager - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Cloudresourcemanager + * const libraryagent = google.libraryagent('v1'); + * ``` */ - class Cloudresourcemanager { + class Libraryagent { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.folders = new Resource$Folders(this.context); - this.operations = new Resource$Operations(this.context); + this.shelves = new Resource$Shelves(this.context); } } - cloudresourcemanager_v2beta1.Cloudresourcemanager = Cloudresourcemanager; - class Resource$Folders { + libraryagent_v1.Libraryagent = Libraryagent; + class Resource$Shelves { 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/folders').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); - } - } - 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://cloudresourcemanager.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); - } + this.books = new Resource$Shelves$Books(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -224838,10 +484688,10 @@ var cloudresourcemanager_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -224850,41 +484700,10 @@ var cloudresourcemanager_v2beta1; 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -224899,10 +484718,10 @@ var cloudresourcemanager_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/shelves').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -224911,14 +484730,21 @@ var cloudresourcemanager_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + libraryagent_v1.Resource$Shelves = Resource$Shelves; + class Resource$Shelves$Books { + constructor(context) { + this.context = context; + } + borrow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -224929,10 +484755,10 @@ var cloudresourcemanager_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:borrow').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -224941,14 +484767,15 @@ var cloudresourcemanager_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -224959,11 +484786,11 @@ var cloudresourcemanager_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -224971,43 +484798,13 @@ var cloudresourcemanager_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - search(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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: [], - pathParams: [], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225020,25 +484817,25 @@ var cloudresourcemanager_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/books').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + return(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225051,40 +484848,10 @@ var cloudresourcemanager_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+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); - } - } - 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:return').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -225093,219 +484860,20 @@ var cloudresourcemanager_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - cloudresourcemanager_v2beta1.Resource$Folders = Resource$Folders; - class Resource$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://cloudresourcemanager.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudresourcemanager_v2beta1.Resource$Operations = Resource$Operations; -})(cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2beta1 || (exports.cloudresourcemanager_v2beta1 = {})); -//# sourceMappingURL=v2beta1.js.map - -/***/ }), -/* 657 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; + libraryagent_v1.Resource$Shelves$Books = Resource$Shelves$Books; +})(libraryagent_v1 = exports.libraryagent_v1 || (exports.libraryagent_v1 = {})); -// 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.texttospeech_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 = __webpack_require__(927); -var texttospeech_v1; -(function (texttospeech_v1) { - /** - * Cloud Text-to-Speech API - * - * Synthesizes natural-sounding speech by applying powerful neural network models. - * - * @example - * const {google} = require('googleapis'); - * const texttospeech = google.texttospeech('v1'); - * - * @namespace texttospeech - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Texttospeech - */ - class Texttospeech { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.text = new Resource$Text(this.context); - this.voices = new Resource$Voices(this.context); - } - } - texttospeech_v1.Texttospeech = Texttospeech; - class Resource$Text { - constructor(context) { - this.context = context; - } - synthesize(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://texttospeech.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/text:synthesize').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); - } - } - } - texttospeech_v1.Resource$Text = Resource$Text; - class Resource$Voices { - 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://texttospeech.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/voices').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); - } - } - } - texttospeech_v1.Resource$Voices = Resource$Voices; -})(texttospeech_v1 = exports.texttospeech_v1 || (exports.texttospeech_v1 = {})); -//# sourceMappingURL=v1.js.map /***/ }), -/* 658 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.civicinfo = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(369); -exports.VERSIONS = { - v2: v2_1.civicinfo_v2.Civicinfo, -}; -function civicinfo(versionOrOptions) { - return googleapis_common_1.getAPI('civicinfo', versionOrOptions, exports.VERSIONS, this); -} -exports.civicinfo = civicinfo; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 659 */ +/***/ 8169: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -225323,25 +484891,27 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.containeranalysis = exports.VERSIONS = void 0; +exports.AuthPlus = exports.apikeys_v2 = exports.auth = exports.apikeys = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1alpha1_1 = __webpack_require__(763); -const v1beta1_1 = __webpack_require__(644); +const v2_1 = __webpack_require__(3355); +Object.defineProperty(exports, "apikeys_v2", { enumerable: true, get: function () { return v2_1.apikeys_v2; } }); exports.VERSIONS = { - v1alpha1: v1alpha1_1.containeranalysis_v1alpha1.Containeranalysis, - v1beta1: v1beta1_1.containeranalysis_v1beta1.Containeranalysis, + v2: v2_1.apikeys_v2.Apikeys, }; -function containeranalysis(versionOrOptions) { - return googleapis_common_1.getAPI('containeranalysis', versionOrOptions, exports.VERSIONS, this); +function apikeys(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apikeys', versionOrOptions, exports.VERSIONS, this); } -exports.containeranalysis = containeranalysis; +exports.apikeys = apikeys; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 660 */ + +/***/ 8179: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -225359,118 +484929,43 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.osconfig_v1beta = void 0; +exports.oslogin_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 = __webpack_require__(927); -var osconfig_v1beta; -(function (osconfig_v1beta) { +var oslogin_v1; +(function (oslogin_v1) { /** - * Cloud OS Config API + * Cloud OS Login API * - * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * You can use OS Login to manage access to your VM instances using IAM roles. * * @example + * ```js * const {google} = require('googleapis'); - * const osconfig = google.osconfig('v1beta'); - * - * @namespace osconfig - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Osconfig + * const oslogin = google.oslogin('v1'); + * ``` */ - class Osconfig { + class Oslogin { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - osconfig_v1beta.Osconfig = Osconfig; - class Resource$Projects { - constructor(context) { - this.context = context; - this.guestPolicies = new Resource$Projects$Guestpolicies(this.context); - this.patchDeployments = new Resource$Projects$Patchdeployments(this.context); - this.patchJobs = new Resource$Projects$Patchjobs(this.context); - this.zones = new Resource$Projects$Zones(this.context); + this.users = new Resource$Users(this.context); } } - osconfig_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Guestpolicies { + oslogin_v1.Oslogin = Oslogin; + class Resource$Users { constructor(context) { this.context = context; + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/guestPolicies').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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+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) { + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225483,10 +484978,10 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -225495,13 +484990,13 @@ var osconfig_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225514,11 +485009,11 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -225526,13 +485021,19 @@ var osconfig_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + oslogin_v1.Resource$Users = Resource$Users; + class Resource$Users$Projects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225545,11 +485046,11 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -225557,15 +485058,15 @@ var osconfig_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - osconfig_v1beta.Resource$Projects$Guestpolicies = Resource$Projects$Guestpolicies; - class Resource$Projects$Patchdeployments { + oslogin_v1.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { constructor(context) { this.context = context; } @@ -225582,10 +485083,10 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -225594,10 +485095,10 @@ var osconfig_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -225613,10 +485114,10 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -225625,10 +485126,10 @@ var osconfig_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -225644,125 +485145,25 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').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); - } - } - } - osconfig_v1beta.Resource$Projects$Patchdeployments = Resource$Projects$Patchdeployments; - class Resource$Projects$Patchjobs { - constructor(context) { - this.context = context; - this.instanceDetails = new Resource$Projects$Patchjobs$Instancedetails(this.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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+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); - } - } - execute(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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225775,11 +485176,11 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -225787,131 +485188,20 @@ var osconfig_v1beta; 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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchJobs').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); - } - } - } - osconfig_v1beta.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; - class Resource$Projects$Patchjobs$Instancedetails { - 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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/instanceDetails').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); - } - } - } - osconfig_v1beta.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; - class Resource$Projects$Zones { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Zones$Instances(this.context); - } - } - osconfig_v1beta.Resource$Projects$Zones = Resource$Projects$Zones; - class Resource$Projects$Zones$Instances { - constructor(context) { - this.context = context; - } - lookupEffectiveGuestPolicy(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://osconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+instance}:lookupEffectiveGuestPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['instance'], - pathParams: ['instance'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - osconfig_v1beta.Resource$Projects$Zones$Instances = Resource$Projects$Zones$Instances; -})(osconfig_v1beta = exports.osconfig_v1beta || (exports.osconfig_v1beta = {})); -//# sourceMappingURL=v1beta.js.map + oslogin_v1.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1 = exports.oslogin_v1 || (exports.oslogin_v1 = {})); + /***/ }), -/* 661 */ + +/***/ 8182: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -225929,25 +485219,46 @@ var osconfig_v1beta; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.file = exports.VERSIONS = void 0; +exports.AuthPlus = exports.bigquery_v2 = exports.auth = exports.bigquery = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(982); -const v1beta1_1 = __webpack_require__(833); +const v2_1 = __webpack_require__(7895); +Object.defineProperty(exports, "bigquery_v2", { enumerable: true, get: function () { return v2_1.bigquery_v2; } }); exports.VERSIONS = { - v1: v1_1.file_v1.File, - v1beta1: v1beta1_1.file_v1beta1.File, + v2: v2_1.bigquery_v2.Bigquery, }; -function file(versionOrOptions) { - return googleapis_common_1.getAPI('file', versionOrOptions, exports.VERSIONS, this); +function bigquery(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigquery', versionOrOptions, exports.VERSIONS, this); } -exports.file = file; +exports.bigquery = bigquery; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + /***/ }), -/* 662 */ + +/***/ 8185: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Node.js module for Forge mask generation functions. + * + * @author Stefan Siegl + * + * Copyright 2012 Stefan Siegl + */ +var forge = __webpack_require__(239); +__webpack_require__(8526); + +module.exports = forge.mgf = forge.mgf || {}; +forge.mgf.mgf1 = forge.mgf1; + + +/***/ }), + +/***/ 8192: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -225965,85 +485276,127 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.safebrowsing_v4 = void 0; +exports.recommender_v1beta1 = 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 = __webpack_require__(927); -var safebrowsing_v4; -(function (safebrowsing_v4) { +var recommender_v1beta1; +(function (recommender_v1beta1) { /** - * Safe Browsing API + * Recommender API + * * - * Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API. * * @example + * ```js * const {google} = require('googleapis'); - * const safebrowsing = google.safebrowsing('v4'); - * - * @namespace safebrowsing - * @type {Function} - * @version v4 - * @variation v4 - * @param {object=} options Options for Safebrowsing + * const recommender = google.recommender('v1beta1'); + * ``` */ - class Safebrowsing { + class Recommender { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.encodedFullHashes = new Resource$Encodedfullhashes(this.context); - this.encodedUpdates = new Resource$Encodedupdates(this.context); - this.fullHashes = new Resource$Fullhashes(this.context); - this.threatHits = new Resource$Threathits(this.context); - this.threatLists = new Resource$Threatlists(this.context); - this.threatListUpdates = new Resource$Threatlistupdates(this.context); - this.threatMatches = new Resource$Threatmatches(this.context); + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } } - safebrowsing_v4.Safebrowsing = Safebrowsing; - class Resource$Encodedfullhashes { + recommender_v1beta1.Recommender = Recommender; + class Resource$Billingaccounts { constructor(context) { this.context = context; + this.locations = new Resource$Billingaccounts$Locations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + recommender_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Billingaccounts$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Billingaccounts$Locations$Recommenders(this.context); + } + } + recommender_v1beta1.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; + class Resource$Billingaccounts$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = + new Resource$Billingaccounts$Locations$Insighttypes$Insights(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/encodedFullHashes/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['encodedRequest'], - pathParams: ['encodedRequest'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - safebrowsing_v4.Resource$Encodedfullhashes = Resource$Encodedfullhashes; - class Resource$Encodedupdates { + recommender_v1beta1.Resource$Billingaccounts$Locations$Insighttypes = Resource$Billingaccounts$Locations$Insighttypes; + class Resource$Billingaccounts$Locations$Insighttypes$Insights { constructor(context) { this.context = context; } @@ -226053,1473 +485406,391 @@ var safebrowsing_v4; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/encodedUpdates/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['encodedRequest'], - pathParams: ['encodedRequest'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - safebrowsing_v4.Resource$Encodedupdates = Resource$Encodedupdates; - class Resource$Fullhashes { - constructor(context) { - this.context = context; - } - find(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + markAccepted(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/fullHashes:find').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - safebrowsing_v4.Resource$Fullhashes = Resource$Fullhashes; - class Resource$Threathits { + recommender_v1beta1.Resource$Billingaccounts$Locations$Insighttypes$Insights = Resource$Billingaccounts$Locations$Insighttypes$Insights; + class Resource$Billingaccounts$Locations$Recommenders { constructor(context) { this.context = context; + this.recommendations = + new Resource$Billingaccounts$Locations$Recommenders$Recommendations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatHits').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - safebrowsing_v4.Resource$Threathits = Resource$Threathits; - class Resource$Threatlists { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - safebrowsing_v4.Resource$Threatlists = Resource$Threatlists; - class Resource$Threatlistupdates { + recommender_v1beta1.Resource$Billingaccounts$Locations$Recommenders = Resource$Billingaccounts$Locations$Recommenders; + class Resource$Billingaccounts$Locations$Recommenders$Recommendations { constructor(context) { this.context = context; } - fetch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatListUpdates:fetch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - safebrowsing_v4.Resource$Threatlistupdates = Resource$Threatlistupdates; - class Resource$Threatmatches { - constructor(context) { - this.context = context; - } - find(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatMatches:find').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - safebrowsing_v4.Resource$Threatmatches = Resource$Threatmatches; -})(safebrowsing_v4 = exports.safebrowsing_v4 || (exports.safebrowsing_v4 = {})); -//# sourceMappingURL=v4.js.map - -/***/ }), -/* 663 */, -/* 664 */, -/* 665 */, -/* 666 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.adexchangebuyer = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_2_1 = __webpack_require__(914); -const v1_3_1 = __webpack_require__(845); -const v1_4_1 = __webpack_require__(433); -exports.VERSIONS = { - 'v1.2': v1_2_1.adexchangebuyer_v1_2.Adexchangebuyer, - 'v1.3': v1_3_1.adexchangebuyer_v1_3.Adexchangebuyer, - 'v1.4': v1_4_1.adexchangebuyer_v1_4.Adexchangebuyer, -}; -function adexchangebuyer(versionOrOptions) { - return googleapis_common_1.getAPI('adexchangebuyer', versionOrOptions, exports.VERSIONS, this); -} -exports.adexchangebuyer = adexchangebuyer; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 667 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.genomics = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(419); -const v1alpha2_1 = __webpack_require__(837); -const v2alpha1_1 = __webpack_require__(941); -exports.VERSIONS = { - v1: v1_1.genomics_v1.Genomics, - v1alpha2: v1alpha2_1.genomics_v1alpha2.Genomics, - v2alpha1: v2alpha1_1.genomics_v2alpha1.Genomics, -}; -function genomics(versionOrOptions) { - return googleapis_common_1.getAPI('genomics', versionOrOptions, exports.VERSIONS, this); -} -exports.genomics = genomics; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 668 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -// Copyright 2017 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. -const googleauth_1 = __webpack_require__(115); -exports.GoogleAuth = googleauth_1.GoogleAuth; -var computeclient_1 = __webpack_require__(310); -exports.Compute = computeclient_1.Compute; -var envDetect_1 = __webpack_require__(26); -exports.GCPEnv = envDetect_1.GCPEnv; -var iam_1 = __webpack_require__(105); -exports.IAMAuth = iam_1.IAMAuth; -var idtokenclient_1 = __webpack_require__(331); -exports.IdTokenClient = idtokenclient_1.IdTokenClient; -var jwtaccess_1 = __webpack_require__(346); -exports.JWTAccess = jwtaccess_1.JWTAccess; -var jwtclient_1 = __webpack_require__(484); -exports.JWT = jwtclient_1.JWT; -var oauth2client_1 = __webpack_require__(449); -exports.CodeChallengeMethod = oauth2client_1.CodeChallengeMethod; -exports.OAuth2Client = oauth2client_1.OAuth2Client; -var loginticket_1 = __webpack_require__(207); -exports.LoginTicket = loginticket_1.LoginTicket; -var refreshclient_1 = __webpack_require__(846); -exports.UserRefreshClient = refreshclient_1.UserRefreshClient; -var transporters_1 = __webpack_require__(974); -exports.DefaultTransporter = transporters_1.DefaultTransporter; -const auth = new googleauth_1.GoogleAuth(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 669 */ -/***/ (function(module) { - -module.exports = require("util"); - -/***/ }), -/* 670 */, -/* 671 */ -/***/ (function() { - -(function(l){function m(){}function k(c,a){c=void 0===c?"utf-8":c;a=void 0===a?{fatal:!1}:a;if(-1===n.indexOf(c.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+c+"') is invalid.");if(a.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.");}if(l.TextEncoder&&l.TextDecoder)return!1;var n=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(m.prototype,"encoding",{value:"utf-8"});m.prototype.encode=function(c, -a){a=void 0===a?{stream:!1}:a;if(a.stream)throw Error("Failed to encode: the 'stream' option is unsupported.");a=0;for(var g=c.length,f=0,b=Math.max(32,g+(g>>1)+7),e=new Uint8Array(b>>3<<3);a=d){if(a=d)continue}f+4>e.length&&(b+=8,b*=1+a/c.length*2,b=b>>3<<3,h=new Uint8Array(b),h.set(e),e=h);if(0===(d&4294967168))e[f++]=d;else{if(0===(d&4294965248))e[f++]= -d>>6&31|192;else if(0===(d&4294901760))e[f++]=d>>12&15|224,e[f++]=d>>6&63|128;else if(0===(d&4292870144))e[f++]=d>>18&7|240,e[f++]=d>>12&63|128,e[f++]=d>>6&63|128;else continue;e[f++]=d&63|128}}return e.slice?e.slice(0,f):e.subarray(0,f)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});k.prototype.decode=function(c,a){a=void 0===a?{stream:!1}:a;if(a.stream)throw Error("Failed to decode: the 'stream' option is unsupported."); -a=c;!(a instanceof Uint8Array)&&a.buffer instanceof ArrayBuffer&&(a=new Uint8Array(c.buffer));c=0;for(var g=[],f=[];;){var b=c>>10&1023|55296),b=56320|b&1023);g.push(b)}}};l.TextEncoder=m;l.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this); - - -/***/ }), -/* 672 */ -/***/ (function(module) { - -module.exports = {"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}; - -/***/ }), -/* 673 */, -/* 674 */, -/* 675 */ -/***/ (function(module) { - -module.exports = function btoa(str) { - return new Buffer(str).toString('base64') -} - - -/***/ }), -/* 676 */, -/* 677 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.composer = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(764); -const v1beta1_1 = __webpack_require__(230); -exports.VERSIONS = { - v1: v1_1.composer_v1.Composer, - v1beta1: v1beta1_1.composer_v1beta1.Composer, -}; -function composer(versionOrOptions) { - return googleapis_common_1.getAPI('composer', versionOrOptions, exports.VERSIONS, this); -} -exports.composer = composer; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 678 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.script = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(448); -exports.VERSIONS = { - v1: v1_1.script_v1.Script, -}; -function script(versionOrOptions) { - return googleapis_common_1.getAPI('script', versionOrOptions, exports.VERSIONS, this); -} -exports.script = script; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 679 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Secure Hash Algorithm with a 1024-bit block size implementation. - * - * This includes: SHA-512, SHA-384, SHA-512/224, and SHA-512/256. For - * SHA-256 (block size 512 bits), see sha256.js. - * - * See FIPS 180-4 for details. - * - * @author Dave Longley - * - * Copyright (c) 2014-2015 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(220); -__webpack_require__(54); - -var sha512 = module.exports = forge.sha512 = forge.sha512 || {}; - -// SHA-512 -forge.md.sha512 = forge.md.algorithms.sha512 = sha512; - -// SHA-384 -var sha384 = forge.sha384 = forge.sha512.sha384 = forge.sha512.sha384 || {}; -sha384.create = function() { - return sha512.create('SHA-384'); -}; -forge.md.sha384 = forge.md.algorithms.sha384 = sha384; - -// SHA-512/256 -forge.sha512.sha256 = forge.sha512.sha256 || { - create: function() { - return sha512.create('SHA-512/256'); - } -}; -forge.md['sha512/256'] = forge.md.algorithms['sha512/256'] = - forge.sha512.sha256; - -// SHA-512/224 -forge.sha512.sha224 = forge.sha512.sha224 || { - create: function() { - return sha512.create('SHA-512/224'); - } -}; -forge.md['sha512/224'] = forge.md.algorithms['sha512/224'] = - forge.sha512.sha224; - -/** - * Creates a SHA-2 message digest object. - * - * @param algorithm the algorithm to use (SHA-512, SHA-384, SHA-512/224, - * SHA-512/256). - * - * @return a message digest object. - */ -sha512.create = function(algorithm) { - // do initialization as necessary - if(!_initialized) { - _init(); - } - - if(typeof algorithm === 'undefined') { - algorithm = 'SHA-512'; - } - - if(!(algorithm in _states)) { - throw new Error('Invalid SHA-512 algorithm: ' + algorithm); - } - - // SHA-512 state contains eight 64-bit integers (each as two 32-bit ints) - var _state = _states[algorithm]; - var _h = null; - - // input buffer - var _input = forge.util.createBuffer(); - - // used for 64-bit word storage - var _w = new Array(80); - for(var wi = 0; wi < 80; ++wi) { - _w[wi] = new Array(2); - } - - // determine digest length by algorithm name (default) - var digestLength = 64; - switch(algorithm) { - case 'SHA-384': - digestLength = 48; - break; - case 'SHA-512/256': - digestLength = 32; - break; - case 'SHA-512/224': - digestLength = 28; - break; - } - - // message digest object - var md = { - // SHA-512 => sha512 - algorithm: algorithm.replace('-', '').toLowerCase(), - blockLength: 128, - digestLength: digestLength, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 16 - }; - - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength128 for backwards-compatibility) - md.fullMessageLength = md.messageLength128 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _h = new Array(_state.length); - for(var i = 0; i < _state.length; ++i) { - _h[i] = _state[i].slice(0); - } - return md; - }; - // start digest automatically for first time - md.start(); - - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = ((len[1] / 0x100000000) >>> 0); - } - - // add bytes to input buffer - _input.putBytes(msg); - - // process bytes - _update(_h, _w, _input); - - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } - - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate SHA-512 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 896 mod 1024. In other words, - the data to be digested must be a multiple of 1024 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 16 bytes (128 - bits), that means that the last segment of the data must have 112 bytes - (896 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 896 mod 1024 because - 1024 - 128 = 896. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 896 mod 1024, then 1024 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in big-endian order; since length - // is stored in bytes we multiply by 8 and add carry from next int - var next, carry; - var bits = md.fullMessageLength[0] * 8; - for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { - next = md.fullMessageLength[i + 1] * 8; - carry = (next / 0x100000000) >>> 0; - bits += carry; - finalBlock.putInt32(bits >>> 0); - bits = next >>> 0; - } - finalBlock.putInt32(bits); - - var h = new Array(_h.length); - for(var i = 0; i < _h.length; ++i) { - h[i] = _h[i].slice(0); - } - _update(h, _w, finalBlock); - var rval = forge.util.createBuffer(); - var hlen; - if(algorithm === 'SHA-512') { - hlen = h.length; - } else if(algorithm === 'SHA-384') { - hlen = h.length - 2; - } else { - hlen = h.length - 4; - } - for(var i = 0; i < hlen; ++i) { - rval.putInt32(h[i][0]); - if(i !== hlen - 1 || algorithm !== 'SHA-512/224') { - rval.putInt32(h[i][1]); - } - } - return rval; - }; - - return md; -}; - -// sha-512 padding bytes not initialized yet -var _padding = null; -var _initialized = false; - -// table of constants -var _k = null; - -// initial hash states -var _states = null; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 128); - - // create K table for SHA-512 - _k = [ - [0x428a2f98, 0xd728ae22], [0x71374491, 0x23ef65cd], - [0xb5c0fbcf, 0xec4d3b2f], [0xe9b5dba5, 0x8189dbbc], - [0x3956c25b, 0xf348b538], [0x59f111f1, 0xb605d019], - [0x923f82a4, 0xaf194f9b], [0xab1c5ed5, 0xda6d8118], - [0xd807aa98, 0xa3030242], [0x12835b01, 0x45706fbe], - [0x243185be, 0x4ee4b28c], [0x550c7dc3, 0xd5ffb4e2], - [0x72be5d74, 0xf27b896f], [0x80deb1fe, 0x3b1696b1], - [0x9bdc06a7, 0x25c71235], [0xc19bf174, 0xcf692694], - [0xe49b69c1, 0x9ef14ad2], [0xefbe4786, 0x384f25e3], - [0x0fc19dc6, 0x8b8cd5b5], [0x240ca1cc, 0x77ac9c65], - [0x2de92c6f, 0x592b0275], [0x4a7484aa, 0x6ea6e483], - [0x5cb0a9dc, 0xbd41fbd4], [0x76f988da, 0x831153b5], - [0x983e5152, 0xee66dfab], [0xa831c66d, 0x2db43210], - [0xb00327c8, 0x98fb213f], [0xbf597fc7, 0xbeef0ee4], - [0xc6e00bf3, 0x3da88fc2], [0xd5a79147, 0x930aa725], - [0x06ca6351, 0xe003826f], [0x14292967, 0x0a0e6e70], - [0x27b70a85, 0x46d22ffc], [0x2e1b2138, 0x5c26c926], - [0x4d2c6dfc, 0x5ac42aed], [0x53380d13, 0x9d95b3df], - [0x650a7354, 0x8baf63de], [0x766a0abb, 0x3c77b2a8], - [0x81c2c92e, 0x47edaee6], [0x92722c85, 0x1482353b], - [0xa2bfe8a1, 0x4cf10364], [0xa81a664b, 0xbc423001], - [0xc24b8b70, 0xd0f89791], [0xc76c51a3, 0x0654be30], - [0xd192e819, 0xd6ef5218], [0xd6990624, 0x5565a910], - [0xf40e3585, 0x5771202a], [0x106aa070, 0x32bbd1b8], - [0x19a4c116, 0xb8d2d0c8], [0x1e376c08, 0x5141ab53], - [0x2748774c, 0xdf8eeb99], [0x34b0bcb5, 0xe19b48a8], - [0x391c0cb3, 0xc5c95a63], [0x4ed8aa4a, 0xe3418acb], - [0x5b9cca4f, 0x7763e373], [0x682e6ff3, 0xd6b2b8a3], - [0x748f82ee, 0x5defb2fc], [0x78a5636f, 0x43172f60], - [0x84c87814, 0xa1f0ab72], [0x8cc70208, 0x1a6439ec], - [0x90befffa, 0x23631e28], [0xa4506ceb, 0xde82bde9], - [0xbef9a3f7, 0xb2c67915], [0xc67178f2, 0xe372532b], - [0xca273ece, 0xea26619c], [0xd186b8c7, 0x21c0c207], - [0xeada7dd6, 0xcde0eb1e], [0xf57d4f7f, 0xee6ed178], - [0x06f067aa, 0x72176fba], [0x0a637dc5, 0xa2c898a6], - [0x113f9804, 0xbef90dae], [0x1b710b35, 0x131c471b], - [0x28db77f5, 0x23047d84], [0x32caab7b, 0x40c72493], - [0x3c9ebe0a, 0x15c9bebc], [0x431d67c4, 0x9c100d4c], - [0x4cc5d4be, 0xcb3e42b6], [0x597f299c, 0xfc657e2a], - [0x5fcb6fab, 0x3ad6faec], [0x6c44198c, 0x4a475817] - ]; - - // initial hash states - _states = {}; - _states['SHA-512'] = [ - [0x6a09e667, 0xf3bcc908], - [0xbb67ae85, 0x84caa73b], - [0x3c6ef372, 0xfe94f82b], - [0xa54ff53a, 0x5f1d36f1], - [0x510e527f, 0xade682d1], - [0x9b05688c, 0x2b3e6c1f], - [0x1f83d9ab, 0xfb41bd6b], - [0x5be0cd19, 0x137e2179] - ]; - _states['SHA-384'] = [ - [0xcbbb9d5d, 0xc1059ed8], - [0x629a292a, 0x367cd507], - [0x9159015a, 0x3070dd17], - [0x152fecd8, 0xf70e5939], - [0x67332667, 0xffc00b31], - [0x8eb44a87, 0x68581511], - [0xdb0c2e0d, 0x64f98fa7], - [0x47b5481d, 0xbefa4fa4] - ]; - _states['SHA-512/256'] = [ - [0x22312194, 0xFC2BF72C], - [0x9F555FA3, 0xC84C64C2], - [0x2393B86B, 0x6F53B151], - [0x96387719, 0x5940EABD], - [0x96283EE2, 0xA88EFFE3], - [0xBE5E1E25, 0x53863992], - [0x2B0199FC, 0x2C85B8AA], - [0x0EB72DDC, 0x81C52CA2] - ]; - _states['SHA-512/224'] = [ - [0x8C3D37C8, 0x19544DA2], - [0x73E19966, 0x89DCD4D6], - [0x1DFAB7AE, 0x32FF9C82], - [0x679DD514, 0x582F9FCF], - [0x0F6D2B69, 0x7BD44DA8], - [0x77E36F73, 0x04C48942], - [0x3F9D85A8, 0x6A1D36C8], - [0x1112E6AD, 0x91D692A1] - ]; - - // now initialized - _initialized = true; -} - -/** - * Updates a SHA-512 state with the given byte buffer. - * - * @param s the SHA-512 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (128 byte) chunks - var t1_hi, t1_lo; - var t2_hi, t2_lo; - var s0_hi, s0_lo; - var s1_hi, s1_lo; - var ch_hi, ch_lo; - var maj_hi, maj_lo; - var a_hi, a_lo; - var b_hi, b_lo; - var c_hi, c_lo; - var d_hi, d_lo; - var e_hi, e_lo; - var f_hi, f_lo; - var g_hi, g_lo; - var h_hi, h_lo; - var i, hi, lo, w2, w7, w15, w16; - var len = bytes.length(); - while(len >= 128) { - // the w array will be populated with sixteen 64-bit big-endian words - // and then extended into 64 64-bit words according to SHA-512 - for(i = 0; i < 16; ++i) { - w[i][0] = bytes.getInt32() >>> 0; - w[i][1] = bytes.getInt32() >>> 0; - } - for(; i < 80; ++i) { - // for word 2 words ago: ROTR 19(x) ^ ROTR 61(x) ^ SHR 6(x) - w2 = w[i - 2]; - hi = w2[0]; - lo = w2[1]; - - // high bits - t1_hi = ( - ((hi >>> 19) | (lo << 13)) ^ // ROTR 19 - ((lo >>> 29) | (hi << 3)) ^ // ROTR 61/(swap + ROTR 29) - (hi >>> 6)) >>> 0; // SHR 6 - // low bits - t1_lo = ( - ((hi << 13) | (lo >>> 19)) ^ // ROTR 19 - ((lo << 3) | (hi >>> 29)) ^ // ROTR 61/(swap + ROTR 29) - ((hi << 26) | (lo >>> 6))) >>> 0; // SHR 6 - - // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x) - w15 = w[i - 15]; - hi = w15[0]; - lo = w15[1]; - - // high bits - t2_hi = ( - ((hi >>> 1) | (lo << 31)) ^ // ROTR 1 - ((hi >>> 8) | (lo << 24)) ^ // ROTR 8 - (hi >>> 7)) >>> 0; // SHR 7 - // low bits - t2_lo = ( - ((hi << 31) | (lo >>> 1)) ^ // ROTR 1 - ((hi << 24) | (lo >>> 8)) ^ // ROTR 8 - ((hi << 25) | (lo >>> 7))) >>> 0; // SHR 7 - - // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow) - w7 = w[i - 7]; - w16 = w[i - 16]; - lo = (t1_lo + w7[1] + t2_lo + w16[1]); - w[i][0] = (t1_hi + w7[0] + t2_hi + w16[0] + - ((lo / 0x100000000) >>> 0)) >>> 0; - w[i][1] = lo >>> 0; - } - - // initialize hash value for this chunk - a_hi = s[0][0]; - a_lo = s[0][1]; - b_hi = s[1][0]; - b_lo = s[1][1]; - c_hi = s[2][0]; - c_lo = s[2][1]; - d_hi = s[3][0]; - d_lo = s[3][1]; - e_hi = s[4][0]; - e_lo = s[4][1]; - f_hi = s[5][0]; - f_lo = s[5][1]; - g_hi = s[6][0]; - g_lo = s[6][1]; - h_hi = s[7][0]; - h_lo = s[7][1]; - - // round function - for(i = 0; i < 80; ++i) { - // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e) - s1_hi = ( - ((e_hi >>> 14) | (e_lo << 18)) ^ // ROTR 14 - ((e_hi >>> 18) | (e_lo << 14)) ^ // ROTR 18 - ((e_lo >>> 9) | (e_hi << 23))) >>> 0; // ROTR 41/(swap + ROTR 9) - s1_lo = ( - ((e_hi << 18) | (e_lo >>> 14)) ^ // ROTR 14 - ((e_hi << 14) | (e_lo >>> 18)) ^ // ROTR 18 - ((e_lo << 23) | (e_hi >>> 9))) >>> 0; // ROTR 41/(swap + ROTR 9) - - // Ch(e, f, g) (optimized the same way as SHA-1) - ch_hi = (g_hi ^ (e_hi & (f_hi ^ g_hi))) >>> 0; - ch_lo = (g_lo ^ (e_lo & (f_lo ^ g_lo))) >>> 0; - - // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a) - s0_hi = ( - ((a_hi >>> 28) | (a_lo << 4)) ^ // ROTR 28 - ((a_lo >>> 2) | (a_hi << 30)) ^ // ROTR 34/(swap + ROTR 2) - ((a_lo >>> 7) | (a_hi << 25))) >>> 0; // ROTR 39/(swap + ROTR 7) - s0_lo = ( - ((a_hi << 4) | (a_lo >>> 28)) ^ // ROTR 28 - ((a_lo << 30) | (a_hi >>> 2)) ^ // ROTR 34/(swap + ROTR 2) - ((a_lo << 25) | (a_hi >>> 7))) >>> 0; // ROTR 39/(swap + ROTR 7) - - // Maj(a, b, c) (optimized the same way as SHA-1) - maj_hi = ((a_hi & b_hi) | (c_hi & (a_hi ^ b_hi))) >>> 0; - maj_lo = ((a_lo & b_lo) | (c_lo & (a_lo ^ b_lo))) >>> 0; - - // main algorithm - // t1 = (h + s1 + ch + _k[i] + _w[i]) modulo 2^64 (carry lo overflow) - lo = (h_lo + s1_lo + ch_lo + _k[i][1] + w[i][1]); - t1_hi = (h_hi + s1_hi + ch_hi + _k[i][0] + w[i][0] + - ((lo / 0x100000000) >>> 0)) >>> 0; - t1_lo = lo >>> 0; - - // t2 = s0 + maj modulo 2^64 (carry lo overflow) - lo = s0_lo + maj_lo; - t2_hi = (s0_hi + maj_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - t2_lo = lo >>> 0; - - h_hi = g_hi; - h_lo = g_lo; - - g_hi = f_hi; - g_lo = f_lo; - - f_hi = e_hi; - f_lo = e_lo; - - // e = (d + t1) modulo 2^64 (carry lo overflow) - lo = d_lo + t1_lo; - e_hi = (d_hi + t1_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - e_lo = lo >>> 0; - - d_hi = c_hi; - d_lo = c_lo; - - c_hi = b_hi; - c_lo = b_lo; - - b_hi = a_hi; - b_lo = a_lo; - - // a = (t1 + t2) modulo 2^64 (carry lo overflow) - lo = t1_lo + t2_lo; - a_hi = (t1_hi + t2_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - a_lo = lo >>> 0; - } - - // update hash state (additional modulo 2^64) - lo = s[0][1] + a_lo; - s[0][0] = (s[0][0] + a_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[0][1] = lo >>> 0; - - lo = s[1][1] + b_lo; - s[1][0] = (s[1][0] + b_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[1][1] = lo >>> 0; - - lo = s[2][1] + c_lo; - s[2][0] = (s[2][0] + c_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[2][1] = lo >>> 0; - - lo = s[3][1] + d_lo; - s[3][0] = (s[3][0] + d_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[3][1] = lo >>> 0; - - lo = s[4][1] + e_lo; - s[4][0] = (s[4][0] + e_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[4][1] = lo >>> 0; - - lo = s[5][1] + f_lo; - s[5][0] = (s[5][0] + f_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[5][1] = lo >>> 0; - - lo = s[6][1] + g_lo; - s[6][0] = (s[6][0] + g_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[6][1] = lo >>> 0; - - lo = s[7][1] + h_lo; - s[7][0] = (s[7][0] + h_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[7][1] = lo >>> 0; - - len -= 128; - } -} - - -/***/ }), -/* 680 */, -/* 681 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.testing = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(405); -exports.VERSIONS = { - v1: v1_1.testing_v1.Testing, -}; -function testing(versionOrOptions) { - return googleapis_common_1.getAPI('testing', versionOrOptions, exports.VERSIONS, this); -} -exports.testing = testing; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 682 */ -/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) { - -// Copyright 2020 The Oppia Authors. All Rights Reserved. -// -// 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. - -/** - * @fileoverview Entry point of oppiabot github actions. - */ - -const core = __webpack_require__(470); -const { context } = __webpack_require__(469); -const dispatcher = __webpack_require__(760); - -core.info( - `About to dispatch:${context.eventName} and ${context.payload.action}.` -); -dispatcher.dispatch(context.eventName, context.payload.action); - - -/***/ }), -/* 683 */ -/***/ (function(__unusedmodule, exports) { - -"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.youtubeAnalytics_v1 = void 0; -var youtubeAnalytics_v1; -(function (youtubeAnalytics_v1) { - /** - * YouTube Analytics API - * - * Retrieves your YouTube Analytics data. - * - * @example - * const {google} = require('googleapis'); - * const youtubeAnalytics = google.youtubeAnalytics('v1'); - * - * @namespace youtubeAnalytics - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Youtubeanalytics - */ - class Youtubeanalytics { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - } - } - youtubeAnalytics_v1.Youtubeanalytics = Youtubeanalytics; -})(youtubeAnalytics_v1 = exports.youtubeAnalytics_v1 || (exports.youtubeAnalytics_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 684 */, -/* 685 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.logging = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(110); -exports.VERSIONS = { - v2: v2_1.logging_v2.Logging, -}; -function logging(versionOrOptions) { - return googleapis_common_1.getAPI('logging', versionOrOptions, exports.VERSIONS, this); -} -exports.logging = logging; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 686 */, -/* 687 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const events_1 = __webpack_require__(614); -const debug_1 = __importDefault(__webpack_require__(377)); -const promisify_1 = __importDefault(__webpack_require__(254)); -const debug = debug_1.default('agent-base'); -function isAgent(v) { - return Boolean(v) && typeof v.addRequest === 'function'; -} -function isSecureEndpoint() { - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1); -} -function createAgent(callback, opts) { - return new createAgent.Agent(callback, opts); -} -(function (createAgent) { - /** - * Base `http.Agent` implementation. - * No pooling/keep-alive is implemented by default. - * - * @param {Function} callback - * @api public - */ - class Agent extends events_1.EventEmitter { - constructor(callback, _opts) { - super(); - let opts = _opts; - if (typeof callback === 'function') { - this.callback = callback; + markClaimed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - else if (callback) { - opts = callback; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - // Timeout for the socket to be returned from the callback - this.timeout = null; - if (opts && typeof opts.timeout === 'number') { - this.timeout = opts.timeout; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - // These aren't actually used by `agent-base`, but are required - // for the TypeScript definition files in `@types/node` :/ - this.maxFreeSockets = 1; - this.maxSockets = 1; - this.sockets = {}; - this.requests = {}; - } - get defaultPort() { - if (typeof this.explicitDefaultPort === 'number') { - return this.explicitDefaultPort; + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - return isSecureEndpoint() ? 443 : 80; - } - set defaultPort(v) { - this.explicitDefaultPort = v; } - get protocol() { - if (typeof this.explicitProtocol === 'string') { - return this.explicitProtocol; + markDismissed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - return isSecureEndpoint() ? 'https:' : 'http:'; - } - set protocol(v) { - this.explicitProtocol = v; - } - callback(req, opts, fn) { - throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); - } - /** - * Called by node-core's "_http_client.js" module when creating - * a new HTTP request with this Agent instance. - * - * @api public - */ - addRequest(req, _opts) { - const opts = Object.assign({}, _opts); - if (typeof opts.secureEndpoint !== 'boolean') { - opts.secureEndpoint = isSecureEndpoint(); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - if (opts.host == null) { - opts.host = 'localhost'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - if (opts.port == null) { - opts.port = opts.secureEndpoint ? 443 : 80; + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - if (opts.protocol == null) { - opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; + } + markFailed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - if (opts.host && opts.path) { - // If both a `host` and `path` are specified then it's most - // likely the result of a `url.parse()` call... we need to - // remove the `path` portion so that `net.connect()` doesn't - // attempt to open that as a unix socket file. - delete opts.path; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - delete opts.agent; - delete opts.hostname; - delete opts._defaultAgent; - delete opts.defaultPort; - delete opts.createConnection; - // Hint to use "Connection: close" - // XXX: non-documented `http` module API :( - req._last = true; - req.shouldKeepAlive = false; - let timedOut = false; - let timeoutId = null; - const timeoutMs = opts.timeout || this.timeout; - const onerror = (err) => { - if (req._hadError) - return; - req.emit('error', err); - // For Safety. Some additional errors might fire later on - // and we need to make sure we don't double-fire the error event. - req._hadError = true; - }; - const ontimeout = () => { - timeoutId = null; - timedOut = true; - const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); - err.code = 'ETIMEOUT'; - onerror(err); - }; - const callbackError = (err) => { - if (timedOut) - return; - if (timeoutId !== null) { - clearTimeout(timeoutId); - timeoutId = null; - } - onerror(err); - }; - const onsocket = (socket) => { - if (timedOut) - return; - if (timeoutId != null) { - clearTimeout(timeoutId); - timeoutId = null; - } - if (isAgent(socket)) { - // `socket` is actually an `http.Agent` instance, so - // relinquish responsibility for this `req` to the Agent - // from here on - debug('Callback returned another Agent instance %o', socket.constructor.name); - socket.addRequest(req, opts); - return; - } - if (socket) { - socket.once('free', () => { - this.freeSocket(socket, opts); - }); - req.onSocket(socket); - return; - } - const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); - onerror(err); + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, }; - if (typeof this.callback !== 'function') { - onerror(new Error('`callback` is not defined')); - return; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - if (!this.promisifiedCallback) { - if (this.callback.length >= 3) { - debug('Converting legacy callback function to promise'); - this.promisifiedCallback = promisify_1.default(this.callback); - } - else { - this.promisifiedCallback = this.callback; - } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - if (typeof timeoutMs === 'number' && timeoutMs > 0) { - timeoutId = setTimeout(ontimeout, timeoutMs); + } + markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - if ('port' in opts && typeof opts.port !== 'number') { - opts.port = Number(opts.port); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - try { - debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); - Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - catch (err) { - Promise.reject(err).catch(callbackError); + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - freeSocket(socket, opts) { - debug('Freeing socket %o %o', socket.constructor.name, opts); - socket.destroy(); - } - destroy() { - debug('Destroying agent %o', this.constructor.name); + } + recommender_v1beta1.Resource$Billingaccounts$Locations$Recommenders$Recommendations = Resource$Billingaccounts$Locations$Recommenders$Recommendations; + class Resource$Folders { + constructor(context) { + this.context = context; + this.locations = new Resource$Folders$Locations(this.context); } } - createAgent.Agent = Agent; - // So that `instanceof` works correctly - createAgent.prototype = createAgent.Agent.prototype; -})(createAgent || (createAgent = {})); -module.exports = createAgent; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 688 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.datafusion = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(695); -exports.VERSIONS = { - v1beta1: v1beta1_1.datafusion_v1beta1.Datafusion, -}; -function datafusion(versionOrOptions) { - return googleapis_common_1.getAPI('datafusion', versionOrOptions, exports.VERSIONS, this); -} -exports.datafusion = datafusion; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 689 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.secretmanager_v1beta1 = 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 = __webpack_require__(927); -var secretmanager_v1beta1; -(function (secretmanager_v1beta1) { - /** - * Secret Manager API - * - * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. - * - * @example - * const {google} = require('googleapis'); - * const secretmanager = google.secretmanager('v1beta1'); - * - * @namespace secretmanager - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Secretmanager - */ - class Secretmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); + recommender_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Folders$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Folders$Locations$Recommenders(this.context); } } - secretmanager_v1beta1.Secretmanager = Secretmanager; - class Resource$Projects { + recommender_v1beta1.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Insighttypes { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - this.secrets = new Resource$Projects$Secrets(this.context); + this.insights = new Resource$Folders$Locations$Insighttypes$Insights(this.context); } } - secretmanager_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + recommender_v1beta1.Resource$Folders$Locations$Insighttypes = Resource$Folders$Locations$Insighttypes; + class Resource$Folders$Locations$Insighttypes$Insights { constructor(context) { this.context = context; } @@ -227529,14 +485800,15 @@ var secretmanager_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -227548,10 +485820,10 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -227560,56 +485832,129 @@ var secretmanager_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAccepted(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - secretmanager_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Secrets { + recommender_v1beta1.Resource$Folders$Locations$Insighttypes$Insights = Resource$Folders$Locations$Insighttypes$Insights; + class Resource$Folders$Locations$Recommenders { constructor(context) { this.context = context; - this.versions = new Resource$Projects$Secrets$Versions(this.context); + this.recommendations = + new Resource$Folders$Locations$Recommenders$Recommendations(this.context); } - addVersion(paramsOrCallback, optionsOrCallback, callback) { + } + recommender_v1beta1.Resource$Folders$Locations$Recommenders = Resource$Folders$Locations$Recommenders; + class Resource$Folders$Locations$Recommenders$Recommendations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -227617,61 +485962,63 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + markClaimed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + markDismissed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -227679,26 +486026,114 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + markFailed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markSucceeded(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1beta1.Resource$Folders$Locations$Recommenders$Recommendations = Resource$Folders$Locations$Recommenders$Recommendations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + recommender_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Organizations$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Organizations$Locations$Recommenders(this.context); + } + } + recommender_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = + new Resource$Organizations$Locations$Insighttypes$Insights(this.context); + } + getConfig(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://recommender.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -227710,41 +486145,80 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + recommender_v1beta1.Resource$Organizations$Locations$Insighttypes = Resource$Organizations$Locations$Insighttypes; + class Resource$Organizations$Locations$Insighttypes$Insights { + 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -227753,17 +486227,18 @@ var secretmanager_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -227772,30 +486247,31 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + markAccepted(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -227803,97 +486279,108 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + recommender_v1beta1.Resource$Organizations$Locations$Insighttypes$Insights = Resource$Organizations$Locations$Insighttypes$Insights; + class Resource$Organizations$Locations$Recommenders { + constructor(context) { + this.context = context; + this.recommendations = + new Resource$Organizations$Locations$Recommenders$Recommendations(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - secretmanager_v1beta1.Resource$Projects$Secrets = Resource$Projects$Secrets; - class Resource$Projects$Secrets$Versions { + recommender_v1beta1.Resource$Organizations$Locations$Recommenders = Resource$Organizations$Locations$Recommenders; + class Resource$Organizations$Locations$Recommenders$Recommendations { constructor(context) { this.context = context; } - access(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -227902,29 +486389,62 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - destroy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markClaimed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -227933,29 +486453,30 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { + markDismissed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -227964,29 +486485,30 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { + markFailed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -227995,30 +486517,31 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + markSucceeded(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -228026,190 +486549,259 @@ var secretmanager_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + recommender_v1beta1.Resource$Organizations$Locations$Recommenders$Recommendations = Resource$Organizations$Locations$Recommenders$Recommendations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + recommender_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Projects$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Projects$Locations$Recommenders(this.context); + } + } + recommender_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = new Resource$Projects$Locations$Insighttypes$Insights(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - secretmanager_v1beta1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; -})(secretmanager_v1beta1 = exports.secretmanager_v1beta1 || (exports.secretmanager_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 690 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.factchecktools_v1alpha1 = 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 = __webpack_require__(927); -var factchecktools_v1alpha1; -(function (factchecktools_v1alpha1) { - /** - * Fact Check Tools API - * - * - * - * @example - * const {google} = require('googleapis'); - * const factchecktools = google.factchecktools('v1alpha1'); - * - * @namespace factchecktools - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Factchecktools - */ - class Factchecktools { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + updateConfig(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, }; - this.claims = new Resource$Claims(this.context); - this.pages = new Resource$Pages(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - factchecktools_v1alpha1.Factchecktools = Factchecktools; - class Resource$Claims { + recommender_v1beta1.Resource$Projects$Locations$Insighttypes = Resource$Projects$Locations$Insighttypes; + class Resource$Projects$Locations$Insighttypes$Insights { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/claims:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + markAccepted(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - factchecktools_v1alpha1.Resource$Claims = Resource$Claims; - class Resource$Pages { + recommender_v1beta1.Resource$Projects$Locations$Insighttypes$Insights = Resource$Projects$Locations$Insighttypes$Insights; + class Resource$Projects$Locations$Recommenders { constructor(context) { this.context = context; + this.recommendations = + new Resource$Projects$Locations$Recommenders$Recommendations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -228217,28 +486809,36 @@ var factchecktools_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + recommender_v1beta1.Resource$Projects$Locations$Recommenders = Resource$Projects$Locations$Recommenders; + class Resource$Projects$Locations$Recommenders$Recommendations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -228247,59 +486847,63 @@ var factchecktools_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + markClaimed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -228307,190 +486911,116 @@ var factchecktools_v1alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - factchecktools_v1alpha1.Resource$Pages = Resource$Pages; -})(factchecktools_v1alpha1 = exports.factchecktools_v1alpha1 || (exports.factchecktools_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 691 */, -/* 692 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -class Deprecation extends Error { - constructor(message) { - super(message); // Maintains proper stack trace (only available on V8) - - /* istanbul ignore next */ - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - - this.name = 'Deprecation'; - } - -} - -exports.Deprecation = Deprecation; - - -/***/ }), -/* 693 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.domainsrdap = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(515); -exports.VERSIONS = { - v1: v1_1.domainsrdap_v1.Domainsrdap, -}; -function domainsrdap(versionOrOptions) { - return googleapis_common_1.getAPI('domainsrdap', versionOrOptions, exports.VERSIONS, this); -} -exports.domainsrdap = domainsrdap; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 694 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2012 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.GoogleApis = exports.AuthPlus = void 0; -const apis = __webpack_require__(442); -const googleapis_common_1 = __webpack_require__(927); -Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_1.AuthPlus; } }); -class GoogleApis extends apis.GeneratedAPIs { - /** - * GoogleApis constructor. - * - * @example - * const GoogleApis = require('googleapis').GoogleApis; - * const google = new GoogleApis(); - * - * @class GoogleApis - * @param {Object} [options] Configuration options. - */ - constructor(options) { - super(); - this._discovery = new googleapis_common_1.Discovery({ debug: false, includePrivate: false }); - this.auth = new googleapis_common_1.AuthPlus(); - this._options = {}; - this.options(options); - } - /** - * Obtain a Map of supported APIs, along with included API versions. - */ - getSupportedAPIs() { - const apiMap = {}; - Object.keys(apis.APIS).forEach(a => { - apiMap[a] = Object.keys(apis.APIS[a]); - }); - return apiMap; - } - /** - * Set options. - * - * @param {Object} [options] Configuration options. - */ - options(options) { - this._options = options || {}; - } - /** - * Add APIs endpoints to googleapis object - * E.g. googleapis.drive and googleapis.datastore - * - * @name GoogleApis#addAPIs - * @method - * @param {Object} apis Apis to be added to this GoogleApis instance. - * @private - */ - addAPIs(apisToAdd) { - for (const apiName in apisToAdd) { - // eslint-disable-next-line no-prototype-builtins - if (apisToAdd.hasOwnProperty(apiName)) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - this[apiName] = apisToAdd[apiName].bind(this); + markDismissed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - discover(url, callback) { - if (callback) { - this.discoverAsync(url) - .then(() => callback()) - .catch(callback); + markFailed(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - else { - return this.discoverAsync(url); + markSucceeded(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://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - async discoverAsync(url) { - const allApis = await this._discovery.discoverAllAPIs(url); - this.addAPIs(allApis); - } - /** - * Dynamically generate an Endpoint object from a discovery doc. - * - * @param path Url or file path to discover doc for a single API. - * @param Options to configure the Endpoint object generated from the - * discovery doc. - * @returns A promise that resolves with the configured endpoint. - */ - async discoverAPI(apiPath, options = {}) { - const endpointCreator = await this._discovery.discoverAPI(apiPath); - const ep = endpointCreator(options, this); - ep.google = this; // for drive.google.transporter - return Object.freeze(ep); - } -} -exports.GoogleApis = GoogleApis; -//# sourceMappingURL=googleapis.js.map + recommender_v1beta1.Resource$Projects$Locations$Recommenders$Recommendations = Resource$Projects$Locations$Recommenders$Recommendations; +})(recommender_v1beta1 = exports.recommender_v1beta1 || (exports.recommender_v1beta1 = {})); + /***/ }), -/* 695 */ + +/***/ 8206: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -228508,7 +487038,7 @@ exports.GoogleApis = GoogleApis; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.datafusion_v1beta1 = void 0; +exports.adsense_v1_4 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/class-name-casing */ /* eslint-disable @typescript-eslint/no-unused-vars */ @@ -228516,49 +487046,52 @@ exports.datafusion_v1beta1 = void 0; /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = __webpack_require__(927); -var datafusion_v1beta1; -(function (datafusion_v1beta1) { +var adsense_v1_4; +(function (adsense_v1_4) { /** - * Cloud Data Fusion API + * AdSense Management API * - * Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure. + * Accesses AdSense publishers' inventory and generates performance reports. * * @example + * ```js * const {google} = require('googleapis'); - * const datafusion = google.datafusion('v1beta1'); - * - * @namespace datafusion - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Datafusion + * const adsense = google.adsense('v1.4'); + * ``` */ - class Datafusion { + class Adsense { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - datafusion_v1beta1.Datafusion = Datafusion; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.accounts = new Resource$Accounts(this.context); + this.adclients = new Resource$Adclients(this.context); + this.adunits = new Resource$Adunits(this.context); + this.alerts = new Resource$Alerts(this.context); + this.customchannels = new Resource$Customchannels(this.context); + this.metadata = new Resource$Metadata(this.context); + this.payments = new Resource$Payments(this.context); + this.reports = new Resource$Reports(this.context); + this.savedadstyles = new Resource$Savedadstyles(this.context); + this.urlchannels = new Resource$Urlchannels(this.context); } } - datafusion_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + adsense_v1_4.Adsense = Adsense; + class Resource$Accounts { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); + this.adclients = new Resource$Accounts$Adclients(this.context); + this.adunits = new Resource$Accounts$Adunits(this.context); + this.alerts = new Resource$Accounts$Alerts(this.context); + this.customchannels = new Resource$Accounts$Customchannels(this.context); + this.payments = new Resource$Accounts$Payments(this.context); + this.reports = new Resource$Accounts$Reports(this.context); + this.savedadstyles = new Resource$Accounts$Savedadstyles(this.context); + this.urlchannels = new Resource$Accounts$Urlchannels(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -228569,27 +487102,26 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -228600,31 +487132,31 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datafusion_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { + adsense_v1_4.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adclients { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + getAdCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228637,25 +487169,26 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228668,24 +487201,31 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adsense_v1_4.Resource$Accounts$Adclients = Resource$Accounts$Adclients; + class Resource$Accounts$Adunits { + constructor(context) { + this.context = context; + this.customchannels = new Resource$Accounts$Adunits$Customchannels(this.context); + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -228699,25 +487239,26 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getAdCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228730,22 +487271,23 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -228761,25 +487303,32 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Accounts$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Adunits$Customchannels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228792,25 +487341,32 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Accounts$Adunits$Customchannels = Resource$Accounts$Adunits$Customchannels; + class Resource$Accounts$Alerts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228823,25 +487379,25 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'alertId'], + pathParams: ['accountId', 'alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228854,25 +487410,32 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Accounts$Alerts = Resource$Accounts$Alerts; + class Resource$Accounts$Customchannels { + constructor(context) { + this.context = context; + this.adunits = new Resource$Accounts$Customchannels$Adunits(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228885,25 +487448,26 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['accountId', 'adClientId', 'customChannelId'], + pathParams: ['accountId', 'adClientId', 'customChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgrade(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228916,31 +487480,32 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - datafusion_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { + adsense_v1_4.Resource$Accounts$Customchannels = Resource$Accounts$Customchannels; + class Resource$Accounts$Customchannels$Adunits { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228953,25 +487518,32 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'adClientId', 'customChannelId'], + pathParams: ['accountId', 'adClientId', 'customChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Accounts$Customchannels$Adunits = Resource$Accounts$Customchannels$Adunits; + class Resource$Accounts$Payments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228984,25 +487556,32 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/payments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Accounts$Payments = Resource$Accounts$Payments; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + this.saved = new Resource$Accounts$Reports$Saved(this.context); + } + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229015,25 +487594,31 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'startDate', 'endDate'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Accounts$Reports$Saved { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229046,174 +487631,61 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'savedReportId'], + pathParams: ['accountId', 'savedReportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datafusion_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(datafusion_v1beta1 = exports.datafusion_v1beta1 || (exports.datafusion_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 696 */ -/***/ (function(module) { - -"use strict"; - - -/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -function isObject(val) { - return val != null && typeof val === 'object' && Array.isArray(val) === false; -} - -/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -function isObjectObject(o) { - return isObject(o) === true - && Object.prototype.toString.call(o) === '[object Object]'; -} - -function isPlainObject(o) { - var ctor,prot; - - if (isObjectObject(o) === false) return false; - - // If has modified constructor - ctor = o.constructor; - if (typeof ctor !== 'function') return false; - - // If has modified prototype - prot = ctor.prototype; - if (isObjectObject(prot) === false) return false; - - // If constructor does not have an Object-specific method - if (prot.hasOwnProperty('isPrototypeOf') === false) { - return false; - } - - // Most likely a plain Object - return true; -} - -module.exports = isPlainObject; - - -/***/ }), -/* 697 */ -/***/ (function(module) { - -"use strict"; - -module.exports = (promise, onFinally) => { - onFinally = onFinally || (() => {}); - - return promise.then( - val => new Promise(resolve => { - resolve(onFinally()); - }).then(() => val), - err => new Promise(resolve => { - resolve(onFinally()); - }).then(() => { - throw err; - }) - ); -}; - - -/***/ }), -/* 698 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.tpu_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 = __webpack_require__(927); -var tpu_v1; -(function (tpu_v1) { - /** - * Cloud TPU API - * - * TPU API provides customers with access to Google TPU technology. - * - * @example - * const {google} = require('googleapis'); - * const tpu = google.tpu('v1'); - * - * @namespace tpu - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Tpu - */ - class Tpu { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/reports/saved').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); - } - } - tpu_v1.Tpu = Tpu; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - tpu_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + adsense_v1_4.Resource$Accounts$Reports$Saved = Resource$Accounts$Reports$Saved; + class Resource$Accounts$Savedadstyles { constructor(context) { this.context = context; - this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); - this.nodes = new Resource$Projects$Locations$Nodes(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.tensorflowVersions = new Resource$Projects$Locations$Tensorflowversions(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -229228,22 +487700,23 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'savedAdStyleId'], + pathParams: ['accountId', 'savedAdStyleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -229259,31 +487732,31 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/savedadstyles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Acceleratortypes { + adsense_v1_4.Resource$Accounts$Savedadstyles = Resource$Accounts$Savedadstyles; + class Resource$Accounts$Urlchannels { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229296,27 +487769,33 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adsense_v1_4.Resource$Accounts$Urlchannels = Resource$Accounts$Urlchannels; + class Resource$Adclients { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229327,33 +487806,33 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/adclients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; - class Resource$Projects$Locations$Nodes { + adsense_v1_4.Resource$Adclients = Resource$Adclients; + class Resource$Adunits { constructor(context) { this.context = context; + this.customchannels = new Resource$Adunits$Customchannels(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229364,25 +487843,26 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['adClientId', 'adUnitId'], + pathParams: ['adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getAdCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229395,27 +487875,27 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['adClientId', 'adUnitId'], + pathParams: ['adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229426,24 +487906,30 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adsense_v1_4.Resource$Adunits = Resource$Adunits; + class Resource$Adunits$Customchannels { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -229457,27 +487943,33 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['adClientId', 'adUnitId'], + pathParams: ['adClientId', 'adUnitId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reimage(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + adsense_v1_4.Resource$Adunits$Customchannels = Resource$Adunits$Customchannels; + class Resource$Alerts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229488,27 +487980,26 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsense/v1.4/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['alertId'], + pathParams: ['alertId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229519,25 +488010,32 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsense/v1.4/alerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Alerts = Resource$Alerts; + class Resource$Customchannels { + constructor(context) { + this.context = context; + this.adunits = new Resource$Customchannels$Adunits(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229550,31 +488048,26 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tpu_v1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229587,25 +488080,31 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Customchannels = Resource$Customchannels; + class Resource$Customchannels$Adunits { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229618,25 +488117,40 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Customchannels$Adunits = Resource$Customchannels$Adunits; + class Resource$Metadata { + constructor(context) { + this.context = context; + this.dimensions = new Resource$Metadata$Dimensions(this.context); + this.metrics = new Resource$Metadata$Metrics(this.context); + } + } + adsense_v1_4.Resource$Metadata = Resource$Metadata; + class Resource$Metadata$Dimensions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229649,24 +488163,30 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adsense_v1_4.Resource$Metadata$Dimensions = Resource$Metadata$Dimensions; + class Resource$Metadata$Metrics { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -229680,33 +488200,32 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Tensorflowversions { + adsense_v1_4.Resource$Metadata$Metrics = Resource$Metadata$Metrics; + class Resource$Payments { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229717,27 +488236,33 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/payments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + adsense_v1_4.Resource$Payments = Resource$Payments; + class Resource$Reports { + constructor(context) { + this.context = context; + this.saved = new Resource$Reports$Saved(this.context); + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -229748,98 +488273,31 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['startDate', 'endDate'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tpu_v1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; -})(tpu_v1 = exports.tpu_v1 || (exports.tpu_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 699 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.runtimeconfig_v1beta1 = 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 = __webpack_require__(927); -var runtimeconfig_v1beta1; -(function (runtimeconfig_v1beta1) { - /** - * Cloud Runtime Configuration API - * - * The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. - * - * @example - * const {google} = require('googleapis'); - * const runtimeconfig = google.runtimeconfig('v1beta1'); - * - * @namespace runtimeconfig - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Runtimeconfig - */ - class Runtimeconfig { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - runtimeconfig_v1beta1.Runtimeconfig = Runtimeconfig; - class Resource$Projects { - constructor(context) { - this.context = context; - this.configs = new Resource$Projects$Configs(this.context); - } - } - runtimeconfig_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Configs { + adsense_v1_4.Resource$Reports = Resource$Reports; + class Resource$Reports$Saved { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Configs$Operations(this.context); - this.variables = new Resource$Projects$Configs$Variables(this.context); - this.waiters = new Resource$Projects$Configs$Waiters(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229852,25 +488310,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adsense/v1.4/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['savedReportId'], + pathParams: ['savedReportId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229883,24 +488341,30 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adsense/v1.4/reports/saved').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adsense_v1_4.Resource$Reports$Saved = Resource$Reports$Saved; + class Resource$Savedadstyles { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -229914,25 +488378,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['savedAdStyleId'], + pathParams: ['savedAdStyleId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229945,25 +488409,128 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adsense/v1.4/savedadstyles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Savedadstyles = Resource$Savedadstyles; + class Resource$Urlchannels { + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v1_4.Resource$Urlchannels = Resource$Urlchannels; +})(adsense_v1_4 = exports.adsense_v1_4 || (exports.adsense_v1_4 = {})); + + +/***/ }), + +/***/ 8207: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudscheduler_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudscheduler_v1; +(function (cloudscheduler_v1) { + /** + * Cloud Scheduler API + * + * Creates and manages jobs run on a regular recurring schedule. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudscheduler = google.cloudscheduler('v1'); + * ``` + */ + class Cloudscheduler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudscheduler_v1.Cloudscheduler = Cloudscheduler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudscheduler_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229976,25 +488543,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230007,25 +488574,31 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + cloudscheduler_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230038,25 +488611,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230069,11 +488642,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -230081,18 +488654,12 @@ var runtimeconfig_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - runtimeconfig_v1beta1.Resource$Projects$Configs = Resource$Projects$Configs; - class Resource$Projects$Configs$Operations { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -230106,10 +488673,10 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -230118,13 +488685,13 @@ var runtimeconfig_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230137,31 +488704,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - runtimeconfig_v1beta1.Resource$Projects$Configs$Operations = Resource$Projects$Configs$Operations; - class Resource$Projects$Configs$Variables { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230174,25 +488735,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230205,11 +488766,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -230217,13 +488778,13 @@ var runtimeconfig_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230236,11 +488797,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -230248,13 +488809,13 @@ var runtimeconfig_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230267,25 +488828,131 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + cloudscheduler_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1 = exports.cloudscheduler_v1 || (exports.cloudscheduler_v1 = {})); + + +/***/ }), + +/***/ 8222: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.vmmigration_v1alpha1 = exports.vmmigration_v1 = exports.auth = exports.vmmigration = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8450); +Object.defineProperty(exports, "vmmigration_v1", { enumerable: true, get: function () { return v1_1.vmmigration_v1; } }); +const v1alpha1_1 = __webpack_require__(9225); +Object.defineProperty(exports, "vmmigration_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.vmmigration_v1alpha1; } }); +exports.VERSIONS = { + v1: v1_1.vmmigration_v1.Vmmigration, + v1alpha1: v1alpha1_1.vmmigration_v1alpha1.Vmmigration, +}; +function vmmigration(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('vmmigration', versionOrOptions, exports.VERSIONS, this); +} +exports.vmmigration = vmmigration; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8227: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.accesscontextmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var accesscontextmanager_v1; +(function (accesscontextmanager_v1) { + /** + * Access Context Manager API + * + * An API for setting attribute based access control to requests to Google Cloud services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const accesscontextmanager = google.accesscontextmanager('v1'); + * ``` + */ + class Accesscontextmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accessPolicies = new Resource$Accesspolicies(this.context); + this.operations = new Resource$Operations(this.context); + this.organizations = new Resource$Organizations(this.context); + } + } + accesscontextmanager_v1.Accesscontextmanager = Accesscontextmanager; + class Resource$Accesspolicies { + constructor(context) { + this.context = context; + this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context); + this.authorizedOrgsDescs = + new Resource$Accesspolicies$Authorizedorgsdescs(this.context); + this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230298,25 +488965,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230329,11 +488996,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -230341,13 +489008,13 @@ var runtimeconfig_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230360,11 +489027,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -230372,19 +489039,13 @@ var runtimeconfig_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - runtimeconfig_v1beta1.Resource$Projects$Configs$Variables = Resource$Projects$Configs$Variables; - class Resource$Projects$Configs$Waiters { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230397,25 +489058,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230428,25 +489089,25 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230459,11 +489120,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -230471,44 +489132,13 @@ var runtimeconfig_v1beta1; 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://runtimeconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230518,773 +489148,30 @@ var runtimeconfig_v1beta1; options = {}; } if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } - } - } - runtimeconfig_v1beta1.Resource$Projects$Configs$Waiters = Resource$Projects$Configs$Waiters; -})(runtimeconfig_v1beta1 = exports.runtimeconfig_v1beta1 || (exports.runtimeconfig_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 700 */, -/* 701 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var GetIntrinsic = __webpack_require__(915); -var callBound = __webpack_require__(630); -var inspect = __webpack_require__(812); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $WeakMap = GetIntrinsic('%WeakMap%', true); -var $Map = GetIntrinsic('%Map%', true); - -var $weakMapGet = callBound('WeakMap.prototype.get', true); -var $weakMapSet = callBound('WeakMap.prototype.set', true); -var $weakMapHas = callBound('WeakMap.prototype.has', true); -var $mapGet = callBound('Map.prototype.get', true); -var $mapSet = callBound('Map.prototype.set', true); -var $mapHas = callBound('Map.prototype.has', true); - -/* - * This function traverses the list returning the node corresponding to the - * given key. - * - * That node is also moved to the head of the list, so that if it's accessed - * again we don't need to traverse the whole list. By doing so, all the recently - * used nodes can be accessed relatively quickly. - */ -var listGetNode = function (list, key) { // eslint-disable-line consistent-return - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { - if (curr.key === key) { - prev.next = curr.next; - curr.next = list.next; - list.next = curr; // eslint-disable-line no-param-reassign - return curr; - } - } -}; - -var listGet = function (objects, key) { - var node = listGetNode(objects, key); - return node && node.value; -}; -var listSet = function (objects, key, value) { - var node = listGetNode(objects, key); - if (node) { - node.value = value; - } else { - // Prepend the new node to the beginning of the list - objects.next = { // eslint-disable-line no-param-reassign - key: key, - next: objects.next, - value: value - }; - } -}; -var listHas = function (objects, key) { - return !!listGetNode(objects, key); -}; - -module.exports = function getSideChannel() { - var $wm; - var $m; - var $o; - var channel = { - assert: function (key) { - if (!channel.has(key)) { - throw new $TypeError('Side channel does not contain ' + inspect(key)); - } - }, - get: function (key) { // eslint-disable-line consistent-return - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapGet($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapGet($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listGet($o, key); - } - } - }, - has: function (key) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if ($wm) { - return $weakMapHas($wm, key); - } - } else if ($Map) { - if ($m) { - return $mapHas($m, key); - } - } else { - if ($o) { // eslint-disable-line no-lonely-if - return listHas($o, key); - } - } - return false; - }, - set: function (key, value) { - if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { - if (!$wm) { - $wm = new $WeakMap(); - } - $weakMapSet($wm, key, value); - } else if ($Map) { - if (!$m) { - $m = new $Map(); - } - $mapSet($m, key, value); - } else { - if (!$o) { - /* - * Initialize the linked list as an empty node, so that we don't have - * to special-case handling of the first node: we can always refer to - * it as (previous node).next, instead of something like (list).head - */ - $o = { key: {}, next: null }; - } - listSet($o, key, value); - } - } - }; - return channel; -}; - - -/***/ }), -/* 702 */, -/* 703 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.androidenterprise = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(75); -exports.VERSIONS = { - v1: v1_1.androidenterprise_v1.Androidenterprise, -}; -function androidenterprise(versionOrOptions) { - return googleapis_common_1.getAPI('androidenterprise', versionOrOptions, exports.VERSIONS, this); -} -exports.androidenterprise = androidenterprise; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 704 */, -/* 705 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of PKCS#1 PSS signature padding. - * - * @author Stefan Siegl - * - * Copyright (c) 2012 Stefan Siegl - */ -var forge = __webpack_require__(239); -__webpack_require__(707); -__webpack_require__(54); - -// shortcut for PSS API -var pss = module.exports = forge.pss = forge.pss || {}; - -/** - * Creates a PSS signature scheme object. - * - * There are several ways to provide a salt for encoding: - * - * 1. Specify the saltLength only and the built-in PRNG will generate it. - * 2. Specify the saltLength and a custom PRNG with 'getBytesSync' defined that - * will be used. - * 3. Specify the salt itself as a forge.util.ByteBuffer. - * - * @param options the options to use: - * md the message digest object to use, a forge md instance. - * mgf the mask generation function to use, a forge mgf instance. - * [saltLength] the length of the salt in octets. - * [prng] the pseudo-random number generator to use to produce a salt. - * [salt] the salt to use when encoding. - * - * @return a signature scheme object. - */ -pss.create = function(options) { - // backwards compatibility w/legacy args: hash, mgf, sLen - if(arguments.length === 3) { - options = { - md: arguments[0], - mgf: arguments[1], - saltLength: arguments[2] - }; - } - - var hash = options.md; - var mgf = options.mgf; - var hLen = hash.digestLength; - - var salt_ = options.salt || null; - if(typeof salt_ === 'string') { - // assume binary-encoded string - salt_ = forge.util.createBuffer(salt_); - } - - var sLen; - if('saltLength' in options) { - sLen = options.saltLength; - } else if(salt_ !== null) { - sLen = salt_.length(); - } else { - throw new Error('Salt length not specified or specific salt not given.'); - } - - if(salt_ !== null && salt_.length() !== sLen) { - throw new Error('Given salt length does not match length of given salt.'); - } - - var prng = options.prng || forge.random; - - var pssobj = {}; - - /** - * Encodes a PSS signature. - * - * This function implements EMSA-PSS-ENCODE as per RFC 3447, section 9.1.1. - * - * @param md the message digest object with the hash to sign. - * @param modsBits the length of the RSA modulus in bits. - * - * @return the encoded message as a binary-encoded string of length - * ceil((modBits - 1) / 8). - */ - pssobj.encode = function(md, modBits) { - var i; - var emBits = modBits - 1; - var emLen = Math.ceil(emBits / 8); - - /* 2. Let mHash = Hash(M), an octet string of length hLen. */ - var mHash = md.digest().getBytes(); - - /* 3. If emLen < hLen + sLen + 2, output "encoding error" and stop. */ - if(emLen < hLen + sLen + 2) { - throw new Error('Message is too long to encrypt.'); - } - - /* 4. Generate a random octet string salt of length sLen; if sLen = 0, - * then salt is the empty string. */ - var salt; - if(salt_ === null) { - salt = prng.getBytesSync(sLen); - } else { - salt = salt_.bytes(); - } - - /* 5. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt; */ - var m_ = new forge.util.ByteBuffer(); - m_.fillWithByte(0, 8); - m_.putBytes(mHash); - m_.putBytes(salt); - - /* 6. Let H = Hash(M'), an octet string of length hLen. */ - hash.start(); - hash.update(m_.getBytes()); - var h = hash.digest().getBytes(); - - /* 7. Generate an octet string PS consisting of emLen - sLen - hLen - 2 - * zero octets. The length of PS may be 0. */ - var ps = new forge.util.ByteBuffer(); - ps.fillWithByte(0, emLen - sLen - hLen - 2); - - /* 8. Let DB = PS || 0x01 || salt; DB is an octet string of length - * emLen - hLen - 1. */ - ps.putByte(0x01); - ps.putBytes(salt); - var db = ps.getBytes(); - - /* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ - var maskLen = emLen - hLen - 1; - var dbMask = mgf.generate(h, maskLen); - - /* 10. Let maskedDB = DB \xor dbMask. */ - var maskedDB = ''; - for(i = 0; i < maskLen; i++) { - maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i)); - } - - /* 11. Set the leftmost 8emLen - emBits bits of the leftmost octet in - * maskedDB to zero. */ - var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; - maskedDB = String.fromCharCode(maskedDB.charCodeAt(0) & ~mask) + - maskedDB.substr(1); - - /* 12. Let EM = maskedDB || H || 0xbc. - * 13. Output EM. */ - return maskedDB + h + String.fromCharCode(0xbc); - }; - - /** - * Verifies a PSS signature. - * - * This function implements EMSA-PSS-VERIFY as per RFC 3447, section 9.1.2. - * - * @param mHash the message digest hash, as a binary-encoded string, to - * compare against the signature. - * @param em the encoded message, as a binary-encoded string - * (RSA decryption result). - * @param modsBits the length of the RSA modulus in bits. - * - * @return true if the signature was verified, false if not. - */ - pssobj.verify = function(mHash, em, modBits) { - var i; - var emBits = modBits - 1; - var emLen = Math.ceil(emBits / 8); - - /* c. Convert the message representative m to an encoded message EM - * of length emLen = ceil((modBits - 1) / 8) octets, where modBits - * is the length in bits of the RSA modulus n */ - em = em.substr(-emLen); - - /* 3. If emLen < hLen + sLen + 2, output "inconsistent" and stop. */ - if(emLen < hLen + sLen + 2) { - throw new Error('Inconsistent parameters to PSS signature verification.'); - } - - /* 4. If the rightmost octet of EM does not have hexadecimal value - * 0xbc, output "inconsistent" and stop. */ - if(em.charCodeAt(emLen - 1) !== 0xbc) { - throw new Error('Encoded message does not end in 0xBC.'); - } - - /* 5. Let maskedDB be the leftmost emLen - hLen - 1 octets of EM, and - * let H be the next hLen octets. */ - var maskLen = emLen - hLen - 1; - var maskedDB = em.substr(0, maskLen); - var h = em.substr(maskLen, hLen); - - /* 6. If the leftmost 8emLen - emBits bits of the leftmost octet in - * maskedDB are not all equal to zero, output "inconsistent" and stop. */ - var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; - if((maskedDB.charCodeAt(0) & mask) !== 0) { - throw new Error('Bits beyond keysize not zero as expected.'); - } - - /* 7. Let dbMask = MGF(H, emLen - hLen - 1). */ - var dbMask = mgf.generate(h, maskLen); - - /* 8. Let DB = maskedDB \xor dbMask. */ - var db = ''; - for(i = 0; i < maskLen; i++) { - db += String.fromCharCode(maskedDB.charCodeAt(i) ^ dbMask.charCodeAt(i)); - } - - /* 9. Set the leftmost 8emLen - emBits bits of the leftmost octet - * in DB to zero. */ - db = String.fromCharCode(db.charCodeAt(0) & ~mask) + db.substr(1); - - /* 10. If the emLen - hLen - sLen - 2 leftmost octets of DB are not zero - * or if the octet at position emLen - hLen - sLen - 1 (the leftmost - * position is "position 1") does not have hexadecimal value 0x01, - * output "inconsistent" and stop. */ - var checkLen = emLen - hLen - sLen - 2; - for(i = 0; i < checkLen; i++) { - if(db.charCodeAt(i) !== 0x00) { - throw new Error('Leftmost octets not zero as expected'); - } - } - - if(db.charCodeAt(checkLen) !== 0x01) { - throw new Error('Inconsistent PSS signature, 0x01 marker not found'); - } - - /* 11. Let salt be the last sLen octets of DB. */ - var salt = db.substr(-sLen); - - /* 12. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt */ - var m_ = new forge.util.ByteBuffer(); - m_.fillWithByte(0, 8); - m_.putBytes(mHash); - m_.putBytes(salt); - - /* 13. Let H' = Hash(M'), an octet string of length hLen. */ - hash.start(); - hash.update(m_.getBytes()); - var h_ = hash.digest().getBytes(); - - /* 14. If H = H', output "consistent." Otherwise, output "inconsistent." */ - return h === h_; - }; - - return pssobj; -}; - - -/***/ }), -/* 706 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.webmasters = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_1 = __webpack_require__(843); -exports.VERSIONS = { - v3: v3_1.webmasters_v3.Webmasters, -}; -function webmasters(versionOrOptions) { - return googleapis_common_1.getAPI('webmasters', versionOrOptions, exports.VERSIONS, this); -} -exports.webmasters = webmasters; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 707 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * An API for getting cryptographically-secure random bytes. The bytes are - * generated using the Fortuna algorithm devised by Bruce Schneier and - * Niels Ferguson. - * - * Getting strong random bytes is not yet easy to do in javascript. The only - * truish random entropy that can be collected is from the mouse, keyboard, or - * from timing with respect to page loads, etc. This generator makes a poor - * attempt at providing random bytes when those sources haven't yet provided - * enough entropy to initially seed or to reseed the PRNG. - * - * @author Dave Longley - * - * Copyright (c) 2009-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(12); -__webpack_require__(114); -__webpack_require__(54); - -(function() { - -// forge.random already defined -if(forge.random && forge.random.getBytes) { - module.exports = forge.random; - return; -} - -(function(jQuery) { - -// the default prng plugin, uses AES-128 -var prng_aes = {}; -var _prng_aes_output = new Array(4); -var _prng_aes_buffer = forge.util.createBuffer(); -prng_aes.formatKey = function(key) { - // convert the key into 32-bit integers - var tmp = forge.util.createBuffer(key); - key = new Array(4); - key[0] = tmp.getInt32(); - key[1] = tmp.getInt32(); - key[2] = tmp.getInt32(); - key[3] = tmp.getInt32(); - - // return the expanded key - return forge.aes._expandKey(key, false); -}; -prng_aes.formatSeed = function(seed) { - // convert seed into 32-bit integers - var tmp = forge.util.createBuffer(seed); - seed = new Array(4); - seed[0] = tmp.getInt32(); - seed[1] = tmp.getInt32(); - seed[2] = tmp.getInt32(); - seed[3] = tmp.getInt32(); - return seed; -}; -prng_aes.cipher = function(key, seed) { - forge.aes._updateBlock(key, seed, _prng_aes_output, false); - _prng_aes_buffer.putInt32(_prng_aes_output[0]); - _prng_aes_buffer.putInt32(_prng_aes_output[1]); - _prng_aes_buffer.putInt32(_prng_aes_output[2]); - _prng_aes_buffer.putInt32(_prng_aes_output[3]); - return _prng_aes_buffer.getBytes(); -}; -prng_aes.increment = function(seed) { - // FIXME: do we care about carry or signed issues? - ++seed[3]; - return seed; -}; -prng_aes.md = forge.md.sha256; - -/** - * Creates a new PRNG. - */ -function spawnPrng() { - var ctx = forge.prng.create(prng_aes); - - /** - * Gets random bytes. If a native secure crypto API is unavailable, this - * method tries to make the bytes more unpredictable by drawing from data that - * can be collected from the user of the browser, eg: mouse movement. - * - * If a callback is given, this method will be called asynchronously. - * - * @param count the number of random bytes to get. - * @param [callback(err, bytes)] called once the operation completes. - * - * @return the random bytes in a string. - */ - ctx.getBytes = function(count, callback) { - return ctx.generate(count, callback); - }; - - /** - * Gets random bytes asynchronously. If a native secure crypto API is - * unavailable, this method tries to make the bytes more unpredictable by - * drawing from data that can be collected from the user of the browser, - * eg: mouse movement. - * - * @param count the number of random bytes to get. - * - * @return the random bytes in a string. - */ - ctx.getBytesSync = function(count) { - return ctx.generate(count); - }; - - return ctx; -} - -// create default prng context -var _ctx = spawnPrng(); - -// add other sources of entropy only if window.crypto.getRandomValues is not -// available -- otherwise this source will be automatically used by the prng -var getRandomValues = null; -var globalScope = forge.util.globalScope; -var _crypto = globalScope.crypto || globalScope.msCrypto; -if(_crypto && _crypto.getRandomValues) { - getRandomValues = function(arr) { - return _crypto.getRandomValues(arr); - }; -} - -if(forge.options.usePureJavaScript || - (!forge.util.isNodejs && !getRandomValues)) { - // if this is a web worker, do not use weak entropy, instead register to - // receive strong entropy asynchronously from the main thread - if(typeof window === 'undefined' || window.document === undefined) { - // FIXME: - } - - // get load time entropy - _ctx.collectInt(+new Date(), 32); - - // add some entropy from navigator object - if(typeof(navigator) !== 'undefined') { - var _navBytes = ''; - for(var key in navigator) { - try { - if(typeof(navigator[key]) == 'string') { - _navBytes += navigator[key]; - } - } catch(e) { - /* Some navigator keys might not be accessible, e.g. the geolocation - attribute throws an exception if touched in Mozilla chrome:// - context. - - Silently ignore this and just don't use this as a source of - entropy. */ - } - } - _ctx.collect(_navBytes); - _navBytes = null; - } - - // add mouse and keyboard collectors if jquery is available - if(jQuery) { - // set up mouse entropy capture - jQuery().mousemove(function(e) { - // add mouse coords - _ctx.collectInt(e.clientX, 16); - _ctx.collectInt(e.clientY, 16); - }); - - // set up keyboard entropy capture - jQuery().keypress(function(e) { - _ctx.collectInt(e.charCode, 8); - }); - } -} - -/* Random API */ -if(!forge.random) { - forge.random = _ctx; -} else { - // extend forge.random with _ctx - for(var key in _ctx) { - forge.random[key] = _ctx[key]; - } -} - -// expose spawn PRNG -forge.random.createInstance = spawnPrng; - -module.exports = forge.random; - -})(typeof(jQuery) !== 'undefined' ? jQuery : null); - -})(); - - -/***/ }), -/* 708 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.servicecontrol = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(944); -exports.VERSIONS = { - v1: v1_1.servicecontrol_v1.Servicecontrol, -}; -function servicecontrol(versionOrOptions) { - return googleapis_common_1.getAPI('servicecontrol', versionOrOptions, exports.VERSIONS, this); -} -exports.servicecontrol = servicecontrol; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 709 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.servicenetworking_v1beta = 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 = __webpack_require__(927); -var servicenetworking_v1beta; -(function (servicenetworking_v1beta) { - /** - * Service Networking API - * - * Provides automatic management of network configurations necessary for certain services. - * - * @example - * const {google} = require('googleapis'); - * const servicenetworking = google.servicenetworking('v1beta'); - * - * @namespace servicenetworking - * @type {Function} - * @version v1beta - * @variation v1beta - * @param {object=} options Options for Servicenetworking - */ - class Servicenetworking { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.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, }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); - } - } - servicenetworking_v1beta.Servicenetworking = Servicenetworking; - class Resource$Operations { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -231295,32 +489182,31 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicenetworking_v1beta.Resource$Operations = Resource$Operations; - class Resource$Services { + accesscontextmanager_v1.Resource$Accesspolicies = Resource$Accesspolicies; + class Resource$Accesspolicies$Accesslevels { constructor(context) { this.context = context; - this.connections = new Resource$Services$Connections(this.context); } - addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231333,10 +489219,10 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -231345,13 +489231,13 @@ var servicenetworking_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchRange(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231364,25 +489250,25 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConnections(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231395,11 +489281,11 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/connections').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -231407,19 +489293,13 @@ var servicenetworking_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicenetworking_v1beta.Resource$Services = Resource$Services; - class Resource$Services$Connections { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231432,11 +489312,11 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -231444,13 +489324,13 @@ var servicenetworking_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231463,11 +489343,42 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + replaceAll(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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accessLevels:replaceAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -231475,329 +489386,101 @@ var servicenetworking_v1beta; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicenetworking_v1beta.Resource$Services$Connections = Resource$Services$Connections; -})(servicenetworking_v1beta = exports.servicenetworking_v1beta || (exports.servicenetworking_v1beta = {})); -//# sourceMappingURL=v1beta.js.map - -/***/ }), -/* 710 */, -/* 711 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.run = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(923); -const v1alpha1_1 = __webpack_require__(238); -const v1beta1_1 = __webpack_require__(88); -exports.VERSIONS = { - v1: v1_1.run_v1.Run, - v1alpha1: v1alpha1_1.run_v1alpha1.Run, - v1beta1: v1beta1_1.run_v1beta1.Run, -}; -function run(versionOrOptions) { - return googleapis_common_1.getAPI('run', versionOrOptions, exports.VERSIONS, this); -} -exports.run = run; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 712 */, -/* 713 */, -/* 714 */ -/***/ (function(module) { - -(function (root, factory) { - if (true) { - module.exports = factory(); - } else {} -}(this, function () { - /** - * @constructor - */ - function UrlTemplate() { - } - - /** - * @private - * @param {string} str - * @return {string} - */ - UrlTemplate.prototype.encodeReserved = function (str) { - return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { - if (!/%[0-9A-Fa-f]/.test(part)) { - part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); - } - return part; - }).join(''); - }; - - /** - * @private - * @param {string} str - * @return {string} - */ - UrlTemplate.prototype.encodeUnreserved = function (str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - - /** - * @private - * @param {string} operator - * @param {string} value - * @param {string} key - * @return {string} - */ - UrlTemplate.prototype.encodeValue = function (operator, value, key) { - value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : this.encodeUnreserved(value); - - if (key) { - return this.encodeUnreserved(key) + '=' + value; - } else { - return value; - } - }; - - /** - * @private - * @param {*} value - * @return {boolean} - */ - UrlTemplate.prototype.isDefined = function (value) { - return value !== undefined && value !== null; - }; - - /** - * @private - * @param {string} - * @return {boolean} - */ - UrlTemplate.prototype.isKeyOperator = function (operator) { - return operator === ';' || operator === '&' || operator === '?'; - }; - - /** - * @private - * @param {Object} context - * @param {string} operator - * @param {string} key - * @param {string} modifier - */ - UrlTemplate.prototype.getValues = function (context, operator, key, modifier) { - var value = context[key], - result = []; - - if (this.isDefined(value) && value !== '') { - if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { - value = value.toString(); - - if (modifier && modifier !== '*') { - value = value.substring(0, parseInt(modifier, 10)); - } - - result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); - } else { - if (modifier === '*') { - if (Array.isArray(value)) { - value.filter(this.isDefined).forEach(function (value) { - result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); - }, this); - } else { - Object.keys(value).forEach(function (k) { - if (this.isDefined(value[k])) { - result.push(this.encodeValue(operator, value[k], k)); - } - }, this); - } - } else { - var tmp = []; - - if (Array.isArray(value)) { - value.filter(this.isDefined).forEach(function (value) { - tmp.push(this.encodeValue(operator, value)); - }, this); - } else { - Object.keys(value).forEach(function (k) { - if (this.isDefined(value[k])) { - tmp.push(this.encodeUnreserved(k)); - tmp.push(this.encodeValue(operator, value[k].toString())); - } - }, this); - } - - if (this.isKeyOperator(operator)) { - result.push(this.encodeUnreserved(key) + '=' + tmp.join(',')); - } else if (tmp.length !== 0) { - result.push(tmp.join(',')); - } - } - } - } else { - if (operator === ';') { - if (this.isDefined(value)) { - result.push(this.encodeUnreserved(key)); - } - } else if (value === '' && (operator === '&' || operator === '?')) { - result.push(this.encodeUnreserved(key) + '='); - } else if (value === '') { - result.push(''); - } - } - return result; - }; - - /** - * @param {string} template - * @return {function(Object):string} - */ - UrlTemplate.prototype.parse = function (template) { - var that = this; - var operators = ['+', '#', '.', '/', ';', '?', '&']; - - return { - expand: function (context) { - return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { - if (expression) { - var operator = null, - values = []; - - if (operators.indexOf(expression.charAt(0)) !== -1) { - operator = expression.charAt(0); - expression = expression.substr(1); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - - expression.split(/,/g).forEach(function (variable) { - var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); - values.push.apply(values, that.getValues(context, operator, tmp[1], tmp[2] || tmp[3])); - }); - - if (operator && operator !== '+') { - var separator = ','; - - if (operator === '?') { - separator = '&'; - } else if (operator !== '#') { - separator = operator; - } - return (values.length !== 0 ? operator : '') + values.join(separator); - } else { - return values.join(','); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } else { - return that.encodeReserved(literal); - } - }); - } - }; - }; - - return new UrlTemplate(); -})); - - -/***/ }), -/* 715 */, -/* 716 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.serviceconsumermanagement_v1beta1 = 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 = __webpack_require__(927); -var serviceconsumermanagement_v1beta1; -(function (serviceconsumermanagement_v1beta1) { - /** - * Service Consumer Management API - * - * Manages the service consumers of a Service Infrastructure service. - * - * @example - * const {google} = require('googleapis'); - * const serviceconsumermanagement = google.serviceconsumermanagement('v1beta1'); - * - * @namespace serviceconsumermanagement - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Serviceconsumermanagement - */ - class Serviceconsumermanagement { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + const rootUrl = options.rootUrl || 'https://accesscontextmanager.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, }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - serviceconsumermanagement_v1beta1.Serviceconsumermanagement = Serviceconsumermanagement; - class Resource$Operations { + accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; + class Resource$Accesspolicies$Authorizedorgsdescs { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/authorizedOrgsDescs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -231805,26 +489488,12 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceconsumermanagement_v1beta1.Resource$Operations = Resource$Operations; - class Resource$Services { - constructor(context) { - this.context = context; - this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); - } - } - serviceconsumermanagement_v1beta1.Resource$Services = Resource$Services; - class Resource$Services$Consumerquotametrics { - constructor(context) { - this.context = context; - this.limits = new Resource$Services$Consumerquotametrics$Limits(this.context); - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -231838,10 +489507,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -231850,13 +489519,13 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importProducerOverrides(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231869,12 +489538,11 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/authorizedOrgsDescs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -231882,13 +489550,13 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231901,32 +489569,31 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics = Resource$Services$Consumerquotametrics; - class Resource$Services$Consumerquotametrics$Limits { + accesscontextmanager_v1.Resource$Accesspolicies$Authorizedorgsdescs = Resource$Accesspolicies$Authorizedorgsdescs; + class Resource$Accesspolicies$Serviceperimeters { constructor(context) { this.context = context; - this.producerOverrides = new Resource$Services$Consumerquotametrics$Limits$Produceroverrides(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231939,30 +489606,24 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/servicePerimeters:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; - class Resource$Services$Consumerquotametrics$Limits$Produceroverrides { - constructor(context) { - this.context = context; - } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -231976,10 +489637,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -231988,10 +489649,10 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -232007,10 +489668,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -232019,10 +489680,41 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://accesscontextmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -232038,10 +489730,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -232050,10 +489742,10 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -232069,10 +489761,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -232081,355 +489773,83 @@ var serviceconsumermanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits$Produceroverrides = Resource$Services$Consumerquotametrics$Limits$Produceroverrides; -})(serviceconsumermanagement_v1beta1 = exports.serviceconsumermanagement_v1beta1 || (exports.serviceconsumermanagement_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 717 */, -/* 718 */ -/***/ (function(module, exports, __webpack_require__) { - -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ - -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); - -/** - * Colors. - */ - -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; - -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. - * - * @api public - */ - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - -/** - * Invokes `console.log()` when available. - * No-op when `console.log` is not a "function". - * - * @api public - */ -function log(...args) { - // This hackery is required for IE8/9, where - // the `console.log` function doesn't have 'apply' - return typeof console === 'object' && - console.log && - console.log(...args); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ -function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} - -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = __webpack_require__(403)(exports); - -const {formatters} = module.exports; - -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; - - -/***/ }), -/* 719 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.secretmanager_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 = __webpack_require__(927); -var secretmanager_v1; -(function (secretmanager_v1) { - /** - * Secret Manager API - * - * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. - * - * @example - * const {google} = require('googleapis'); - * const secretmanager = google.secretmanager('v1'); - * - * @namespace secretmanager - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Secretmanager - */ - class Secretmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + replaceAll(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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/servicePerimeters:replaceAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - secretmanager_v1.Secretmanager = Secretmanager; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - this.secrets = new Resource$Projects$Secrets(this.context); + 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://accesscontextmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - secretmanager_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + accesscontextmanager_v1.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; + class Resource$Operations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232442,11 +489862,11 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -232454,13 +489874,13 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232473,11 +489893,11 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -232485,22 +489905,44 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - secretmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Secrets { - constructor(context) { - this.context = context; - this.versions = new Resource$Projects$Secrets$Versions(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://accesscontextmanager.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - addVersion(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -232511,41 +489953,56 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + accesscontextmanager_v1.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.gcpUserAccessBindings = + new Resource$Organizations$Gcpuseraccessbindings(this.context); + } + } + accesscontextmanager_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Gcpuseraccessbindings { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gcpUserAccessBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -232554,10 +490011,10 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -232566,14 +490023,15 @@ var secretmanager_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -232585,10 +490043,10 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -232604,7 +490062,7 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -232616,13 +490074,13 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232635,56 +490093,132 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gcpUserAccessBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + accesscontextmanager_v1.Resource$Organizations$Gcpuseraccessbindings = Resource$Organizations$Gcpuseraccessbindings; +})(accesscontextmanager_v1 = exports.accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = {})); + + +/***/ }), + +/***/ 8228: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networkservices_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networkservices_v1beta1; +(function (networkservices_v1beta1) { + /** + * Network Services API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networkservices = google.networkservices('v1beta1'); + * ``` + */ + class Networkservices { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networkservices_v1beta1.Networkservices = Networkservices; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networkservices_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.endpointPolicies = new Resource$Projects$Locations$Endpointpolicies(this.context); + this.gateways = new Resource$Projects$Locations$Gateways(this.context); + this.grpcRoutes = new Resource$Projects$Locations$Grpcroutes(this.context); + this.httpRoutes = new Resource$Projects$Locations$Httproutes(this.context); + this.meshes = new Resource$Projects$Locations$Meshes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serviceBindings = new Resource$Projects$Locations$Servicebindings(this.context); + this.tcpRoutes = new Resource$Projects$Locations$Tcproutes(this.context); + this.tlsRoutes = new Resource$Projects$Locations$Tlsroutes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232697,11 +490231,11 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -232709,13 +490243,13 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232728,79 +490262,81 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Endpointpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - secretmanager_v1.Resource$Projects$Secrets = Resource$Projects$Secrets; - class Resource$Projects$Secrets$Versions { - constructor(context) { - this.context = context; - } - access(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -232808,13 +490344,13 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - destroy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232827,11 +490363,11 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -232839,44 +490375,45 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232889,42 +490426,43 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -232932,123 +490470,83 @@ var secretmanager_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - secretmanager_v1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; -})(secretmanager_v1 = exports.secretmanager_v1 || (exports.secretmanager_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 720 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.container_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 = __webpack_require__(927); -var container_v1; -(function (container_v1) { - /** - * Kubernetes Engine API - * - * Builds and manages container-based applications, powered by the open source Kubernetes technology. - * - * @example - * const {google} = require('googleapis'); - * const container = google.container('v1'); - * - * @namespace container - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Container - */ - class Container { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); - } - } - container_v1.Container = Container; - class Resource$Projects { - constructor(context) { - this.context = context; - this.aggregated = new Resource$Projects$Aggregated(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.zones = new Resource$Projects$Zones(this.context); - } - } - container_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Aggregated { - constructor(context) { - this.context = context; - this.usableSubnetworks = new Resource$Projects$Aggregated$Usablesubnetworks(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - container_v1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; - class Resource$Projects$Aggregated$Usablesubnetworks { + networkservices_v1beta1.Resource$Projects$Locations$Endpointpolicies = Resource$Projects$Locations$Endpointpolicies; + class Resource$Projects$Locations$Gateways { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233061,11 +490559,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -233073,21 +490571,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1.Resource$Projects$Aggregated$Usablesubnetworks = Resource$Projects$Aggregated$Usablesubnetworks; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.clusters = new Resource$Projects$Locations$Clusters(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - getServerConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233100,11 +490590,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -233112,21 +490602,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Clusters { - constructor(context) { - this.context = context; - this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(this.context); - this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(this.context); - } - completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233139,11 +490621,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -233151,13 +490633,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233170,11 +490652,42 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -233182,13 +490695,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233201,11 +490714,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -233213,13 +490726,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233232,56 +490745,63 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getJwks(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Grpcroutes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233294,11 +490814,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -233306,13 +490826,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAddons(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233325,11 +490845,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -233337,13 +490857,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLegacyAbac(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233356,11 +490876,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -233368,13 +490888,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLocations(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233387,25 +490907,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLogging(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233418,11 +490938,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -233430,13 +490950,19 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Grpcroutes = Resource$Projects$Locations$Grpcroutes; + class Resource$Projects$Locations$Httproutes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233449,25 +490975,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233480,11 +491006,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -233492,13 +491018,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMonitoring(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233511,11 +491037,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -233523,13 +491049,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233542,25 +491068,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setResourceLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233573,11 +491099,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -233585,13 +491111,19 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Httproutes = Resource$Projects$Locations$Httproutes; + class Resource$Projects$Locations$Meshes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233604,25 +491136,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233635,11 +491167,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -233647,13 +491179,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMaster(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233666,11 +491198,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -233678,19 +491210,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; - class Resource$Projects$Locations$Clusters$Nodepools { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233703,25 +491229,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233734,25 +491260,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233765,11 +491291,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -233777,13 +491303,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233796,56 +491322,63 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoscaling(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Meshes = Resource$Projects$Locations$Meshes; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233858,10 +491391,10 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -233870,13 +491403,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233889,11 +491422,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -233901,13 +491434,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233920,11 +491453,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -233932,13 +491465,13 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233951,11 +491484,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -233963,36 +491496,37 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; - class Resource$Projects$Locations$Clusters$WellKnown { + networkservices_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Servicebindings { constructor(context) { this.context = context; } - getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -234000,36 +491534,31 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1.Resource$Projects$Locations$Clusters$WellKnown = Resource$Projects$Locations$Clusters$WellKnown; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -234037,10 +491566,10 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -234056,10 +491585,10 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -234068,52 +491597,45 @@ var container_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Zones { - constructor(context) { - this.context = context; - this.clusters = new Resource$Projects$Zones$Clusters(this.context); - this.operations = new Resource$Projects$Zones$Operations(this.context); - } - getServerconfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234126,95 +491648,94 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1.Resource$Projects$Zones = Resource$Projects$Zones; - class Resource$Projects$Zones$Clusters { - constructor(context) { - this.context = context; - this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(this.context); - } - addons(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + networkservices_v1beta1.Resource$Projects$Locations$Servicebindings = Resource$Projects$Locations$Servicebindings; + class Resource$Projects$Locations$Tcproutes { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -234228,22 +491749,22 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -234259,23 +491780,22 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -234291,26 +491811,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - legacyAbac(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234323,26 +491842,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234355,25 +491873,31 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - locations(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Tcproutes = Resource$Projects$Locations$Tcproutes; + class Resource$Projects$Locations$Tlsroutes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234386,26 +491910,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - logging(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234418,26 +491941,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - master(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234450,26 +491972,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - monitoring(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234482,26 +492003,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resourceLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234514,26 +492034,91 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Tlsroutes = Resource$Projects$Locations$Tlsroutes; +})(networkservices_v1beta1 = exports.networkservices_v1beta1 || (exports.networkservices_v1beta1 = {})); + + +/***/ }), + +/***/ 8238: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.run_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var run_v1alpha1; +(function (run_v1alpha1) { + /** + * Cloud Run Admin API + * + * Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const run = google.run('v1alpha1'); + * ``` + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.namespaces = new Resource$Namespaces(this.context); + } + } + run_v1alpha1.Run = Run; + class Resource$Namespaces { + constructor(context) { + this.context = context; + this.jobs = new Resource$Namespaces$Jobs(this.context); + } + } + run_v1alpha1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234546,26 +492131,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234578,26 +492162,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234610,26 +492193,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234642,26 +492224,93 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1alpha1.Resource$Namespaces$Jobs = Resource$Namespaces$Jobs; +})(run_v1alpha1 = exports.run_v1alpha1 || (exports.run_v1alpha1 = {})); + + +/***/ }), + +/***/ 8243: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.fitness_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var fitness_v1; +(function (fitness_v1) { + /** + * Fitness API + * + * The Fitness API for managing users' fitness tracking data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const fitness = google.fitness('v1'); + * ``` + */ + class Fitness { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + fitness_v1.Fitness = Fitness; + class Resource$Users { + constructor(context) { + this.context = context; + this.dataset = new Resource$Users$Dataset(this.context); + this.dataSources = new Resource$Users$Datasources(this.context); + this.sessions = new Resource$Users$Sessions(this.context); + } + } + fitness_v1.Resource$Users = Resource$Users; + class Resource$Users$Dataset { + constructor(context) { + this.context = context; + } + aggregate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234674,32 +492323,33 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/fitness/v1/users/{userId}/dataset:aggregate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; - class Resource$Projects$Zones$Clusters$Nodepools { + fitness_v1.Resource$Users$Dataset = Resource$Users$Dataset; + class Resource$Users$Datasources { constructor(context) { this.context = context; + this.dataPointChanges = new Resource$Users$Datasources$Datapointchanges(this.context); + this.datasets = new Resource$Users$Datasources$Datasets(this.context); } - autoscaling(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234712,26 +492362,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234744,26 +492393,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234776,26 +492424,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234808,26 +492455,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234840,26 +492486,31 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + } + fitness_v1.Resource$Users$Datasources = Resource$Users$Datasources; + class Resource$Users$Datasources$Datapointchanges { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234872,26 +492523,32 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(paramsOrCallback, optionsOrCallback, callback) { + } + fitness_v1.Resource$Users$Datasources$Datapointchanges = Resource$Users$Datasources$Datapointchanges; + class Resource$Users$Datasources$Datasets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234904,26 +492561,26 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234936,26 +492593,26 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234968,32 +492625,32 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; - class Resource$Projects$Zones$Operations { + fitness_v1.Resource$Users$Datasources$Datasets = Resource$Users$Datasources$Datasets; + class Resource$Users$Sessions { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235006,26 +492663,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['userId', 'sessionId'], + pathParams: ['sessionId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235038,26 +492694,25 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/fitness/v1/users/{userId}/sessions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235070,31 +492725,464 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['userId', 'sessionId'], + pathParams: ['sessionId', 'userId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; -})(container_v1 = exports.container_v1 || (exports.container_v1 = {})); -//# sourceMappingURL=v1.js.map + fitness_v1.Resource$Users$Sessions = Resource$Users$Sessions; +})(fitness_v1 = exports.fitness_v1 || (exports.fitness_v1 = {})); + + +/***/ }), + +/***/ 8279: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.identitytoolkit_v3 = exports.identitytoolkit_v2 = exports.auth = exports.identitytoolkit = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(9383); +Object.defineProperty(exports, "identitytoolkit_v2", { enumerable: true, get: function () { return v2_1.identitytoolkit_v2; } }); +const v3_1 = __webpack_require__(2210); +Object.defineProperty(exports, "identitytoolkit_v3", { enumerable: true, get: function () { return v3_1.identitytoolkit_v3; } }); +exports.VERSIONS = { + v2: v2_1.identitytoolkit_v2.Identitytoolkit, + v3: v3_1.identitytoolkit_v3.Identitytoolkit, +}; +function identitytoolkit(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('identitytoolkit', versionOrOptions, exports.VERSIONS, this); +} +exports.identitytoolkit = identitytoolkit; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8280: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +exports.default = _default; + +/***/ }), + +/***/ 8283: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.apigeeregistry_v1 = exports.auth = exports.apigeeregistry = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5017); +Object.defineProperty(exports, "apigeeregistry_v1", { enumerable: true, get: function () { return v1_1.apigeeregistry_v1; } }); +exports.VERSIONS = { + v1: v1_1.apigeeregistry_v1.Apigeeregistry, +}; +function apigeeregistry(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apigeeregistry', versionOrOptions, exports.VERSIONS, this); +} +exports.apigeeregistry = apigeeregistry; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8293: +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Copyright 2020 The Oppia Authors. All Rights Reserved. +// +// 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. + +/** + * @fileoverview File to handle checks when a issue is labeled. + */ + +const core = __webpack_require__(6470); +const { context, GitHub } = __webpack_require__(1469); +const whitelist = __webpack_require__(4955); +const GOOD_FIRST_LABEL = 'good first issue'; +const prLabels = ['dependencies', 'stale']; + +const checkLabels = async () => { + core.info('Checking newly added label...'); + const token = core.getInput('repo-token'); + const label = context.payload.label; + const octokit = new GitHub(token); + const user = context.payload.sender.login; + + if ( + label.name === GOOD_FIRST_LABEL && + !whitelist.goodFirstIssue.includes(user) + ) { + core.info('Good first issue label got added by non whitelisted user.'); + await handleGoodFirstIssueLabel(octokit, user); + } else if (prLabels.includes(label.name) || label.name.startsWith('PR')) { + core.info('PR label got added on an issue'); + await handlePRLabel(octokit, label.name, user); + } +}; + +/** + * Handles cases when a good first issue gets added by a non whitelisted user. + * + * @param {import('@actions/github').GitHub} octokit + * @param {String} user - Username of the user that added the label. + */ +const handleGoodFirstIssueLabel = async (octokit, user) => { + const issueNumber = context.payload.issue.number; + // Comment on the issue and ping the onboarding team lead. + var commentBody = ( + 'Hi @' + user + ', only certain users are allowed to add good ' + + 'first issue labels. Looping in @oppia/oppia-good-first-issue-labelers ' + + 'to add the label. Thanks!' + ); + await octokit.issues.createComment( + { + body: commentBody, + issue_number: issueNumber, + owner: context.repo.owner, + repo: context.repo.repo, + } + ); + // Remove the label. + core.info('Removing the label.'); + await octokit.issues.removeLabel({ + issue_number: issueNumber, + name: GOOD_FIRST_LABEL, + owner: context.repo.owner, + repo: context.repo.repo + }); +}; + +/** + * Handles cases when a PR label gets added to an issue. + * + * @param {import('@actions/github').GitHub} octokit + * @param {String} label - Name of label that got added. + * @param {String} user - Username of the user that added the label. + */ +const handlePRLabel = async (octokit, label, user) => { + const issueNumber = context.payload.issue.number; + const linkText = 'here'; + // Add link to wiki. + const link = linkText.link( + 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#' + + 'labeling-issues-and-pull-requests'); + const commentBody = ( + 'Hi @' + user + ', the ' + label + ' label should only be used in ' + + 'pull requests. I’m removing the label. You can learn more about ' + + 'labels ' + link + '. Thanks!' + ); + await octokit.issues.createComment( + { + body: commentBody, + issue_number: issueNumber, + owner: context.repo.owner, + repo: context.repo.repo, + } + ); + + // Remove the label. + core.info('Removing the label.'); + await octokit.issues.removeLabel({ + issue_number: issueNumber, + name: label, + owner: context.repo.owner, + repo: context.repo.repo + }); +}; + +module.exports = { + checkLabels, +}; + + +/***/ }), + +/***/ 8294: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = parseOptions; + +const { Deprecation } = __webpack_require__(7692); +const { getUserAgent } = __webpack_require__(7768); +const once = __webpack_require__(6049); + +const pkg = __webpack_require__(7215); + +const deprecateOptionsTimeout = once((log, deprecation) => + log.warn(deprecation) +); +const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation)); +const deprecateOptionsHeaders = once((log, deprecation) => + log.warn(deprecation) +); + +function parseOptions(options, log, hook) { + if (options.headers) { + options.headers = Object.keys(options.headers).reduce((newObj, key) => { + newObj[key.toLowerCase()] = options.headers[key]; + return newObj; + }, {}); + } + + const clientDefaults = { + headers: options.headers || {}, + request: options.request || {}, + mediaType: { + previews: [], + format: "" + } + }; + + if (options.baseUrl) { + clientDefaults.baseUrl = options.baseUrl; + } + + if (options.userAgent) { + clientDefaults.headers["user-agent"] = options.userAgent; + } + + if (options.previews) { + clientDefaults.mediaType.previews = options.previews; + } + + if (options.timeZone) { + clientDefaults.headers["time-zone"] = options.timeZone; + } + + if (options.timeout) { + deprecateOptionsTimeout( + log, + new Deprecation( + "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request" + ) + ); + clientDefaults.request.timeout = options.timeout; + } + + if (options.agent) { + deprecateOptionsAgent( + log, + new Deprecation( + "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request" + ) + ); + clientDefaults.request.agent = options.agent; + } + + if (options.headers) { + deprecateOptionsHeaders( + log, + new Deprecation( + "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request" + ) + ); + } + + const userAgentOption = clientDefaults.headers["user-agent"]; + const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`; + + clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent] + .filter(Boolean) + .join(" "); + + clientDefaults.request.hook = hook.bind(null, "request"); + + return clientDefaults; +} + + +/***/ }), + +/***/ 8330: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.secretmanager_v1beta1 = exports.secretmanager_v1 = exports.auth = exports.secretmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3030); +Object.defineProperty(exports, "secretmanager_v1", { enumerable: true, get: function () { return v1_1.secretmanager_v1; } }); +const v1beta1_1 = __webpack_require__(2); +Object.defineProperty(exports, "secretmanager_v1beta1", { enumerable: true, get: function () { return v1beta1_1.secretmanager_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.secretmanager_v1.Secretmanager, + v1beta1: v1beta1_1.secretmanager_v1beta1.Secretmanager, +}; +function secretmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('secretmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.secretmanager = secretmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8334: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.authorizedbuyersmarketplace_v1 = exports.auth = exports.authorizedbuyersmarketplace = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8775); +Object.defineProperty(exports, "authorizedbuyersmarketplace_v1", { enumerable: true, get: function () { return v1_1.authorizedbuyersmarketplace_v1; } }); +exports.VERSIONS = { + v1: v1_1.authorizedbuyersmarketplace_v1.Authorizedbuyersmarketplace, +}; +function authorizedbuyersmarketplace(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('authorizedbuyersmarketplace', versionOrOptions, exports.VERSIONS, this); +} +exports.authorizedbuyersmarketplace = authorizedbuyersmarketplace; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8336: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +const fs = __webpack_require__(5747); +const shebangCommand = __webpack_require__(998); + +function readShebang(command) { + // Read the first 150 bytes from the file + const size = 150; + let buffer; + + if (Buffer.alloc) { + // Node.js v4.5+ / v5.10+ + buffer = Buffer.alloc(size); + } else { + // Old Node.js API + buffer = new Buffer(size); + buffer.fill(0); // zero-fill + } + + let fd; + + try { + fd = fs.openSync(command, 'r'); + fs.readSync(fd, buffer, 0, size, 0); + fs.closeSync(fd); + } catch (e) { /* Empty */ } + + // Attempt to extract shebang (null is returned if not a shebang) + return shebangCommand(buffer.toString()); +} + +module.exports = readShebang; + /***/ }), -/* 721 */ + +/***/ 8340: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -235112,49 +493200,71 @@ var container_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.androiddeviceprovisioning_v1 = void 0; +exports.speech_v1p1beta1 = 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 = __webpack_require__(927); -var androiddeviceprovisioning_v1; -(function (androiddeviceprovisioning_v1) { +var speech_v1p1beta1; +(function (speech_v1p1beta1) { /** - * Android Device Provisioning Partner API + * Cloud Speech-to-Text API * - * Automates Android zero-touch enrollment for device resellers, customers, and EMMs. + * Converts audio to text by applying powerful neural network models. * * @example + * ```js * const {google} = require('googleapis'); - * const androiddeviceprovisioning = google.androiddeviceprovisioning('v1'); - * - * @namespace androiddeviceprovisioning - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Androiddeviceprovisioning + * const speech = google.speech('v1p1beta1'); + * ``` */ - class Androiddeviceprovisioning { + class Speech { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.customers = new Resource$Customers(this.context); this.operations = new Resource$Operations(this.context); - this.partners = new Resource$Partners(this.context); + this.projects = new Resource$Projects(this.context); + this.speech = new Resource$Speech(this.context); } } - androiddeviceprovisioning_v1.Androiddeviceprovisioning = Androiddeviceprovisioning; - class Resource$Customers { + speech_v1p1beta1.Speech = Speech; + class Resource$Operations { constructor(context) { this.context = context; - this.configurations = new Resource$Customers$Configurations(this.context); - this.devices = new Resource$Customers$Devices(this.context); - this.dpcs = new Resource$Customers$Dpcs(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://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -235168,10 +493278,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -235180,15 +493290,30 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Customers = Resource$Customers; - class Resource$Customers$Configurations { + speech_v1p1beta1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + speech_v1p1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.customClasses = new Resource$Projects$Locations$Customclasses(this.context); + this.phraseSets = new Resource$Projects$Locations$Phrasesets(this.context); + } + } + speech_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Customclasses { constructor(context) { this.context = context; } @@ -235205,10 +493330,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -235217,10 +493342,10 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -235236,10 +493361,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -235248,10 +493373,10 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -235267,10 +493392,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -235279,10 +493404,10 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -235298,10 +493423,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -235310,10 +493435,10 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -235329,10 +493454,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -235341,19 +493466,19 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Customers$Configurations = Resource$Customers$Configurations; - class Resource$Customers$Devices { + speech_v1p1beta1.Resource$Projects$Locations$Customclasses = Resource$Projects$Locations$Customclasses; + class Resource$Projects$Locations$Phrasesets { constructor(context) { this.context = context; } - applyConfiguration(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235366,10 +493491,10 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices:applyConfiguration').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -235378,13 +493503,13 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235397,11 +493522,11 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -235409,13 +493534,13 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235428,25 +493553,25 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeConfiguration(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235459,11 +493584,11 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices:removeConfiguration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -235471,13 +493596,13 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unclaim(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235490,31 +493615,31 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Customers$Devices = Resource$Customers$Devices; - class Resource$Customers$Dpcs { + speech_v1p1beta1.Resource$Projects$Locations$Phrasesets = Resource$Projects$Locations$Phrasesets; + class Resource$Speech { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + longrunningrecognize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235527,31 +493652,25 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androiddeviceprovisioning_v1.Resource$Customers$Dpcs = Resource$Customers$Dpcs; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + recognize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -235563,40 +493682,95 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Operations = Resource$Operations; - class Resource$Partners { + speech_v1p1beta1.Resource$Speech = Resource$Speech; +})(speech_v1p1beta1 = exports.speech_v1p1beta1 || (exports.speech_v1p1beta1 = {})); + + +/***/ }), + +/***/ 8353: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.workloadmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var workloadmanager_v1; +(function (workloadmanager_v1) { + /** + * Workload Manager API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const workloadmanager = google.workloadmanager('v1'); + * ``` + */ + class Workloadmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + workloadmanager_v1.Workloadmanager = Workloadmanager; + class Resource$Projects { constructor(context) { this.context = context; - this.customers = new Resource$Partners$Customers(this.context); - this.devices = new Resource$Partners$Devices(this.context); - this.vendors = new Resource$Partners$Vendors(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - androiddeviceprovisioning_v1.Resource$Partners = Resource$Partners; - class Resource$Partners$Customers { + workloadmanager_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.evaluations = new Resource$Projects$Locations$Evaluations(this.context); + this.insights = new Resource$Projects$Locations$Insights(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.rules = new Resource$Projects$Locations$Rules(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235609,22 +493783,22 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -235640,31 +493814,32 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Partners$Customers = Resource$Partners$Customers; - class Resource$Partners$Devices { + workloadmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Evaluations { constructor(context) { this.context = context; + this.executions = new Resource$Projects$Locations$Evaluations$Executions(this.context); } - claim(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235677,25 +493852,25 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - claimAsync(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235708,25 +493883,25 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - findByIdentifier(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235739,54 +493914,33 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - findByOwner(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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + workloadmanager_v1.Resource$Projects$Locations$Evaluations = Resource$Projects$Locations$Evaluations; + class Resource$Projects$Locations$Evaluations$Executions { + constructor(context) { + this.context = context; + this.results = + new Resource$Projects$Locations$Evaluations$Executions$Results(this.context); + this.scannedResources = + new Resource$Projects$Locations$Evaluations$Executions$Scannedresources(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -235794,14 +493948,15 @@ var androiddeviceprovisioning_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -235813,143 +493968,119 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - metadata(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['metadataOwnerId', 'deviceId'], - pathParams: ['deviceId', 'metadataOwnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unclaim(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/executions:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unclaimAsync(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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + workloadmanager_v1.Resource$Projects$Locations$Evaluations$Executions = Resource$Projects$Locations$Evaluations$Executions; + class Resource$Projects$Locations$Evaluations$Executions$Results { + constructor(context) { + this.context = context; } - updateMetadataAsync(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Partners$Devices = Resource$Partners$Devices; - class Resource$Partners$Vendors { + workloadmanager_v1.Resource$Projects$Locations$Evaluations$Executions$Results = Resource$Projects$Locations$Evaluations$Executions$Results; + class Resource$Projects$Locations$Evaluations$Executions$Scannedresources { constructor(context) { this.context = context; - this.customers = new Resource$Partners$Vendors$Customers(this.context); } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -235957,17 +494088,18 @@ var androiddeviceprovisioning_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/vendors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/scannedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -235976,19 +494108,19 @@ var androiddeviceprovisioning_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Partners$Vendors = Resource$Partners$Vendors; - class Resource$Partners$Vendors$Customers { + workloadmanager_v1.Resource$Projects$Locations$Evaluations$Executions$Scannedresources = Resource$Projects$Locations$Evaluations$Executions$Scannedresources; + class Resource$Projects$Locations$Insights { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + writeInsight(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236001,96 +494133,31 @@ var androiddeviceprovisioning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+location}/insights:writeInsight').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androiddeviceprovisioning_v1.Resource$Partners$Vendors$Customers = Resource$Partners$Vendors$Customers; -})(androiddeviceprovisioning_v1 = exports.androiddeviceprovisioning_v1 || (exports.androiddeviceprovisioning_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 722 */, -/* 723 */, -/* 724 */, -/* 725 */, -/* 726 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.deploymentmanager_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 = __webpack_require__(927); -var deploymentmanager_v2; -(function (deploymentmanager_v2) { - /** - * Google Cloud Deployment Manager API - * - * Declares, configures, and deploys complex solutions on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const deploymentmanager = google.deploymentmanager('v2'); - * - * @namespace deploymentmanager - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Deploymentmanager - */ - class Deploymentmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.deployments = new Resource$Deployments(this.context); - this.manifests = new Resource$Manifests(this.context); - this.operations = new Resource$Operations(this.context); - this.resources = new Resource$Resources(this.context); - this.types = new Resource$Types(this.context); - } - } - deploymentmanager_v2.Deploymentmanager = Deploymentmanager; - class Resource$Deployments { + workloadmanager_v1.Resource$Projects$Locations$Insights = Resource$Projects$Locations$Insights; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236103,23 +494170,22 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -236135,57 +494201,25 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], - 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 || {}); @@ -236198,26 +494232,25 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236230,89 +494263,31 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + workloadmanager_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Rules { + constructor(context) { + this.context = context; } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236325,128 +494300,137 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - context: this.context, + } + workloadmanager_v1.Resource$Projects$Locations$Rules = Resource$Projects$Locations$Rules; +})(workloadmanager_v1 = exports.workloadmanager_v1 || (exports.workloadmanager_v1 = {})); + + +/***/ }), + +/***/ 8358: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.fcm_v1 = exports.auth = exports.fcm = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3891); +Object.defineProperty(exports, "fcm_v1", { enumerable: true, get: function () { return v1_1.fcm_v1; } }); +exports.VERSIONS = { + v1: v1_1.fcm_v1.Fcm, +}; +function fcm(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('fcm', versionOrOptions, exports.VERSIONS, this); +} +exports.fcm = fcm; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8361: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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/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 = __webpack_require__(927); +var notebooks_v1; +(function (notebooks_v1) { + /** + * Notebooks API + * + * 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, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.projects = new Resource$Projects(this.context); } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + notebooks_v1.Notebooks = Notebooks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } } - deploymentmanager_v2.Resource$Deployments = Resource$Deployments; - class Resource$Manifests { + 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.executions = new Resource$Projects$Locations$Executions(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.runtimes = new Resource$Projects$Locations$Runtimes(this.context); + this.schedules = new Resource$Projects$Locations$Schedules(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236457,27 +494441,27 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment', 'manifest'], - pathParams: ['deployment', 'manifest', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236488,33 +494472,33 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2.Resource$Manifests = Resource$Manifests; - class Resource$Operations { + notebooks_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236525,27 +494509,27 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236556,33 +494540,27 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_v2.Resource$Operations = Resource$Operations; - class Resource$Resources { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236593,27 +494571,27 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment', 'resource'], - pathParams: ['deployment', 'project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236624,33 +494602,33 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - deploymentmanager_v2.Resource$Resources = Resource$Resources; - class Resource$Types { + notebooks_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Executions { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236661,90 +494639,27 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/deploymentmanager/v2/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_v2.Resource$Types = Resource$Types; -})(deploymentmanager_v2 = exports.deploymentmanager_v2 || (exports.deploymentmanager_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 727 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.tasks_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 = __webpack_require__(927); -var tasks_v1; -(function (tasks_v1) { - /** - * Tasks API - * - * Manages your tasks and task lists. - * - * @example - * const {google} = require('googleapis'); - * const tasks = google.tasks('v1'); - * - * @namespace tasks - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Tasks - */ - class Tasks { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.tasklists = new Resource$Tasklists(this.context); - this.tasks = new Resource$Tasks(this.context); - } - } - tasks_v1.Tasks = Tasks; - class Resource$Tasklists { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236755,26 +494670,27 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236785,56 +494701,27 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236845,92 +494732,33 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/executions').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); - } - } - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - tasks_v1.Resource$Tasklists = Resource$Tasklists; - class Resource$Tasks { + notebooks_v1.Resource$Projects$Locations$Executions = Resource$Projects$Locations$Executions; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; } - clear(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236941,26 +494769,27 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/clear').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236971,26 +494800,27 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + diagnose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237001,26 +494831,27 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237031,116 +494862,123 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getInstanceHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:getInstanceHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + isUpgradeable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+notebookInstance}:isUpgradeable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['notebookInstance'], + pathParams: ['notebookInstance'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237151,123 +494989,25 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tasks_v1.Resource$Tasks = Resource$Tasks; -})(tasks_v1 = exports.tasks_v1 || (exports.tasks_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 728 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.adexchangebuyer2 = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2beta1_1 = __webpack_require__(328); -exports.VERSIONS = { - v2beta1: v2beta1_1.adexchangebuyer2_v2beta1.Adexchangebuyer2, -}; -function adexchangebuyer2(versionOrOptions) { - return googleapis_common_1.getAPI('adexchangebuyer2', versionOrOptions, exports.VERSIONS, this); -} -exports.adexchangebuyer2 = adexchangebuyer2; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 729 */, -/* 730 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.pagespeedonline_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 = __webpack_require__(927); -var pagespeedonline_v2; -(function (pagespeedonline_v2) { - /** - * PageSpeed Insights API - * - * Analyzes the performance of a web page and provides tailored suggestions to make that page faster. - * - * @example - * const {google} = require('googleapis'); - * const pagespeedonline = google.pagespeedonline('v2'); - * - * @namespace pagespeedonline - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Pagespeedonline - */ - class Pagespeedonline { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.pagespeedapi = new Resource$Pagespeedapi(this.context); - } - } - pagespeedonline_v2.Pagespeedonline = Pagespeedonline; - class Resource$Pagespeedapi { - constructor(context) { - this.context = context; - } - runpagespeed(paramsOrCallback, optionsOrCallback, callback) { + register(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237280,96 +495020,25 @@ var pagespeedonline_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/pagespeedonline/v2/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/instances:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['url'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - pagespeedonline_v2.Resource$Pagespeedapi = Resource$Pagespeedapi; -})(pagespeedonline_v2 = exports.pagespeedonline_v2 || (exports.pagespeedonline_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 731 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudtasks_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 = __webpack_require__(927); -var cloudtasks_v2; -(function (cloudtasks_v2) { - /** - * Cloud Tasks API - * - * Manages the execution of large numbers of distributed requests. - * - * @example - * const {google} = require('googleapis'); - * const cloudtasks = google.cloudtasks('v2'); - * - * @namespace cloudtasks - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Cloudtasks - */ - class Cloudtasks { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudtasks_v2.Cloudtasks = Cloudtasks; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - cloudtasks_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.queues = new Resource$Projects$Locations$Queues(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + report(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237382,11 +495051,11 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -237394,13 +495063,13 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reportEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237413,11 +495082,11 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -237425,20 +495094,13 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtasks_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Queues { - constructor(context) { - this.context = context; - this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237451,25 +495113,25 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237482,11 +495144,11 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -237494,30 +495156,31 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setAccelerator(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setAccelerator').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -237525,29 +495188,30 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -237556,13 +495220,13 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237575,41 +495239,42 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setMachineType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setMachineType').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -237618,13 +495283,13 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237637,10 +495302,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -237649,13 +495314,13 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237668,10 +495333,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -237680,143 +495345,141 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:updateConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateMetadataItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:updateMetadataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtasks_v2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; - class Resource$Projects$Locations$Queues$Tasks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237829,11 +495492,11 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -237841,30 +495504,31 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + upgradeInternal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:upgradeInternal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -237872,13 +495536,19 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -237891,25 +495561,25 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237922,11 +495592,11 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -237934,215 +495604,13 @@ var cloudtasks_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtasks_v2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; -})(cloudtasks_v2 = exports.cloudtasks_v2 || (exports.cloudtasks_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 732 */, -/* 733 */, -/* 734 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.chat = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(939); -exports.VERSIONS = { - v1: v1_1.chat_v1.Chat, -}; -function chat(versionOrOptions) { - return googleapis_common_1.getAPI('chat', versionOrOptions, exports.VERSIONS, this); -} -exports.chat = chat; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 735 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.deploymentmanager = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const alpha_1 = __webpack_require__(291); -const v2_1 = __webpack_require__(726); -const v2beta_1 = __webpack_require__(339); -exports.VERSIONS = { - alpha: alpha_1.deploymentmanager_alpha.Deploymentmanager, - v2: v2_1.deploymentmanager_v2.Deploymentmanager, - v2beta: v2beta_1.deploymentmanager_v2beta.Deploymentmanager, -}; -function deploymentmanager(versionOrOptions) { - return googleapis_common_1.getAPI('deploymentmanager', versionOrOptions, exports.VERSIONS, this); -} -exports.deploymentmanager = deploymentmanager; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 736 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/*global module, process*/ -var Buffer = __webpack_require__(149).Buffer; -var Stream = __webpack_require__(413); -var util = __webpack_require__(669); - -function DataStream(data) { - this.buffer = null; - this.writable = true; - this.readable = true; - - // No input - if (!data) { - this.buffer = Buffer.alloc(0); - return this; - } - - // Stream - if (typeof data.pipe === 'function') { - this.buffer = Buffer.alloc(0); - data.pipe(this); - return this; - } - - // Buffer or String - // or Object (assumedly a passworded key) - if (data.length || typeof data === 'object') { - this.buffer = data; - this.writable = false; - process.nextTick(function () { - this.emit('end', data); - this.readable = false; - this.emit('close'); - }.bind(this)); - return this; - } - - throw new TypeError('Unexpected data type ('+ typeof data + ')'); -} -util.inherits(DataStream, Stream); - -DataStream.prototype.write = function write(data) { - this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); - this.emit('data', data); -}; - -DataStream.prototype.end = function end(data) { - if (data) - this.write(data); - this.emit('end', data); - this.emit('close'); - this.writable = false; - this.readable = false; -}; - -module.exports = DataStream; - - -/***/ }), -/* 737 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.securitycenter_v1p1beta1 = 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 = __webpack_require__(927); -var securitycenter_v1p1beta1; -(function (securitycenter_v1p1beta1) { - /** - * Security Command Center API - * - * Security Command Center API provides access to temporal views of assets and findings within an organization. - * - * @example - * const {google} = require('googleapis'); - * const securitycenter = google.securitycenter('v1p1beta1'); - * - * @namespace securitycenter - * @type {Function} - * @version v1p1beta1 - * @variation v1p1beta1 - * @param {object=} options Options for Securitycenter - */ - class Securitycenter { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.organizations = new Resource$Organizations(this.context); - } - } - securitycenter_v1p1beta1.Securitycenter = Securitycenter; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.assets = new Resource$Organizations$Assets(this.context); - this.notificationConfigs = new Resource$Organizations$Notificationconfigs(this.context); - this.operations = new Resource$Organizations$Operations(this.context); - this.sources = new Resource$Organizations$Sources(this.context); - } - getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238155,10 +495623,10 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -238167,13 +495635,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238186,11 +495654,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -238198,19 +495666,19 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1p1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Assets { + notebooks_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimes { constructor(context) { this.context = context; } - group(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238223,10 +495691,10 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -238235,13 +495703,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238254,25 +495722,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + diagnose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238285,25 +495753,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:diagnose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238316,11 +495784,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -238328,19 +495796,44 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - securitycenter_v1p1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; - class Resource$Organizations$Notificationconfigs { - constructor(context) { - this.context = context; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238353,11 +495846,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -238365,13 +495858,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238384,11 +495877,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -238396,30 +495889,31 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + refreshRuntimeTokenInternal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:refreshRuntimeTokenInternal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -238427,13 +495921,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reportEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238446,25 +495940,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238477,11 +495971,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -238489,19 +495983,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - securitycenter_v1p1beta1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; - class Resource$Organizations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238514,25 +496002,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238545,11 +496033,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -238557,13 +496045,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238576,11 +496064,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -238588,13 +496076,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + switch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238607,11 +496095,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:switch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -238619,51 +496107,45 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - securitycenter_v1p1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; - class Resource$Organizations$Sources { - constructor(context) { - this.context = context; - this.findings = new Resource$Organizations$Sources$Findings(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238676,11 +496158,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -238688,13 +496170,19 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + notebooks_v1.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; + class Resource$Projects$Locations$Schedules { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238707,25 +496195,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238738,25 +496226,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238769,11 +496257,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -238781,13 +496269,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238800,25 +496288,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + trigger(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238831,31 +496319,95 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:trigger').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - securitycenter_v1p1beta1.Resource$Organizations$Sources = Resource$Organizations$Sources; - class Resource$Organizations$Sources$Findings { + notebooks_v1.Resource$Projects$Locations$Schedules = Resource$Projects$Locations$Schedules; +})(notebooks_v1 = exports.notebooks_v1 || (exports.notebooks_v1 = {})); + + +/***/ }), + +/***/ 8362: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.connectors_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var connectors_v1; +(function (connectors_v1) { + /** + * Connectors API + * + * Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const connectors = google.connectors('v1'); + * ``` + */ + class Connectors { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + connectors_v1.Connectors = Connectors; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.context); + this.global = new Resource$Projects$Locations$Global(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.providers = new Resource$Projects$Locations$Providers(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238868,25 +496420,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - group(paramsOrCallback, optionsOrCallback, callback) { + getRuntimeConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238899,22 +496451,22 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -238930,25 +496482,37 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + this.connectionSchemaMetadata = + new Resource$Projects$Locations$Connections$Connectionschemametadata(this.context); + this.runtimeActionSchemas = + new Resource$Projects$Locations$Connections$Runtimeactionschemas(this.context); + this.runtimeEntitySchemas = + new Resource$Projects$Locations$Connections$Runtimeentityschemas(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238961,25 +496525,25 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238992,11 +496556,11 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -239004,13 +496568,13 @@ var securitycenter_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239023,197 +496587,89 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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); - } - } - } - securitycenter_v1p1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; -})(securitycenter_v1p1beta1 = exports.securitycenter_v1p1beta1 || (exports.securitycenter_v1p1beta1 = {})); -//# sourceMappingURL=v1p1beta1.js.map - -/***/ }), -/* 738 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var json_stringify = __webpack_require__(278).stringify; -var json_parse = __webpack_require__(337); - -module.exports = function(options) { - return { - parse: json_parse(options), - stringify: json_stringify - } -}; -//create the default method members with no options applied for backwards compatibility -module.exports.parse = json_parse(); -module.exports.stringify = json_stringify; - - -/***/ }), -/* 739 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var implementation = __webpack_require__(353); - -module.exports = Function.prototype.bind || implementation; - - -/***/ }), -/* 740 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.fitness_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 = __webpack_require__(927); -var fitness_v1; -(function (fitness_v1) { - /** - * Fitness - * - * Stores and accesses user data in the fitness store from apps on any platform. - * - * @example - * const {google} = require('googleapis'); - * const fitness = google.fitness('v1'); - * - * @namespace fitness - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Fitness - */ - class Fitness { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.users = new Resource$Users(this.context); - } - } - fitness_v1.Fitness = Fitness; - class Resource$Users { - constructor(context) { - this.context = context; - this.dataset = new Resource$Users$Dataset(this.context); - this.dataSources = new Resource$Users$Datasources(this.context); - this.sessions = new Resource$Users$Sessions(this.context); - } - } - fitness_v1.Resource$Users = Resource$Users; - class Resource$Users$Dataset { - constructor(context) { - this.context = context; + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - aggregate(paramsOrCallback, optionsOrCallback, callback) { + getConnectionSchemaMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataset:aggregate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - fitness_v1.Resource$Users$Dataset = Resource$Users$Dataset; - class Resource$Users$Datasources { - constructor(context) { - this.context = context; - this.dataPointChanges = new Resource$Users$Datasources$Datapointchanges(this.context); - this.datasets = new Resource$Users$Datasources$Datasets(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239226,25 +496682,25 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239257,195 +496713,209 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - fitness_v1.Resource$Users$Datasources = Resource$Users$Datasources; - class Resource$Users$Datasources$Datapointchanges { + connectors_v1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connections$Connectionschemametadata { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + refresh(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:refresh').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - fitness_v1.Resource$Users$Datasources$Datapointchanges = Resource$Users$Datasources$Datapointchanges; - class Resource$Users$Datasources$Datasets { + connectors_v1.Resource$Projects$Locations$Connections$Connectionschemametadata = Resource$Projects$Locations$Connections$Connectionschemametadata; + class Resource$Projects$Locations$Connections$Runtimeactionschemas { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/runtimeActionSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId', 'datasetId'], - pathParams: ['datasetId', 'dataSourceId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects$Locations$Connections$Runtimeactionschemas = Resource$Projects$Locations$Connections$Runtimeactionschemas; + class Resource$Projects$Locations$Connections$Runtimeentityschemas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/runtimeEntitySchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId', 'datasetId'], - pathParams: ['datasetId', 'dataSourceId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects$Locations$Connections$Runtimeentityschemas = Resource$Projects$Locations$Connections$Runtimeentityschemas; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + } + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239458,31 +496928,61 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId', 'datasetId'], - pathParams: ['datasetId', 'dataSourceId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - fitness_v1.Resource$Users$Datasources$Datasets = Resource$Users$Datasources$Datasets; - class Resource$Users$Sessions { + connectors_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + 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://connectors.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -239496,25 +496996,25 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'sessionId'], - pathParams: ['sessionId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239527,25 +497027,25 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/sessions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239558,252 +497058,34 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'sessionId'], - pathParams: ['sessionId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - fitness_v1.Resource$Users$Sessions = Resource$Users$Sessions; -})(fitness_v1 = exports.fitness_v1 || (exports.fitness_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 741 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -const { requestLog } = __webpack_require__(916); -const { - restEndpointMethods -} = __webpack_require__(842); - -const Core = __webpack_require__(37); - -const CORE_PLUGINS = [ - __webpack_require__(890), - __webpack_require__(953), // deprecated: remove in v17 - requestLog, - __webpack_require__(786), - restEndpointMethods, - __webpack_require__(341), - - __webpack_require__(850) // deprecated: remove in v17 -]; - -const OctokitRest = Core.plugin(CORE_PLUGINS); - -function DeprecatedOctokit(options) { - const warn = - options && options.log && options.log.warn - ? options.log.warn - : console.warn; - warn( - '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead' - ); - return new OctokitRest(options); -} - -const Octokit = Object.assign(DeprecatedOctokit, { - Octokit: OctokitRest -}); - -Object.keys(OctokitRest).forEach(key => { - /* istanbul ignore else */ - if (OctokitRest.hasOwnProperty(key)) { - Octokit[key] = OctokitRest[key]; - } -}); - -module.exports = Octokit; - - -/***/ }), -/* 742 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var fs = __webpack_require__(747) -var core -if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = __webpack_require__(818) -} else { - core = __webpack_require__(197) -} - -module.exports = isexe -isexe.sync = sync - -function isexe (path, options, cb) { - if (typeof options === 'function') { - cb = options - options = {} - } - - if (!cb) { - if (typeof Promise !== 'function') { - throw new TypeError('callback not provided') - } - - return new Promise(function (resolve, reject) { - isexe(path, options || {}, function (er, is) { - if (er) { - reject(er) - } else { - resolve(is) - } - }) - }) - } - - core(path, options || {}, function (er, is) { - // ignore EACCES because that just means we aren't allowed to run it - if (er) { - if (er.code === 'EACCES' || options && options.ignoreErrors) { - er = null - is = false - } - } - cb(er, is) - }) -} - -function sync (path, options) { - // my kingdom for a filtered catch - try { - return core.sync(path, options || {}) - } catch (er) { - if (options && options.ignoreErrors || er.code === 'EACCES') { - return false - } else { - throw er - } - } -} - - -/***/ }), -/* 743 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudbuild = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(201); -const v1alpha1_1 = __webpack_require__(248); -const v1alpha2_1 = __webpack_require__(917); -exports.VERSIONS = { - v1: v1_1.cloudbuild_v1.Cloudbuild, - v1alpha1: v1alpha1_1.cloudbuild_v1alpha1.Cloudbuild, - v1alpha2: v1alpha2_1.cloudbuild_v1alpha2.Cloudbuild, -}; -function cloudbuild(versionOrOptions) { - return googleapis_common_1.getAPI('cloudbuild', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudbuild = cloudbuild; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 744 */, -/* 745 */, -/* 746 */, -/* 747 */ -/***/ (function(module) { - -module.exports = require("fs"); - -/***/ }), -/* 748 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.admin_reports_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 = __webpack_require__(927); -var admin_reports_v1; -(function (admin_reports_v1) { - /** - * Admin Reports API - * - * Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users. - * - * @example - * const {google} = require('googleapis'); - * const admin = google.admin('reports_v1'); - * - * @namespace admin - * @type {Function} - * @version reports_v1 - * @variation reports_v1 - * @param {object=} options Options for Admin - */ - class Admin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.activities = new Resource$Activities(this.context); - this.channels = new Resource$Channels(this.context); - this.customerUsageReports = new Resource$Customerusagereports(this.context); - this.entityUsageReports = new Resource$Entityusagereports(this.context); - this.userUsageReport = new Resource$Userusagereport(this.context); - } - } - admin_reports_v1.Admin = Admin; - class Resource$Activities { + connectors_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Providers { constructor(context) { this.context = context; + this.connectors = new Resource$Projects$Locations$Providers$Connectors(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239814,64 +497096,59 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey', 'applicationName'], - pathParams: ['applicationName', 'userKey'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey', 'applicationName'], - pathParams: ['applicationName', 'userKey'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_reports_v1.Resource$Activities = Resource$Activities; - class Resource$Channels { - constructor(context) { - this.context = context; - } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239882,104 +497159,95 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_reports_v1.Resource$Channels = Resource$Channels; - class Resource$Customerusagereports { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['date'], - pathParams: ['date'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_reports_v1.Resource$Customerusagereports = Resource$Customerusagereports; - class Resource$Entityusagereports { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['entityType', 'entityKey', 'date'], - pathParams: ['date', 'entityKey', 'entityType'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - admin_reports_v1.Resource$Entityusagereports = Resource$Entityusagereports; - class Resource$Userusagereport { + connectors_v1.Resource$Projects$Locations$Providers = Resource$Projects$Locations$Providers; + class Resource$Projects$Locations$Providers$Connectors { constructor(context) { this.context = context; + this.versions = + new Resource$Projects$Locations$Providers$Connectors$Versions(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -239987,248 +497255,89 @@ var admin_reports_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey', 'date'], - pathParams: ['date', 'userKey'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_reports_v1.Resource$Userusagereport = Resource$Userusagereport; -})(admin_reports_v1 = exports.admin_reports_v1 || (exports.admin_reports_v1 = {})); -//# sourceMappingURL=reports_v1.js.map - -/***/ }), -/* 749 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(739); -var GetIntrinsic = __webpack_require__(915); - -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); - -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} - -module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, 'length'); - if (desc.configurable) { - // original length, plus the receiver, minus any additional arguments (after the receiver) - $defineProperty( - func, - 'length', - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; -}; - -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; - -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - -/***/ }), -/* 750 */, -/* 751 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.container = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(720); -const v1beta1_1 = __webpack_require__(940); -exports.VERSIONS = { - v1: v1_1.container_v1.Container, - v1beta1: v1beta1_1.container_v1beta1.Container, -}; -function container(versionOrOptions) { - return googleapis_common_1.getAPI('container', versionOrOptions, exports.VERSIONS, this); -} -exports.container = container; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 752 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudtrace_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 = __webpack_require__(927); -var cloudtrace_v2; -(function (cloudtrace_v2) { - /** - * Cloud Trace API - * - * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus. - * - * @example - * const {google} = require('googleapis'); - * const cloudtrace = google.cloudtrace('v2'); - * - * @namespace cloudtrace - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Cloudtrace - */ - class Cloudtrace { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudtrace_v2.Cloudtrace = Cloudtrace; - class Resource$Projects { - constructor(context) { - this.context = context; - this.traces = new Resource$Projects$Traces(this.context); - } - } - cloudtrace_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Traces { - constructor(context) { - this.context = context; - this.spans = new Resource$Projects$Traces$Spans(this.context); - } - batchWrite(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/traces:batchWrite').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudtrace_v2.Resource$Projects$Traces = Resource$Projects$Traces; - class Resource$Projects$Traces$Spans { + connectors_v1.Resource$Projects$Locations$Providers$Connectors = Resource$Projects$Locations$Providers$Connectors; + class Resource$Projects$Locations$Providers$Connectors$Versions { constructor(context) { this.context = context; } - createSpan(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -240236,276 +497345,52 @@ var cloudtrace_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtrace_v2.Resource$Projects$Traces$Spans = Resource$Projects$Traces$Spans; -})(cloudtrace_v2 = exports.cloudtrace_v2 || (exports.cloudtrace_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 753 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var endpoint = __webpack_require__(385); -var universalUserAgent = __webpack_require__(211); -var isPlainObject = _interopDefault(__webpack_require__(696)); -var nodeFetch = _interopDefault(__webpack_require__(454)); -var requestError = __webpack_require__(463); - -const VERSION = "5.4.2"; - -function getBufferResponse(response) { - return response.arrayBuffer(); -} - -function fetchWrapper(requestOptions) { - if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { - requestOptions.body = JSON.stringify(requestOptions.body); - } - - let headers = {}; - let status; - let url; - const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch; - return fetch(requestOptions.url, Object.assign({ - method: requestOptions.method, - body: requestOptions.body, - headers: requestOptions.headers, - redirect: requestOptions.redirect - }, requestOptions.request)).then(response => { - url = response.url; - status = response.status; - - for (const keyAndValue of response.headers) { - headers[keyAndValue[0]] = keyAndValue[1]; - } - - if (status === 204 || status === 205) { - return; - } // GitHub API returns 200 for HEAD requests - - - if (requestOptions.method === "HEAD") { - if (status < 400) { - return; - } - - throw new requestError.RequestError(response.statusText, status, { - headers, - request: requestOptions - }); - } - - if (status === 304) { - throw new requestError.RequestError("Not modified", status, { - headers, - request: requestOptions - }); - } - - if (status >= 400) { - return response.text().then(message => { - const error = new requestError.RequestError(message, status, { - headers, - request: requestOptions - }); - - try { - let responseBody = JSON.parse(error.message); - Object.assign(error, responseBody); - let errors = responseBody.errors; // Assumption `errors` would always be in Array format - - error.message = error.message + ": " + errors.map(JSON.stringify).join(", "); - } catch (e) {// ignore, see octokit/rest.js#684 - } - - throw error; - }); - } - - const contentType = response.headers.get("content-type"); - - if (/application\/json/.test(contentType)) { - return response.json(); - } - - if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { - return response.text(); - } - - return getBufferResponse(response); - }).then(data => { - return { - status, - url, - headers, - data - }; - }).catch(error => { - if (error instanceof requestError.RequestError) { - throw error; - } - - throw new requestError.RequestError(error.message, 500, { - headers, - request: requestOptions - }); - }); -} - -function withDefaults(oldEndpoint, newDefaults) { - const endpoint = oldEndpoint.defaults(newDefaults); - - const newApi = function (route, parameters) { - const endpointOptions = endpoint.merge(route, parameters); - - if (!endpointOptions.request || !endpointOptions.request.hook) { - return fetchWrapper(endpoint.parse(endpointOptions)); - } - - const request = (route, parameters) => { - return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); - }; - - Object.assign(request, { - endpoint, - defaults: withDefaults.bind(null, endpoint) - }); - return endpointOptions.request.hook(request, endpointOptions); - }; - - return Object.assign(newApi, { - endpoint, - defaults: withDefaults.bind(null, endpoint) - }); -} - -const request = withDefaults(endpoint.endpoint, { - headers: { - "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}` - } -}); - -exports.request = request; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 754 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.searchconsole_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 = __webpack_require__(927); -var searchconsole_v1; -(function (searchconsole_v1) { - /** - * Google Search Console URL Testing Tools API - * - * Provides tools for running validation tests against single URLs - * - * @example - * const {google} = require('googleapis'); - * const searchconsole = google.searchconsole('v1'); - * - * @namespace searchconsole - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Searchconsole - */ - class Searchconsole { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.urlTestingTools = new Resource$Urltestingtools(this.context); - } - } - searchconsole_v1.Searchconsole = Searchconsole; - class Resource$Urltestingtools { - constructor(context) { - this.context = context; - this.mobileFriendlyTest = new Resource$Urltestingtools$Mobilefriendlytest(this.context); - } - } - searchconsole_v1.Resource$Urltestingtools = Resource$Urltestingtools; - class Resource$Urltestingtools$Mobilefriendlytest { - constructor(context) { - this.context = context; - } - run(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/urlTestingTools/mobileFriendlyTest:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - searchconsole_v1.Resource$Urltestingtools$Mobilefriendlytest = Resource$Urltestingtools$Mobilefriendlytest; -})(searchconsole_v1 = exports.searchconsole_v1 || (exports.searchconsole_v1 = {})); -//# sourceMappingURL=v1.js.map + connectors_v1.Resource$Projects$Locations$Providers$Connectors$Versions = Resource$Projects$Locations$Providers$Connectors$Versions; +})(connectors_v1 = exports.connectors_v1 || (exports.connectors_v1 = {})); + /***/ }), -/* 755 */, -/* 756 */ + +/***/ 8375: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -240523,32 +497408,27 @@ var searchconsole_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.bigqueryreservation_v1beta1 = void 0; +exports.osconfig_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 = __webpack_require__(927); -var bigqueryreservation_v1beta1; -(function (bigqueryreservation_v1beta1) { +var osconfig_v1; +(function (osconfig_v1) { /** - * BigQuery Reservation API + * OS Config API * - * A service to modify your BigQuery flat-rate reservations. + * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. * * @example + * ```js * const {google} = require('googleapis'); - * const bigqueryreservation = google.bigqueryreservation('v1beta1'); - * - * @namespace bigqueryreservation - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Bigqueryreservation + * const osconfig = google.osconfig('v1'); + * ``` */ - class Bigqueryreservation { + class Osconfig { constructor(options, google) { this.context = { _options: options || {}, @@ -240557,37 +497437,58 @@ var bigqueryreservation_v1beta1; this.projects = new Resource$Projects(this.context); } } - bigqueryreservation_v1beta1.Bigqueryreservation = Bigqueryreservation; + osconfig_v1.Osconfig = Osconfig; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); + this.patchDeployments = new Resource$Projects$Patchdeployments(this.context); + this.patchJobs = new Resource$Projects$Patchjobs(this.context); } } - bigqueryreservation_v1beta1.Resource$Projects = Resource$Projects; + osconfig_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.capacityCommitments = new Resource$Projects$Locations$Capacitycommitments(this.context); - this.reservations = new Resource$Projects$Locations$Reservations(this.context); + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.osPolicyAssignments = + new Resource$Projects$Locations$Ospolicyassignments(this.context); } - getBiReservation(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + this.inventories = new Resource$Projects$Locations$Instances$Inventories(this.context); + this.osPolicyAssignments = + new Resource$Projects$Locations$Instances$Ospolicyassignments(this.context); + this.vulnerabilityReports = + new Resource$Projects$Locations$Instances$Vulnerabilityreports(this.context); + } + } + osconfig_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Inventories { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -240596,29 +497497,30 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAssignments(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/inventories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -240627,128 +497529,114 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBiReservation(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://bigqueryreservation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + } + osconfig_v1.Resource$Projects$Locations$Instances$Inventories = Resource$Projects$Locations$Instances$Inventories; + class Resource$Projects$Locations$Instances$Ospolicyassignments { + constructor(context) { + this.context = context; + this.reports = + new Resource$Projects$Locations$Instances$Ospolicyassignments$Reports(this.context); } } - bigqueryreservation_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Capacitycommitments { + osconfig_v1.Resource$Projects$Locations$Instances$Ospolicyassignments = Resource$Projects$Locations$Instances$Ospolicyassignments; + class Resource$Projects$Locations$Instances$Ospolicyassignments$Reports { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + osconfig_v1.Resource$Projects$Locations$Instances$Ospolicyassignments$Reports = Resource$Projects$Locations$Instances$Ospolicyassignments$Reports; + class Resource$Projects$Locations$Instances$Vulnerabilityreports { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -240757,10 +497645,10 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -240769,17 +497657,18 @@ var bigqueryreservation_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/vulnerabilityReports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -240788,29 +497677,38 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - merge(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.Resource$Projects$Locations$Instances$Vulnerabilityreports = Resource$Projects$Locations$Instances$Vulnerabilityreports; + class Resource$Projects$Locations$Ospolicyassignments { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Ospolicyassignments$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -240819,30 +497717,31 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -240850,30 +497749,31 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - split(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -240881,37 +497781,31 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1beta1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; - class Resource$Projects$Locations$Reservations { - constructor(context) { - this.context = context; - this.assignments = new Resource$Projects$Locations$Reservations$Assignments(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -240919,30 +497813,31 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -240950,30 +497845,31 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -240981,61 +497877,69 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.Resource$Projects$Locations$Ospolicyassignments = Resource$Projects$Locations$Ospolicyassignments; + class Resource$Projects$Locations$Ospolicyassignments$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -241043,15 +497947,15 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; - class Resource$Projects$Locations$Reservations$Assignments { + osconfig_v1.Resource$Projects$Locations$Ospolicyassignments$Operations = Resource$Projects$Locations$Ospolicyassignments$Operations; + class Resource$Projects$Patchdeployments { constructor(context) { this.context = context; } @@ -241068,10 +497972,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -241080,10 +497984,10 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -241099,10 +498003,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -241111,13 +498015,13 @@ var bigqueryreservation_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241130,25 +498034,25 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241161,89 +498065,25 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; -})(bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1beta1 || (exports.bigqueryreservation_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 757 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.translate_v3beta1 = 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 = __webpack_require__(927); -var translate_v3beta1; -(function (translate_v3beta1) { - /** - * Cloud Translation API - * - * Integrates text translation into your website or application. - * - * @example - * const {google} = require('googleapis'); - * const translate = google.translate('v3beta1'); - * - * @namespace translate - * @type {Function} - * @version v3beta1 - * @variation v3beta1 - * @param {object=} options Options for Translate - */ - class Translate { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - translate_v3beta1.Translate = Translate; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241256,25 +498096,25 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241287,25 +498127,25 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translateText(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241318,33 +498158,32 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - translate_v3beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + osconfig_v1.Resource$Projects$Patchdeployments = Resource$Projects$Patchdeployments; + class Resource$Projects$Patchjobs { constructor(context) { this.context = context; - this.glossaries = new Resource$Projects$Locations$Glossaries(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); + this.instanceDetails = new Resource$Projects$Patchjobs$Instancedetails(this.context); } - batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241357,25 +498196,25 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + execute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241388,10 +498227,10 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -241400,10 +498239,10 @@ var translate_v3beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -241419,10 +498258,10 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -241431,13 +498270,13 @@ var translate_v3beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241450,10 +498289,10 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -241462,12 +498301,18 @@ var translate_v3beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + osconfig_v1.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; + class Resource$Projects$Patchjobs$Instancedetails { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -241481,25 +498326,243 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translateText(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; +})(osconfig_v1 = exports.osconfig_v1 || (exports.osconfig_v1 = {})); + + +/***/ }), + +/***/ 8384: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(__webpack_require__(4212)); + +var _sha = _interopRequireDefault(__webpack_require__(3498)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports.default = _default; + +/***/ }), + +/***/ 8386: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.runtimeconfig_v1beta1 = exports.runtimeconfig_v1 = exports.auth = exports.runtimeconfig = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3890); +Object.defineProperty(exports, "runtimeconfig_v1", { enumerable: true, get: function () { return v1_1.runtimeconfig_v1; } }); +const v1beta1_1 = __webpack_require__(8687); +Object.defineProperty(exports, "runtimeconfig_v1beta1", { enumerable: true, get: function () { return v1beta1_1.runtimeconfig_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.runtimeconfig_v1.Runtimeconfig, + v1beta1: v1beta1_1.runtimeconfig_v1beta1.Runtimeconfig, +}; +function runtimeconfig(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('runtimeconfig', versionOrOptions, exports.VERSIONS, this); +} +exports.runtimeconfig = runtimeconfig; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8387: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.servicedirectory_v1beta1 = exports.servicedirectory_v1 = exports.auth = exports.servicedirectory = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1021); +Object.defineProperty(exports, "servicedirectory_v1", { enumerable: true, get: function () { return v1_1.servicedirectory_v1; } }); +const v1beta1_1 = __webpack_require__(8991); +Object.defineProperty(exports, "servicedirectory_v1beta1", { enumerable: true, get: function () { return v1beta1_1.servicedirectory_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.servicedirectory_v1.Servicedirectory, + v1beta1: v1beta1_1.servicedirectory_v1beta1.Servicedirectory, +}; +function servicedirectory(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('servicedirectory', versionOrOptions, exports.VERSIONS, this); +} +exports.servicedirectory = servicedirectory; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8400: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +const cp = __webpack_require__(3129); +const parse = __webpack_require__(6510); +const enoent = __webpack_require__(3348); + +function spawn(command, args, options) { + // Parse the arguments + const parsed = parse(command, args, options); + + // Spawn the child process + const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); + + // Hook into child process "exit" event to emit an error if the command + // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 + enoent.hookChildProcess(spawned, parsed); + + return spawned; +} + +function spawnSync(command, args, options) { + // Parse the arguments + const parsed = parse(command, args, options); + + // Spawn the child process + const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); + + // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 + result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); + + return result; +} + +module.exports = spawn; +module.exports.spawn = spawn; +module.exports.sync = spawnSync; + +module.exports._parse = parse; +module.exports._enoent = enoent; + + +/***/ }), + +/***/ 8402: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.billingbudgets_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var billingbudgets_v1; +(function (billingbudgets_v1) { + /** + * Cloud Billing Budget API + * + * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const billingbudgets = google.billingbudgets('v1'); + * ``` + */ + class Billingbudgets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + } + } + billingbudgets_v1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); + } + } + billingbudgets_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241512,10 +498575,10 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -241524,19 +498587,13 @@ var translate_v3beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - translate_v3beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Glossaries { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241549,25 +498606,25 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241580,11 +498637,11 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -241592,13 +498649,13 @@ var translate_v3beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241611,25 +498668,25 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241642,33 +498699,135 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - translate_v3beta1.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; - class Resource$Projects$Locations$Operations { + billingbudgets_v1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1 = exports.billingbudgets_v1 || (exports.billingbudgets_v1 = {})); + + +/***/ }), + +/***/ 8432: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.mybusinessnotifications_v1 = exports.auth = exports.mybusinessnotifications = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7507); +Object.defineProperty(exports, "mybusinessnotifications_v1", { enumerable: true, get: function () { return v1_1.mybusinessnotifications_v1; } }); +exports.VERSIONS = { + v1: v1_1.mybusinessnotifications_v1.Mybusinessnotifications, +}; +function mybusinessnotifications(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessnotifications', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessnotifications = mybusinessnotifications; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8433: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.adexchangebuyer_v1_4 = 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 = __webpack_require__(927); +var adexchangebuyer_v1_4; +(function (adexchangebuyer_v1_4) { + /** + * Ad Exchange Buyer API + * + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adexchangebuyer = google.adexchangebuyer('v1.4'); + * ``` + */ + class Adexchangebuyer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.billingInfo = new Resource$Billinginfo(this.context); + this.budget = new Resource$Budget(this.context); + this.creatives = new Resource$Creatives(this.context); + this.marketplacedeals = new Resource$Marketplacedeals(this.context); + this.marketplacenotes = new Resource$Marketplacenotes(this.context); + this.marketplaceprivateauction = new Resource$Marketplaceprivateauction(this.context); + this.performanceReport = new Resource$Performancereport(this.context); + this.pretargetingConfig = new Resource$Pretargetingconfig(this.context); + this.products = new Resource$Products(this.context); + this.proposals = new Resource$Proposals(this.context); + this.pubprofiles = new Resource$Pubprofiles(this.context); + } + } + adexchangebuyer_v1_4.Adexchangebuyer = Adexchangebuyer; + class Resource$Accounts { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241679,27 +498838,26 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241710,27 +498868,26 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adexchangebuyer/v1.4/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241741,27 +498898,26 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241772,27 +498928,32 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + adexchangebuyer_v1_4.Resource$Accounts = Resource$Accounts; + class Resource$Billinginfo { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241803,92 +498964,62 @@ var translate_v3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.4/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - translate_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(translate_v3beta1 = exports.translate_v3beta1 || (exports.translate_v3beta1 = {})); -//# sourceMappingURL=v3beta1.js.map - -/***/ }), -/* 758 */, -/* 759 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.slides_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 = __webpack_require__(927); -var slides_v1; -(function (slides_v1) { - /** - * Google Slides API - * - * Reads and writes Google Slides presentations. - * - * @example - * const {google} = require('googleapis'); - * const slides = google.slides('v1'); - * - * @namespace slides - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Slides - */ - class Slides { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/billinginfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, }; - this.presentations = new Resource$Presentations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - slides_v1.Slides = Slides; - class Resource$Presentations { + adexchangebuyer_v1_4.Resource$Billinginfo = Resource$Billinginfo; + class Resource$Budget { constructor(context) { this.context = context; - this.pages = new Resource$Presentations$Pages(this.context); } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241899,27 +499030,27 @@ var slides_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/presentations/{presentationId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['presentationId'], - pathParams: ['presentationId'], + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241930,27 +499061,27 @@ var slides_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/presentations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241961,31 +499092,32 @@ var slides_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/presentations/{+presentationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['presentationId'], - pathParams: ['presentationId'], + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - slides_v1.Resource$Presentations = Resource$Presentations; - class Resource$Presentations$Pages { + adexchangebuyer_v1_4.Resource$Budget = Resource$Budget; + class Resource$Creatives { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + addDeal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241998,28 +499130,27 @@ var slides_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/presentations/{presentationId}/pages/{pageObjectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['presentationId', 'pageObjectId'], - pathParams: ['pageObjectId', 'presentationId'], + requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], + pathParams: ['accountId', 'buyerCreativeId', 'dealId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getThumbnail(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242030,182 +499161,57 @@ var slides_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['presentationId', 'pageObjectId'], - pathParams: ['pageObjectId', 'presentationId'], + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - slides_v1.Resource$Presentations$Pages = Resource$Presentations$Pages; -})(slides_v1 = exports.slides_v1 || (exports.slides_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 760 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Copyright 2020 The Oppia Authors. All Rights Reserved. -// -// 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. - -/** - * @fileoverview Handles dispatching events and actions to different handlers. - */ - -const core = __webpack_require__(470); -const { context } = __webpack_require__(469); -const issueLabelsModule = __webpack_require__(293); -const claCheckGithubActionModule = __webpack_require__(373); -const constants = __webpack_require__(208); -const PRLabelsModule = __webpack_require__(626); -const wipDraftModule = __webpack_require__(911); - -module.exports = { - async dispatch(event, action) { - core.info(`Received Event:${event} Action:${action}.`); - const checkEvent = `${event}_${action}`; - const repoName = context.payload.repository.name.toLowerCase(); - const checksWhitelist = constants.getChecksWhitelist(); - if (Object.prototype.hasOwnProperty.call(checksWhitelist, repoName)) { - core.info('Repo is whitelisted'); - const checks = checksWhitelist[repoName]; - if ((Object.prototype.hasOwnProperty.call(checks, checkEvent))) { - core.info('Valid checkevent'); - const checkList = checks[checkEvent]; - for (var i = 0; i < checkList.length; i++) { - switch (checkList[i]) { - case constants.issuesLabelCheck: - core.info('issue label check triggered'); - await issueLabelsModule.checkLabels(); - break; - case constants.claCheckGithubAction: - core.info('cla check triggered'); - await claCheckGithubActionModule.claCheckGithubAction(); - break; - case constants.prLabelCheck: - core.info('PR label check triggered'); - await PRLabelsModule.checkLabels(); - break; - case constants.dontMergeLabelCheck: - core.info('Don\'t label check triggered'); - await PRLabelsModule.checkUnLabeled(); - break; - case constants.wipCheck: - core.info('WIP check triggered'); - await wipDraftModule.checkWIP(); - break; - } - } - } - } - } -}; - - -/***/ }), -/* 761 */ -/***/ (function(module) { - -module.exports = require("zlib"); - -/***/ }), -/* 762 */, -/* 763 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.containeranalysis_v1alpha1 = 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 = __webpack_require__(927); -var containeranalysis_v1alpha1; -(function (containeranalysis_v1alpha1) { - /** - * Container Analysis API - * - * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. - * - * @example - * const {google} = require('googleapis'); - * const containeranalysis = google.containeranalysis('v1alpha1'); - * - * @namespace containeranalysis - * @type {Function} - * @version v1alpha1 - * @variation v1alpha1 - * @param {object=} options Options for Containeranalysis - */ - class Containeranalysis { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + insert(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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, }; - this.projects = new Resource$Projects(this.context); - this.providers = new Resource$Providers(this.context); - } - } - containeranalysis_v1alpha1.Containeranalysis = Containeranalysis; - class Resource$Projects { - constructor(context) { - this.context = context; - this.notes = new Resource$Projects$Notes(this.context); - this.occurrences = new Resource$Projects$Occurrences(this.context); - this.operations = new Resource$Projects$Operations(this.context); - this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); - } - } - containeranalysis_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Notes { - constructor(context) { - this.context = context; - this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242216,25 +499222,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listDeals(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242247,25 +499253,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/listDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeDeal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242278,25 +499285,32 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], + pathParams: ['accountId', 'buyerCreativeId', 'dealId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer_v1_4.Resource$Creatives = Resource$Creatives; + class Resource$Marketplacedeals { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242309,25 +499323,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/delete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242340,25 +499355,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242371,25 +499387,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242402,25 +499418,32 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/update').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer_v1_4.Resource$Marketplacedeals = Resource$Marketplacedeals; + class Resource$Marketplacenotes { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242433,30 +499456,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/notes/insert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1alpha1.Resource$Projects$Notes = Resource$Projects$Notes; - class Resource$Projects$Notes$Occurrences { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -242470,31 +499488,31 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - containeranalysis_v1alpha1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; - class Resource$Projects$Occurrences { + adexchangebuyer_v1_4.Resource$Marketplacenotes = Resource$Marketplacenotes; + class Resource$Marketplaceprivateauction { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + updateproposal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242507,25 +499525,32 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/adexchangebuyer/v1.4/privateauction/{privateAuctionId}/updateproposal').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['privateAuctionId'], + pathParams: ['privateAuctionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer_v1_4.Resource$Marketplaceprivateauction = Resource$Marketplaceprivateauction; + class Resource$Performancereport { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242538,25 +499563,31 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adexchangebuyer/v1.4/performancereport').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'endDateTime', 'startDateTime'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + adexchangebuyer_v1_4.Resource$Performancereport = Resource$Performancereport; + class Resource$Pretargetingconfig { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242569,25 +499600,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242600,25 +499632,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNotes(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242631,25 +499664,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242662,25 +499695,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242693,25 +499726,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242724,27 +499758,33 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + adexchangebuyer_v1_4.Resource$Pretargetingconfig = Resource$Pretargetingconfig; + class Resource$Products { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242755,27 +499795,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.4/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['productId'], + pathParams: ['productId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242786,33 +499825,32 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.4/products/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - containeranalysis_v1alpha1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; - class Resource$Projects$Operations { + adexchangebuyer_v1_4.Resource$Products = Resource$Products; + class Resource$Proposals { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242823,27 +499861,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242854,33 +499891,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1alpha1.Resource$Projects$Operations = Resource$Projects$Operations; - class Resource$Projects$Scanconfigs { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242891,27 +499921,27 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], + pathParams: ['proposalId', 'revisionNumber', 'updateAction'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242922,25 +499952,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setupcomplete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242953,41 +499983,27 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/setupcomplete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['proposalId'], + pathParams: ['proposalId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1alpha1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; - class Resource$Providers { - constructor(context) { - this.context = context; - this.notes = new Resource$Providers$Notes(this.context); - } - } - containeranalysis_v1alpha1.Resource$Providers = Resource$Providers; - class Resource$Providers$Notes { - constructor(context) { - this.context = context; - this.occurrences = new Resource$Providers$Notes$Occurrences(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -242998,27 +500014,33 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], + pathParams: ['proposalId', 'revisionNumber', 'updateAction'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + adexchangebuyer_v1_4.Resource$Proposals = Resource$Proposals; + class Resource$Pubprofiles { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -243029,27 +500051,87 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/adexchangebuyer/v1.4/publisher/{accountId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + adexchangebuyer_v1_4.Resource$Pubprofiles = Resource$Pubprofiles; +})(adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_4 || (exports.adexchangebuyer_v1_4 = {})); + + +/***/ }), + +/***/ 8448: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.script_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var script_v1; +(function (script_v1) { + /** + * Apps Script API + * + * Manages and executes Google Apps Script projects. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const script = google.script('v1'); + * ``` + */ + class Script { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.processes = new Resource$Processes(this.context); + this.projects = new Resource$Projects(this.context); + this.scripts = new Resource$Scripts(this.context); + } + } + script_v1.Script = Script; + class Resource$Processes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -243060,25 +500142,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/processes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listScriptProcesses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243091,27 +500173,34 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/processes:listScriptProcesses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + script_v1.Resource$Processes = Resource$Processes; + class Resource$Projects { + constructor(context) { + this.context = context; + this.deployments = new Resource$Projects$Deployments(this.context); + this.versions = new Resource$Projects$Versions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -243122,27 +500211,26 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -243153,25 +500241,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{scriptId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getContent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243184,25 +500272,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243215,31 +500303,25 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{scriptId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - containeranalysis_v1alpha1.Resource$Providers$Notes = Resource$Providers$Notes; - class Resource$Providers$Notes$Occurrences { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + updateContent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243252,100 +500334,27 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - containeranalysis_v1alpha1.Resource$Providers$Notes$Occurrences = Resource$Providers$Notes$Occurrences; -})(containeranalysis_v1alpha1 = exports.containeranalysis_v1alpha1 || (exports.containeranalysis_v1alpha1 = {})); -//# sourceMappingURL=v1alpha1.js.map - -/***/ }), -/* 764 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.composer_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 = __webpack_require__(927); -var composer_v1; -(function (composer_v1) { - /** - * Cloud Composer API - * - * Manages Apache Airflow environments on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const composer = google.composer('v1'); - * - * @namespace composer - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Composer - */ - class Composer { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - composer_v1.Composer = Composer; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - composer_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.environments = new Resource$Projects$Locations$Environments(this.context); - this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - } - composer_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Environments { + script_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Deployments { constructor(context) { this.context = context; } @@ -243362,22 +500371,22 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -243393,22 +500402,22 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId', 'deploymentId'], + pathParams: ['deploymentId', 'scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -243424,22 +500433,22 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId', 'deploymentId'], + pathParams: ['deploymentId', 'scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -243455,25 +500464,25 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243486,31 +500495,31 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId', 'deploymentId'], + pathParams: ['deploymentId', 'scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - composer_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; - class Resource$Projects$Locations$Imageversions { + script_v1.Resource$Projects$Deployments = Resource$Projects$Deployments; + class Resource$Projects$Versions { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243523,31 +500532,25 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - composer_v1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243560,25 +500563,25 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{scriptId}/versions/{versionNumber}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId', 'versionNumber'], + pathParams: ['scriptId', 'versionNumber'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -243591,27 +500594,32 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + script_v1.Resource$Projects$Versions = Resource$Projects$Versions; + class Resource$Scripts { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -243622,205 +500630,32 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/scripts/{scriptId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - composer_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(composer_v1 = exports.composer_v1 || (exports.composer_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 765 */ -/***/ (function(module) { - -module.exports = require("process"); - -/***/ }), -/* 766 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.tpu = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(698); -const v1alpha1_1 = __webpack_require__(154); -exports.VERSIONS = { - v1: v1_1.tpu_v1.Tpu, - v1alpha1: v1alpha1_1.tpu_v1alpha1.Tpu, -}; -function tpu(versionOrOptions) { - return googleapis_common_1.getAPI('tpu', versionOrOptions, exports.VERSIONS, this); -} -exports.tpu = tpu; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 767 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const debug_1 = __importDefault(__webpack_require__(377)); -const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); -function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - // we need to buffer any HTTP traffic that happens with the proxy before we get - // the CONNECT response, so that if the response is anything other than an "200" - // response code, then we can re-play the "data" events on the socket once the - // HTTP parser is hooked up... - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once('readable', read); - } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('close', onclose); - socket.removeListener('readable', read); - } - function onclose(err) { - debug('onclose had error %o', err); - } - function onend() { - debug('onend'); - } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); - } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf('\r\n\r\n'); - if (endOfHeaders === -1) { - // keep buffering - debug('have not received end of HTTP headers yet...'); - read(); - return; - } - const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); - const statusCode = +firstLine.split(' ')[1]; - debug('got proxy server response: %o', firstLine); - resolve({ - statusCode, - buffered - }); - } - socket.on('error', onerror); - socket.on('close', onclose); - socket.on('end', onend); - read(); - }); -} -exports.default = parseProxyResponse; -//# sourceMappingURL=parse-proxy-response.js.map - -/***/ }), -/* 768 */ -/***/ (function(module) { - -"use strict"; - -module.exports = function (x) { - var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt(); - var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt(); - - if (x[x.length - 1] === lf) { - x = x.slice(0, x.length - 1); - } - - if (x[x.length - 1] === cr) { - x = x.slice(0, x.length - 1); - } - - return x; -}; + script_v1.Resource$Scripts = Resource$Scripts; +})(script_v1 = exports.script_v1 || (exports.script_v1 = {})); /***/ }), -/* 769 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.storage = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(511); -const v1beta2_1 = __webpack_require__(111); -exports.VERSIONS = { - v1: v1_1.storage_v1.Storage, - v1beta2: v1beta2_1.storage_v1beta2.Storage, -}; -function storage(versionOrOptions) { - return googleapis_common_1.getAPI('storage', versionOrOptions, exports.VERSIONS, this); -} -exports.storage = storage; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 770 */, -/* 771 */, -/* 772 */ +/***/ 8450: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -243838,50 +500673,54 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.dlp_v2 = void 0; +exports.vmmigration_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 = __webpack_require__(927); -var dlp_v2; -(function (dlp_v2) { +var vmmigration_v1; +(function (vmmigration_v1) { /** - * Cloud Data Loss Prevention (DLP) API + * VM Migration API * - * Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories. + * Use the Migrate to Virtual Machines API to programmatically migrate workloads. * * @example + * ```js * const {google} = require('googleapis'); - * const dlp = google.dlp('v2'); - * - * @namespace dlp - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Dlp + * const vmmigration = google.vmmigration('v1'); + * ``` */ - class Dlp { + class Vmmigration { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.infoTypes = new Resource$Infotypes(this.context); - this.locations = new Resource$Locations(this.context); - this.organizations = new Resource$Organizations(this.context); this.projects = new Resource$Projects(this.context); } } - dlp_v2.Dlp = Dlp; - class Resource$Infotypes { + vmmigration_v1.Vmmigration = Vmmigration; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + vmmigration_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.groups = new Resource$Projects$Locations$Groups(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.sources = new Resource$Projects$Locations$Sources(this.context); + this.targetProjects = new Resource$Projects$Locations$Targetprojects(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -243892,37 +500731,24 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Infotypes = Resource$Infotypes; - class Resource$Locations { - constructor(context) { - this.context = context; - this.infoTypes = new Resource$Locations$Infotypes(this.context); - } - } - dlp_v2.Resource$Locations = Resource$Locations; - class Resource$Locations$Infotypes { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -243936,39 +500762,61 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/locations/{locationId}/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['locationId'], - pathParams: ['locationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Locations$Infotypes = Resource$Locations$Infotypes; - class Resource$Organizations { + vmmigration_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Groups { constructor(context) { this.context = context; - this.deidentifyTemplates = new Resource$Organizations$Deidentifytemplates(this.context); - this.inspectTemplates = new Resource$Organizations$Inspecttemplates(this.context); - this.locations = new Resource$Organizations$Locations(this.context); - this.storedInfoTypes = new Resource$Organizations$Storedinfotypes(this.context); } - } - dlp_v2.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Deidentifytemplates { - constructor(context) { - this.context = context; + addGroupMigration(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://vmmigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+group}:addGroupMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['group'], + pathParams: ['group'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -243983,10 +500831,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -243995,10 +500843,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -244014,10 +500862,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -244026,10 +500874,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -244045,10 +500893,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -244057,10 +500905,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -244076,10 +500924,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -244088,10 +500936,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -244107,10 +500955,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -244119,50 +500967,51 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Organizations$Deidentifytemplates = Resource$Organizations$Deidentifytemplates; - class Resource$Organizations$Inspecttemplates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + removeGroupMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+group}:removeGroupMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.Resource$Projects$Locations$Groups = Resource$Projects$Locations$Groups; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244175,11 +501024,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -244187,13 +501036,13 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244206,11 +501055,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -244218,13 +501067,13 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244237,25 +501086,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244268,11 +501117,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -244280,26 +501129,22 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Organizations$Inspecttemplates = Resource$Organizations$Inspecttemplates; - class Resource$Organizations$Locations { - constructor(context) { - this.context = context; - this.deidentifyTemplates = new Resource$Organizations$Locations$Deidentifytemplates(this.context); - this.inspectTemplates = new Resource$Organizations$Locations$Inspecttemplates(this.context); - this.storedInfoTypes = new Resource$Organizations$Locations$Storedinfotypes(this.context); - } - } - dlp_v2.Resource$Organizations$Locations = Resource$Organizations$Locations; - class Resource$Organizations$Locations$Deidentifytemplates { + vmmigration_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Sources { constructor(context) { this.context = context; + this.datacenterConnectors = + new Resource$Projects$Locations$Sources$Datacenterconnectors(this.context); + this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(this.context); + this.utilizationReports = + new Resource$Projects$Locations$Sources$Utilizationreports(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -244314,23 +501159,22 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -244346,10 +501190,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -244358,10 +501202,42 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + fetchInventory(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://vmmigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+source}:fetchInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['source'], + pathParams: ['source'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -244377,10 +501253,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -244389,10 +501265,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -244408,23 +501284,22 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -244440,10 +501315,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -244452,15 +501327,15 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Organizations$Locations$Deidentifytemplates = Resource$Organizations$Locations$Deidentifytemplates; - class Resource$Organizations$Locations$Inspecttemplates { + vmmigration_v1.Resource$Projects$Locations$Sources = Resource$Projects$Locations$Sources; + class Resource$Projects$Locations$Sources$Datacenterconnectors { constructor(context) { this.context = context; } @@ -244470,29 +501345,30 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -244501,17 +501377,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -244520,10 +501397,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -244532,17 +501409,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -244551,10 +501429,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -244563,67 +501441,75 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + upgradeAppliance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+datacenterConnector}:upgradeAppliance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['datacenterConnector'], + pathParams: ['datacenterConnector'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Organizations$Locations$Inspecttemplates = Resource$Organizations$Locations$Inspecttemplates; - class Resource$Organizations$Locations$Storedinfotypes { + vmmigration_v1.Resource$Projects$Locations$Sources$Datacenterconnectors = Resource$Projects$Locations$Sources$Datacenterconnectors; + class Resource$Projects$Locations$Sources$Migratingvms { constructor(context) { this.context = context; + this.cloneJobs = + new Resource$Projects$Locations$Sources$Migratingvms$Clonejobs(this.context); + this.cutoverJobs = + new Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs(this.context); + this.replicationCycles = + new Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -244631,29 +501517,30 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -244662,17 +501549,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -244681,253 +501569,261 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + finalizeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+migratingVm}:finalizeMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Organizations$Locations$Storedinfotypes = Resource$Organizations$Locations$Storedinfotypes; - class Resource$Organizations$Storedinfotypes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pauseMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+migratingVm}:pauseMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resumeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+migratingVm}:resumeMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + startMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+migratingVm}:startMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms = Resource$Projects$Locations$Sources$Migratingvms; + class Resource$Projects$Locations$Sources$Migratingvms$Clonejobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -244935,49 +501831,30 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Organizations$Storedinfotypes = Resource$Organizations$Storedinfotypes; - class Resource$Projects { - constructor(context) { - this.context = context; - this.content = new Resource$Projects$Content(this.context); - this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates(this.context); - this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); - this.image = new Resource$Projects$Image(this.context); - this.inspectTemplates = new Resource$Projects$Inspecttemplates(this.context); - this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.storedInfoTypes = new Resource$Projects$Storedinfotypes(this.context); - } - } - dlp_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Content { - constructor(context) { - this.context = context; - } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -244986,61 +501863,63 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inspect(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reidentify(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -245048,78 +501927,80 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Content = Resource$Projects$Content; - class Resource$Projects$Deidentifytemplates { + vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms$Clonejobs = Resource$Projects$Locations$Sources$Migratingvms$Clonejobs; + class Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -245128,17 +502009,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245147,10 +502029,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -245159,17 +502041,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245178,30 +502061,37 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs = Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs; + class Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -245209,66 +502099,68 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Projects$Deidentifytemplates = Resource$Projects$Deidentifytemplates; - class Resource$Projects$Dlpjobs { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/replicationCycles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles = Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles; + class Resource$Projects$Locations$Sources$Utilizationreports { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -245277,10 +502169,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -245289,17 +502181,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -245308,10 +502201,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -245320,17 +502213,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245339,10 +502233,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -245351,17 +502245,18 @@ var dlp_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245370,19 +502265,19 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Dlpjobs = Resource$Projects$Dlpjobs; - class Resource$Projects$Image { + vmmigration_v1.Resource$Projects$Locations$Sources$Utilizationreports = Resource$Projects$Locations$Sources$Utilizationreports; + class Resource$Projects$Locations$Targetprojects { constructor(context) { this.context = context; } - redact(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245395,10 +502290,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -245407,19 +502302,13 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Projects$Image = Resource$Projects$Image; - class Resource$Projects$Inspecttemplates { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245432,25 +502321,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245463,11 +502352,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -245475,13 +502364,13 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245494,25 +502383,124 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://vmmigration.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.Resource$Projects$Locations$Targetprojects = Resource$Projects$Locations$Targetprojects; +})(vmmigration_v1 = exports.vmmigration_v1 || (exports.vmmigration_v1 = {})); + + +/***/ }), + +/***/ 8462: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.memcache_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var memcache_v1; +(function (memcache_v1) { + /** + * Cloud Memorystore for Memcached API + * + * Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const memcache = google.memcache('v1'); + * ``` + */ + class Memcache { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + memcache_v1.Memcache = Memcache; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + memcache_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = 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 || {}); @@ -245525,25 +502513,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245556,11 +502544,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -245568,35 +502556,36 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Inspecttemplates = Resource$Projects$Inspecttemplates; - class Resource$Projects$Jobtriggers { + memcache_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; } - activate(paramsOrCallback, optionsOrCallback, callback) { + applyParameters(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -245605,10 +502594,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } create(paramsOrCallback, optionsOrCallback, callback) { @@ -245624,10 +502613,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -245636,10 +502625,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -245655,10 +502644,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -245667,10 +502656,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -245686,10 +502675,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245698,10 +502687,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -245717,10 +502706,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245729,10 +502718,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -245748,10 +502737,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -245760,133 +502749,83 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dlp_v2.Resource$Projects$Jobtriggers = Resource$Projects$Jobtriggers; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.content = new Resource$Projects$Locations$Content(this.context); - this.deidentifyTemplates = new Resource$Projects$Locations$Deidentifytemplates(this.context); - this.dlpJobs = new Resource$Projects$Locations$Dlpjobs(this.context); - this.image = new Resource$Projects$Locations$Image(this.context); - this.inspectTemplates = new Resource$Projects$Locations$Inspecttemplates(this.context); - this.jobTriggers = new Resource$Projects$Locations$Jobtriggers(this.context); - this.storedInfoTypes = new Resource$Projects$Locations$Storedinfotypes(this.context); - } - } - dlp_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Content { - constructor(context) { - this.context = context; - } - deidentify(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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v2/{+parent}/locations/{locationId}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inspect(paramsOrCallback, optionsOrCallback, callback) { + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+instance}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reidentify(paramsOrCallback, optionsOrCallback, callback) { + updateParameters(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+parent}/locations/{locationId}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Locations$Content = Resource$Projects$Locations$Content; - class Resource$Projects$Locations$Deidentifytemplates { + memcache_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245899,23 +502838,22 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -245931,10 +502869,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -245943,10 +502881,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -245962,10 +502900,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -245974,10 +502912,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -245993,26 +502931,134 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + memcache_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(memcache_v1 = exports.memcache_v1 || (exports.memcache_v1 = {})); + + +/***/ }), + +/***/ 8478: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.bigqueryconnection_v1beta1 = exports.auth = exports.bigqueryconnection = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1beta1_1 = __webpack_require__(6529); +Object.defineProperty(exports, "bigqueryconnection_v1beta1", { enumerable: true, get: function () { return v1beta1_1.bigqueryconnection_v1beta1; } }); +exports.VERSIONS = { + v1beta1: v1beta1_1.bigqueryconnection_v1beta1.Bigqueryconnection, +}; +function bigqueryconnection(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigqueryconnection', versionOrOptions, exports.VERSIONS, this); +} +exports.bigqueryconnection = bigqueryconnection; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8486: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.chromepolicy_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var chromepolicy_v1; +(function (chromepolicy_v1) { + /** + * Chrome Policy API + * + * The Chrome Policy API is a suite of services that allows Chrome administrators to control the policies applied to their managed Chrome OS devices and Chrome browsers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const chromepolicy = google.chromepolicy('v1'); + * ``` + */ + class Chromepolicy { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.media = new Resource$Media(this.context); + } + } + chromepolicy_v1.Chromepolicy = Chromepolicy; + class Resource$Customers { + constructor(context) { + this.context = context; + this.policies = new Resource$Customers$Policies(this.context); + this.policySchemas = new Resource$Customers$Policyschemas(this.context); + } + } + chromepolicy_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Policies { + constructor(context) { + this.context = context; + this.groups = new Resource$Customers$Policies$Groups(this.context); + this.networks = new Resource$Customers$Policies$Networks(this.context); + this.orgunits = new Resource$Customers$Policies$Orgunits(this.context); + } + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246025,31 +503071,31 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+customer}/policies:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Locations$Deidentifytemplates = Resource$Projects$Locations$Deidentifytemplates; - class Resource$Projects$Locations$Dlpjobs { + chromepolicy_v1.Resource$Customers$Policies = Resource$Customers$Policies; + class Resource$Customers$Policies$Groups { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246062,25 +503108,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/groups:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246093,223 +503139,231 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/groups:batchModify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/{+customer}/policies/groups:listGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - finish(paramsOrCallback, optionsOrCallback, callback) { + updateGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:finish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/{+customer}/policies/groups:updateGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + chromepolicy_v1.Resource$Customers$Policies$Groups = Resource$Customers$Policies$Groups; + class Resource$Customers$Policies$Networks { + constructor(context) { + this.context = context; + } + defineCertificate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+customer}/policies/networks:defineCertificate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hybridInspect(paramsOrCallback, optionsOrCallback, callback) { + defineNetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/networks:defineNetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeCertificate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+customer}/policies/networks:removeCertificate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dlp_v2.Resource$Projects$Locations$Dlpjobs = Resource$Projects$Locations$Dlpjobs; - class Resource$Projects$Locations$Image { - constructor(context) { - this.context = context; - } - redact(paramsOrCallback, optionsOrCallback, callback) { + removeNetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/networks:removeNetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Locations$Image = Resource$Projects$Locations$Image; - class Resource$Projects$Locations$Inspecttemplates { + chromepolicy_v1.Resource$Customers$Policies$Networks = Resource$Customers$Policies$Networks; + class Resource$Customers$Policies$Orgunits { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + batchInherit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246322,25 +503376,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/orgunits:batchInherit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246353,24 +503407,30 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+customer}/policies/orgunits:batchModify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + chromepolicy_v1.Resource$Customers$Policies$Orgunits = Resource$Customers$Policies$Orgunits; + class Resource$Customers$Policyschemas { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -246384,10 +503444,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -246396,10 +503456,10 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -246415,27 +503475,32 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/policySchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + chromepolicy_v1.Resource$Customers$Policyschemas = Resource$Customers$Policyschemas; + class Resource$Media { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246446,33 +503511,86 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Locations$Inspecttemplates = Resource$Projects$Locations$Inspecttemplates; - class Resource$Projects$Locations$Jobtriggers { + chromepolicy_v1.Resource$Media = Resource$Media; +})(chromepolicy_v1 = exports.chromepolicy_v1 || (exports.chromepolicy_v1 = {})); + + +/***/ }), + +/***/ 8488: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.driveactivity_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var driveactivity_v2; +(function (driveactivity_v2) { + /** + * Drive Activity API + * + * Provides a historical view of activity in Google Drive. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const driveactivity = google.driveactivity('v2'); + * ``` + */ + class Driveactivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activity = new Resource$Activity(this.context); + } + } + driveactivity_v2.Driveactivity = Driveactivity; + class Resource$Activity { constructor(context) { this.context = context; } - activate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246483,27 +503601,87 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://driveactivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/activity:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + driveactivity_v2.Resource$Activity = Resource$Activity; +})(driveactivity_v2 = exports.driveactivity_v2 || (exports.driveactivity_v2 = {})); + + +/***/ }), + +/***/ 8493: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vision_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vision_v1p1beta1; +(function (vision_v1p1beta1) { + /** + * Cloud Vision API + * + * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vision = google.vision('v1p1beta1'); + * ``` + */ + class Vision { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.projects = new Resource$Projects(this.context); + } + } + vision_v1p1beta1.Vision = Vision; + class Resource$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246514,25 +503692,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246545,27 +503723,32 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + vision_v1p1beta1.Resource$Files = Resource$Files; + class Resource$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246576,25 +503759,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hybridInspect(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246607,25 +503790,40 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + vision_v1p1beta1.Resource$Images = Resource$Images; + class Resource$Projects { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Files(this.context); + this.images = new Resource$Projects$Images(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + vision_v1p1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246638,25 +503836,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246669,31 +503867,31 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Locations$Jobtriggers = Resource$Projects$Locations$Jobtriggers; - class Resource$Projects$Locations$Storedinfotypes { + vision_v1p1beta1.Resource$Projects$Files = Resource$Projects$Files; + class Resource$Projects$Images { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + annotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246706,25 +503904,25 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246737,56 +503935,39 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://dlp.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); - } + } + vision_v1p1beta1.Resource$Projects$Images = Resource$Projects$Images; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Files(this.context); + this.images = new Resource$Projects$Locations$Images(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + } + vision_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246799,62 +503980,63 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'locationId'], - pathParams: ['locationId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Locations$Storedinfotypes = Resource$Projects$Locations$Storedinfotypes; - class Resource$Projects$Storedinfotypes { + vision_v1p1beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + annotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246867,10 +504049,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -246879,46 +504061,108 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + vision_v1p1beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; +})(vision_v1p1beta1 = exports.vision_v1p1beta1 || (exports.vision_v1p1beta1 = {})); + + +/***/ }), + +/***/ 8505: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.displayvideo_v1beta = 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 = __webpack_require__(927); +var displayvideo_v1beta; +(function (displayvideo_v1beta) { + /** + * Display & Video 360 API + * + * Display & Video 360 API allows users to manage and create campaigns and reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const displayvideo = google.displayvideo('v1beta'); + * ``` + */ + class Displayvideo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.sdfdownloadtask = new Resource$Sdfdownloadtask(this.context); + this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); + } + } + displayvideo_v1beta.Displayvideo = Displayvideo; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246929,25 +504173,38 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1beta.Resource$Media = Resource$Media; + class Resource$Sdfdownloadtask { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtask$Operations(this.context); + } + } + displayvideo_v1beta.Resource$Sdfdownloadtask = Resource$Sdfdownloadtask; + class Resource$Sdfdownloadtask$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246960,25 +504217,38 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1beta.Resource$Sdfdownloadtask$Operations = Resource$Sdfdownloadtask$Operations; + class Resource$Sdfdownloadtasks { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtasks$Operations(this.context); + } + } + displayvideo_v1beta.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; + class Resource$Sdfdownloadtasks$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246991,11 +504261,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -247003,59 +504273,20 @@ var dlp_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dlp_v2.Resource$Projects$Storedinfotypes = Resource$Projects$Storedinfotypes; -})(dlp_v2 = exports.dlp_v2 || (exports.dlp_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 773 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; + displayvideo_v1beta.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; +})(displayvideo_v1beta = exports.displayvideo_v1beta || (exports.displayvideo_v1beta = {})); -// 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.auth = exports.dns = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(611); -const v1beta2_1 = __webpack_require__(166); -const v2beta1_1 = __webpack_require__(873); -exports.VERSIONS = { - v1: v1_1.dns_v1.Dns, - v1beta2: v1beta2_1.dns_v1beta2.Dns, - v2beta1: v2beta1_1.dns_v2beta1.Dns, -}; -function dns(versionOrOptions) { - return googleapis_common_1.getAPI('dns', versionOrOptions, exports.VERSIONS, this); -} -exports.dns = dns; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 774 */, -/* 775 */, -/* 776 */ + +/***/ 8516: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -247073,1157 +504304,1298 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.drive_v3 = void 0; +exports.discoveryengine_v1beta = 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 = __webpack_require__(927); -var drive_v3; -(function (drive_v3) { +var discoveryengine_v1beta; +(function (discoveryengine_v1beta) { /** - * Drive API + * Discovery Engine API * - * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. + * Discovery Engine API. * * @example + * ```js * const {google} = require('googleapis'); - * const drive = google.drive('v3'); - * - * @namespace drive - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Drive + * const discoveryengine = google.discoveryengine('v1beta'); + * ``` */ - class Drive { + class Discoveryengine { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.about = new Resource$About(this.context); - this.changes = new Resource$Changes(this.context); - this.channels = new Resource$Channels(this.context); - this.comments = new Resource$Comments(this.context); - this.drives = new Resource$Drives(this.context); - this.files = new Resource$Files(this.context); - this.permissions = new Resource$Permissions(this.context); - this.replies = new Resource$Replies(this.context); - this.revisions = new Resource$Revisions(this.context); - this.teamdrives = new Resource$Teamdrives(this.context); + this.projects = new Resource$Projects(this.context); } } - drive_v3.Drive = Drive; - class Resource$About { + discoveryengine_v1beta.Discoveryengine = Discoveryengine; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v3/about').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); - } + } + discoveryengine_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.collections = new Resource$Projects$Locations$Collections(this.context); + this.dataStores = new Resource$Projects$Locations$Datastores(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } } - drive_v3.Resource$About = Resource$About; - class Resource$Changes { + discoveryengine_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Collections { constructor(context) { this.context = context; + this.dataStores = new Resource$Projects$Locations$Collections$Datastores(this.context); + this.operations = new Resource$Projects$Locations$Collections$Operations(this.context); } - getStartPageToken(paramsOrCallback, optionsOrCallback, callback) { + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections = Resource$Projects$Locations$Collections; + class Resource$Projects$Locations$Collections$Datastores { + constructor(context) { + this.context = context; + this.branches = + new Resource$Projects$Locations$Collections$Datastores$Branches(this.context); + this.models = + new Resource$Projects$Locations$Collections$Datastores$Models(this.context); + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Operations(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Collections$Datastores$Servingconfigs(this.context); + this.userEvents = + new Resource$Projects$Locations$Collections$Datastores$Userevents(this.context); + } + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores = Resource$Projects$Locations$Collections$Datastores; + class Resource$Projects$Locations$Collections$Datastores$Branches { + constructor(context) { + this.context = context; + this.documents = + new Resource$Projects$Locations$Collections$Datastores$Branches$Documents(this.context); + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Branches$Operations(this.context); + } + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Branches = Resource$Projects$Locations$Collections$Datastores$Branches; + class Resource$Projects$Locations$Collections$Datastores$Branches$Documents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['pageToken'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/changes/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['pageToken'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v3.Resource$Changes = Resource$Changes; - class Resource$Channels { - constructor(context) { - this.context = context; - } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v3.Resource$Channels = Resource$Channels; - class Resource$Comments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Branches$Documents = Resource$Projects$Locations$Collections$Datastores$Branches$Documents; + class Resource$Projects$Locations$Collections$Datastores$Branches$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Branches$Operations = Resource$Projects$Locations$Collections$Datastores$Branches$Operations; + class Resource$Projects$Locations$Collections$Datastores$Models { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Models$Operations(this.context); + } + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Models = Resource$Projects$Locations$Collections$Datastores$Models; + class Resource$Projects$Locations$Collections$Datastores$Models$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drive_v3.Resource$Comments = Resource$Comments; - class Resource$Drives { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['requestId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Models$Operations = Resource$Projects$Locations$Collections$Datastores$Models$Operations; + class Resource$Projects$Locations$Collections$Datastores$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Operations = Resource$Projects$Locations$Collections$Datastores$Operations; + class Resource$Projects$Locations$Collections$Datastores$Servingconfigs { + constructor(context) { + this.context = context; + } + recommend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Servingconfigs = Resource$Projects$Locations$Collections$Datastores$Servingconfigs; + class Resource$Projects$Locations$Collections$Datastores$Userevents { + constructor(context) { + this.context = context; + } + collect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unhide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v3.Resource$Drives = Resource$Drives; - class Resource$Files { + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Userevents = Resource$Projects$Locations$Collections$Datastores$Userevents; + class Resource$Projects$Locations$Collections$Operations { constructor(context) { this.context = context; } - copy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Collections$Operations = Resource$Projects$Locations$Collections$Operations; + class Resource$Projects$Locations$Datastores { + constructor(context) { + this.context = context; + this.branches = new Resource$Projects$Locations$Datastores$Branches(this.context); + this.models = new Resource$Projects$Locations$Datastores$Models(this.context); + this.operations = new Resource$Projects$Locations$Datastores$Operations(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Datastores$Servingconfigs(this.context); + this.userEvents = new Resource$Projects$Locations$Datastores$Userevents(this.context); + } + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores = Resource$Projects$Locations$Datastores; + class Resource$Projects$Locations$Datastores$Branches { + constructor(context) { + this.context = context; + this.documents = + new Resource$Projects$Locations$Datastores$Branches$Documents(this.context); + this.operations = + new Resource$Projects$Locations$Datastores$Branches$Operations(this.context); + } + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Branches = Resource$Projects$Locations$Datastores$Branches; + class Resource$Projects$Locations$Datastores$Branches$Documents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - emptyTrash(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/trash').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'mimeType'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateIds(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Branches$Documents = Resource$Projects$Locations$Datastores$Branches$Documents; + class Resource$Projects$Locations$Datastores$Branches$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v3.Resource$Files = Resource$Files; - class Resource$Permissions { + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Branches$Operations = Resource$Projects$Locations$Datastores$Branches$Operations; + class Resource$Projects$Locations$Datastores$Models { constructor(context) { this.context = context; + this.operations = + new Resource$Projects$Locations$Datastores$Models$Operations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Models = Resource$Projects$Locations$Datastores$Models; + class Resource$Projects$Locations$Datastores$Models$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Models$Operations = Resource$Projects$Locations$Datastores$Models$Operations; + class Resource$Projects$Locations$Datastores$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Operations = Resource$Projects$Locations$Datastores$Operations; + class Resource$Projects$Locations$Datastores$Servingconfigs { + constructor(context) { + this.context = context; + } + recommend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v3.Resource$Permissions = Resource$Permissions; - class Resource$Replies { + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Servingconfigs = Resource$Projects$Locations$Datastores$Servingconfigs; + class Resource$Projects$Locations$Datastores$Userevents { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + collect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Userevents = Resource$Projects$Locations$Datastores$Userevents; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248234,26 +505606,27 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248264,33 +505637,33 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v3.Resource$Replies = Resource$Replies; - class Resource$Revisions { + discoveryengine_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248301,26 +505674,27 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248331,25 +505705,259 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + discoveryengine_v1beta.Resource$Projects$Operations = Resource$Projects$Operations; +})(discoveryengine_v1beta = exports.discoveryengine_v1beta || (exports.discoveryengine_v1beta = {})); + + +/***/ }), + +/***/ 8518: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.healthcare_v1beta1 = exports.healthcare_v1 = exports.auth = exports.healthcare = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7487); +Object.defineProperty(exports, "healthcare_v1", { enumerable: true, get: function () { return v1_1.healthcare_v1; } }); +const v1beta1_1 = __webpack_require__(6961); +Object.defineProperty(exports, "healthcare_v1beta1", { enumerable: true, get: function () { return v1beta1_1.healthcare_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.healthcare_v1.Healthcare, + v1beta1: v1beta1_1.healthcare_v1beta1.Healthcare, +}; +function healthcare(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('healthcare', versionOrOptions, exports.VERSIONS, this); +} +exports.healthcare = healthcare; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8526: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Javascript implementation of mask generation function MGF1. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __webpack_require__(239); +__webpack_require__(7152); + +forge.mgf = forge.mgf || {}; +var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; + +/** + * Creates a MGF1 mask generation function object. + * + * @param md the message digest API to use (eg: forge.md.sha1.create()). + * + * @return a mask generation function object. + */ +mgf1.create = function(md) { + var mgf = { + /** + * Generate mask of specified length. + * + * @param {String} seed The seed for mask generation. + * @param maskLen Number of bytes to generate. + * @return {String} The generated mask. + */ + generate: function(seed, maskLen) { + /* 2. Let T be the empty octet string. */ + var t = new forge.util.ByteBuffer(); + + /* 3. For counter from 0 to ceil(maskLen / hLen), do the following: */ + var len = Math.ceil(maskLen / md.digestLength); + for(var i = 0; i < len; i++) { + /* a. Convert counter to an octet string C of length 4 octets */ + var c = new forge.util.ByteBuffer(); + c.putInt32(i); + + /* b. Concatenate the hash of the seed mgfSeed and C to the octet + * string T: */ + md.start(); + md.update(seed + c.getBytes()); + t.putBuffer(md.digest()); + } + + /* Output the leading maskLen octets of T as the octet string mask. */ + t.truncate(t.length() - maskLen); + return t.getBytes(); + } + }; + + return mgf; +}; + + +/***/ }), + +/***/ 8537: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +function promisify(fn) { + return function (req, opts) { + return new Promise((resolve, reject) => { + fn.call(this, req, opts, (err, rtn) => { + if (err) { + reject(err); + } + else { + resolve(rtn); + } + }); + }); + }; +} +exports.default = promisify; +//# sourceMappingURL=promisify.js.map + +/***/ }), + +/***/ 8545: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.ideahub_v1beta = exports.ideahub_v1alpha = exports.auth = exports.ideahub = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha_1 = __webpack_require__(5174); +Object.defineProperty(exports, "ideahub_v1alpha", { enumerable: true, get: function () { return v1alpha_1.ideahub_v1alpha; } }); +const v1beta_1 = __webpack_require__(9002); +Object.defineProperty(exports, "ideahub_v1beta", { enumerable: true, get: function () { return v1beta_1.ideahub_v1beta; } }); +exports.VERSIONS = { + v1alpha: v1alpha_1.ideahub_v1alpha.Ideahub, + v1beta: v1beta_1.ideahub_v1beta.Ideahub, +}; +function ideahub(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('ideahub', versionOrOptions, exports.VERSIONS, this); +} +exports.ideahub = ideahub; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8549: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.admob_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var admob_v1; +(function (admob_v1) { + /** + * AdMob API + * + * The AdMob API allows publishers to programmatically get information about their AdMob account. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const admob = google.admob('v1'); + * ``` + */ + class Admob { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + admob_v1.Admob = Admob; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.adUnits = new Resource$Accounts$Adunits(this.context); + this.apps = new Resource$Accounts$Apps(this.context); + this.mediationReport = new Resource$Accounts$Mediationreport(this.context); + this.networkReport = new Resource$Accounts$Networkreport(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -248361,25 +505969,25 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -248391,31 +505999,31 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v3.Resource$Revisions = Resource$Revisions; - class Resource$Teamdrives { + admob_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adunits { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248428,25 +506036,31 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['requestId'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + admob_v1.Resource$Accounts$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Apps { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248459,56 +506073,33 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], - 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + admob_v1.Resource$Accounts$Apps = Resource$Accounts$Apps; + class Resource$Accounts$Mediationreport { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248519,25 +506110,31 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + admob_v1.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport; + class Resource$Accounts$Networkreport { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248550,46 +506147,70 @@ var drive_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - drive_v3.Resource$Teamdrives = Resource$Teamdrives; -})(drive_v3 = exports.drive_v3 || (exports.drive_v3 = {})); -//# sourceMappingURL=v3.js.map + admob_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; +})(admob_v1 = exports.admob_v1 || (exports.admob_v1 = {})); + /***/ }), -/* 777 */ -/***/ (function(module, __unusedexports, __webpack_require__) { -module.exports = getFirstPage +/***/ 8557: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -const getPage = __webpack_require__(265) +"use strict"; -function getFirstPage (octokit, link, headers) { - return getPage(octokit, link, 'first', headers) +// 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.AuthPlus = exports.vectortile_v1 = exports.auth = exports.vectortile = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9303); +Object.defineProperty(exports, "vectortile_v1", { enumerable: true, get: function () { return v1_1.vectortile_v1; } }); +exports.VERSIONS = { + v1: v1_1.vectortile_v1.Vectortile, +}; +function vectortile(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('vectortile', versionOrOptions, exports.VERSIONS, this); } +exports.vectortile = vectortile; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 778 */, -/* 779 */, -/* 780 */ + +/***/ 8562: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -248607,7 +506228,45 @@ function getFirstPage (octokit, link, headers) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.accessapproval_v1beta1 = void 0; +exports.AuthPlus = exports.cloudsupport_v2beta = exports.auth = exports.cloudsupport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2beta_1 = __webpack_require__(7922); +Object.defineProperty(exports, "cloudsupport_v2beta", { enumerable: true, get: function () { return v2beta_1.cloudsupport_v2beta; } }); +exports.VERSIONS = { + v2beta: v2beta_1.cloudsupport_v2beta.Cloudsupport, +}; +function cloudsupport(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudsupport', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudsupport = cloudsupport; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8591: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.transcoder_v1beta1 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/class-name-casing */ /* eslint-disable @typescript-eslint/no-unused-vars */ @@ -248615,41 +506274,49 @@ exports.accessapproval_v1beta1 = void 0; /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = __webpack_require__(927); -var accessapproval_v1beta1; -(function (accessapproval_v1beta1) { +var transcoder_v1beta1; +(function (transcoder_v1beta1) { /** - * Access Approval API + * Transcoder API * - * An API for controlling access to data by Google personnel. + * This API converts video files into formats suitable for consumer distribution. * * @example + * ```js * const {google} = require('googleapis'); - * const accessapproval = google.accessapproval('v1beta1'); - * - * @namespace accessapproval - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Accessapproval + * const transcoder = google.transcoder('v1beta1'); + * ``` */ - class Accessapproval { + class Transcoder { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.folders = new Resource$Folders(this.context); - this.organizations = new Resource$Organizations(this.context); this.projects = new Resource$Projects(this.context); } } - accessapproval_v1beta1.Accessapproval = Accessapproval; - class Resource$Folders { + transcoder_v1beta1.Transcoder = Transcoder; + class Resource$Projects { constructor(context) { this.context = context; - this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + } + transcoder_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.jobTemplates = new Resource$Projects$Locations$Jobtemplates(this.context); + } + } + transcoder_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248662,7 +506329,38 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -248674,13 +506372,13 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248693,7 +506391,7 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -248705,13 +506403,13 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248724,31 +506422,31 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accessapproval_v1beta1.Resource$Folders = Resource$Folders; - class Resource$Folders$Approvalrequests { + transcoder_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobtemplates { constructor(context) { this.context = context; } - approve(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248761,25 +506459,314 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://transcoder.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://transcoder.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://transcoder.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + } + transcoder_v1beta1.Resource$Projects$Locations$Jobtemplates = Resource$Projects$Locations$Jobtemplates; +})(transcoder_v1beta1 = exports.transcoder_v1beta1 || (exports.transcoder_v1beta1 = {})); + + +/***/ }), + +/***/ 8605: +/***/ (function(module) { + +module.exports = require("http"); + +/***/ }), + +/***/ 8614: +/***/ (function(module) { + +module.exports = require("events"); + +/***/ }), + +/***/ 8619: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.oslogin_v1beta = exports.oslogin_v1alpha = exports.oslogin_v1 = exports.auth = exports.oslogin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8179); +Object.defineProperty(exports, "oslogin_v1", { enumerable: true, get: function () { return v1_1.oslogin_v1; } }); +const v1alpha_1 = __webpack_require__(3632); +Object.defineProperty(exports, "oslogin_v1alpha", { enumerable: true, get: function () { return v1alpha_1.oslogin_v1alpha; } }); +const v1beta_1 = __webpack_require__(1232); +Object.defineProperty(exports, "oslogin_v1beta", { enumerable: true, get: function () { return v1beta_1.oslogin_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.oslogin_v1.Oslogin, + v1alpha: v1alpha_1.oslogin_v1alpha.Oslogin, + v1beta: v1beta_1.oslogin_v1beta.Oslogin, +}; +function oslogin(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('oslogin', versionOrOptions, exports.VERSIONS, this); +} +exports.oslogin = oslogin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8630: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(4915); + +var callBind = __webpack_require__(8749); + +var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); + +module.exports = function callBoundIntrinsic(name, allowMissing) { + var intrinsic = GetIntrinsic(name, !!allowMissing); + if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { + return callBind(intrinsic); + } + return intrinsic; +}; + + +/***/ }), + +/***/ 8644: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.jobs_v4 = exports.jobs_v3p1beta1 = exports.jobs_v3 = exports.jobs_v2 = exports.auth = exports.jobs = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(2787); +Object.defineProperty(exports, "jobs_v2", { enumerable: true, get: function () { return v2_1.jobs_v2; } }); +const v3_1 = __webpack_require__(3994); +Object.defineProperty(exports, "jobs_v3", { enumerable: true, get: function () { return v3_1.jobs_v3; } }); +const v3p1beta1_1 = __webpack_require__(1030); +Object.defineProperty(exports, "jobs_v3p1beta1", { enumerable: true, get: function () { return v3p1beta1_1.jobs_v3p1beta1; } }); +const v4_1 = __webpack_require__(9912); +Object.defineProperty(exports, "jobs_v4", { enumerable: true, get: function () { return v4_1.jobs_v4; } }); +exports.VERSIONS = { + v2: v2_1.jobs_v2.Jobs, + v3: v3_1.jobs_v3.Jobs, + v3p1beta1: v3p1beta1_1.jobs_v3p1beta1.Jobs, + v4: v4_1.jobs_v4.Jobs, +}; +function jobs(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('jobs', versionOrOptions, exports.VERSIONS, this); +} +exports.jobs = jobs; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8657: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.paymentsresellersubscription_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var paymentsresellersubscription_v1; +(function (paymentsresellersubscription_v1) { + /** + * Payments Reseller Subscription API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const paymentsresellersubscription = google.paymentsresellersubscription('v1'); + * ``` + */ + class Paymentsresellersubscription { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.partners = new Resource$Partners(this.context); + } + } + paymentsresellersubscription_v1.Paymentsresellersubscription = Paymentsresellersubscription; + class Resource$Partners { + constructor(context) { + this.context = context; + this.products = new Resource$Partners$Products(this.context); + this.promotions = new Resource$Partners$Promotions(this.context); + this.subscriptions = new Resource$Partners$Subscriptions(this.context); + } + } + paymentsresellersubscription_v1.Resource$Partners = Resource$Partners; + class Resource$Partners$Products { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248792,25 +506779,32 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + paymentsresellersubscription_v1.Resource$Partners$Products = Resource$Partners$Products; + class Resource$Partners$Promotions { + constructor(context) { + this.context = context; + } + findEligible(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248823,22 +506817,23 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/promotions:findEligible').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -248854,10 +506849,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/promotions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -248866,20 +506862,19 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accessapproval_v1beta1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; - class Resource$Organizations { + paymentsresellersubscription_v1.Resource$Partners$Promotions = Resource$Partners$Promotions; + class Resource$Partners$Subscriptions { constructor(context) { this.context = context; - this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248892,11 +506887,12 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -248904,13 +506900,13 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248923,25 +506919,26 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + entitle(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248954,11 +506951,12 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:entitle').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -248966,19 +506964,13 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Approvalrequests { - constructor(context) { - this.context = context; - } - approve(paramsOrCallback, optionsOrCallback, callback) { + extend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248991,10 +506983,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:extend').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -249003,13 +506996,13 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249022,11 +507015,12 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -249034,13 +507028,13 @@ var accessapproval_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + provision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249053,25 +507047,26 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/subscriptions:provision').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + undoCancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249084,32 +507079,129 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undoCancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accessapproval_v1beta1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; + paymentsresellersubscription_v1.Resource$Partners$Subscriptions = Resource$Partners$Subscriptions; +})(paymentsresellersubscription_v1 = exports.paymentsresellersubscription_v1 || (exports.paymentsresellersubscription_v1 = {})); + + +/***/ }), + +/***/ 8666: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_2 = exports.auth = exports.adexchangebuyer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_2_1 = __webpack_require__(914); +Object.defineProperty(exports, "adexchangebuyer_v1_2", { enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } }); +const v1_3_1 = __webpack_require__(5845); +Object.defineProperty(exports, "adexchangebuyer_v1_3", { enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } }); +const v1_4_1 = __webpack_require__(8433); +Object.defineProperty(exports, "adexchangebuyer_v1_4", { enumerable: true, get: function () { return v1_4_1.adexchangebuyer_v1_4; } }); +exports.VERSIONS = { + 'v1.2': v1_2_1.adexchangebuyer_v1_2.Adexchangebuyer, + 'v1.3': v1_3_1.adexchangebuyer_v1_3.Adexchangebuyer, + 'v1.4': v1_4_1.adexchangebuyer_v1_4.Adexchangebuyer, +}; +function adexchangebuyer(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('adexchangebuyer', versionOrOptions, exports.VERSIONS, this); +} +exports.adexchangebuyer = adexchangebuyer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8672: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datastore_v1beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datastore_v1beta3; +(function (datastore_v1beta3) { + /** + * Cloud Datastore API + * + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datastore = google.datastore('v1beta3'); + * ``` + */ + class Datastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datastore_v1beta3.Datastore = Datastore; class Resource$Projects { constructor(context) { this.context = context; - this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + allocateIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249122,25 +507214,25 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249153,27 +507245,26 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249184,31 +507275,55 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Approvalrequests { - constructor(context) { - this.context = context; + lookup(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://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - approve(paramsOrCallback, optionsOrCallback, callback) { + reserveIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249221,25 +507336,25 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249252,25 +507367,25 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + runAggregationQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249283,25 +507398,25 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/projects/{projectId}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + runQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249314,31 +507429,32 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - accessapproval_v1beta1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; -})(accessapproval_v1beta1 = exports.accessapproval_v1beta1 || (exports.accessapproval_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + datastore_v1beta3.Resource$Projects = Resource$Projects; +})(datastore_v1beta3 = exports.datastore_v1beta3 || (exports.datastore_v1beta3 = {})); + /***/ }), -/* 781 */ + +/***/ 8687: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -249356,49 +507472,53 @@ var accessapproval_v1beta1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.vision_v1p2beta1 = void 0; +exports.runtimeconfig_v1beta1 = 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 = __webpack_require__(927); -var vision_v1p2beta1; -(function (vision_v1p2beta1) { +var runtimeconfig_v1beta1; +(function (runtimeconfig_v1beta1) { /** - * Cloud Vision API + * Cloud Runtime Configuration API * - * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. * * @example + * ```js * const {google} = require('googleapis'); - * const vision = google.vision('v1p2beta1'); - * - * @namespace vision - * @type {Function} - * @version v1p2beta1 - * @variation v1p2beta1 - * @param {object=} options Options for Vision + * const runtimeconfig = google.runtimeconfig('v1beta1'); + * ``` */ - class Vision { + class Runtimeconfig { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.files = new Resource$Files(this.context); - this.images = new Resource$Images(this.context); this.projects = new Resource$Projects(this.context); } } - vision_v1p2beta1.Vision = Vision; - class Resource$Files { + runtimeconfig_v1beta1.Runtimeconfig = Runtimeconfig; + class Resource$Projects { constructor(context) { this.context = context; + this.configs = new Resource$Projects$Configs(this.context); } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + runtimeconfig_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Configs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Configs$Operations(this.context); + this.variables = new Resource$Projects$Configs$Variables(this.context); + this.waiters = new Resource$Projects$Configs$Waiters(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249409,25 +507529,25 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249440,32 +507560,27 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p2beta1.Resource$Files = Resource$Files; - class Resource$Images { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249476,25 +507591,25 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249507,40 +507622,25 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p2beta1.Resource$Images = Resource$Images; - class Resource$Projects { - constructor(context) { - this.context = context; - this.files = new Resource$Projects$Files(this.context); - this.images = new Resource$Projects$Images(this.context); - this.locations = new Resource$Projects$Locations(this.context); - } - } - vision_v1p2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Files { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249553,11 +507653,11 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -249565,13 +507665,13 @@ var vision_v1p2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249584,31 +507684,25 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p2beta1.Resource$Projects$Files = Resource$Projects$Files; - class Resource$Projects$Images { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249621,25 +507715,25 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249652,39 +507746,31 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1p2beta1.Resource$Projects$Images = Resource$Projects$Images; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.files = new Resource$Projects$Locations$Files(this.context); - this.images = new Resource$Projects$Locations$Images(this.context); - } - } - vision_v1p2beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Files { + runtimeconfig_v1beta1.Resource$Projects$Configs = Resource$Projects$Configs; + class Resource$Projects$Configs$Operations { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249697,62 +507783,63 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1p2beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; - class Resource$Projects$Locations$Images { + runtimeconfig_v1beta1.Resource$Projects$Configs$Operations = Resource$Projects$Configs$Operations; + class Resource$Projects$Configs$Variables { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249765,10 +507852,10 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -249777,13 +507864,13 @@ var vision_v1p2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249796,89 +507883,25 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1p2beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; -})(vision_v1p2beta1 = exports.vision_v1p2beta1 || (exports.vision_v1p2beta1 = {})); -//# sourceMappingURL=v1p2beta1.js.map - -/***/ }), -/* 782 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.sourcerepo_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 = __webpack_require__(927); -var sourcerepo_v1; -(function (sourcerepo_v1) { - /** - * Cloud Source Repositories API - * - * Accesses source code repositories hosted by Google. - * - * @example - * const {google} = require('googleapis'); - * const sourcerepo = google.sourcerepo('v1'); - * - * @namespace sourcerepo - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Sourcerepo - */ - class Sourcerepo { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - sourcerepo_v1.Sourcerepo = Sourcerepo; - class Resource$Projects { - constructor(context) { - this.context = context; - this.repos = new Resource$Projects$Repos(this.context); - } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249891,10 +507914,10 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -249903,13 +507926,13 @@ var sourcerepo_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249922,62 +507945,57 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - sourcerepo_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Repos { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249990,11 +508008,11 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -250002,13 +508020,13 @@ var sourcerepo_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + watch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250021,11 +508039,11 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -250033,44 +508051,19 @@ var sourcerepo_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://sourcerepo.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); - } + } + runtimeconfig_v1beta1.Resource$Projects$Configs$Variables = Resource$Projects$Configs$Variables; + class Resource$Projects$Configs$Waiters { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250083,25 +508076,25 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/repos').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250114,11 +508107,11 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -250126,44 +508119,13 @@ var sourcerepo_v1; 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://sourcerepo.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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sync(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250176,11 +508138,11 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:sync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -250188,13 +508150,13 @@ var sourcerepo_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250207,1460 +508169,1314 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.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); - } - } - } - sourcerepo_v1.Resource$Projects$Repos = Resource$Projects$Repos; -})(sourcerepo_v1 = exports.sourcerepo_v1 || (exports.sourcerepo_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 783 */, -/* 784 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of Abstract Syntax Notation Number One. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. - * - * An API for storing data using the Abstract Syntax Notation Number One - * format using DER (Distinguished Encoding Rules) encoding. This encoding is - * commonly used to store data for PKI, i.e. X.509 Certificates, and this - * implementation exists for that purpose. - * - * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract - * syntax of information without restricting the way the information is encoded - * for transmission. It provides a standard that allows for open systems - * communication. ASN.1 defines the syntax of information data and a number of - * simple data types as well as a notation for describing them and specifying - * values for them. - * - * The RSA algorithm creates public and private keys that are often stored in - * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This - * class provides the most basic functionality required to store and load DSA - * keys that are encoded according to ASN.1. - * - * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules) - * and DER (Distinguished Encoding Rules). DER is just a subset of BER that - * has stricter requirements for how data must be encoded. - * - * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type) - * and a byte array for the value of this ASN1 structure which may be data or a - * list of ASN.1 structures. - * - * Each ASN.1 structure using BER is (Tag-Length-Value): - * - * | byte 0 | bytes X | bytes Y | - * |--------|---------|---------- - * | tag | length | value | - * - * ASN.1 allows for tags to be of "High-tag-number form" which allows a tag to - * be two or more octets, but that is not supported by this class. A tag is - * only 1 byte. Bits 1-5 give the tag number (ie the data type within a - * particular 'class'), 6 indicates whether or not the ASN.1 value is - * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If - * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set, - * then the class is APPLICATION. If only bit 8 is set, then the class is - * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE. - * The tag numbers for the data types for the class UNIVERSAL are listed below: - * - * UNIVERSAL 0 Reserved for use by the encoding rules - * UNIVERSAL 1 Boolean type - * UNIVERSAL 2 Integer type - * UNIVERSAL 3 Bitstring type - * UNIVERSAL 4 Octetstring type - * UNIVERSAL 5 Null type - * UNIVERSAL 6 Object identifier type - * UNIVERSAL 7 Object descriptor type - * UNIVERSAL 8 External type and Instance-of type - * UNIVERSAL 9 Real type - * UNIVERSAL 10 Enumerated type - * UNIVERSAL 11 Embedded-pdv type - * UNIVERSAL 12 UTF8String type - * UNIVERSAL 13 Relative object identifier type - * UNIVERSAL 14-15 Reserved for future editions - * UNIVERSAL 16 Sequence and Sequence-of types - * UNIVERSAL 17 Set and Set-of types - * UNIVERSAL 18-22, 25-30 Character string types - * UNIVERSAL 23-24 Time types - * - * The length of an ASN.1 structure is specified after the tag identifier. - * There is a definite form and an indefinite form. The indefinite form may - * be used if the encoding is constructed and not all immediately available. - * The indefinite form is encoded using a length byte with only the 8th bit - * set. The end of the constructed object is marked using end-of-contents - * octets (two zero bytes). - * - * The definite form looks like this: - * - * The length may take up 1 or more bytes, it depends on the length of the - * value of the ASN.1 structure. DER encoding requires that if the ASN.1 - * structure has a value that has a length greater than 127, more than 1 byte - * will be used to store its length, otherwise just one byte will be used. - * This is strict. - * - * In the case that the length of the ASN.1 value is less than 127, 1 octet - * (byte) is used to store the "short form" length. The 8th bit has a value of - * 0 indicating the length is "short form" and not "long form" and bits 7-1 - * give the length of the data. (The 8th bit is the left-most, most significant - * bit: also known as big endian or network format). - * - * In the case that the length of the ASN.1 value is greater than 127, 2 to - * 127 octets (bytes) are used to store the "long form" length. The first - * byte's 8th bit is set to 1 to indicate the length is "long form." Bits 7-1 - * give the number of additional octets. All following octets are in base 256 - * with the most significant digit first (typical big-endian binary unsigned - * integer storage). So, for instance, if the length of a value was 257, the - * first byte would be set to: - * - * 10000010 = 130 = 0x82. - * - * This indicates there are 2 octets (base 256) for the length. The second and - * third bytes (the octets just mentioned) would store the length in base 256: - * - * octet 2: 00000001 = 1 * 256^1 = 256 - * octet 3: 00000001 = 1 * 256^0 = 1 - * total = 257 - * - * The algorithm for converting a js integer value of 257 to base-256 is: - * - * var value = 257; - * var bytes = []; - * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first - * bytes[1] = value & 0xFF; // least significant byte last - * - * On the ASN.1 UNIVERSAL Object Identifier (OID) type: - * - * An OID can be written like: "value1.value2.value3...valueN" - * - * The DER encoding rules: - * - * The first byte has the value 40 * value1 + value2. - * The following bytes, if any, encode the remaining values. Each value is - * encoded in base 128, most significant digit first (big endian), with as - * few digits as possible, and the most significant bit of each byte set - * to 1 except the last in each value's encoding. For example: Given the - * OID "1.2.840.113549", its DER encoding is (remember each byte except the - * last one in each encoding is OR'd with 0x80): - * - * byte 1: 40 * 1 + 2 = 42 = 0x2A. - * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648 - * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D - * - * The final value is: 0x2A864886F70D. - * The full OID (including ASN.1 tag and length of 6 bytes) is: - * 0x06062A864886F70D - */ -var forge = __webpack_require__(239); -__webpack_require__(54); -__webpack_require__(988); - -/* ASN.1 API */ -var asn1 = module.exports = forge.asn1 = forge.asn1 || {}; - -/** - * ASN.1 classes. - */ -asn1.Class = { - UNIVERSAL: 0x00, - APPLICATION: 0x40, - CONTEXT_SPECIFIC: 0x80, - PRIVATE: 0xC0 -}; - -/** - * ASN.1 types. Not all types are supported by this implementation, only - * those necessary to implement a simple PKI are implemented. - */ -asn1.Type = { - NONE: 0, - BOOLEAN: 1, - INTEGER: 2, - BITSTRING: 3, - OCTETSTRING: 4, - NULL: 5, - OID: 6, - ODESC: 7, - EXTERNAL: 8, - REAL: 9, - ENUMERATED: 10, - EMBEDDED: 11, - UTF8: 12, - ROID: 13, - SEQUENCE: 16, - SET: 17, - PRINTABLESTRING: 19, - IA5STRING: 22, - UTCTIME: 23, - GENERALIZEDTIME: 24, - BMPSTRING: 30 -}; - -/** - * Creates a new asn1 object. - * - * @param tagClass the tag class for the object. - * @param type the data type (tag number) for the object. - * @param constructed true if the asn1 object is in constructed form. - * @param value the value for the object, if it is not constructed. - * @param [options] the options to use: - * [bitStringContents] the plain BIT STRING content including padding - * byte. - * - * @return the asn1 object. - */ -asn1.create = function(tagClass, type, constructed, value, options) { - /* An asn1 object has a tagClass, a type, a constructed flag, and a - value. The value's type depends on the constructed flag. If - constructed, it will contain a list of other asn1 objects. If not, - it will contain the ASN.1 value as an array of bytes formatted - according to the ASN.1 data type. */ - - // remove undefined values - if(forge.util.isArray(value)) { - var tmp = []; - for(var i = 0; i < value.length; ++i) { - if(value[i] !== undefined) { - tmp.push(value[i]); - } - } - value = tmp; - } - - var obj = { - tagClass: tagClass, - type: type, - constructed: constructed, - composed: constructed || forge.util.isArray(value), - value: value - }; - if(options && 'bitStringContents' in options) { - // TODO: copy byte buffer if it's a buffer not a string - obj.bitStringContents = options.bitStringContents; - // TODO: add readonly flag to avoid this overhead - // save copy to detect changes - obj.original = asn1.copy(obj); - } - return obj; -}; - -/** - * Copies an asn1 object. - * - * @param obj the asn1 object. - * @param [options] copy options: - * [excludeBitStringContents] true to not copy bitStringContents - * - * @return the a copy of the asn1 object. - */ -asn1.copy = function(obj, options) { - var copy; - - if(forge.util.isArray(obj)) { - copy = []; - for(var i = 0; i < obj.length; ++i) { - copy.push(asn1.copy(obj[i], options)); - } - return copy; - } - - if(typeof obj === 'string') { - // TODO: copy byte buffer if it's a buffer not a string - return obj; - } - - copy = { - tagClass: obj.tagClass, - type: obj.type, - constructed: obj.constructed, - composed: obj.composed, - value: asn1.copy(obj.value, options) - }; - if(options && !options.excludeBitStringContents) { - // TODO: copy byte buffer if it's a buffer not a string - copy.bitStringContents = obj.bitStringContents; - } - return copy; -}; - -/** - * Compares asn1 objects for equality. - * - * Note this function does not run in constant time. - * - * @param obj1 the first asn1 object. - * @param obj2 the second asn1 object. - * @param [options] compare options: - * [includeBitStringContents] true to compare bitStringContents - * - * @return true if the asn1 objects are equal. - */ -asn1.equals = function(obj1, obj2, options) { - if(forge.util.isArray(obj1)) { - if(!forge.util.isArray(obj2)) { - return false; - } - if(obj1.length !== obj2.length) { - return false; - } - for(var i = 0; i < obj1.length; ++i) { - if(!asn1.equals(obj1[i], obj2[i])) { - return false; - } + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - return true; - } - - if(typeof obj1 !== typeof obj2) { - return false; - } + runtimeconfig_v1beta1.Resource$Projects$Configs$Waiters = Resource$Projects$Configs$Waiters; +})(runtimeconfig_v1beta1 = exports.runtimeconfig_v1beta1 || (exports.runtimeconfig_v1beta1 = {})); - if(typeof obj1 === 'string') { - return obj1 === obj2; - } - var equal = obj1.tagClass === obj2.tagClass && - obj1.type === obj2.type && - obj1.constructed === obj2.constructed && - obj1.composed === obj2.composed && - asn1.equals(obj1.value, obj2.value); - if(options && options.includeBitStringContents) { - equal = equal && (obj1.bitStringContents === obj2.bitStringContents); - } +/***/ }), - return equal; -}; +/***/ 8688: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/** - * Gets the length of a BER-encoded ASN.1 value. - * - * In case the length is not specified, undefined is returned. - * - * @param b the BER-encoded ASN.1 byte buffer, starting with the first - * length byte. - * - * @return the length of the BER-encoded ASN.1 value or undefined. - */ -asn1.getBerValueLength = function(b) { - // TODO: move this function and related DER/BER functions to a der.js - // file; better abstract ASN.1 away from der/ber. - var b2 = b.getByte(); - if(b2 === 0x80) { - return undefined; - } +"use strict"; - // see if the length is "short form" or "long form" (bit 8 set) - var length; - var longForm = b2 & 0x80; - if(!longForm) { - // length is just the first byte - length = b2; - } else { - // the number of bytes the length is specified in bits 7 through 1 - // and each length byte is in big-endian base-256 - length = b.getInt((b2 & 0x7F) << 3); - } - return length; +// 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.AuthPlus = exports.versionhistory_v1 = exports.auth = exports.versionhistory = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(720); +Object.defineProperty(exports, "versionhistory_v1", { enumerable: true, get: function () { return v1_1.versionhistory_v1; } }); +exports.VERSIONS = { + v1: v1_1.versionhistory_v1.Versionhistory, }; - -/** - * Check if the byte buffer has enough bytes. Throws an Error if not. - * - * @param bytes the byte buffer to parse from. - * @param remaining the bytes remaining in the current parsing state. - * @param n the number of bytes the buffer must have. - */ -function _checkBufferLength(bytes, remaining, n) { - if(n > remaining) { - var error = new Error('Too few bytes to parse DER.'); - error.available = bytes.length(); - error.remaining = remaining; - error.requested = n; - throw error; - } +function versionhistory(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('versionhistory', versionOrOptions, exports.VERSIONS, this); } +exports.versionhistory = versionhistory; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -/** - * Gets the length of a BER-encoded ASN.1 value. - * - * In case the length is not specified, undefined is returned. - * - * @param bytes the byte buffer to parse from. - * @param remaining the bytes remaining in the current parsing state. - * - * @return the length of the BER-encoded ASN.1 value or undefined. - */ -var _getValueLength = function(bytes, remaining) { - // TODO: move this function and related DER/BER functions to a der.js - // file; better abstract ASN.1 away from der/ber. - // fromDer already checked that this byte exists - var b2 = bytes.getByte(); - remaining--; - if(b2 === 0x80) { - return undefined; - } - - // see if the length is "short form" or "long form" (bit 8 set) - var length; - var longForm = b2 & 0x80; - if(!longForm) { - // length is just the first byte - length = b2; - } else { - // the number of bytes the length is specified in bits 7 through 1 - // and each length byte is in big-endian base-256 - var longFormBytes = b2 & 0x7F; - _checkBufferLength(bytes, remaining, longFormBytes); - length = bytes.getInt(longFormBytes << 3); - } - // FIXME: this will only happen for 32 bit getInt with high bit set - if(length < 0) { - throw new Error('Negative length: ' + length); - } - return length; -}; - -/** - * Parses an asn1 object from a byte buffer in DER format. - * - * @param bytes the byte buffer to parse from. - * @param [strict] true to be strict when checking value lengths, false to - * allow truncated values (default: true). - * @param [options] object with options or boolean strict flag - * [strict] true to be strict when checking value lengths, false to - * allow truncated values (default: true). - * [decodeBitStrings] true to attempt to decode the content of - * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that - * without schema support to understand the data context this can - * erroneously decode values that happen to be valid ASN.1. This - * flag will be deprecated or removed as soon as schema support is - * available. (default: true) - * - * @return the parsed asn1 object. - */ -asn1.fromDer = function(bytes, options) { - if(options === undefined) { - options = { - strict: true, - decodeBitStrings: true - }; - } - if(typeof options === 'boolean') { - options = { - strict: options, - decodeBitStrings: true - }; - } - if(!('strict' in options)) { - options.strict = true; - } - if(!('decodeBitStrings' in options)) { - options.decodeBitStrings = true; - } - - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } - - return _fromDer(bytes, bytes.length(), 0, options); -}; -/** - * Internal function to parse an asn1 object from a byte buffer in DER format. - * - * @param bytes the byte buffer to parse from. - * @param remaining the number of bytes remaining for this chunk. - * @param depth the current parsing depth. - * @param options object with same options as fromDer(). - * - * @return the parsed asn1 object. - */ -function _fromDer(bytes, remaining, depth, options) { - // temporary storage for consumption calculations - var start; +/***/ }), - // minimum length for ASN.1 DER structure is 2 - _checkBufferLength(bytes, remaining, 2); +/***/ 8697: +/***/ (function(module) { - // get the first byte - var b1 = bytes.getByte(); - // consumed one byte - remaining--; +"use strict"; - // get the tag class - var tagClass = (b1 & 0xC0); +module.exports = (promise, onFinally) => { + onFinally = onFinally || (() => {}); - // get the type (bits 1-5) - var type = b1 & 0x1F; + return promise.then( + val => new Promise(resolve => { + resolve(onFinally()); + }).then(() => val), + err => new Promise(resolve => { + resolve(onFinally()); + }).then(() => { + throw err; + }) + ); +}; - // get the variable value length and adjust remaining bytes - start = bytes.length(); - var length = _getValueLength(bytes, remaining); - remaining -= start - bytes.length(); - // ensure there are enough bytes to get the value - if(length !== undefined && length > remaining) { - if(options.strict) { - var error = new Error('Too few bytes to read ASN.1 value.'); - error.available = bytes.length(); - error.remaining = remaining; - error.requested = length; - throw error; - } - // Note: be lenient with truncated values and use remaining state bytes - length = remaining; - } +/***/ }), - // value storage - var value; - // possible BIT STRING contents storage - var bitStringContents; +/***/ 8700: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // constructed flag is bit 6 (32 = 0x20) of the first byte - var constructed = ((b1 & 0x20) === 0x20); - if(constructed) { - // parse child asn1 objects from the value - value = []; - if(length === undefined) { - // asn1 object of indefinite length, read until end tag - for(;;) { - _checkBufferLength(bytes, remaining, 2); - if(bytes.bytes(2) === String.fromCharCode(0, 0)) { - bytes.getBytes(2); - remaining -= 2; - break; - } - start = bytes.length(); - value.push(_fromDer(bytes, remaining, depth + 1, options)); - remaining -= start - bytes.length(); - } - } else { - // parsing asn1 object of definite length - while(length > 0) { - start = bytes.length(); - value.push(_fromDer(bytes, length, depth + 1, options)); - remaining -= start - bytes.length(); - length -= start - bytes.length(); - } - } - } +"use strict"; - // if a BIT STRING, save the contents including padding - if(value === undefined && tagClass === asn1.Class.UNIVERSAL && - type === asn1.Type.BITSTRING) { - bitStringContents = bytes.bytes(length); - } +// 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.AuthPlus = exports.datalineage_v1 = exports.auth = exports.datalineage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9191); +Object.defineProperty(exports, "datalineage_v1", { enumerable: true, get: function () { return v1_1.datalineage_v1; } }); +exports.VERSIONS = { + v1: v1_1.datalineage_v1.Datalineage, +}; +function datalineage(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datalineage', versionOrOptions, exports.VERSIONS, this); +} +exports.datalineage = datalineage; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // determine if a non-constructed value should be decoded as a composed - // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs) - // can be used this way. - if(value === undefined && options.decodeBitStrings && - tagClass === asn1.Class.UNIVERSAL && - // FIXME: OCTET STRINGs not yet supported here - // .. other parts of forge expect to decode OCTET STRINGs manually - (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) && - length > 1) { - // save read position - var savedRead = bytes.read; - var savedRemaining = remaining; - var unused = 0; - if(type === asn1.Type.BITSTRING) { - /* The first octet gives the number of bits by which the length of the - bit string is less than the next multiple of eight (this is called - the "number of unused bits"). - The second and following octets give the value of the bit string - converted to an octet string. */ - _checkBufferLength(bytes, remaining, 1); - unused = bytes.getByte(); - remaining--; - } - // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs - if(unused === 0) { - try { - // attempt to parse child asn1 object from the value - // (stored in array to signal composed value) - start = bytes.length(); - var subOptions = { - // enforce strict mode to avoid parsing ASN.1 from plain data - verbose: options.verbose, - strict: true, - decodeBitStrings: true - }; - var composed = _fromDer(bytes, remaining, depth + 1, subOptions); - var used = start - bytes.length(); - remaining -= used; - if(type == asn1.Type.BITSTRING) { - used++; - } +/***/ }), - // if the data all decoded and the class indicates UNIVERSAL or - // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object - var tc = composed.tagClass; - if(used === length && - (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) { - value = [composed]; - } - } catch(ex) { - } - } - if(value === undefined) { - // restore read position - bytes.read = savedRead; - remaining = savedRemaining; - } - } +/***/ 8702: +/***/ (function(module, __unusedexports, __webpack_require__) { - if(value === undefined) { - // asn1 not constructed or composed, get raw value - // TODO: do DER to OID conversion and vice-versa in .toDer? +"use strict"; - if(length === undefined) { - if(options.strict) { - throw new Error('Non-constructed ASN.1 object of indefinite length.'); - } - // be lenient and use remaining state bytes - length = remaining; - } - if(type === asn1.Type.BMPSTRING) { - value = ''; - for(; length > 0; length -= 2) { - _checkBufferLength(bytes, remaining, 2); - value += String.fromCharCode(bytes.getInt16()); - remaining -= 2; - } - } else { - value = bytes.getBytes(length); - } - } +// A linked list to keep track of recently-used-ness +const Yallist = __webpack_require__(6612) - // add BIT STRING contents if available - var asn1Options = bitStringContents === undefined ? null : { - bitStringContents: bitStringContents - }; +const MAX = Symbol('max') +const LENGTH = Symbol('length') +const LENGTH_CALCULATOR = Symbol('lengthCalculator') +const ALLOW_STALE = Symbol('allowStale') +const MAX_AGE = Symbol('maxAge') +const DISPOSE = Symbol('dispose') +const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') +const LRU_LIST = Symbol('lruList') +const CACHE = Symbol('cache') +const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') - // create and return asn1 object - return asn1.create(tagClass, type, constructed, value, asn1Options); -} +const naiveLength = () => 1 -/** - * Converts the given asn1 object to a buffer of bytes in DER format. - * - * @param asn1 the asn1 object to convert to bytes. - * - * @return the buffer of bytes. - */ -asn1.toDer = function(obj) { - var bytes = forge.util.createBuffer(); +// lruList is a yallist where the head is the youngest +// item, and the tail is the oldest. the list contains the Hit +// objects as the entries. +// Each Hit object has a reference to its Yallist.Node. This +// never changes. +// +// cache is a Map (or PseudoMap) that matches the keys to +// the Yallist.Node object. +class LRUCache { + constructor (options) { + if (typeof options === 'number') + options = { max: options } - // build the first byte - var b1 = obj.tagClass | obj.type; + if (!options) + options = {} - // for storing the ASN.1 value - var value = forge.util.createBuffer(); + if (options.max && (typeof options.max !== 'number' || options.max < 0)) + throw new TypeError('max must be a non-negative number') + // Kind of weird to have a default max of Infinity, but oh well. + const max = this[MAX] = options.max || Infinity - // use BIT STRING contents if available and data not changed - var useBitStringContents = false; - if('bitStringContents' in obj) { - useBitStringContents = true; - if(obj.original) { - useBitStringContents = asn1.equals(obj, obj.original); - } + const lc = options.length || naiveLength + this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc + this[ALLOW_STALE] = options.stale || false + if (options.maxAge && typeof options.maxAge !== 'number') + throw new TypeError('maxAge must be a number') + this[MAX_AGE] = options.maxAge || 0 + this[DISPOSE] = options.dispose + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false + this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false + this.reset() } - if(useBitStringContents) { - value.putBytes(obj.bitStringContents); - } else if(obj.composed) { - // if composed, use each child asn1 object's DER bytes as value - // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed - // from other asn1 objects - if(obj.constructed) { - b1 |= 0x20; - } else { - // type is a bit string, add unused bits of 0x00 - value.putByte(0x00); - } + // resize the cache when the max changes. + set max (mL) { + if (typeof mL !== 'number' || mL < 0) + throw new TypeError('max must be a non-negative number') - // add all of the child DER bytes together - for(var i = 0; i < obj.value.length; ++i) { - if(obj.value[i] !== undefined) { - value.putBuffer(asn1.toDer(obj.value[i])); - } - } - } else { - // use asn1.value directly - if(obj.type === asn1.Type.BMPSTRING) { - for(var i = 0; i < obj.value.length; ++i) { - value.putInt16(obj.value.charCodeAt(i)); - } - } else { - // ensure integer is minimally-encoded - // TODO: should all leading bytes be stripped vs just one? - // .. ex '00 00 01' => '01'? - if(obj.type === asn1.Type.INTEGER && - obj.value.length > 1 && - // leading 0x00 for positive integer - ((obj.value.charCodeAt(0) === 0 && - (obj.value.charCodeAt(1) & 0x80) === 0) || - // leading 0xFF for negative integer - (obj.value.charCodeAt(0) === 0xFF && - (obj.value.charCodeAt(1) & 0x80) === 0x80))) { - value.putBytes(obj.value.substr(1)); - } else { - value.putBytes(obj.value); - } - } + this[MAX] = mL || Infinity + trim(this) } - - // add tag byte - bytes.putByte(b1); - - // use "short form" encoding - if(value.length() <= 127) { - // one byte describes the length - // bit 8 = 0 and bits 7-1 = length - bytes.putByte(value.length() & 0x7F); - } else { - // use "long form" encoding - // 2 to 127 bytes describe the length - // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes - // other bytes: length in base 256, big-endian - var len = value.length(); - var lenBytes = ''; - do { - lenBytes += String.fromCharCode(len & 0xFF); - len = len >>> 8; - } while(len > 0); - - // set first byte to # bytes used to store the length and turn on - // bit 8 to indicate long-form length is used - bytes.putByte(lenBytes.length | 0x80); - - // concatenate length bytes in reverse since they were generated - // little endian and we need big endian - for(var i = lenBytes.length - 1; i >= 0; --i) { - bytes.putByte(lenBytes.charCodeAt(i)); - } + get max () { + return this[MAX] } - // concatenate value bytes - bytes.putBuffer(value); - return bytes; -}; - -/** - * Converts an OID dot-separated string to a byte buffer. The byte buffer - * contains only the DER-encoded value, not any tag or length bytes. - * - * @param oid the OID dot-separated string. - * - * @return the byte buffer. - */ -asn1.oidToDer = function(oid) { - // split OID into individual values - var values = oid.split('.'); - var bytes = forge.util.createBuffer(); - - // first byte is 40 * value1 + value2 - bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10)); - // other bytes are each value in base 128 with 8th bit set except for - // the last byte for each value - var last, valueBytes, value, b; - for(var i = 2; i < values.length; ++i) { - // produce value bytes in reverse because we don't know how many - // bytes it will take to store the value - last = true; - valueBytes = []; - value = parseInt(values[i], 10); - do { - b = value & 0x7F; - value = value >>> 7; - // if value is not last, then turn on 8th bit - if(!last) { - b |= 0x80; - } - valueBytes.push(b); - last = false; - } while(value > 0); - - // add value bytes in reverse (needs to be in big endian) - for(var n = valueBytes.length - 1; n >= 0; --n) { - bytes.putByte(valueBytes[n]); - } + set allowStale (allowStale) { + this[ALLOW_STALE] = !!allowStale + } + get allowStale () { + return this[ALLOW_STALE] } - return bytes; -}; - -/** - * Converts a DER-encoded byte buffer to an OID dot-separated string. The - * byte buffer should contain only the DER-encoded value, not any tag or - * length bytes. - * - * @param bytes the byte buffer. - * - * @return the OID dot-separated string. - */ -asn1.derToOid = function(bytes) { - var oid; + set maxAge (mA) { + if (typeof mA !== 'number') + throw new TypeError('maxAge must be a non-negative number') - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); + this[MAX_AGE] = mA + trim(this) + } + get maxAge () { + return this[MAX_AGE] } - // first byte is 40 * value1 + value2 - var b = bytes.getByte(); - oid = Math.floor(b / 40) + '.' + (b % 40); + // resize the cache when the lengthCalculator changes. + set lengthCalculator (lC) { + if (typeof lC !== 'function') + lC = naiveLength - // other bytes are each value in base 128 with 8th bit set except for - // the last byte for each value - var value = 0; - while(bytes.length() > 0) { - b = bytes.getByte(); - value = value << 7; - // not the last byte for the value - if(b & 0x80) { - value += b & 0x7F; - } else { - // last byte - oid += '.' + (value + b); - value = 0; + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC + this[LENGTH] = 0 + this[LRU_LIST].forEach(hit => { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) + this[LENGTH] += hit.length + }) } + trim(this) } + get lengthCalculator () { return this[LENGTH_CALCULATOR] } - return oid; -}; - -/** - * Converts a UTCTime value to a date. - * - * Note: GeneralizedTime has 4 digits for the year and is used for X.509 - * dates past 2049. Parsing that structure hasn't been implemented yet. - * - * @param utc the UTCTime value to convert. - * - * @return the date. - */ -asn1.utcTimeToDate = function(utc) { - /* The following formats can be used: - - YYMMDDhhmmZ - YYMMDDhhmm+hh'mm' - YYMMDDhhmm-hh'mm' - YYMMDDhhmmssZ - YYMMDDhhmmss+hh'mm' - YYMMDDhhmmss-hh'mm' - - Where: - - YY is the least significant two digits of the year - MM is the month (01 to 12) - DD is the day (01 to 31) - hh is the hour (00 to 23) - mm are the minutes (00 to 59) - ss are the seconds (00 to 59) - Z indicates that local time is GMT, + indicates that local time is - later than GMT, and - indicates that local time is earlier than GMT - hh' is the absolute value of the offset from GMT in hours - mm' is the absolute value of the offset from GMT in minutes */ - var date = new Date(); - - // if YY >= 50 use 19xx, if YY < 50 use 20xx - var year = parseInt(utc.substr(0, 2), 10); - year = (year >= 50) ? 1900 + year : 2000 + year; - var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month - var DD = parseInt(utc.substr(4, 2), 10); - var hh = parseInt(utc.substr(6, 2), 10); - var mm = parseInt(utc.substr(8, 2), 10); - var ss = 0; - - // not just YYMMDDhhmmZ - if(utc.length > 11) { - // get character after minutes - var c = utc.charAt(10); - var end = 10; + get length () { return this[LENGTH] } + get itemCount () { return this[LRU_LIST].length } - // see if seconds are present - if(c !== '+' && c !== '-') { - // get seconds - ss = parseInt(utc.substr(10, 2), 10); - end += 2; + rforEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].tail; walker !== null;) { + const prev = walker.prev + forEachStep(this, fn, walker, thisp) + walker = prev } } - // update date - date.setUTCFullYear(year, MM, DD); - date.setUTCHours(hh, mm, ss, 0); - - if(end) { - // get +/- after end of time - c = utc.charAt(end); - if(c === '+' || c === '-') { - // get hours+minutes offset - var hhoffset = parseInt(utc.substr(end + 1, 2), 10); - var mmoffset = parseInt(utc.substr(end + 4, 2), 10); - - // calculate offset in milliseconds - var offset = hhoffset * 60 + mmoffset; - offset *= 60000; - - // apply offset - if(c === '+') { - date.setTime(+date - offset); - } else { - date.setTime(+date + offset); - } + forEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].head; walker !== null;) { + const next = walker.next + forEachStep(this, fn, walker, thisp) + walker = next } } - return date; -}; - -/** - * Converts a GeneralizedTime value to a date. - * - * @param gentime the GeneralizedTime value to convert. - * - * @return the date. - */ -asn1.generalizedTimeToDate = function(gentime) { - /* The following formats can be used: - - YYYYMMDDHHMMSS - YYYYMMDDHHMMSS.fff - YYYYMMDDHHMMSSZ - YYYYMMDDHHMMSS.fffZ - YYYYMMDDHHMMSS+hh'mm' - YYYYMMDDHHMMSS.fff+hh'mm' - YYYYMMDDHHMMSS-hh'mm' - YYYYMMDDHHMMSS.fff-hh'mm' - - Where: - - YYYY is the year - MM is the month (01 to 12) - DD is the day (01 to 31) - hh is the hour (00 to 23) - mm are the minutes (00 to 59) - ss are the seconds (00 to 59) - .fff is the second fraction, accurate to three decimal places - Z indicates that local time is GMT, + indicates that local time is - later than GMT, and - indicates that local time is earlier than GMT - hh' is the absolute value of the offset from GMT in hours - mm' is the absolute value of the offset from GMT in minutes */ - var date = new Date(); - - var YYYY = parseInt(gentime.substr(0, 4), 10); - var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month - var DD = parseInt(gentime.substr(6, 2), 10); - var hh = parseInt(gentime.substr(8, 2), 10); - var mm = parseInt(gentime.substr(10, 2), 10); - var ss = parseInt(gentime.substr(12, 2), 10); - var fff = 0; - var offset = 0; - var isUTC = false; - - if(gentime.charAt(gentime.length - 1) === 'Z') { - isUTC = true; + keys () { + return this[LRU_LIST].toArray().map(k => k.key) } - var end = gentime.length - 5, c = gentime.charAt(end); - if(c === '+' || c === '-') { - // get hours+minutes offset - var hhoffset = parseInt(gentime.substr(end + 1, 2), 10); - var mmoffset = parseInt(gentime.substr(end + 4, 2), 10); - - // calculate offset in milliseconds - offset = hhoffset * 60 + mmoffset; - offset *= 60000; + values () { + return this[LRU_LIST].toArray().map(k => k.value) + } - // apply offset - if(c === '+') { - offset *= -1; + reset () { + if (this[DISPOSE] && + this[LRU_LIST] && + this[LRU_LIST].length) { + this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) } - isUTC = true; - } - - // check for second fraction - if(gentime.charAt(14) === '.') { - fff = parseFloat(gentime.substr(14), 10) * 1000; + this[CACHE] = new Map() // hash of items by key + this[LRU_LIST] = new Yallist() // list of items in order of use recency + this[LENGTH] = 0 // length of items in the list } - if(isUTC) { - date.setUTCFullYear(YYYY, MM, DD); - date.setUTCHours(hh, mm, ss, fff); - - // apply offset - date.setTime(+date + offset); - } else { - date.setFullYear(YYYY, MM, DD); - date.setHours(hh, mm, ss, fff); + dump () { + return this[LRU_LIST].map(hit => + isStale(this, hit) ? false : { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }).toArray().filter(h => h) } - return date; -}; - -/** - * Converts a date to a UTCTime value. - * - * Note: GeneralizedTime has 4 digits for the year and is used for X.509 - * dates past 2049. Converting to a GeneralizedTime hasn't been - * implemented yet. - * - * @param date the date to convert. - * - * @return the UTCTime value. - */ -asn1.dateToUtcTime = function(date) { - // TODO: validate; currently assumes proper format - if(typeof date === 'string') { - return date; + dumpLru () { + return this[LRU_LIST] } - var rval = ''; - - // create format YYMMDDhhmmssZ - var format = []; - format.push(('' + date.getUTCFullYear()).substr(2)); - format.push('' + (date.getUTCMonth() + 1)); - format.push('' + date.getUTCDate()); - format.push('' + date.getUTCHours()); - format.push('' + date.getUTCMinutes()); - format.push('' + date.getUTCSeconds()); + set (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE] - // ensure 2 digits are used for each format entry - for(var i = 0; i < format.length; ++i) { - if(format[i].length < 2) { - rval += '0'; - } - rval += format[i]; - } - rval += 'Z'; + if (maxAge && typeof maxAge !== 'number') + throw new TypeError('maxAge must be a number') - return rval; -}; + const now = maxAge ? Date.now() : 0 + const len = this[LENGTH_CALCULATOR](value, key) -/** - * Converts a date to a GeneralizedTime value. - * - * @param date the date to convert. - * - * @return the GeneralizedTime value as a string. - */ -asn1.dateToGeneralizedTime = function(date) { - // TODO: validate; currently assumes proper format - if(typeof date === 'string') { - return date; - } + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)) + return false + } - var rval = ''; + const node = this[CACHE].get(key) + const item = node.value - // create format YYYYMMDDHHMMSSZ - var format = []; - format.push('' + date.getUTCFullYear()); - format.push('' + (date.getUTCMonth() + 1)); - format.push('' + date.getUTCDate()); - format.push('' + date.getUTCHours()); - format.push('' + date.getUTCMinutes()); - format.push('' + date.getUTCSeconds()); + // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) + this[DISPOSE](key, item.value) + } - // ensure 2 digits are used for each format entry - for(var i = 0; i < format.length; ++i) { - if(format[i].length < 2) { - rval += '0'; + item.now = now + item.maxAge = maxAge + item.value = value + this[LENGTH] += len - item.length + item.length = len + this.get(key) + trim(this) + return true } - rval += format[i]; - } - rval += 'Z'; - return rval; -}; + const hit = new Entry(key, value, len, now, maxAge) -/** - * Converts a javascript integer to a DER-encoded byte buffer to be used - * as the value for an INTEGER type. - * - * @param x the integer. - * - * @return the byte buffer. - */ -asn1.integerToDer = function(x) { - var rval = forge.util.createBuffer(); - if(x >= -0x80 && x < 0x80) { - return rval.putSignedInt(x, 8); - } - if(x >= -0x8000 && x < 0x8000) { - return rval.putSignedInt(x, 16); - } - if(x >= -0x800000 && x < 0x800000) { - return rval.putSignedInt(x, 24); - } - if(x >= -0x80000000 && x < 0x80000000) { - return rval.putSignedInt(x, 32); - } - var error = new Error('Integer too large; max is 32-bits.'); - error.integer = x; - throw error; -}; + // oversized objects fall out of cache automatically. + if (hit.length > this[MAX]) { + if (this[DISPOSE]) + this[DISPOSE](key, value) -/** - * Converts a DER-encoded byte buffer to a javascript integer. This is - * typically used to decode the value of an INTEGER type. - * - * @param bytes the byte buffer. - * - * @return the integer. - */ -asn1.derToInteger = function(bytes) { - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } + return false + } - var n = bytes.length() * 8; - if(n > 32) { - throw new Error('Integer too large; max is 32-bits.'); + this[LENGTH] += hit.length + this[LRU_LIST].unshift(hit) + this[CACHE].set(key, this[LRU_LIST].head) + trim(this) + return true } - return bytes.getSignedInt(n); -}; -/** - * Validates that the given ASN.1 object is at least a super set of the - * given ASN.1 structure. Only tag classes and types are checked. An - * optional map may also be provided to capture ASN.1 values while the - * structure is checked. - * - * To capture an ASN.1 value, set an object in the validator's 'capture' - * parameter to the key to use in the capture map. To capture the full - * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including - * the leading unused bits counter byte, specify 'captureBitStringContents'. - * To capture BIT STRING bytes, without the leading unused bits counter byte, - * specify 'captureBitStringValue'. - * - * Objects in the validator may set a field 'optional' to true to indicate - * that it isn't necessary to pass validation. - * - * @param obj the ASN.1 object to validate. - * @param v the ASN.1 structure validator. - * @param capture an optional map to capture values in. - * @param errors an optional array for storing validation errors. - * - * @return true on success, false on failure. - */ -asn1.validate = function(obj, v, capture, errors) { - var rval = false; + has (key) { + if (!this[CACHE].has(key)) return false + const hit = this[CACHE].get(key).value + return !isStale(this, hit) + } - // ensure tag class and type are the same if specified - if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') && - (obj.type === v.type || typeof(v.type) === 'undefined')) { - // ensure constructed flag is the same if specified - if(obj.constructed === v.constructed || - typeof(v.constructed) === 'undefined') { - rval = true; + get (key) { + return get(this, key, true) + } - // handle sub values - if(v.value && forge.util.isArray(v.value)) { - var j = 0; - for(var i = 0; rval && i < v.value.length; ++i) { - rval = v.value[i].optional || false; - if(obj.value[j]) { - rval = asn1.validate(obj.value[j], v.value[i], capture, errors); - if(rval) { - ++j; - } else if(v.value[i].optional) { - rval = true; - } - } - if(!rval && errors) { - errors.push( - '[' + v.name + '] ' + - 'Tag class "' + v.tagClass + '", type "' + - v.type + '" expected value length "' + - v.value.length + '", got "' + - obj.value.length + '"'); - } - } - } + peek (key) { + return get(this, key, false) + } - if(rval && capture) { - if(v.capture) { - capture[v.capture] = obj.value; - } - if(v.captureAsn1) { - capture[v.captureAsn1] = obj; - } - if(v.captureBitStringContents && 'bitStringContents' in obj) { - capture[v.captureBitStringContents] = obj.bitStringContents; - } - if(v.captureBitStringValue && 'bitStringContents' in obj) { - var value; - if(obj.bitStringContents.length < 2) { - capture[v.captureBitStringValue] = ''; - } else { - // FIXME: support unused bits with data shifting - var unused = obj.bitStringContents.charCodeAt(0); - if(unused !== 0) { - throw new Error( - 'captureBitStringValue only supported for zero unused bits'); - } - capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); - } + pop () { + const node = this[LRU_LIST].tail + if (!node) + return null + + del(this, node) + return node.value + } + + del (key) { + del(this, this[CACHE].get(key)) + } + + load (arr) { + // reset the cache + this.reset() + + const now = Date.now() + // A previous serialized cache has the most recent items first + for (let l = arr.length - 1; l >= 0; l--) { + const hit = arr[l] + const expiresAt = hit.e || 0 + if (expiresAt === 0) + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v) + else { + const maxAge = expiresAt - now + // dont add already expired items + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge) } } - } else if(errors) { - errors.push( - '[' + v.name + '] ' + - 'Expected constructed "' + v.constructed + '", got "' + - obj.constructed + '"'); - } - } else if(errors) { - if(obj.tagClass !== v.tagClass) { - errors.push( - '[' + v.name + '] ' + - 'Expected tag class "' + v.tagClass + '", got "' + - obj.tagClass + '"'); } - if(obj.type !== v.type) { - errors.push( - '[' + v.name + '] ' + - 'Expected type "' + v.type + '", got "' + obj.type + '"'); + } + + prune () { + this[CACHE].forEach((value, key) => get(this, key, false)) + } +} + +const get = (self, key, doUse) => { + const node = self[CACHE].get(key) + if (node) { + const hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + return undefined + } else { + if (doUse) { + if (self[UPDATE_AGE_ON_GET]) + node.value.now = Date.now() + self[LRU_LIST].unshiftNode(node) + } } + return hit.value } - return rval; -}; +} -// regex for testing for non-latin characters -var _nonLatinRegex = /[^\\u0000-\\u00ff]/; +const isStale = (self, hit) => { + if (!hit || (!hit.maxAge && !self[MAX_AGE])) + return false -/** - * Pretty prints an ASN.1 object to a string. - * - * @param obj the object to write out. - * @param level the level in the tree. - * @param indentation the indentation to use. - * - * @return the string. - */ -asn1.prettyPrint = function(obj, level, indentation) { - var rval = ''; + const diff = Date.now() - hit.now + return hit.maxAge ? diff > hit.maxAge + : self[MAX_AGE] && (diff > self[MAX_AGE]) +} - // set default level and indentation - level = level || 0; - indentation = indentation || 2; +const trim = self => { + if (self[LENGTH] > self[MAX]) { + for (let walker = self[LRU_LIST].tail; + self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + const prev = walker.prev + del(self, walker) + walker = prev + } + } +} - // start new line for deep levels - if(level > 0) { - rval += '\n'; +const del = (self, node) => { + if (node) { + const hit = node.value + if (self[DISPOSE]) + self[DISPOSE](hit.key, hit.value) + + self[LENGTH] -= hit.length + self[CACHE].delete(hit.key) + self[LRU_LIST].removeNode(node) } +} - // create indent - var indent = ''; - for(var i = 0; i < level * indentation; ++i) { - indent += ' '; +class Entry { + constructor (key, value, length, now, maxAge) { + this.key = key + this.value = value + this.length = length + this.now = now + this.maxAge = maxAge || 0 } +} - // print class:type - rval += indent + 'Tag: '; - switch(obj.tagClass) { - case asn1.Class.UNIVERSAL: - rval += 'Universal:'; - break; - case asn1.Class.APPLICATION: - rval += 'Application:'; - break; - case asn1.Class.CONTEXT_SPECIFIC: - rval += 'Context-Specific:'; - break; - case asn1.Class.PRIVATE: - rval += 'Private:'; - break; +const forEachStep = (self, fn, node, thisp) => { + let hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + hit = undefined } + if (hit) + fn.call(thisp, hit.value, hit.key, self) +} - if(obj.tagClass === asn1.Class.UNIVERSAL) { - rval += obj.type; +module.exports = LRUCache - // known types - switch(obj.type) { - case asn1.Type.NONE: - rval += ' (None)'; - break; - case asn1.Type.BOOLEAN: - rval += ' (Boolean)'; - break; - case asn1.Type.INTEGER: - rval += ' (Integer)'; - break; - case asn1.Type.BITSTRING: - rval += ' (Bit string)'; - break; - case asn1.Type.OCTETSTRING: - rval += ' (Octet string)'; - break; - case asn1.Type.NULL: - rval += ' (Null)'; - break; - case asn1.Type.OID: - rval += ' (Object Identifier)'; - break; - case asn1.Type.ODESC: - rval += ' (Object Descriptor)'; - break; - case asn1.Type.EXTERNAL: - rval += ' (External or Instance of)'; - break; - case asn1.Type.REAL: - rval += ' (Real)'; - break; - case asn1.Type.ENUMERATED: - rval += ' (Enumerated)'; - break; - case asn1.Type.EMBEDDED: - rval += ' (Embedded PDV)'; - break; - case asn1.Type.UTF8: - rval += ' (UTF8)'; - break; - case asn1.Type.ROID: - rval += ' (Relative Object Identifier)'; - break; - case asn1.Type.SEQUENCE: - rval += ' (Sequence)'; - break; - case asn1.Type.SET: - rval += ' (Set)'; - break; - case asn1.Type.PRINTABLESTRING: - rval += ' (Printable String)'; - break; - case asn1.Type.IA5String: - rval += ' (IA5String (ASCII))'; - break; - case asn1.Type.UTCTIME: - rval += ' (UTC time)'; - break; - case asn1.Type.GENERALIZEDTIME: - rval += ' (Generalized time)'; - break; - case asn1.Type.BMPSTRING: - rval += ' (BMP String)'; - break; - } - } else { - rval += obj.type; - } - rval += '\n'; - rval += indent + 'Constructed: ' + obj.constructed + '\n'; +/***/ }), - if(obj.composed) { - var subvalues = 0; - var sub = ''; - for(var i = 0; i < obj.value.length; ++i) { - if(obj.value[i] !== undefined) { - subvalues += 1; - sub += asn1.prettyPrint(obj.value[i], level + 1, indentation); - if((i + 1) < obj.value.length) { - sub += ','; +/***/ 8711: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.containeranalysis_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var containeranalysis_v1; +(function (containeranalysis_v1) { + /** + * Container Analysis API + * + * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const containeranalysis = google.containeranalysis('v1'); + * ``` + */ + class Containeranalysis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); } - } } - rval += indent + 'Sub values: ' + subvalues + sub; - } else { - rval += indent + 'Value: '; - if(obj.type === asn1.Type.OID) { - var oid = asn1.derToOid(obj.value); - rval += oid; - if(forge.pki && forge.pki.oids) { - if(oid in forge.pki.oids) { - rval += ' (' + forge.pki.oids[oid] + ') '; + containeranalysis_v1.Containeranalysis = Containeranalysis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.notes = new Resource$Projects$Notes(this.context); + this.occurrences = new Resource$Projects$Occurrences(this.context); + this.resources = new Resource$Projects$Resources(this.context); } - } } - if(obj.type === asn1.Type.INTEGER) { - try { - rval += asn1.derToInteger(obj.value); - } catch(ex) { - rval += '0x' + forge.util.bytesToHex(obj.value); - } - } else if(obj.type === asn1.Type.BITSTRING) { - // TODO: shift bits as needed to display without padding - if(obj.value.length > 1) { - // remove unused bits field - rval += '0x' + forge.util.bytesToHex(obj.value.slice(1)); - } else { - rval += '(none)'; - } - // show unused bit count - if(obj.value.length > 0) { - var unused = obj.value.charCodeAt(0); - if(unused == 1) { - rval += ' (1 unused bit shown)'; - } else if(unused > 1) { - rval += ' (' + unused + ' unused bits shown)'; + containeranalysis_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + } + batchCreate(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1.Resource$Projects$Notes = Resource$Projects$Notes; + class Resource$Projects$Notes$Occurrences { + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; + class Resource$Projects$Occurrences { + constructor(context) { + this.context = context; + } + batchCreate(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNotes(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getVulnerabilitySummary(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://containeranalysis.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + containeranalysis_v1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; + class Resource$Projects$Resources { + constructor(context) { + this.context = context; + } + generatePackagesSummary(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://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generatePackagesSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - } else if(obj.type === asn1.Type.OCTETSTRING) { - if(!_nonLatinRegex.test(obj.value)) { - rval += '(' + obj.value + ') '; - } - rval += '0x' + forge.util.bytesToHex(obj.value); - } else if(obj.type === asn1.Type.UTF8) { - rval += forge.util.decodeUtf8(obj.value); - } else if(obj.type === asn1.Type.PRINTABLESTRING || - obj.type === asn1.Type.IA5String) { - rval += obj.value; - } else if(_nonLatinRegex.test(obj.value)) { - rval += '0x' + forge.util.bytesToHex(obj.value); - } else if(obj.value.length === 0) { - rval += '[null]'; - } else { - rval += obj.value; } - } - - return rval; -}; + containeranalysis_v1.Resource$Projects$Resources = Resource$Projects$Resources; +})(containeranalysis_v1 = exports.containeranalysis_v1 || (exports.containeranalysis_v1 = {})); /***/ }), -/* 785 */, -/* 786 */ -/***/ (function(module, __unusedexports, __webpack_require__) { -module.exports = paginatePlugin; +/***/ 8718: +/***/ (function(__unusedmodule, exports, __webpack_require__) { -const { paginateRest } = __webpack_require__(299); +"use strict"; -function paginatePlugin(octokit) { - Object.assign(octokit, paginateRest(octokit)); +// 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.AuthPlus = exports.civicinfo_v2 = exports.auth = exports.civicinfo = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(1369); +Object.defineProperty(exports, "civicinfo_v2", { enumerable: true, get: function () { return v2_1.civicinfo_v2; } }); +exports.VERSIONS = { + v2: v2_1.civicinfo_v2.Civicinfo, +}; +function civicinfo(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('civicinfo', versionOrOptions, exports.VERSIONS, this); } +exports.civicinfo = civicinfo; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 787 */ + +/***/ 8731: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -251678,50 +509494,121 @@ function paginatePlugin(octokit) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.jobs_v2 = void 0; +exports.file_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 = __webpack_require__(927); -var jobs_v2; -(function (jobs_v2) { +var file_v1; +(function (file_v1) { /** - * Cloud Talent Solution API + * Cloud Filestore API * - * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * The Cloud Filestore API is used for creating and managing cloud file servers. * * @example + * ```js * const {google} = require('googleapis'); - * const jobs = google.jobs('v2'); - * - * @namespace jobs - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Jobs + * const file = google.file('v1'); + * ``` */ - class Jobs { + class File { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.companies = new Resource$Companies(this.context); - this.jobs = new Resource$Jobs(this.context); - this.v2 = new Resource$V2(this.context); + this.projects = new Resource$Projects(this.context); } } - jobs_v2.Jobs = Jobs; - class Resource$Companies { + file_v1.File = File; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + file_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Backups(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://file.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://file.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + file_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { constructor(context) { this.context = context; - this.jobs = new Resource$Companies$Jobs(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251732,26 +509619,27 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251762,10 +509650,10 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -251774,14 +509662,15 @@ var jobs_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251792,10 +509681,10 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -251804,14 +509693,15 @@ var jobs_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251822,26 +509712,27 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251852,10 +509743,10 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -251864,19 +509755,20 @@ var jobs_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - jobs_v2.Resource$Companies = Resource$Companies; - class Resource$Companies$Jobs { + file_v1.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; + this.snapshots = new Resource$Projects$Locations$Instances$Snapshots(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251889,32 +509781,58 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+companyName}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['companyName'], - pathParams: ['companyName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v2.Resource$Companies$Jobs = Resource$Companies$Jobs; - class Resource$Jobs { - 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://file.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251925,26 +509843,27 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251955,26 +509874,27 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251985,11 +509905,11 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -251997,13 +509917,13 @@ var jobs_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteByFilter(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252016,41 +509936,81 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:deleteByFilter').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + file_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Snapshots { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -252058,88 +510018,94 @@ var jobs_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - histogram(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:histogram').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -252148,14 +510114,21 @@ var jobs_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + file_v1.Resource$Projects$Locations$Instances$Snapshots = Resource$Projects$Locations$Instances$Snapshots; + 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; @@ -252166,25 +510139,25 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252197,32 +510170,58 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v2.Resource$Jobs = Resource$Jobs; - class Resource$V2 { - 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://file.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - complete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -252233,32 +510232,96 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - jobs_v2.Resource$V2 = Resource$V2; -})(jobs_v2 = exports.jobs_v2 || (exports.jobs_v2 = {})); -//# sourceMappingURL=v2.js.map + file_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(file_v1 = exports.file_v1 || (exports.file_v1 = {})); + + +/***/ }), + +/***/ 8742: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var fs = __webpack_require__(5747) +var core +if (process.platform === 'win32' || global.TESTING_WINDOWS) { + core = __webpack_require__(1818) +} else { + core = __webpack_require__(9197) +} + +module.exports = isexe +isexe.sync = sync + +function isexe (path, options, cb) { + if (typeof options === 'function') { + cb = options + options = {} + } + + if (!cb) { + if (typeof Promise !== 'function') { + throw new TypeError('callback not provided') + } + + return new Promise(function (resolve, reject) { + isexe(path, options || {}, function (er, is) { + if (er) { + reject(er) + } else { + resolve(is) + } + }) + }) + } + + core(path, options || {}, function (er, is) { + // ignore EACCES because that just means we aren't allowed to run it + if (er) { + if (er.code === 'EACCES' || options && options.ignoreErrors) { + er = null + is = false + } + } + cb(er, is) + }) +} + +function sync (path, options) { + // my kingdom for a filtered catch + try { + return core.sync(path, options || {}) + } catch (er) { + if (options && options.ignoreErrors || er.code === 'EACCES') { + return false + } else { + throw er + } + } +} + /***/ }), -/* 788 */, -/* 789 */ + +/***/ 8744: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -252276,48 +510339,48 @@ var jobs_v2; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.remotebuildexecution_v2 = void 0; +exports.contactcenteraiplatform_v1alpha1 = 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 = __webpack_require__(927); -var remotebuildexecution_v2; -(function (remotebuildexecution_v2) { +var contactcenteraiplatform_v1alpha1; +(function (contactcenteraiplatform_v1alpha1) { /** - * Remote Build Execution API + * Contact Center AI Platform API + * * - * Supplies a Remote Execution API service for tools such as bazel. * * @example + * ```js * const {google} = require('googleapis'); - * const remotebuildexecution = google.remotebuildexecution('v2'); - * - * @namespace remotebuildexecution - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Remotebuildexecution + * const contactcenteraiplatform = google.contactcenteraiplatform('v1alpha1'); + * ``` */ - class Remotebuildexecution { + class Contactcenteraiplatform { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.actionResults = new Resource$Actionresults(this.context); - this.actions = new Resource$Actions(this.context); - this.blobs = new Resource$Blobs(this.context); - this.operations = new Resource$Operations(this.context); - this.v2 = new Resource$V2(this.context); + this.projects = new Resource$Projects(this.context); } } - remotebuildexecution_v2.Remotebuildexecution = Remotebuildexecution; - class Resource$Actionresults { + contactcenteraiplatform_v1alpha1.Contactcenteraiplatform = Contactcenteraiplatform; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + contactcenteraiplatform_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.contactCenters = new Resource$Projects$Locations$Contactcenters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -252332,25 +510395,25 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['instanceName', 'hash', 'sizeBytes'], - pathParams: ['hash', 'instanceName', 'sizeBytes'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252363,68 +510426,65 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['instanceName', 'hash', 'sizeBytes'], - pathParams: ['hash', 'instanceName', 'sizeBytes'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v2.Resource$Actionresults = Resource$Actionresults; - class Resource$Actions { - constructor(context) { - this.context = context; - } - execute(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + queryContactCenterQuota(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/actions:execute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}:queryContactCenterQuota').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - remotebuildexecution_v2.Resource$Actions = Resource$Actions; - class Resource$Blobs { + contactcenteraiplatform_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Contactcenters { constructor(context) { this.context = context; } - batchRead(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -252435,25 +510495,25 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs:batchRead').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/contactCenters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252466,25 +510526,25 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - findMissing(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252497,26 +510557,27 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs:findMissing').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getTree(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -252527,31 +510588,62 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/contactCenters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['instanceName', 'hash', 'sizeBytes'], - pathParams: ['hash', 'instanceName', 'sizeBytes'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenteraiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - remotebuildexecution_v2.Resource$Blobs = Resource$Blobs; - class Resource$Operations { + contactcenteraiplatform_v1alpha1.Resource$Projects$Locations$Contactcenters = Resource$Projects$Locations$Contactcenters; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - waitExecution(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252564,10 +510656,10 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:waitExecution').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -252576,19 +510668,44 @@ var remotebuildexecution_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v2.Resource$Operations = Resource$Operations; - class Resource$V2 { - 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://contactcenteraiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getCapabilities(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252601,596 +510718,594 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/capabilities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://contactcenteraiplatform.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - remotebuildexecution_v2.Resource$V2 = Resource$V2; -})(remotebuildexecution_v2 = exports.remotebuildexecution_v2 || (exports.remotebuildexecution_v2 = {})); -//# sourceMappingURL=v2.js.map + contactcenteraiplatform_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(contactcenteraiplatform_v1alpha1 = exports.contactcenteraiplatform_v1alpha1 || (exports.contactcenteraiplatform_v1alpha1 = {})); + /***/ }), -/* 790 */ -/***/ (function(module, __unusedexports, __webpack_require__) { -module.exports = authenticate; +/***/ 8749: +/***/ (function(module, __unusedexports, __webpack_require__) { -const { Deprecation } = __webpack_require__(692); -const once = __webpack_require__(969); +"use strict"; -const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation)); -function authenticate(state, options) { - deprecateAuthenticate( - state.octokit.log, - new Deprecation( - '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.' - ) - ); +var bind = __webpack_require__(5739); +var GetIntrinsic = __webpack_require__(4915); - if (!options) { - state.auth = false; - return; - } +var $apply = GetIntrinsic('%Function.prototype.apply%'); +var $call = GetIntrinsic('%Function.prototype.call%'); +var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - switch (options.type) { - case "basic": - if (!options.username || !options.password) { - throw new Error( - "Basic authentication requires both a username and password to be set" - ); - } - break; +var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); +var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); +var $max = GetIntrinsic('%Math.max%'); - case "oauth": - if (!options.token && !(options.key && options.secret)) { - throw new Error( - "OAuth2 authentication requires a token or key & secret to be set" - ); - } - break; +if ($defineProperty) { + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + // IE 8 has a broken defineProperty + $defineProperty = null; + } +} - case "token": - case "app": - if (!options.token) { - throw new Error("Token authentication requires a token to be set"); - } - break; +module.exports = function callBind(originalFunction) { + var func = $reflectApply(bind, $call, arguments); + if ($gOPD && $defineProperty) { + var desc = $gOPD(func, 'length'); + if (desc.configurable) { + // original length, plus the receiver, minus any additional arguments (after the receiver) + $defineProperty( + func, + 'length', + { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } + ); + } + } + return func; +}; - default: - throw new Error( - "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'" - ); - } +var applyBind = function applyBind() { + return $reflectApply(bind, $apply, arguments); +}; - state.auth = options; +if ($defineProperty) { + $defineProperty(module.exports, 'apply', { value: applyBind }); +} else { + module.exports.apply = applyBind; } /***/ }), -/* 791 */, -/* 792 */, -/* 793 */, -/* 794 */ -/***/ (function(module, __unusedexports, __webpack_require__) { -/** - * DES (Data Encryption Standard) implementation. - * - * This implementation supports DES as well as 3DES-EDE in ECB and CBC mode. - * It is based on the BSD-licensed implementation by Paul Tero: - * - * Paul Tero, July 2001 - * http://www.tero.co.uk/des/ - * - * Optimised for performance with large blocks by - * Michael Hayworth, November 2001 - * http://www.netdealing.com - * - * THIS SOFTWARE IS PROVIDED "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2012-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(426); -__webpack_require__(158); -__webpack_require__(54); +/***/ 8751: +/***/ (function(module) { -/* DES API */ -module.exports = forge.des = forge.des || {}; +"use strict"; -/** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('DES-', key); - * cipher.start({iv: iv}); - * - * Creates an DES cipher object to encrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as binary-encoded strings of bytes or - * byte buffers. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC' if IV is - * given, 'ECB' if null). - * - * @return the cipher. - */ -forge.des.startEncrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: false, - mode: mode || (iv === null ? 'ECB' : 'CBC') - }); - cipher.start(iv); - return cipher; + +var conversions = {}; +module.exports = conversions; + +function sign(x) { + return x < 0 ? -1 : 1; +} + +function evenRound(x) { + // Round x to the nearest integer, choosing the even integer if it lies halfway between two. + if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor) + return Math.floor(x); + } else { + return Math.round(x); + } +} + +function createNumberConversion(bitLength, typeOpts) { + if (!typeOpts.unsigned) { + --bitLength; + } + const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength); + const upperBound = Math.pow(2, bitLength) - 1; + + const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength); + const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1); + + return function(V, opts) { + if (!opts) opts = {}; + + let x = +V; + + if (opts.enforceRange) { + if (!Number.isFinite(x)) { + throw new TypeError("Argument is not a finite number"); + } + + x = sign(x) * Math.floor(Math.abs(x)); + if (x < lowerBound || x > upperBound) { + throw new TypeError("Argument is not in byte range"); + } + + return x; + } + + if (!isNaN(x) && opts.clamp) { + x = evenRound(x); + + if (x < lowerBound) x = lowerBound; + if (x > upperBound) x = upperBound; + return x; + } + + if (!Number.isFinite(x) || x === 0) { + return 0; + } + + x = sign(x) * Math.floor(Math.abs(x)); + x = x % moduloVal; + + if (!typeOpts.unsigned && x >= moduloBound) { + return x - moduloVal; + } else if (typeOpts.unsigned) { + if (x < 0) { + x += moduloVal; + } else if (x === -0) { // don't return negative zero + return 0; + } + } + + return x; + } +} + +conversions["void"] = function () { + return undefined; }; -/** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('DES-', key); - * - * Creates an DES cipher object to encrypt data using the given symmetric key. - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.des.createEncryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: false, - mode: mode - }); +conversions["boolean"] = function (val) { + return !!val; }; -/** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('DES-', key); - * decipher.start({iv: iv}); - * - * Creates an DES cipher object to decrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as binary-encoded strings of bytes or - * byte buffers. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC' if IV is - * given, 'ECB' if null). - * - * @return the cipher. - */ -forge.des.startDecrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: true, - mode: mode || (iv === null ? 'ECB' : 'CBC') - }); - cipher.start(iv); - return cipher; +conversions["byte"] = createNumberConversion(8, { unsigned: false }); +conversions["octet"] = createNumberConversion(8, { unsigned: true }); + +conversions["short"] = createNumberConversion(16, { unsigned: false }); +conversions["unsigned short"] = createNumberConversion(16, { unsigned: true }); + +conversions["long"] = createNumberConversion(32, { unsigned: false }); +conversions["unsigned long"] = createNumberConversion(32, { unsigned: true }); + +conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 }); +conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 }); + +conversions["double"] = function (V) { + const x = +V; + + if (!Number.isFinite(x)) { + throw new TypeError("Argument is not a finite floating-point value"); + } + + return x; }; -/** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('DES-', key); - * - * Creates an DES cipher object to decrypt data using the given symmetric key. - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.des.createDecryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: true, - mode: mode - }); +conversions["unrestricted double"] = function (V) { + const x = +V; + + if (isNaN(x)) { + throw new TypeError("Argument is NaN"); + } + + return x; }; -/** - * Creates a new DES cipher algorithm object. - * - * @param name the name of the algorithm. - * @param mode the mode factory function. - * - * @return the DES algorithm object. - */ -forge.des.Algorithm = function(name, mode) { - var self = this; - self.name = name; - self.mode = new mode({ - blockSize: 8, - cipher: { - encrypt: function(inBlock, outBlock) { - return _updateBlock(self._keys, inBlock, outBlock, false); - }, - decrypt: function(inBlock, outBlock) { - return _updateBlock(self._keys, inBlock, outBlock, true); - } +// not quite valid, but good enough for JS +conversions["float"] = conversions["double"]; +conversions["unrestricted float"] = conversions["unrestricted double"]; + +conversions["DOMString"] = function (V, opts) { + if (!opts) opts = {}; + + if (opts.treatNullAsEmptyString && V === null) { + return ""; + } + + return String(V); +}; + +conversions["ByteString"] = function (V, opts) { + const x = String(V); + let c = undefined; + for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) { + if (c > 255) { + throw new TypeError("Argument is not a valid bytestring"); + } + } + + return x; +}; + +conversions["USVString"] = function (V) { + const S = String(V); + const n = S.length; + const U = []; + for (let i = 0; i < n; ++i) { + const c = S.charCodeAt(i); + if (c < 0xD800 || c > 0xDFFF) { + U.push(String.fromCodePoint(c)); + } else if (0xDC00 <= c && c <= 0xDFFF) { + U.push(String.fromCodePoint(0xFFFD)); + } else { + if (i === n - 1) { + U.push(String.fromCodePoint(0xFFFD)); + } else { + const d = S.charCodeAt(i + 1); + if (0xDC00 <= d && d <= 0xDFFF) { + const a = c & 0x3FF; + const b = d & 0x3FF; + U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b)); + ++i; + } else { + U.push(String.fromCodePoint(0xFFFD)); + } + } + } } - }); - self._init = false; + + return U.join(''); }; -/** - * Initializes this DES algorithm by expanding its key. - * - * @param options the options to use. - * key the key to use with this algorithm. - * decrypt true if the algorithm should be initialized for decryption, - * false for encryption. - */ -forge.des.Algorithm.prototype.initialize = function(options) { - if(this._init) { - return; - } +conversions["Date"] = function (V, opts) { + if (!(V instanceof Date)) { + throw new TypeError("Argument is not a Date object"); + } + if (isNaN(V)) { + return undefined; + } - var key = forge.util.createBuffer(options.key); - if(this.name.indexOf('3DES') === 0) { - if(key.length() !== 24) { - throw new Error('Invalid Triple-DES key size: ' + key.length() * 8); + return V; +}; + +conversions["RegExp"] = function (V, opts) { + if (!(V instanceof RegExp)) { + V = new RegExp(V); } - } - // do key expansion to 16 or 48 subkeys (single or triple DES) - this._keys = _createKeys(key); - this._init = true; + return V; }; -/** Register DES algorithms **/ -registerAlgorithm('DES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('DES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('DES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('DES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('DES-CTR', forge.cipher.modes.ctr); +/***/ }), -registerAlgorithm('3DES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('3DES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('3DES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('3DES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('3DES-CTR', forge.cipher.modes.ctr); +/***/ 8755: +/***/ (function(module, __unusedexports, __webpack_require__) { -function registerAlgorithm(name, mode) { - var factory = function() { - return new forge.des.Algorithm(name, mode); - }; - forge.cipher.registerAlgorithm(name, factory); -} +"use strict"; -/** DES implementation **/ -var spfunction1 = [0x1010400,0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0,0x10004,0x10400,0,0x1010004]; -var spfunction2 = [-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000]; -var spfunction3 = [0x208,0x8020200,0,0x8020008,0x8000200,0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200]; -var spfunction4 = [0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0,0x802000,0x802000,0x802081,0x81,0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0,0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080]; -var spfunction5 = [0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0,0x40080000,0x2080100,0x40000100]; -var spfunction6 = [0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0,0x20404000,0x20000000,0x400010,0x20004010]; -var spfunction7 = [0x200000,0x4200002,0x4000802,0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0,0x2,0x4200802,0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002]; -var spfunction8 = [0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0,0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000]; +var utils = __webpack_require__(2581); -/** - * Create necessary sub keys. - * - * @param key the 64-bit or 192-bit key. - * - * @return the expanded keys. - */ -function _createKeys(key) { - var pc2bytes0 = [0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204], - pc2bytes1 = [0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101], - pc2bytes2 = [0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808], - pc2bytes3 = [0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000], - pc2bytes4 = [0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010], - pc2bytes5 = [0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420], - pc2bytes6 = [0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002], - pc2bytes7 = [0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800], - pc2bytes8 = [0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002], - pc2bytes9 = [0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408], - pc2bytes10 = [0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020], - pc2bytes11 = [0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200], - pc2bytes12 = [0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010], - pc2bytes13 = [0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105]; +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; - // how many iterations (1 for des, 3 for triple des) - // changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys - var iterations = key.length() > 8 ? 3 : 1; +var defaults = { + allowDots: false, + allowPrototypes: false, + allowSparse: false, + arrayLimit: 20, + charset: 'utf-8', + charsetSentinel: false, + comma: false, + decoder: utils.decode, + delimiter: '&', + depth: 5, + ignoreQueryPrefix: false, + interpretNumericEntities: false, + parameterLimit: 1000, + parseArrays: true, + plainObjects: false, + strictNullHandling: false +}; - // stores the return keys - var keys = []; +var interpretNumericEntities = function (str) { + return str.replace(/&#(\d+);/g, function ($0, numberStr) { + return String.fromCharCode(parseInt(numberStr, 10)); + }); +}; - // now define the left shifts which need to be done - var shifts = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0]; +var parseArrayValue = function (val, options) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } - var n = 0, tmp; - for(var j = 0; j < iterations; j++) { - var left = key.getInt32(); - var right = key.getInt32(); + return val; +}; - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); +// This is what browsers will submit when the ✓ character occurs in an +// application/x-www-form-urlencoded body and the encoding of the page containing +// the form is iso-8859-1, or when the submitted form has an accept-charset +// attribute of iso-8859-1. Presumably also with other charsets that do not contain +// the ✓ character, such as us-ascii. +var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - tmp = ((right >>> -16) ^ left) & 0x0000ffff; - left ^= tmp; - right ^= (tmp << -16); +// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. +var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - tmp = ((left >>> 2) ^ right) & 0x33333333; - right ^= tmp; - left ^= (tmp << 2); +var parseValues = function parseQueryStringValues(str, options) { + var obj = { __proto__: null }; - tmp = ((right >>> -16) ^ left) & 0x0000ffff; - left ^= tmp; - right ^= (tmp << -16); + var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; + var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; + var parts = cleanStr.split(options.delimiter, limit); + var skipIndex = -1; // Keep track of where the utf8 sentinel was found + var i; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); + var charset = options.charset; + if (options.charsetSentinel) { + for (i = 0; i < parts.length; ++i) { + if (parts[i].indexOf('utf8=') === 0) { + if (parts[i] === charsetSentinel) { + charset = 'utf-8'; + } else if (parts[i] === isoSentinel) { + charset = 'iso-8859-1'; + } + skipIndex = i; + i = parts.length; // The eslint settings do not allow break; + } + } + } - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); + for (i = 0; i < parts.length; ++i) { + if (i === skipIndex) { + continue; + } + var part = parts[i]; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); + var bracketEqualsPos = part.indexOf(']='); + var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - // right needs to be shifted and OR'd with last four bits of left - tmp = (left << 8) | ((right >>> 20) & 0x000000f0); + var key, val; + if (pos === -1) { + key = options.decoder(part, defaults.decoder, charset, 'key'); + val = options.strictNullHandling ? null : ''; + } else { + key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); + val = utils.maybeMap( + parseArrayValue(part.slice(pos + 1), options), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); + } - // left needs to be put upside down - left = ((right << 24) | ((right << 8) & 0xff0000) | - ((right >>> 8) & 0xff00) | ((right >>> 24) & 0xf0)); - right = tmp; + if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { + val = interpretNumericEntities(val); + } - // now go through and perform these shifts on the left and right keys - for(var i = 0; i < shifts.length; ++i) { - //shift the keys either one or two bits to the left - if(shifts[i]) { - left = (left << 2) | (left >>> 26); - right = (right << 2) | (right >>> 26); - } else { - left = (left << 1) | (left >>> 27); - right = (right << 1) | (right >>> 27); - } - left &= -0xf; - right &= -0xf; + if (part.indexOf('[]=') > -1) { + val = isArray(val) ? [val] : val; + } - // now apply PC-2, in such a way that E is easier when encrypting or - // decrypting this conversion will look like PC-2 except only the last 6 - // bits of each byte are used rather than 48 consecutive bits and the - // order of lines will be according to how the S selection functions will - // be applied: S2, S4, S6, S8, S1, S3, S5, S7 - var lefttmp = ( - pc2bytes0[left >>> 28] | pc2bytes1[(left >>> 24) & 0xf] | - pc2bytes2[(left >>> 20) & 0xf] | pc2bytes3[(left >>> 16) & 0xf] | - pc2bytes4[(left >>> 12) & 0xf] | pc2bytes5[(left >>> 8) & 0xf] | - pc2bytes6[(left >>> 4) & 0xf]); - var righttmp = ( - pc2bytes7[right >>> 28] | pc2bytes8[(right >>> 24) & 0xf] | - pc2bytes9[(right >>> 20) & 0xf] | pc2bytes10[(right >>> 16) & 0xf] | - pc2bytes11[(right >>> 12) & 0xf] | pc2bytes12[(right >>> 8) & 0xf] | - pc2bytes13[(right >>> 4) & 0xf]); - tmp = ((righttmp >>> 16) ^ lefttmp) & 0x0000ffff; - keys[n++] = lefttmp ^ tmp; - keys[n++] = righttmp ^ (tmp << 16); + if (has.call(obj, key)) { + obj[key] = utils.combine(obj[key], val); + } else { + obj[key] = val; + } } - } - return keys; -} + return obj; +}; -/** - * Updates a single block (1 byte) using DES. The update will either - * encrypt or decrypt the block. - * - * @param keys the expanded keys. - * @param input the input block (an array of 32-bit words). - * @param output the updated output block. - * @param decrypt true to decrypt the block, false to encrypt it. - */ -function _updateBlock(keys, input, output, decrypt) { - // set up loops for single or triple DES - var iterations = keys.length === 32 ? 3 : 9; - var looping; - if(iterations === 3) { - looping = decrypt ? [30, -2, -2] : [0, 32, 2]; - } else { - looping = (decrypt ? - [94, 62, -2, 32, 64, 2, 30, -2, -2] : - [0, 32, 2, 62, 30, -2, 64, 96, 2]); - } +var parseObject = function (chain, val, options, valuesParsed) { + var leaf = valuesParsed ? val : parseArrayValue(val, options); - var tmp; + for (var i = chain.length - 1; i >= 0; --i) { + var obj; + var root = chain[i]; - var left = input[0]; - var right = input[1]; + if (root === '[]' && options.parseArrays) { + obj = [].concat(leaf); + } else { + obj = options.plainObjects ? Object.create(null) : {}; + var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; + var index = parseInt(cleanRoot, 10); + if (!options.parseArrays && cleanRoot === '') { + obj = { 0: leaf }; + } else if ( + !isNaN(index) + && root !== cleanRoot + && String(index) === cleanRoot + && index >= 0 + && (options.parseArrays && index <= options.arrayLimit) + ) { + obj = []; + obj[index] = leaf; + } else if (cleanRoot !== '__proto__') { + obj[cleanRoot] = leaf; + } + } - // first each 64 bit chunk of the message must be permuted according to IP - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); + leaf = obj; + } - tmp = ((left >>> 16) ^ right) & 0x0000ffff; - right ^= tmp; - left ^= (tmp << 16); + return leaf; +}; - tmp = ((right >>> 2) ^ left) & 0x33333333; - left ^= tmp; - right ^= (tmp << 2); +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (!givenKey) { + return; + } - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); + // Transform dot notation to bracket notation + var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); + // The regex chunks - // rotate left 1 bit - left = ((left << 1) | (left >>> 31)); - right = ((right << 1) | (right >>> 31)); + var brackets = /(\[[^[\]]*])/; + var child = /(\[[^[\]]*])/g; - for(var j = 0; j < iterations; j += 3) { - var endloop = looping[j + 1]; - var loopinc = looping[j + 2]; + // Get the parent - // now go through and perform the encryption or decryption - for(var i = looping[j]; i != endloop; i += loopinc) { - var right1 = right ^ keys[i]; - var right2 = ((right >>> 4) | (right << 28)) ^ keys[i + 1]; + var segment = options.depth > 0 && brackets.exec(key); + var parent = segment ? key.slice(0, segment.index) : key; - // passing these bytes through the S selection functions - tmp = left; - left = right; - right = tmp ^ ( - spfunction2[(right1 >>> 24) & 0x3f] | - spfunction4[(right1 >>> 16) & 0x3f] | - spfunction6[(right1 >>> 8) & 0x3f] | - spfunction8[right1 & 0x3f] | - spfunction1[(right2 >>> 24) & 0x3f] | - spfunction3[(right2 >>> 16) & 0x3f] | - spfunction5[(right2 >>> 8) & 0x3f] | - spfunction7[right2 & 0x3f]); + // Stash the parent if it exists + + var keys = []; + if (parent) { + // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties + if (!options.plainObjects && has.call(Object.prototype, parent)) { + if (!options.allowPrototypes) { + return; + } + } + + keys.push(parent); } - // unreverse left and right - tmp = left; - left = right; - right = tmp; - } - // rotate right 1 bit - left = ((left >>> 1) | (left << 31)); - right = ((right >>> 1) | (right << 31)); + // Loop through children appending to the array until we hit depth - // now perform IP-1, which is IP in the opposite direction - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); + var i = 0; + while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { + i += 1; + if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { + if (!options.allowPrototypes) { + return; + } + } + keys.push(segment[1]); + } - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); + // If there's a remainder, just add whatever is left - tmp = ((right >>> 2) ^ left) & 0x33333333; - left ^= tmp; - right ^= (tmp << 2); + if (segment) { + keys.push('[' + key.slice(segment.index) + ']'); + } - tmp = ((left >>> 16) ^ right) & 0x0000ffff; - right ^= tmp; - left ^= (tmp << 16); + return parseObject(keys, val, options, valuesParsed); +}; - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } - output[0] = left; - output[1] = right; -} + if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { + throw new TypeError('Decoder has to be a function.'); + } -/** - * Deprecated. Instead, use: - * - * forge.cipher.createCipher('DES-', key); - * forge.cipher.createDecipher('DES-', key); - * - * Creates a deprecated DES cipher object. This object's mode will default to - * CBC (cipher-block-chaining). - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param options the options to use. - * key the symmetric key to use (64 or 192 bits). - * output the buffer to write to. - * decrypt true for decryption, false for encryption. - * mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -function _createCipher(options) { - options = options || {}; - var mode = (options.mode || 'CBC').toUpperCase(); - var algorithm = 'DES-' + mode; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - var cipher; - if(options.decrypt) { - cipher = forge.cipher.createDecipher(algorithm, options.key); - } else { - cipher = forge.cipher.createCipher(algorithm, options.key); - } + return { + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + // eslint-disable-next-line no-implicit-coercion, no-extra-parens + depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; - // backwards compatible start API - var start = cipher.start; - cipher.start = function(iv, options) { - // backwards compatibility: support second arg as output buffer - var output = null; - if(options instanceof forge.util.ByteBuffer) { - output = options; - options = {}; +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); + + if (str === '' || str === null || typeof str === 'undefined') { + return options.plainObjects ? Object.create(null) : {}; } - options = options || {}; - options.output = output; - options.iv = iv; - start.call(cipher, options); - }; - return cipher; -} + var tempObj = typeof str === 'string' ? parseValues(str, options) : str; + var obj = options.plainObjects ? Object.create(null) : {}; + + // Iterate over the keys and setup the new object + + var keys = Object.keys(tempObj); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); + obj = utils.merge(obj, newObj, options); + } + + if (options.allowSparse === true) { + return obj; + } + + return utils.compact(obj); +}; /***/ }), -/* 795 */, -/* 796 */, -/* 797 */ + +/***/ 8761: +/***/ (function(module) { + +module.exports = require("zlib"); + +/***/ }), + +/***/ 8766: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -253208,349 +511323,36 @@ function _createCipher(options) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.searchconsole = exports.VERSIONS = void 0; +exports.AuthPlus = exports.tpu_v2alpha1 = exports.tpu_v2 = exports.tpu_v1alpha1 = exports.tpu_v1 = exports.auth = exports.tpu = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(754); +const v1_1 = __webpack_require__(1339); +Object.defineProperty(exports, "tpu_v1", { enumerable: true, get: function () { return v1_1.tpu_v1; } }); +const v1alpha1_1 = __webpack_require__(2274); +Object.defineProperty(exports, "tpu_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.tpu_v1alpha1; } }); +const v2_1 = __webpack_require__(1761); +Object.defineProperty(exports, "tpu_v2", { enumerable: true, get: function () { return v2_1.tpu_v2; } }); +const v2alpha1_1 = __webpack_require__(7581); +Object.defineProperty(exports, "tpu_v2alpha1", { enumerable: true, get: function () { return v2alpha1_1.tpu_v2alpha1; } }); exports.VERSIONS = { - v1: v1_1.searchconsole_v1.Searchconsole, + v1: v1_1.tpu_v1.Tpu, + v1alpha1: v1alpha1_1.tpu_v1alpha1.Tpu, + v2: v2_1.tpu_v2.Tpu, + v2alpha1: v2alpha1_1.tpu_v2alpha1.Tpu, }; -function searchconsole(versionOrOptions) { - return googleapis_common_1.getAPI('searchconsole', versionOrOptions, exports.VERSIONS, this); +function tpu(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('tpu', versionOrOptions, exports.VERSIONS, this); } -exports.searchconsole = searchconsole; +exports.tpu = tpu; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 798 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Cross-browser support for logging in a web application. - * - * @author David I. Lehn - * - * Copyright (c) 2008-2013 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(54); - -/* LOG API */ -module.exports = forge.log = forge.log || {}; - -/** - * Application logging system. - * - * Each logger level available as it's own function of the form: - * forge.log.level(category, args...) - * The category is an arbitrary string, and the args are the same as - * Firebug's console.log API. By default the call will be output as: - * 'LEVEL [category] , args[1], ...' - * This enables proper % formatting via the first argument. - * Each category is enabled by default but can be enabled or disabled with - * the setCategoryEnabled() function. - */ -// list of known levels -forge.log.levels = [ - 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max']; -// info on the levels indexed by name: -// index: level index -// name: uppercased display name -var sLevelInfo = {}; -// list of loggers -var sLoggers = []; -/** - * Standard console logger. If no console support is enabled this will - * remain null. Check before using. - */ -var sConsoleLogger = null; - -// logger flags -/** - * Lock the level at the current value. Used in cases where user config may - * set the level such that only critical messages are seen but more verbose - * messages are needed for debugging or other purposes. - */ -forge.log.LEVEL_LOCKED = (1 << 1); -/** - * Always call log function. By default, the logging system will check the - * message level against logger.level before calling the log function. This - * flag allows the function to do its own check. - */ -forge.log.NO_LEVEL_CHECK = (1 << 2); -/** - * Perform message interpolation with the passed arguments. "%" style - * fields in log messages will be replaced by arguments as needed. Some - * loggers, such as Firebug, may do this automatically. The original log - * message will be available as 'message' and the interpolated version will - * be available as 'fullMessage'. - */ -forge.log.INTERPOLATE = (1 << 3); - -// setup each log level -for(var i = 0; i < forge.log.levels.length; ++i) { - var level = forge.log.levels[i]; - sLevelInfo[level] = { - index: i, - name: level.toUpperCase() - }; -} - -/** - * Message logger. Will dispatch a message to registered loggers as needed. - * - * @param message message object - */ -forge.log.logMessage = function(message) { - var messageLevelIndex = sLevelInfo[message.level].index; - for(var i = 0; i < sLoggers.length; ++i) { - var logger = sLoggers[i]; - if(logger.flags & forge.log.NO_LEVEL_CHECK) { - logger.f(message); - } else { - // get logger level - var loggerLevelIndex = sLevelInfo[logger.level].index; - // check level - if(messageLevelIndex <= loggerLevelIndex) { - // message critical enough, call logger - logger.f(logger, message); - } - } - } -}; - -/** - * Sets the 'standard' key on a message object to: - * "LEVEL [category] " + message - * - * @param message a message log object - */ -forge.log.prepareStandard = function(message) { - if(!('standard' in message)) { - message.standard = - sLevelInfo[message.level].name + - //' ' + +message.timestamp + - ' [' + message.category + '] ' + - message.message; - } -}; - -/** - * Sets the 'full' key on a message object to the original message - * interpolated via % formatting with the message arguments. - * - * @param message a message log object. - */ -forge.log.prepareFull = function(message) { - if(!('full' in message)) { - // copy args and insert message at the front - var args = [message.message]; - args = args.concat([] || false); - // format the message - message.full = forge.util.format.apply(this, args); - } -}; - -/** - * Applies both preparseStandard() and prepareFull() to a message object and - * store result in 'standardFull'. - * - * @param message a message log object. - */ -forge.log.prepareStandardFull = function(message) { - if(!('standardFull' in message)) { - // FIXME implement 'standardFull' logging - forge.log.prepareStandard(message); - message.standardFull = message.standard; - } -}; - -// create log level functions -if(true) { - // levels for which we want functions - var levels = ['error', 'warning', 'info', 'debug', 'verbose']; - for(var i = 0; i < levels.length; ++i) { - // wrap in a function to ensure proper level var is passed - (function(level) { - // create function for this level - forge.log[level] = function(category, message/*, args...*/) { - // convert arguments to real array, remove category and message - var args = Array.prototype.slice.call(arguments).slice(2); - // create message object - // Note: interpolation and standard formatting is done lazily - var msg = { - timestamp: new Date(), - level: level, - category: category, - message: message, - 'arguments': args - /*standard*/ - /*full*/ - /*fullMessage*/ - }; - // process this message - forge.log.logMessage(msg); - }; - })(levels[i]); - } -} - -/** - * Creates a new logger with specified custom logging function. - * - * The logging function has a signature of: - * function(logger, message) - * logger: current logger - * message: object: - * level: level id - * category: category - * message: string message - * arguments: Array of extra arguments - * fullMessage: interpolated message and arguments if INTERPOLATE flag set - * - * @param logFunction a logging function which takes a log message object - * as a parameter. - * - * @return a logger object. - */ -forge.log.makeLogger = function(logFunction) { - var logger = { - flags: 0, - f: logFunction - }; - forge.log.setLevel(logger, 'none'); - return logger; -}; - -/** - * Sets the current log level on a logger. - * - * @param logger the target logger. - * @param level the new maximum log level as a string. - * - * @return true if set, false if not. - */ -forge.log.setLevel = function(logger, level) { - var rval = false; - if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) { - for(var i = 0; i < forge.log.levels.length; ++i) { - var aValidLevel = forge.log.levels[i]; - if(level == aValidLevel) { - // set level - logger.level = level; - rval = true; - break; - } - } - } - - return rval; -}; - -/** - * Locks the log level at its current value. - * - * @param logger the target logger. - * @param lock boolean lock value, default to true. - */ -forge.log.lock = function(logger, lock) { - if(typeof lock === 'undefined' || lock) { - logger.flags |= forge.log.LEVEL_LOCKED; - } else { - logger.flags &= ~forge.log.LEVEL_LOCKED; - } -}; - -/** - * Adds a logger. - * - * @param logger the logger object. - */ -forge.log.addLogger = function(logger) { - sLoggers.push(logger); -}; - -// setup the console logger if possible, else create fake console.log -if(typeof(console) !== 'undefined' && 'log' in console) { - var logger; - if(console.error && console.warn && console.info && console.debug) { - // looks like Firebug-style logging is available - // level handlers map - var levelHandlers = { - error: console.error, - warning: console.warn, - info: console.info, - debug: console.debug, - verbose: console.debug - }; - var f = function(logger, message) { - forge.log.prepareStandard(message); - var handler = levelHandlers[message.level]; - // prepend standard message and concat args - var args = [message.standard]; - args = args.concat(message['arguments'].slice()); - // apply to low-level console function - handler.apply(console, args); - }; - logger = forge.log.makeLogger(f); - } else { - // only appear to have basic console.log - var f = function(logger, message) { - forge.log.prepareStandardFull(message); - console.log(message.standardFull); - }; - logger = forge.log.makeLogger(f); - } - forge.log.setLevel(logger, 'debug'); - forge.log.addLogger(logger); - sConsoleLogger = logger; -} else { - // define fake console.log to avoid potential script errors on - // browsers that do not have console logging - console = { - log: function() {} - }; -} - -/* - * Check for logging control query vars. - * - * console.level= - * Set's the console log level by name. Useful to override defaults and - * allow more verbose logging before a user config is loaded. - * - * console.lock= - * Lock the console log level at whatever level it is set at. This is run - * after console.level is processed. Useful to force a level of verbosity - * that could otherwise be limited by a user config. - */ -if(sConsoleLogger !== null) { - var query = forge.util.getQueryVariables(); - if('console.level' in query) { - // set with last value - forge.log.setLevel( - sConsoleLogger, query['console.level'].slice(-1)[0]); - } - if('console.lock' in query) { - // set with last value - var lock = query['console.lock'].slice(-1)[0]; - if(lock == 'true') { - forge.log.lock(sConsoleLogger); - } - } -} - -// provide public access to console logger -forge.log.consoleLogger = sConsoleLogger; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 799 */, -/* 800 */, -/* 801 */, -/* 802 */ + +/***/ 8775: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -253568,54 +511370,49 @@ forge.log.consoleLogger = sConsoleLogger; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudtasks_v2beta2 = void 0; +exports.authorizedbuyersmarketplace_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 = __webpack_require__(927); -var cloudtasks_v2beta2; -(function (cloudtasks_v2beta2) { +var authorizedbuyersmarketplace_v1; +(function (authorizedbuyersmarketplace_v1) { /** - * Cloud Tasks API + * Authorized Buyers Marketplace API * - * Manages the execution of large numbers of distributed requests. + * The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers. * * @example + * ```js * const {google} = require('googleapis'); - * const cloudtasks = google.cloudtasks('v2beta2'); - * - * @namespace cloudtasks - * @type {Function} - * @version v2beta2 - * @variation v2beta2 - * @param {object=} options Options for Cloudtasks + * const authorizedbuyersmarketplace = google.authorizedbuyersmarketplace('v1'); + * ``` */ - class Cloudtasks { + class Authorizedbuyersmarketplace { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.bidders = new Resource$Bidders(this.context); + this.buyers = new Resource$Buyers(this.context); } } - cloudtasks_v2beta2.Cloudtasks = Cloudtasks; - class Resource$Projects { + authorizedbuyersmarketplace_v1.Authorizedbuyersmarketplace = Authorizedbuyersmarketplace; + class Resource$Bidders { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.finalizedDeals = new Resource$Bidders$Finalizeddeals(this.context); } } - cloudtasks_v2beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + authorizedbuyersmarketplace_v1.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Finalizeddeals { constructor(context) { this.context = context; - this.queues = new Resource$Projects$Locations$Queues(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253628,25 +511425,43 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + authorizedbuyersmarketplace_v1.Resource$Bidders$Finalizeddeals = Resource$Bidders$Finalizeddeals; + class Resource$Buyers { + constructor(context) { + this.context = context; + this.auctionPackages = new Resource$Buyers$Auctionpackages(this.context); + this.clients = new Resource$Buyers$Clients(this.context); + this.finalizedDeals = new Resource$Buyers$Finalizeddeals(this.context); + this.proposals = new Resource$Buyers$Proposals(this.context); + this.publisherProfiles = new Resource$Buyers$Publisherprofiles(this.context); + } + } + authorizedbuyersmarketplace_v1.Resource$Buyers = Resource$Buyers; + class Resource$Buyers$Auctionpackages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253659,10 +511474,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -253671,20 +511487,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtasks_v2beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Queues { - constructor(context) { - this.context = context; - this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253697,11 +511506,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -253709,13 +511519,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + subscribe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253728,11 +511538,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -253740,13 +511551,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + subscribeClients(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253759,11 +511570,44 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+auctionPackage}:subscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unsubscribe(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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:unsubscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -253771,13 +511615,53 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + unsubscribeClients(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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+auctionPackage}:unsubscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Auctionpackages = Resource$Buyers$Auctionpackages; + class Resource$Buyers$Clients { + constructor(context) { + this.context = context; + this.users = new Resource$Buyers$Clients$Users(this.context); + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253790,25 +511674,26 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253821,11 +511706,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -253833,13 +511719,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + deactivate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253852,11 +511738,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -253864,13 +511751,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253883,11 +511770,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -253895,13 +511783,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253914,11 +511802,44 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://authorizedbuyersmarketplace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -253926,13 +511847,19 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Clients = Resource$Buyers$Clients; + class Resource$Buyers$Clients$Users { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253945,10 +511872,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -253957,13 +511885,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253976,25 +511904,26 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + deactivate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254007,31 +511936,26 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtasks_v2beta2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; - class Resource$Projects$Locations$Queues$Tasks { - constructor(context) { - this.context = context; - } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254044,11 +511968,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -254056,13 +511981,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancelLease(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254075,11 +512000,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:cancelLease').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -254087,13 +512013,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254106,11 +512032,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -254118,13 +512045,19 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Clients$Users = Resource$Buyers$Clients$Users; + class Resource$Buyers$Finalizeddeals { + constructor(context) { + this.context = context; + } + addCreative(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254137,22 +512070,23 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+deal}:addCreative').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['deal'], + pathParams: ['deal'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -254168,10 +512102,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -254180,13 +512115,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lease(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254199,11 +512134,12 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/tasks:lease').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -254211,13 +512147,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254230,25 +512166,26 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - renewLease(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254261,10 +512198,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:renewLease').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -254273,13 +512211,13 @@ var cloudtasks_v2beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + setReadyToServe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254292,108 +512230,35 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+deal}:setReadyToServe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['deal'], + pathParams: ['deal'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudtasks_v2beta2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; -})(cloudtasks_v2beta2 = exports.cloudtasks_v2beta2 || (exports.cloudtasks_v2beta2 = {})); -//# sourceMappingURL=v2beta2.js.map - -/***/ }), -/* 803 */ -/***/ (function(module) { - -"use strict"; - -module.exports = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value - } - } -} - - -/***/ }), -/* 804 */, -/* 805 */, -/* 806 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.speech_v1p1beta1 = 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 = __webpack_require__(927); -var speech_v1p1beta1; -(function (speech_v1p1beta1) { - /** - * Cloud Speech-to-Text API - * - * Converts audio to text by applying powerful neural network models. - * - * @example - * const {google} = require('googleapis'); - * const speech = google.speech('v1p1beta1'); - * - * @namespace speech - * @type {Function} - * @version v1p1beta1 - * @variation v1p1beta1 - * @param {object=} options Options for Speech - */ - class Speech { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - this.speech = new Resource$Speech(this.context); - } - } - speech_v1p1beta1.Speech = Speech; - class Resource$Operations { + authorizedbuyersmarketplace_v1.Resource$Buyers$Finalizeddeals = Resource$Buyers$Finalizeddeals; + class Resource$Buyers$Proposals { constructor(context) { this.context = context; + this.deals = new Resource$Buyers$Proposals$Deals(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -254404,11 +512269,12 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -254416,14 +512282,15 @@ var speech_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addNote(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -254434,45 +512301,26 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+proposal}:addNote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['proposal'], + pathParams: ['proposal'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1p1beta1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - speech_v1p1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - } - speech_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + cancelNegotiation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254485,25 +512333,26 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+proposal}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['proposal'], + pathParams: ['proposal'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254516,10 +512365,11 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -254528,19 +512378,13 @@ var speech_v1p1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1p1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Speech { - constructor(context) { - this.context = context; - } - longrunningrecognize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254553,26 +512397,28 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recognize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -254583,394 +512429,26 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1p1beta1.Resource$Speech = Resource$Speech; -})(speech_v1p1beta1 = exports.speech_v1p1beta1 || (exports.speech_v1p1beta1 = {})); -//# sourceMappingURL=v1p1beta1.js.map - -/***/ }), -/* 807 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * Module dependencies. - */ - -const tty = __webpack_require__(867); -const util = __webpack_require__(669); - -/** - * This is the Node.js implementation of `debug()`. - */ - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; - -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = __webpack_require__(247); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); - -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} - -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - -function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} - -/** - * Invokes `util.format()` with the specified arguments and writes to stderr. - */ - -function log(...args) { - return process.stderr.write(util.format(...args) + '\n'); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - -function load() { - return process.env.DEBUG; -} - -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - -function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = __webpack_require__(403)(exports); - -const {formatters} = module.exports; - -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .replace(/\s*\n\s*/g, ' '); -}; - -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; - - -/***/ }), -/* 808 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.firebasedynamiclinks = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(907); -exports.VERSIONS = { - v1: v1_1.firebasedynamiclinks_v1.Firebasedynamiclinks, -}; -function firebasedynamiclinks(versionOrOptions) { - return googleapis_common_1.getAPI('firebasedynamiclinks', versionOrOptions, exports.VERSIONS, this); -} -exports.firebasedynamiclinks = firebasedynamiclinks; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 809 */, -/* 810 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.websecurityscanner_v1alpha = 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 = __webpack_require__(927); -var websecurityscanner_v1alpha; -(function (websecurityscanner_v1alpha) { - /** - * Web Security Scanner API - * - * Scans your Compute and App Engine apps for common web vulnerabilities. - * - * @example - * const {google} = require('googleapis'); - * const websecurityscanner = google.websecurityscanner('v1alpha'); - * - * @namespace websecurityscanner - * @type {Function} - * @version v1alpha - * @variation v1alpha - * @param {object=} options Options for Websecurityscanner - */ - class Websecurityscanner { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - websecurityscanner_v1alpha.Websecurityscanner = Websecurityscanner; - class Resource$Projects { - constructor(context) { - this.context = context; - this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); - } - } - websecurityscanner_v1alpha.Resource$Projects = Resource$Projects; - class Resource$Projects$Scanconfigs { - constructor(context) { - this.context = context; - this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + sendRfp(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254983,25 +512461,32 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+buyer}/proposals:sendRfp').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['buyer'], + pathParams: ['buyer'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Proposals = Resource$Buyers$Proposals; + class Resource$Buyers$Proposals$Deals { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255014,22 +512499,23 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/deals:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -255045,10 +512531,11 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -255057,10 +512544,10 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -255076,10 +512563,11 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/deals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -255088,10 +512576,10 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -255107,10 +512595,11 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -255119,13 +512608,19 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Proposals$Deals = Resource$Buyers$Proposals$Deals; + class Resource$Buyers$Publisherprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255138,11 +512633,12 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -255150,22 +512646,13 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1alpha.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; - class Resource$Projects$Scanconfigs$Scanruns { - constructor(context) { - this.context = context; - this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); - this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); - this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255178,25 +512665,99 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + authorizedbuyersmarketplace_v1.Resource$Buyers$Publisherprofiles = Resource$Buyers$Publisherprofiles; +})(authorizedbuyersmarketplace_v1 = exports.authorizedbuyersmarketplace_v1 || (exports.authorizedbuyersmarketplace_v1 = {})); + + +/***/ }), + +/***/ 8779: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebasedatabase_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebasedatabase_v1beta; +(function (firebasedatabase_v1beta) { + /** + * Firebase Realtime Database API + * + * The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebasedatabase = google.firebasedatabase('v1beta'); + * ``` + */ + class Firebasedatabase { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firebasedatabase_v1beta.Firebasedatabase = Firebasedatabase; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + firebasedatabase_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + } + } + firebasedatabase_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255209,11 +512770,11 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -255221,13 +512782,13 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255240,11 +512801,11 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -255252,19 +512813,13 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; - class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255277,30 +512832,24 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; - class Resource$Projects$Scanconfigs$Scanruns$Findings { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -255314,10 +512863,10 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -255326,10 +512875,10 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -255345,10 +512894,10 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -255357,19 +512906,44 @@ var websecurityscanner_v1alpha; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; - class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { - constructor(context) { - this.context = context; + reenable(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://firebasedatabase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:reenable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - list(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255382,675 +512956,1157 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; -})(websecurityscanner_v1alpha = exports.websecurityscanner_v1alpha || (exports.websecurityscanner_v1alpha = {})); -//# sourceMappingURL=v1alpha.js.map + firebasedatabase_v1beta.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; +})(firebasedatabase_v1beta = exports.firebasedatabase_v1beta || (exports.firebasedatabase_v1beta = {})); + /***/ }), -/* 811 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; +/***/ 8784: +/***/ (function(module, __unusedexports, __webpack_require__) { -// 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.auth = exports.fitness = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(740); -exports.VERSIONS = { - v1: v1_1.fitness_v1.Fitness, -}; -function fitness(versionOrOptions) { - return googleapis_common_1.getAPI('fitness', versionOrOptions, exports.VERSIONS, this); +/** + * JavaScript implementation of Ed25519. + * + * Copyright (c) 2017-2019 Digital Bazaar, Inc. + * + * This implementation is based on the most excellent TweetNaCl which is + * in the public domain. Many thanks to its contributors: + * + * https://github.com/dchest/tweetnacl-js + */ +var forge = __webpack_require__(239); +__webpack_require__(7349); +__webpack_require__(5707); +__webpack_require__(1679); +__webpack_require__(7152); +var asn1Validator = __webpack_require__(4913); +var publicKeyValidator = asn1Validator.publicKeyValidator; +var privateKeyValidator = asn1Validator.privateKeyValidator; + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; } -exports.fitness = fitness; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 812 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +var ByteBuffer = forge.util.ByteBuffer; +var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer; -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var match = String.prototype.match; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' ? Symbol.prototype.toString : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; +/* + * Ed25519 algorithms, see RFC 8032: + * https://tools.ietf.org/html/rfc8032 + */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.ed25519 = forge.ed25519 = forge.ed25519 || {}; +var ed25519 = forge.ed25519; + +ed25519.constants = {}; +ed25519.constants.PUBLIC_KEY_BYTE_LENGTH = 32; +ed25519.constants.PRIVATE_KEY_BYTE_LENGTH = 64; +ed25519.constants.SEED_BYTE_LENGTH = 32; +ed25519.constants.SIGN_BYTE_LENGTH = 64; +ed25519.constants.HASH_BYTE_LENGTH = 64; + +ed25519.generateKeyPair = function(options) { + options = options || {}; + var seed = options.seed; + if(seed === undefined) { + // generate seed + seed = forge.random.getBytesSync(ed25519.constants.SEED_BYTE_LENGTH); + } else if(typeof seed === 'string') { + if(seed.length !== ed25519.constants.SEED_BYTE_LENGTH) { + throw new TypeError( + '"seed" must be ' + ed25519.constants.SEED_BYTE_LENGTH + + ' bytes in length.'); + } + } else if(!(seed instanceof Uint8Array)) { + throw new TypeError( + '"seed" must be a node.js Buffer, Uint8Array, or a binary string.'); + } + + seed = messageToNativeBuffer({message: seed, encoding: 'binary'}); + + var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + var sk = new NativeBuffer(ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + for(var i = 0; i < 32; ++i) { + sk[i] = seed[i]; + } + crypto_sign_keypair(pk, sk); + return {publicKey: pk, privateKey: sk}; +}; + +/** + * Converts a private key from a RFC8410 ASN.1 encoding. + * + * @param obj - The asn1 representation of a private key. + * + * @returns {Object} keyInfo - The key information. + * @returns {Buffer|Uint8Array} keyInfo.privateKeyBytes - 32 private key bytes. + */ +ed25519.privateKeyFromAsn1 = function(obj) { + var capture = {}; + var errors = []; + var valid = forge.asn1.validate(obj, privateKeyValidator, capture, errors); + if(!valid) { + var error = new Error('Invalid Key.'); + error.errors = errors; + throw error; + } + var oid = forge.asn1.derToOid(capture.privateKeyOid); + var ed25519Oid = forge.oids.EdDSA25519; + if(oid !== ed25519Oid) { + throw new Error('Invalid OID "' + oid + '"; OID must be "' + + ed25519Oid + '".'); + } + var privateKey = capture.privateKey; + // manually extract the private key bytes from nested octet string, see FIXME: + // https://github.com/digitalbazaar/forge/blob/master/lib/asn1.js#L542 + var privateKeyBytes = messageToNativeBuffer({ + message: forge.asn1.fromDer(privateKey).value, + encoding: 'binary' + }); + // TODO: RFC8410 specifies a format for encoding the public key bytes along + // with the private key bytes. `publicKeyBytes` can be returned in the + // future. https://tools.ietf.org/html/rfc8410#section-10.3 + return {privateKeyBytes: privateKeyBytes}; +}; + +/** + * Converts a public key from a RFC8410 ASN.1 encoding. + * + * @param obj - The asn1 representation of a public key. + * + * @return {Buffer|Uint8Array} - 32 public key bytes. + */ +ed25519.publicKeyFromAsn1 = function(obj) { + // get SubjectPublicKeyInfo + var capture = {}; + var errors = []; + var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors); + if(!valid) { + var error = new Error('Invalid Key.'); + error.errors = errors; + throw error; + } + var oid = forge.asn1.derToOid(capture.publicKeyOid); + var ed25519Oid = forge.oids.EdDSA25519; + if(oid !== ed25519Oid) { + throw new Error('Invalid OID "' + oid + '"; OID must be "' + + ed25519Oid + '".'); + } + var publicKeyBytes = capture.ed25519PublicKey; + if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { + throw new Error('Key length is invalid.'); + } + return messageToNativeBuffer({ + message: publicKeyBytes, + encoding: 'binary' + }); +}; + +ed25519.publicKeyFromPrivateKey = function(options) { + options = options || {}; + var privateKey = messageToNativeBuffer({ + message: options.privateKey, encoding: 'binary' + }); + if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.privateKey" must have a byte length of ' + + ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + } + + var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + for(var i = 0; i < pk.length; ++i) { + pk[i] = privateKey[32 + i]; + } + return pk; +}; + +ed25519.sign = function(options) { + options = options || {}; + var msg = messageToNativeBuffer(options); + var privateKey = messageToNativeBuffer({ + message: options.privateKey, + encoding: 'binary' + }); + if(privateKey.length === ed25519.constants.SEED_BYTE_LENGTH) { + var keyPair = ed25519.generateKeyPair({seed: privateKey}); + privateKey = keyPair.privateKey; + } else if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.privateKey" must have a byte length of ' + + ed25519.constants.SEED_BYTE_LENGTH + ' or ' + + ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + } + + var signedMsg = new NativeBuffer( + ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + crypto_sign(signedMsg, msg, msg.length, privateKey); + + var sig = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH); + for(var i = 0; i < sig.length; ++i) { + sig[i] = signedMsg[i]; + } + return sig; +}; + +ed25519.verify = function(options) { + options = options || {}; + var msg = messageToNativeBuffer(options); + if(options.signature === undefined) { + throw new TypeError( + '"options.signature" must be a node.js Buffer, a Uint8Array, a forge ' + + 'ByteBuffer, or a binary string.'); + } + var sig = messageToNativeBuffer({ + message: options.signature, + encoding: 'binary' + }); + if(sig.length !== ed25519.constants.SIGN_BYTE_LENGTH) { + throw new TypeError( + '"options.signature" must have a byte length of ' + + ed25519.constants.SIGN_BYTE_LENGTH); + } + var publicKey = messageToNativeBuffer({ + message: options.publicKey, + encoding: 'binary' + }); + if(publicKey.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.publicKey" must have a byte length of ' + + ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + } -var inspectCustom = __webpack_require__(62).custom; -var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null; + var sm = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + var m = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + var i; + for(i = 0; i < ed25519.constants.SIGN_BYTE_LENGTH; ++i) { + sm[i] = sig[i]; + } + for(i = 0; i < msg.length; ++i) { + sm[i + ed25519.constants.SIGN_BYTE_LENGTH] = msg[i]; + } + return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0); +}; -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; +function messageToNativeBuffer(options) { + var message = options.message; + if(message instanceof Uint8Array || message instanceof NativeBuffer) { + return message; + } - if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if ( - has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' - ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity - : opts.maxStringLength !== null - ) - ) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean') { - throw new TypeError('option "customInspect", if provided, must be `true` or `false`'); + var encoding = options.encoding; + if(message === undefined) { + if(options.md) { + // TODO: more rigorous validation that `md` is a MessageDigest + message = options.md.digest().getBytes(); + encoding = 'binary'; + } else { + throw new TypeError('"options.message" or "options.md" not specified.'); } + } - if ( - has(opts, 'indent') - && opts.indent !== null - && opts.indent !== '\t' - && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) - ) { - throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`'); - } + if(typeof message === 'string' && !encoding) { + throw new TypeError('"options.encoding" must be "binary" or "utf8".'); + } - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; + if(typeof message === 'string') { + if(typeof Buffer !== 'undefined') { + return Buffer.from(message, encoding); } + message = new ByteBuffer(message, encoding); + } else if(!(message instanceof ByteBuffer)) { + throw new TypeError( + '"options.message" must be a node.js Buffer, a Uint8Array, a forge ' + + 'ByteBuffer, or a string with "options.encoding" specifying its ' + + 'encoding.'); + } - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - return String(obj); - } - if (typeof obj === 'bigint') { - return String(obj) + 'n'; - } + // convert to native buffer + var buffer = new NativeBuffer(message.length()); + for(var i = 0; i < buffer.length; ++i) { + buffer[i] = message.at(i); + } + return buffer; +} - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } +var gf0 = gf(); +var gf1 = gf([1]); +var D = gf([ + 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, + 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]); +var D2 = gf([ + 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, + 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]); +var X = gf([ + 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, + 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]); +var Y = gf([ + 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, + 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]); +var L = new Float64Array([ + 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, + 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]); +var I = gf([ + 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, + 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]); - var indent = getIndent(opts, depth); +// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`, +// whichever is available, to improve performance +function sha512(msg, msgLen) { + // Note: `out` and `msg` are NativeBuffer + var md = forge.md.sha512.create(); + var buffer = new ByteBuffer(msg); + md.update(buffer.getBytes(msgLen), 'binary'); + var hash = md.digest().getBytes(); + if(typeof Buffer !== 'undefined') { + return Buffer.from(hash, 'binary'); + } + var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH); + for(var i = 0; i < 64; ++i) { + out[i] = hash.charCodeAt(i); + } + return out; +} - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } +function crypto_sign_keypair(pk, sk) { + var p = [gf(), gf(), gf(), gf()]; + var i; - function inspect(value, from, noIndent) { - if (from) { - seen = seen.slice(); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } + var d = sha512(sk, 32); + d[0] &= 248; + d[31] &= 127; + d[31] |= 64; - if (typeof obj === 'function') { - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = symToString.call(obj); - return typeof obj === 'object' ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + String(obj.nodeName).toLowerCase(); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + xs.join(', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function') { - return obj[inspectSymbol](); - } else if (typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - if (ys.length === 0) { return '{}'; } - if (indent) { - return '{' + indentedJoin(ys, indent) + '}'; - } - return '{ ' + ys.join(', ') + ' }'; - } - return String(obj); -}; + scalarbase(p, d); + pack(pk, p); -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; + for(i = 0; i < 32; ++i) { + sk[i + 32] = pk[i]; + } + return 0; } -function quote(s) { - return String(s).replace(/"/g, '"'); -} +// Note: difference from C - smlen returned, not passed as argument. +function crypto_sign(sm, m, n, sk) { + var i, j, x = new Float64Array(64); + var p = [gf(), gf(), gf(), gf()]; -function isArray(obj) { return toStr(obj) === '[object Array]'; } -function isDate(obj) { return toStr(obj) === '[object Date]'; } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]'; } -function isError(obj) { return toStr(obj) === '[object Error]'; } -function isSymbol(obj) { return toStr(obj) === '[object Symbol]'; } -function isString(obj) { return toStr(obj) === '[object String]'; } -function isNumber(obj) { return toStr(obj) === '[object Number]'; } -function isBigInt(obj) { return toStr(obj) === '[object BigInt]'; } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]'; } + var d = sha512(sk, 32); + d[0] &= 248; + d[31] &= 127; + d[31] |= 64; -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} + var smlen = n + 64; + for(i = 0; i < n; ++i) { + sm[64 + i] = m[i]; + } + for(i = 0; i < 32; ++i) { + sm[32 + i] = d[32 + i]; + } -function toStr(obj) { - return objectToString.call(obj); -} + var r = sha512(sm.subarray(32), n + 32); + reduce(r); + scalarbase(p, r); + pack(sm, p); -function nameOf(f) { - if (f.name) { return f.name; } - var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} + for(i = 32; i < 64; ++i) { + sm[i] = sk[i]; + } + var h = sha512(sm, n + 64); + reduce(h); -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } + for(i = 32; i < 64; ++i) { + x[i] = 0; + } + for(i = 0; i < 32; ++i) { + x[i] = r[i]; + } + for(i = 0; i < 32; ++i) { + for(j = 0; j < 32; j++) { + x[i + j] += h[i] * d[j]; } - return -1; -} + } -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; + modL(sm.subarray(32), x); + return smlen; } -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} +function crypto_sign_open(m, sm, n, pk) { + var i, mlen; + var t = new NativeBuffer(32); + var p = [gf(), gf(), gf(), gf()], + q = [gf(), gf(), gf(), gf()]; -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} + mlen = -1; + if(n < 64) { + return -1; + } -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} + if(unpackneg(q, pk)) { + return -1; + } -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} + for(i = 0; i < n; ++i) { + m[i] = sm[i]; + } + for(i = 0; i < 32; ++i) { + m[i + 32] = pk[i]; + } + var h = sha512(m, n); + reduce(h); + scalarmult(p, q, h); -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer; + scalarbase(q, sm.subarray(32)); + add(p, q); + pack(t, p); + + n -= 64; + if(crypto_verify_32(sm, 0, t, 0)) { + for(i = 0; i < n; ++i) { + m[i] = 0; } - // eslint-disable-next-line no-control-regex - var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} + return -1; + } -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase(); + for(i = 0; i < n; ++i) { + m[i] = sm[i + 64]; + } + mlen = n; + return mlen; } -function markBoxed(str) { - return 'Object(' + str + ')'; +function modL(r, x) { + var carry, i, j, k; + for(i = 63; i >= 32; --i) { + carry = 0; + for(j = i - 32, k = i - 12; j < k; ++j) { + x[j] += carry - 16 * x[i] * L[j - (i - 32)]; + carry = (x[j] + 128) >> 8; + x[j] -= carry * 256; + } + x[j] += carry; + x[i] = 0; + } + carry = 0; + for(j = 0; j < 32; ++j) { + x[j] += carry - (x[31] >> 4) * L[j]; + carry = x[j] >> 8; + x[j] &= 255; + } + for(j = 0; j < 32; ++j) { + x[j] -= carry * L[j]; + } + for(i = 0; i < 32; ++i) { + x[i + 1] += x[i] >> 8; + r[i] = x[i] & 255; + } } -function weakCollectionOf(type) { - return type + ' { ? }'; +function reduce(r) { + var x = new Float64Array(64); + for(var i = 0; i < 64; ++i) { + x[i] = r[i]; + r[i] = 0; + } + modL(r, x); } -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} +function add(p, q) { + var a = gf(), b = gf(), c = gf(), + d = gf(), e = gf(), f = gf(), + g = gf(), h = gf(), t = gf(); -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; - } - } - return true; + Z(a, p[1], p[0]); + Z(t, q[1], q[0]); + M(a, a, t); + A(b, p[0], p[1]); + A(t, q[0], q[1]); + M(b, b, t); + M(c, p[3], q[3]); + M(c, c, D2); + M(d, p[2], q[2]); + A(d, d, d); + Z(e, b, a); + Z(f, d, c); + A(g, d, c); + A(h, b, a); + + M(p[0], e, f); + M(p[1], h, g); + M(p[2], g, f); + M(p[3], e, h); } -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = Array(opts.indent + 1).join(' '); - } else { - return null; - } - return { - base: baseIndent, - prev: Array(depth + 1).join(baseIndent) - }; +function cswap(p, q, b) { + for(var i = 0; i < 4; ++i) { + sel25519(p[i], q[i], b); + } } -function indentedJoin(xs, indent) { - if (xs.length === 0) { return ''; } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev; +function pack(r, p) { + var tx = gf(), ty = gf(), zi = gf(); + inv25519(zi, p[2]); + M(tx, p[0], zi); + M(ty, p[1], zi); + pack25519(r, ty); + r[31] ^= par25519(tx) << 7; } -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if ((/[^\w$]/).test(key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - if (typeof gOPS === 'function') { - var syms = gOPS(obj); - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } - } +function pack25519(o, n) { + var i, j, b; + var m = gf(), t = gf(); + for(i = 0; i < 16; ++i) { + t[i] = n[i]; + } + car25519(t); + car25519(t); + car25519(t); + for(j = 0; j < 2; ++j) { + m[0] = t[0] - 0xffed; + for(i = 1; i < 15; ++i) { + m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1); + m[i-1] &= 0xffff; } - return xs; + m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1); + b = (m[15] >> 16) & 1; + m[14] &= 0xffff; + sel25519(t, m, 1 - b); + } + for (i = 0; i < 16; i++) { + o[2 * i] = t[i] & 0xff; + o[2 * i + 1] = t[i] >> 8; + } } +function unpackneg(r, p) { + var t = gf(), chk = gf(), num = gf(), + den = gf(), den2 = gf(), den4 = gf(), + den6 = gf(); -/***/ }), -/* 813 */ -/***/ (function(__unusedmodule, exports) { + set25519(r[2], gf1); + unpack25519(r[1], p); + S(num, r[1]); + M(den, num, D); + Z(num, num, r[2]); + A(den, r[2], den); -"use strict"; + S(den2, den); + S(den4, den2); + M(den6, den4, den2); + M(t, den6, num); + M(t, t, den); + pow2523(t, t); + M(t, t, num); + M(t, t, den); + M(t, t, den); + M(r[0], t, den); -Object.defineProperty(exports, '__esModule', { value: true }); + S(chk, r[0]); + M(chk, chk, den); + if(neq25519(chk, num)) { + M(r[0], r[0], I); + } -async function auth(token) { - const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth"; - return { - type: "token", - token: token, - tokenType - }; -} + S(chk, r[0]); + M(chk, chk, den); + if(neq25519(chk, num)) { + return -1; + } -/** - * Prefix token for usage in the Authorization header - * - * @param token OAuth token or JSON Web Token - */ -function withAuthorizationPrefix(token) { - if (token.split(/\./).length === 3) { - return `bearer ${token}`; + if(par25519(r[0]) === (p[31] >> 7)) { + Z(r[0], gf0, r[0]); } - return `token ${token}`; + M(r[3], r[0], r[1]); + return 0; } -async function hook(token, request, route, parameters) { - const endpoint = request.endpoint.merge(route, parameters); - endpoint.headers.authorization = withAuthorizationPrefix(token); - return request(endpoint); +function unpack25519(o, n) { + var i; + for(i = 0; i < 16; ++i) { + o[i] = n[2 * i] + (n[2 * i + 1] << 8); + } + o[15] &= 0x7fff; } -const createTokenAuth = function createTokenAuth(token) { - if (!token) { - throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); +function pow2523(o, i) { + var c = gf(); + var a; + for(a = 0; a < 16; ++a) { + c[a] = i[a]; } - - if (typeof token !== "string") { - throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); + for(a = 250; a >= 0; --a) { + S(c, c); + if(a !== 1) { + M(c, c, i); + } } + for(a = 0; a < 16; ++a) { + o[a] = c[a]; + } +} - token = token.replace(/^(token|bearer) +/i, ""); - return Object.assign(auth.bind(null, token), { - hook: hook.bind(null, token) - }); -}; - -exports.createTokenAuth = createTokenAuth; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 814 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = which -which.sync = whichSync +function neq25519(a, b) { + var c = new NativeBuffer(32); + var d = new NativeBuffer(32); + pack25519(c, a); + pack25519(d, b); + return crypto_verify_32(c, 0, d, 0); +} -var isWindows = process.platform === 'win32' || - process.env.OSTYPE === 'cygwin' || - process.env.OSTYPE === 'msys' +function crypto_verify_32(x, xi, y, yi) { + return vn(x, xi, y, yi, 32); +} -var path = __webpack_require__(622) -var COLON = isWindows ? ';' : ':' -var isexe = __webpack_require__(742) +function vn(x, xi, y, yi, n) { + var i, d = 0; + for(i = 0; i < n; ++i) { + d |= x[xi + i] ^ y[yi + i]; + } + return (1 & ((d - 1) >>> 8)) - 1; +} -function getNotFoundError (cmd) { - var er = new Error('not found: ' + cmd) - er.code = 'ENOENT' +function par25519(a) { + var d = new NativeBuffer(32); + pack25519(d, a); + return d[0] & 1; +} - return er +function scalarmult(p, q, s) { + var b, i; + set25519(p[0], gf0); + set25519(p[1], gf1); + set25519(p[2], gf1); + set25519(p[3], gf0); + for(i = 255; i >= 0; --i) { + b = (s[(i / 8)|0] >> (i & 7)) & 1; + cswap(p, q, b); + add(q, p); + add(p, p); + cswap(p, q, b); + } } -function getPathInfo (cmd, opt) { - var colon = opt.colon || COLON - var pathEnv = opt.path || process.env.PATH || '' - var pathExt = [''] +function scalarbase(p, s) { + var q = [gf(), gf(), gf(), gf()]; + set25519(q[0], X); + set25519(q[1], Y); + set25519(q[2], gf1); + M(q[3], X, Y); + scalarmult(p, q, s); +} - pathEnv = pathEnv.split(colon) +function set25519(r, a) { + var i; + for(i = 0; i < 16; i++) { + r[i] = a[i] | 0; + } +} - var pathExtExe = '' - if (isWindows) { - pathEnv.unshift(process.cwd()) - pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM') - pathExt = pathExtExe.split(colon) +function inv25519(o, i) { + var c = gf(); + var a; + for(a = 0; a < 16; ++a) { + c[a] = i[a]; + } + for(a = 253; a >= 0; --a) { + S(c, c); + if(a !== 2 && a !== 4) { + M(c, c, i); + } + } + for(a = 0; a < 16; ++a) { + o[a] = c[a]; + } +} +function car25519(o) { + var i, v, c = 1; + for(i = 0; i < 16; ++i) { + v = o[i] + c + 65535; + c = Math.floor(v / 65536); + o[i] = v - c * 65536; + } + o[0] += c - 1 + 37 * (c - 1); +} - // Always test the cmd itself first. isexe will check to make sure - // it's found in the pathExt set. - if (cmd.indexOf('.') !== -1 && pathExt[0] !== '') - pathExt.unshift('') +function sel25519(p, q, b) { + var t, c = ~(b - 1); + for(var i = 0; i < 16; ++i) { + t = c & (p[i] ^ q[i]); + p[i] ^= t; + q[i] ^= t; } +} - // If it has a slash, then we don't bother searching the pathenv. - // just check the file itself, and that's it. - if (cmd.match(/\//) || isWindows && cmd.match(/\\/)) - pathEnv = [''] +function gf(init) { + var i, r = new Float64Array(16); + if(init) { + for(i = 0; i < init.length; ++i) { + r[i] = init[i]; + } + } + return r; +} - return { - env: pathEnv, - ext: pathExt, - extExe: pathExtExe +function A(o, a, b) { + for(var i = 0; i < 16; ++i) { + o[i] = a[i] + b[i]; } } -function which (cmd, opt, cb) { - if (typeof opt === 'function') { - cb = opt - opt = {} +function Z(o, a, b) { + for(var i = 0; i < 16; ++i) { + o[i] = a[i] - b[i]; } +} + +function S(o, a) { + M(o, a, a); +} + +function M(o, a, b) { + var v, c, + t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0, + t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0, + t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0, + t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0, + b0 = b[0], + b1 = b[1], + b2 = b[2], + b3 = b[3], + b4 = b[4], + b5 = b[5], + b6 = b[6], + b7 = b[7], + b8 = b[8], + b9 = b[9], + b10 = b[10], + b11 = b[11], + b12 = b[12], + b13 = b[13], + b14 = b[14], + b15 = b[15]; + + v = a[0]; + t0 += v * b0; + t1 += v * b1; + t2 += v * b2; + t3 += v * b3; + t4 += v * b4; + t5 += v * b5; + t6 += v * b6; + t7 += v * b7; + t8 += v * b8; + t9 += v * b9; + t10 += v * b10; + t11 += v * b11; + t12 += v * b12; + t13 += v * b13; + t14 += v * b14; + t15 += v * b15; + v = a[1]; + t1 += v * b0; + t2 += v * b1; + t3 += v * b2; + t4 += v * b3; + t5 += v * b4; + t6 += v * b5; + t7 += v * b6; + t8 += v * b7; + t9 += v * b8; + t10 += v * b9; + t11 += v * b10; + t12 += v * b11; + t13 += v * b12; + t14 += v * b13; + t15 += v * b14; + t16 += v * b15; + v = a[2]; + t2 += v * b0; + t3 += v * b1; + t4 += v * b2; + t5 += v * b3; + t6 += v * b4; + t7 += v * b5; + t8 += v * b6; + t9 += v * b7; + t10 += v * b8; + t11 += v * b9; + t12 += v * b10; + t13 += v * b11; + t14 += v * b12; + t15 += v * b13; + t16 += v * b14; + t17 += v * b15; + v = a[3]; + t3 += v * b0; + t4 += v * b1; + t5 += v * b2; + t6 += v * b3; + t7 += v * b4; + t8 += v * b5; + t9 += v * b6; + t10 += v * b7; + t11 += v * b8; + t12 += v * b9; + t13 += v * b10; + t14 += v * b11; + t15 += v * b12; + t16 += v * b13; + t17 += v * b14; + t18 += v * b15; + v = a[4]; + t4 += v * b0; + t5 += v * b1; + t6 += v * b2; + t7 += v * b3; + t8 += v * b4; + t9 += v * b5; + t10 += v * b6; + t11 += v * b7; + t12 += v * b8; + t13 += v * b9; + t14 += v * b10; + t15 += v * b11; + t16 += v * b12; + t17 += v * b13; + t18 += v * b14; + t19 += v * b15; + v = a[5]; + t5 += v * b0; + t6 += v * b1; + t7 += v * b2; + t8 += v * b3; + t9 += v * b4; + t10 += v * b5; + t11 += v * b6; + t12 += v * b7; + t13 += v * b8; + t14 += v * b9; + t15 += v * b10; + t16 += v * b11; + t17 += v * b12; + t18 += v * b13; + t19 += v * b14; + t20 += v * b15; + v = a[6]; + t6 += v * b0; + t7 += v * b1; + t8 += v * b2; + t9 += v * b3; + t10 += v * b4; + t11 += v * b5; + t12 += v * b6; + t13 += v * b7; + t14 += v * b8; + t15 += v * b9; + t16 += v * b10; + t17 += v * b11; + t18 += v * b12; + t19 += v * b13; + t20 += v * b14; + t21 += v * b15; + v = a[7]; + t7 += v * b0; + t8 += v * b1; + t9 += v * b2; + t10 += v * b3; + t11 += v * b4; + t12 += v * b5; + t13 += v * b6; + t14 += v * b7; + t15 += v * b8; + t16 += v * b9; + t17 += v * b10; + t18 += v * b11; + t19 += v * b12; + t20 += v * b13; + t21 += v * b14; + t22 += v * b15; + v = a[8]; + t8 += v * b0; + t9 += v * b1; + t10 += v * b2; + t11 += v * b3; + t12 += v * b4; + t13 += v * b5; + t14 += v * b6; + t15 += v * b7; + t16 += v * b8; + t17 += v * b9; + t18 += v * b10; + t19 += v * b11; + t20 += v * b12; + t21 += v * b13; + t22 += v * b14; + t23 += v * b15; + v = a[9]; + t9 += v * b0; + t10 += v * b1; + t11 += v * b2; + t12 += v * b3; + t13 += v * b4; + t14 += v * b5; + t15 += v * b6; + t16 += v * b7; + t17 += v * b8; + t18 += v * b9; + t19 += v * b10; + t20 += v * b11; + t21 += v * b12; + t22 += v * b13; + t23 += v * b14; + t24 += v * b15; + v = a[10]; + t10 += v * b0; + t11 += v * b1; + t12 += v * b2; + t13 += v * b3; + t14 += v * b4; + t15 += v * b5; + t16 += v * b6; + t17 += v * b7; + t18 += v * b8; + t19 += v * b9; + t20 += v * b10; + t21 += v * b11; + t22 += v * b12; + t23 += v * b13; + t24 += v * b14; + t25 += v * b15; + v = a[11]; + t11 += v * b0; + t12 += v * b1; + t13 += v * b2; + t14 += v * b3; + t15 += v * b4; + t16 += v * b5; + t17 += v * b6; + t18 += v * b7; + t19 += v * b8; + t20 += v * b9; + t21 += v * b10; + t22 += v * b11; + t23 += v * b12; + t24 += v * b13; + t25 += v * b14; + t26 += v * b15; + v = a[12]; + t12 += v * b0; + t13 += v * b1; + t14 += v * b2; + t15 += v * b3; + t16 += v * b4; + t17 += v * b5; + t18 += v * b6; + t19 += v * b7; + t20 += v * b8; + t21 += v * b9; + t22 += v * b10; + t23 += v * b11; + t24 += v * b12; + t25 += v * b13; + t26 += v * b14; + t27 += v * b15; + v = a[13]; + t13 += v * b0; + t14 += v * b1; + t15 += v * b2; + t16 += v * b3; + t17 += v * b4; + t18 += v * b5; + t19 += v * b6; + t20 += v * b7; + t21 += v * b8; + t22 += v * b9; + t23 += v * b10; + t24 += v * b11; + t25 += v * b12; + t26 += v * b13; + t27 += v * b14; + t28 += v * b15; + v = a[14]; + t14 += v * b0; + t15 += v * b1; + t16 += v * b2; + t17 += v * b3; + t18 += v * b4; + t19 += v * b5; + t20 += v * b6; + t21 += v * b7; + t22 += v * b8; + t23 += v * b9; + t24 += v * b10; + t25 += v * b11; + t26 += v * b12; + t27 += v * b13; + t28 += v * b14; + t29 += v * b15; + v = a[15]; + t15 += v * b0; + t16 += v * b1; + t17 += v * b2; + t18 += v * b3; + t19 += v * b4; + t20 += v * b5; + t21 += v * b6; + t22 += v * b7; + t23 += v * b8; + t24 += v * b9; + t25 += v * b10; + t26 += v * b11; + t27 += v * b12; + t28 += v * b13; + t29 += v * b14; + t30 += v * b15; - var info = getPathInfo(cmd, opt) - var pathEnv = info.env - var pathExt = info.ext - var pathExtExe = info.extExe - var found = [] + t0 += 38 * t16; + t1 += 38 * t17; + t2 += 38 * t18; + t3 += 38 * t19; + t4 += 38 * t20; + t5 += 38 * t21; + t6 += 38 * t22; + t7 += 38 * t23; + t8 += 38 * t24; + t9 += 38 * t25; + t10 += 38 * t26; + t11 += 38 * t27; + t12 += 38 * t28; + t13 += 38 * t29; + t14 += 38 * t30; + // t15 left as is - ;(function F (i, l) { - if (i === l) { - if (opt.all && found.length) - return cb(null, found) - else - return cb(getNotFoundError(cmd)) - } + // first car + c = 1; + v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; + v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; + v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; + v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; + v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; + v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; + v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; + v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; + v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; + v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; + v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; + v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; + v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; + v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; + v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; + v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; + t0 += c-1 + 37 * (c-1); - var pathPart = pathEnv[i] - if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') - pathPart = pathPart.slice(1, -1) + // second car + c = 1; + v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; + v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; + v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; + v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; + v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; + v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; + v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; + v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; + v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; + v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; + v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; + v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; + v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; + v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; + v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; + v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; + t0 += c-1 + 37 * (c-1); - var p = path.join(pathPart, cmd) - if (!pathPart && (/^\.[\\\/]/).test(cmd)) { - p = cmd.slice(0, 2) + p - } - ;(function E (ii, ll) { - if (ii === ll) return F(i + 1, l) - var ext = pathExt[ii] - isexe(p + ext, { pathExt: pathExtExe }, function (er, is) { - if (!er && is) { - if (opt.all) - found.push(p + ext) - else - return cb(null, p + ext) - } - return E(ii + 1, ll) - }) - })(0, pathExt.length) - })(0, pathEnv.length) + o[ 0] = t0; + o[ 1] = t1; + o[ 2] = t2; + o[ 3] = t3; + o[ 4] = t4; + o[ 5] = t5; + o[ 6] = t6; + o[ 7] = t7; + o[ 8] = t8; + o[ 9] = t9; + o[10] = t10; + o[11] = t11; + o[12] = t12; + o[13] = t13; + o[14] = t14; + o[15] = t15; } -function whichSync (cmd, opt) { - opt = opt || {} - - var info = getPathInfo(cmd, opt) - var pathEnv = info.env - var pathExt = info.ext - var pathExtExe = info.extExe - var found = [] - - for (var i = 0, l = pathEnv.length; i < l; i ++) { - var pathPart = pathEnv[i] - if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') - pathPart = pathPart.slice(1, -1) - var p = path.join(pathPart, cmd) - if (!pathPart && /^\.[\\\/]/.test(cmd)) { - p = cmd.slice(0, 2) + p - } - for (var j = 0, ll = pathExt.length; j < ll; j ++) { - var cur = p + pathExt[j] - var is - try { - is = isexe.sync(cur, { pathExt: pathExtExe }) - if (is) { - if (opt.all) - found.push(cur) - else - return cur - } - } catch (ex) {} - } - } +/***/ }), - if (opt.all && found.length) - return found +/***/ 8802: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - if (opt.nothrow) - return null +"use strict"; - throw getNotFoundError(cmd) +// 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.AuthPlus = exports.businessprofileperformance_v1 = exports.auth = exports.businessprofileperformance = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5766); +Object.defineProperty(exports, "businessprofileperformance_v1", { enumerable: true, get: function () { return v1_1.businessprofileperformance_v1; } }); +exports.VERSIONS = { + v1: v1_1.businessprofileperformance_v1.Businessprofileperformance, +}; +function businessprofileperformance(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('businessprofileperformance', versionOrOptions, exports.VERSIONS, this); } +exports.businessprofileperformance = businessprofileperformance; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 815 */ + +/***/ 8815: /***/ (function(module, __unusedexports, __webpack_require__) { "use strict"; -var Buffer = __webpack_require__(149).Buffer; +var Buffer = __webpack_require__(4149).Buffer; -var getParamBytesForAlg = __webpack_require__(192); +var getParamBytesForAlg = __webpack_require__(3192); var MAX_OCTET = 0x80, CLASS_UNIVERSAL = 0, @@ -256236,98 +514292,8 @@ module.exports = { /***/ }), -/* 816 */ -/***/ (function(module) { - -"use strict"; - -module.exports = /^#!.*/; - - -/***/ }), -/* 817 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.adexperiencereport = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(548); -exports.VERSIONS = { - v1: v1_1.adexperiencereport_v1.Adexperiencereport, -}; -function adexperiencereport(versionOrOptions) { - return googleapis_common_1.getAPI('adexperiencereport', versionOrOptions, exports.VERSIONS, this); -} -exports.adexperiencereport = adexperiencereport; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 818 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = isexe -isexe.sync = sync - -var fs = __webpack_require__(747) - -function checkPathExt (path, options) { - var pathext = options.pathExt !== undefined ? - options.pathExt : process.env.PATHEXT - - if (!pathext) { - return true - } - - pathext = pathext.split(';') - if (pathext.indexOf('') !== -1) { - return true - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase() - if (p && path.substr(-p.length).toLowerCase() === p) { - return true - } - } - return false -} - -function checkStat (stat, path, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false - } - return checkPathExt(path, options) -} - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, path, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), path, options) -} - -/***/ }), -/* 819 */ +/***/ 8819: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -256346,554 +514312,951 @@ function sync (path, options) { // limitations under the License. /*! THIS FILE IS AUTO-GENERATED */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.GoogleApis = exports.google = void 0; -const googleapis_1 = __webpack_require__(694); +exports.area120tables_v1alpha1 = exports.appsactivity_v1 = exports.appengine_v1beta = exports.appengine_v1alpha = exports.appengine_v1 = exports.apikeys_v2 = exports.apigeeregistry_v1 = exports.apigateway_v1beta = exports.apigateway_v1 = exports.androidpublisher_v3 = exports.androidpublisher_v2 = exports.androidpublisher_v1 = exports.androidpublisher_v1_1 = exports.androidmanagement_v1 = exports.androidenterprise_v1 = exports.androiddeviceprovisioning_v1 = exports.analyticsreporting_v4 = exports.analyticshub_v1beta1 = exports.analyticshub_v1 = exports.analyticsdata_v1beta = exports.analyticsdata_v1alpha = exports.analyticsadmin_v1beta = exports.analyticsadmin_v1alpha = exports.analytics_v3 = exports.alertcenter_v1beta1 = exports.advisorynotifications_v1 = exports.adsensehost_v4_1 = exports.adsense_v2 = exports.adsense_v1_4 = exports.admob_v1beta = exports.admob_v1 = exports.admin_reports_v1 = exports.admin_directory_v1 = exports.admin_datatransfer_v1 = exports.adexperiencereport_v1 = exports.adexchangebuyer2_v2beta1 = exports.adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_2 = exports.acmedns_v1 = exports.accesscontextmanager_v1beta = exports.accesscontextmanager_v1 = exports.accessapproval_v1beta1 = exports.accessapproval_v1 = exports.acceleratedmobilepageurl_v1 = exports.abusiveexperiencereport_v1 = exports.Auth = exports.Common = exports.GoogleApis = exports.google = void 0; +exports.clouddebugger_v2 = exports.cloudchannel_v1 = exports.cloudbuild_v1beta1 = exports.cloudbuild_v1alpha2 = exports.cloudbuild_v1alpha1 = exports.cloudbuild_v1 = exports.cloudbilling_v1beta = exports.cloudbilling_v1 = exports.cloudasset_v1p7beta1 = exports.cloudasset_v1p5beta1 = exports.cloudasset_v1p4beta1 = exports.cloudasset_v1p1beta1 = exports.cloudasset_v1beta1 = exports.cloudasset_v1 = exports.classroom_v1 = exports.civicinfo_v2 = exports.chromeuxreport_v1 = exports.chromepolicy_v1 = exports.chromemanagement_v1 = exports.chat_v1 = exports.certificatemanager_v1 = exports.calendar_v3 = exports.businessprofileperformance_v1 = exports.books_v1 = exports.blogger_v3 = exports.blogger_v2 = exports.binaryauthorization_v1beta1 = exports.binaryauthorization_v1 = exports.billingbudgets_v1beta1 = exports.billingbudgets_v1 = exports.bigtableadmin_v2 = exports.bigtableadmin_v1 = exports.bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1alpha2 = exports.bigqueryreservation_v1 = exports.bigquerydatatransfer_v1 = exports.bigqueryconnection_v1beta1 = exports.bigquery_v2 = exports.beyondcorp_v1alpha = exports.beyondcorp_v1 = exports.batch_v1 = exports.baremetalsolution_v2 = exports.baremetalsolution_v1alpha1 = exports.baremetalsolution_v1 = exports.authorizedbuyersmarketplace_v1 = exports.assuredworkloads_v1beta1 = exports.assuredworkloads_v1 = exports.artifactregistry_v1beta2 = exports.artifactregistry_v1beta1 = exports.artifactregistry_v1 = void 0; +exports.dataflow_v1b3 = exports.datacatalog_v1beta1 = exports.datacatalog_v1 = exports.customsearch_v1 = exports.contentwarehouse_v1 = exports.content_v2 = exports.content_v2_1 = exports.containeranalysis_v1beta1 = exports.containeranalysis_v1alpha1 = exports.containeranalysis_v1 = exports.container_v1beta1 = exports.container_v1 = exports.contactcenterinsights_v1 = exports.contactcenteraiplatform_v1alpha1 = exports.connectors_v2 = exports.connectors_v1 = exports.compute_v1 = exports.compute_beta = exports.compute_alpha = exports.composer_v1beta1 = exports.composer_v1 = exports.cloudtrace_v2beta1 = exports.cloudtrace_v2 = exports.cloudtrace_v1 = exports.cloudtasks_v2beta3 = exports.cloudtasks_v2beta2 = exports.cloudtasks_v2 = exports.cloudsupport_v2beta = exports.cloudshell_v1alpha1 = exports.cloudshell_v1 = exports.cloudsearch_v1 = exports.cloudscheduler_v1beta1 = exports.cloudscheduler_v1 = exports.cloudresourcemanager_v3 = exports.cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2 = exports.cloudresourcemanager_v1beta1 = exports.cloudresourcemanager_v1 = exports.cloudprofiler_v2 = exports.cloudkms_v1 = exports.cloudiot_v1 = exports.cloudidentity_v1beta1 = exports.cloudidentity_v1 = exports.cloudfunctions_v2beta = exports.cloudfunctions_v2alpha = exports.cloudfunctions_v2 = exports.cloudfunctions_v1beta2 = exports.cloudfunctions_v1 = exports.clouderrorreporting_v1beta1 = exports.clouddeploy_v1 = void 0; +exports.doubleclickbidmanager_v1_1 = exports.domainsrdap_v1 = exports.domains_v1beta1 = exports.domains_v1alpha2 = exports.domains_v1 = exports.documentai_v1beta3 = exports.documentai_v1beta2 = exports.documentai_v1 = exports.docs_v1 = exports.dns_v2beta1 = exports.dns_v2 = exports.dns_v1beta2 = exports.dns_v1 = exports.dlp_v2 = exports.displayvideo_v2 = exports.displayvideo_v1dev = exports.displayvideo_v1beta2 = exports.displayvideo_v1beta = exports.displayvideo_v1 = exports.discoveryengine_v1beta = exports.discoveryengine_v1alpha = exports.discovery_v1 = exports.digitalassetlinks_v1 = exports.dialogflow_v3beta1 = exports.dialogflow_v3 = exports.dialogflow_v2beta1 = exports.dialogflow_v2 = exports.dfareporting_v4 = exports.dfareporting_v3_5 = exports.dfareporting_v3_4 = exports.dfareporting_v3_3 = exports.deploymentmanager_v2beta = exports.deploymentmanager_v2 = exports.deploymentmanager_alpha = exports.datastream_v1alpha1 = exports.datastream_v1 = exports.datastore_v1beta3 = exports.datastore_v1beta1 = exports.datastore_v1 = exports.dataproc_v1beta2 = exports.dataproc_v1 = exports.dataplex_v1 = exports.datapipelines_v1 = exports.datamigration_v1beta1 = exports.datamigration_v1 = exports.datalineage_v1 = exports.datalabeling_v1beta1 = exports.datafusion_v1beta1 = exports.datafusion_v1 = exports.dataform_v1beta1 = void 0; +exports.gmailpostmastertools_v1 = exports.gmail_v1 = exports.gkehub_v2alpha = exports.gkehub_v1beta1 = exports.gkehub_v1beta = exports.gkehub_v1alpha2 = exports.gkehub_v1alpha = exports.gkehub_v1 = exports.gkebackup_v1 = exports.genomics_v2alpha1 = exports.genomics_v1alpha2 = exports.genomics_v1 = exports.gameservices_v1beta = exports.gameservices_v1 = exports.gamesManagement_v1management = exports.gamesConfiguration_v1configuration = exports.games_v1 = exports.forms_v1 = exports.fitness_v1 = exports.firestore_v1beta2 = exports.firestore_v1beta1 = exports.firestore_v1 = exports.firebasestorage_v1beta = exports.firebaserules_v1 = exports.firebaseml_v1beta2 = exports.firebaseml_v1 = exports.firebasehosting_v1beta1 = exports.firebasehosting_v1 = exports.firebasedynamiclinks_v1 = exports.firebasedatabase_v1beta = exports.firebaseappdistribution_v1 = exports.firebaseappcheck_v1beta = exports.firebaseappcheck_v1 = exports.firebase_v1beta1 = exports.file_v1beta1 = exports.file_v1 = exports.fcmdata_v1beta1 = exports.fcm_v1 = exports.factchecktools_v1alpha1 = exports.eventarc_v1beta1 = exports.eventarc_v1 = exports.essentialcontacts_v1 = exports.drivelabels_v2beta = exports.drivelabels_v2 = exports.driveactivity_v2 = exports.drive_v3 = exports.drive_v2 = exports.doubleclicksearch_v2 = exports.doubleclickbidmanager_v2 = exports.doubleclickbidmanager_v1 = void 0; +exports.mybusinesslodging_v1 = exports.mybusinessbusinessinformation_v1 = exports.mybusinessbusinesscalls_v1 = exports.mybusinessaccountmanagement_v1 = exports.monitoring_v3 = exports.monitoring_v1 = exports.ml_v1 = exports.migrationcenter_v1alpha1 = exports.metastore_v1beta = exports.metastore_v1alpha = exports.metastore_v1 = exports.memcache_v1beta2 = exports.memcache_v1 = exports.manufacturers_v1 = exports.managedidentities_v1beta1 = exports.managedidentities_v1alpha1 = exports.managedidentities_v1 = exports.logging_v2 = exports.localservices_v1 = exports.lifesciences_v2beta = exports.licensing_v1 = exports.libraryagent_v1 = exports.language_v1beta2 = exports.language_v1beta1 = exports.language_v1 = exports.kmsinventory_v1 = exports.kgsearch_v1 = exports.jobs_v4 = exports.jobs_v3p1beta1 = exports.jobs_v3 = exports.jobs_v2 = exports.integrations_v1alpha = exports.indexing_v3 = exports.ids_v1 = exports.identitytoolkit_v3 = exports.identitytoolkit_v2 = exports.ideahub_v1beta = exports.ideahub_v1alpha = exports.iap_v1beta1 = exports.iap_v1 = exports.iamcredentials_v1 = exports.iam_v2beta = exports.iam_v2 = exports.iam_v1 = exports.homegraph_v1 = exports.healthcare_v1beta1 = exports.healthcare_v1 = exports.groupssettings_v1 = exports.groupsmigration_v1 = exports.gmailpostmastertools_v1beta1 = void 0; +exports.pubsub_v1beta2 = exports.pubsub_v1beta1a = exports.pubsub_v1 = exports.publicca_v1beta1 = exports.publicca_v1alpha1 = exports.prod_tt_sasportal_v1alpha1 = exports.privateca_v1beta1 = exports.privateca_v1 = exports.poly_v1 = exports.policytroubleshooter_v1beta = exports.policytroubleshooter_v1 = exports.policysimulator_v1beta1 = exports.policysimulator_v1beta = exports.policysimulator_v1alpha = exports.policysimulator_v1 = exports.policyanalyzer_v1beta1 = exports.policyanalyzer_v1 = exports.plus_v1 = exports.playintegrity_v1 = exports.playdeveloperreporting_v1beta1 = exports.playdeveloperreporting_v1alpha1 = exports.playcustomapp_v1 = exports.playablelocations_v3 = exports.people_v1 = exports.paymentsresellersubscription_v1 = exports.pagespeedonline_v5 = exports.oslogin_v1beta = exports.oslogin_v1alpha = exports.oslogin_v1 = exports.osconfig_v1beta = exports.osconfig_v1alpha = exports.osconfig_v1 = exports.orgpolicy_v2 = exports.ondemandscanning_v1beta1 = exports.ondemandscanning_v1 = exports.oauth2_v2 = exports.notebooks_v2 = exports.notebooks_v1 = exports.networkservices_v1beta1 = exports.networkservices_v1 = exports.networksecurity_v1beta1 = exports.networksecurity_v1 = exports.networkmanagement_v1beta1 = exports.networkmanagement_v1 = exports.networkconnectivity_v1alpha1 = exports.networkconnectivity_v1 = exports.mybusinessverifications_v1 = exports.mybusinessqanda_v1 = exports.mybusinessplaceactions_v1 = exports.mybusinessnotifications_v1 = void 0; +exports.slides_v1 = exports.siteVerification_v1 = exports.sheets_v4 = exports.serviceusage_v1beta1 = exports.serviceusage_v1 = exports.servicenetworking_v1beta = exports.servicenetworking_v1 = exports.servicemanagement_v1 = exports.servicedirectory_v1beta1 = exports.servicedirectory_v1 = exports.servicecontrol_v2 = exports.servicecontrol_v1 = exports.serviceconsumermanagement_v1beta1 = exports.serviceconsumermanagement_v1 = exports.securitycenter_v1p1beta1 = exports.securitycenter_v1p1alpha1 = exports.securitycenter_v1beta2 = exports.securitycenter_v1beta1 = exports.securitycenter_v1 = exports.secretmanager_v1beta1 = exports.secretmanager_v1 = exports.searchconsole_v1 = exports.searchads360_v0 = exports.script_v1 = exports.sasportal_v1alpha1 = exports.safebrowsing_v4 = exports.runtimeconfig_v1beta1 = exports.runtimeconfig_v1 = exports.run_v2 = exports.run_v1beta1 = exports.run_v1alpha1 = exports.run_v1 = exports.retail_v2beta = exports.retail_v2alpha = exports.retail_v2 = exports.resourcesettings_v1 = exports.reseller_v1 = exports.remotebuildexecution_v2 = exports.remotebuildexecution_v1alpha = exports.remotebuildexecution_v1 = exports.redis_v1beta1 = exports.redis_v1 = exports.recommender_v1beta1 = exports.recommender_v1 = exports.recommendationengine_v1beta1 = exports.recaptchaenterprise_v1 = exports.realtimebidding_v1alpha = exports.realtimebidding_v1 = exports.readerrevenuesubscriptionlinking_v1 = exports.pubsublite_v1 = void 0; +exports.vpcaccess_v1beta1 = exports.vpcaccess_v1 = exports.vmmigration_v1alpha1 = exports.vmmigration_v1 = exports.vision_v1p2beta1 = exports.vision_v1p1beta1 = exports.vision_v1 = exports.videointelligence_v1p3beta1 = exports.videointelligence_v1p2beta1 = exports.videointelligence_v1p1beta1 = exports.videointelligence_v1beta2 = exports.videointelligence_v1 = exports.versionhistory_v1 = exports.verifiedaccess_v2 = exports.verifiedaccess_v1 = exports.vectortile_v1 = exports.vault_v1 = exports.travelimpactmodel_v1 = exports.translate_v3beta1 = exports.translate_v3 = exports.translate_v2 = exports.transcoder_v1beta1 = exports.transcoder_v1 = exports.trafficdirector_v2 = exports.tpu_v2alpha1 = exports.tpu_v2 = exports.tpu_v1alpha1 = exports.tpu_v1 = exports.toolresults_v1beta3 = exports.texttospeech_v1beta1 = exports.texttospeech_v1 = exports.testing_v1 = exports.tasks_v1 = exports.tagmanager_v2 = exports.tagmanager_v1 = exports.sts_v1beta = exports.sts_v1 = exports.streetviewpublish_v1 = exports.storagetransfer_v1 = exports.storage_v1beta2 = exports.storage_v1 = exports.sqladmin_v1beta4 = exports.sqladmin_v1 = exports.sql_v1beta4 = exports.speech_v2beta1 = exports.speech_v1p1beta1 = exports.speech_v1 = exports.spanner_v1 = exports.sourcerepo_v1 = exports.smartdevicemanagement_v1 = void 0; +exports.youtubereporting_v1 = exports.youtubeAnalytics_v2 = exports.youtubeAnalytics_v1 = exports.youtube_v3 = exports.workstations_v1beta = exports.workloadmanager_v1 = exports.workflows_v1beta = exports.workflows_v1 = exports.workflowexecutions_v1beta = exports.workflowexecutions_v1 = exports.websecurityscanner_v1beta = exports.websecurityscanner_v1alpha = exports.websecurityscanner_v1 = exports.webrisk_v1 = exports.webmasters_v3 = exports.webfonts_v1 = void 0; +const googleapis_1 = __webpack_require__(3102); Object.defineProperty(exports, "GoogleApis", { enumerable: true, get: function () { return googleapis_1.GoogleApis; } }); const google = new googleapis_1.GoogleApis(); exports.google = google; +exports.Common = __webpack_require__(927); +exports.Auth = __webpack_require__(3668); var v1_1 = __webpack_require__(128); Object.defineProperty(exports, "abusiveexperiencereport_v1", { enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } }); -var v1_2 = __webpack_require__(326); +var v1_2 = __webpack_require__(7434); Object.defineProperty(exports, "acceleratedmobilepageurl_v1", { enumerable: true, get: function () { return v1_2.acceleratedmobilepageurl_v1; } }); var v1_3 = __webpack_require__(42); Object.defineProperty(exports, "accessapproval_v1", { enumerable: true, get: function () { return v1_3.accessapproval_v1; } }); -var v1beta1_1 = __webpack_require__(780); +var v1beta1_1 = __webpack_require__(7780); Object.defineProperty(exports, "accessapproval_v1beta1", { enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } }); -var v1_4 = __webpack_require__(227); +var v1_4 = __webpack_require__(8227); Object.defineProperty(exports, "accesscontextmanager_v1", { enumerable: true, get: function () { return v1_4.accesscontextmanager_v1; } }); -var v1beta_1 = __webpack_require__(551); +var v1beta_1 = __webpack_require__(5551); Object.defineProperty(exports, "accesscontextmanager_v1beta", { enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } }); +var v1_5 = __webpack_require__(3223); +Object.defineProperty(exports, "acmedns_v1", { enumerable: true, get: function () { return v1_5.acmedns_v1; } }); var v1_2_1 = __webpack_require__(914); Object.defineProperty(exports, "adexchangebuyer_v1_2", { enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } }); -var v1_3_1 = __webpack_require__(845); +var v1_3_1 = __webpack_require__(5845); Object.defineProperty(exports, "adexchangebuyer_v1_3", { enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } }); -var v1_4_1 = __webpack_require__(433); +var v1_4_1 = __webpack_require__(8433); Object.defineProperty(exports, "adexchangebuyer_v1_4", { enumerable: true, get: function () { return v1_4_1.adexchangebuyer_v1_4; } }); -var v2beta1_1 = __webpack_require__(328); +var v2beta1_1 = __webpack_require__(7328); Object.defineProperty(exports, "adexchangebuyer2_v2beta1", { enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } }); -var v1_5 = __webpack_require__(548); -Object.defineProperty(exports, "adexperiencereport_v1", { enumerable: true, get: function () { return v1_5.adexperiencereport_v1; } }); -var datatransfer_v1_1 = __webpack_require__(84); +var v1_6 = __webpack_require__(4548); +Object.defineProperty(exports, "adexperiencereport_v1", { enumerable: true, get: function () { return v1_6.adexperiencereport_v1; } }); +var datatransfer_v1_1 = __webpack_require__(7084); Object.defineProperty(exports, "admin_datatransfer_v1", { enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } }); -var directory_v1_1 = __webpack_require__(423); +var directory_v1_1 = __webpack_require__(1423); Object.defineProperty(exports, "admin_directory_v1", { enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } }); var reports_v1_1 = __webpack_require__(748); Object.defineProperty(exports, "admin_reports_v1", { enumerable: true, get: function () { return reports_v1_1.admin_reports_v1; } }); -var v1_6 = __webpack_require__(549); -Object.defineProperty(exports, "admob_v1", { enumerable: true, get: function () { return v1_6.admob_v1; } }); -var v1_4_2 = __webpack_require__(206); +var v1_7 = __webpack_require__(8549); +Object.defineProperty(exports, "admob_v1", { enumerable: true, get: function () { return v1_7.admob_v1; } }); +var v1beta_2 = __webpack_require__(9892); +Object.defineProperty(exports, "admob_v1beta", { enumerable: true, get: function () { return v1beta_2.admob_v1beta; } }); +var v1_4_2 = __webpack_require__(8206); Object.defineProperty(exports, "adsense_v1_4", { enumerable: true, get: function () { return v1_4_2.adsense_v1_4; } }); +var v2_1 = __webpack_require__(9928); +Object.defineProperty(exports, "adsense_v2", { enumerable: true, get: function () { return v2_1.adsense_v2; } }); var v4_1_1 = __webpack_require__(77); Object.defineProperty(exports, "adsensehost_v4_1", { enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } }); +var v1_8 = __webpack_require__(6938); +Object.defineProperty(exports, "advisorynotifications_v1", { enumerable: true, get: function () { return v1_8.advisorynotifications_v1; } }); var v1beta1_2 = __webpack_require__(359); Object.defineProperty(exports, "alertcenter_v1beta1", { enumerable: true, get: function () { return v1beta1_2.alertcenter_v1beta1; } }); -var v3_1 = __webpack_require__(5); +var v3_1 = __webpack_require__(2278); Object.defineProperty(exports, "analytics_v3", { enumerable: true, get: function () { return v3_1.analytics_v3; } }); -var v4_1 = __webpack_require__(554); +var v1alpha_1 = __webpack_require__(1222); +Object.defineProperty(exports, "analyticsadmin_v1alpha", { enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } }); +var v1beta_3 = __webpack_require__(5912); +Object.defineProperty(exports, "analyticsadmin_v1beta", { enumerable: true, get: function () { return v1beta_3.analyticsadmin_v1beta; } }); +var v1alpha_2 = __webpack_require__(8894); +Object.defineProperty(exports, "analyticsdata_v1alpha", { enumerable: true, get: function () { return v1alpha_2.analyticsdata_v1alpha; } }); +var v1beta_4 = __webpack_require__(1372); +Object.defineProperty(exports, "analyticsdata_v1beta", { enumerable: true, get: function () { return v1beta_4.analyticsdata_v1beta; } }); +var v1_9 = __webpack_require__(5358); +Object.defineProperty(exports, "analyticshub_v1", { enumerable: true, get: function () { return v1_9.analyticshub_v1; } }); +var v1beta1_3 = __webpack_require__(9862); +Object.defineProperty(exports, "analyticshub_v1beta1", { enumerable: true, get: function () { return v1beta1_3.analyticshub_v1beta1; } }); +var v4_1 = __webpack_require__(2554); Object.defineProperty(exports, "analyticsreporting_v4", { enumerable: true, get: function () { return v4_1.analyticsreporting_v4; } }); -var v1_7 = __webpack_require__(721); -Object.defineProperty(exports, "androiddeviceprovisioning_v1", { enumerable: true, get: function () { return v1_7.androiddeviceprovisioning_v1; } }); -var v1_8 = __webpack_require__(75); -Object.defineProperty(exports, "androidenterprise_v1", { enumerable: true, get: function () { return v1_8.androidenterprise_v1; } }); -var v1_9 = __webpack_require__(901); -Object.defineProperty(exports, "androidmanagement_v1", { enumerable: true, get: function () { return v1_9.androidmanagement_v1; } }); -var v1_1_1 = __webpack_require__(122); +var v1_10 = __webpack_require__(418); +Object.defineProperty(exports, "androiddeviceprovisioning_v1", { enumerable: true, get: function () { return v1_10.androiddeviceprovisioning_v1; } }); +var v1_11 = __webpack_require__(5075); +Object.defineProperty(exports, "androidenterprise_v1", { enumerable: true, get: function () { return v1_11.androidenterprise_v1; } }); +var v1_12 = __webpack_require__(1901); +Object.defineProperty(exports, "androidmanagement_v1", { enumerable: true, get: function () { return v1_12.androidmanagement_v1; } }); +var v1_1_1 = __webpack_require__(7122); Object.defineProperty(exports, "androidpublisher_v1_1", { enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } }); -var v1_10 = __webpack_require__(286); -Object.defineProperty(exports, "androidpublisher_v1", { enumerable: true, get: function () { return v1_10.androidpublisher_v1; } }); -var v2_1 = __webpack_require__(945); -Object.defineProperty(exports, "androidpublisher_v2", { enumerable: true, get: function () { return v2_1.androidpublisher_v2; } }); -var v3_2 = __webpack_require__(827); +var v1_13 = __webpack_require__(4286); +Object.defineProperty(exports, "androidpublisher_v1", { enumerable: true, get: function () { return v1_13.androidpublisher_v1; } }); +var v2_2 = __webpack_require__(1813); +Object.defineProperty(exports, "androidpublisher_v2", { enumerable: true, get: function () { return v2_2.androidpublisher_v2; } }); +var v3_2 = __webpack_require__(5285); Object.defineProperty(exports, "androidpublisher_v3", { enumerable: true, get: function () { return v3_2.androidpublisher_v3; } }); -var v1_11 = __webpack_require__(840); -Object.defineProperty(exports, "appengine_v1", { enumerable: true, get: function () { return v1_11.appengine_v1; } }); -var v1alpha_1 = __webpack_require__(354); -Object.defineProperty(exports, "appengine_v1alpha", { enumerable: true, get: function () { return v1alpha_1.appengine_v1alpha; } }); -var v1beta_2 = __webpack_require__(363); -Object.defineProperty(exports, "appengine_v1beta", { enumerable: true, get: function () { return v1beta_2.appengine_v1beta; } }); -var v1_12 = __webpack_require__(556); -Object.defineProperty(exports, "appsactivity_v1", { enumerable: true, get: function () { return v1_12.appsactivity_v1; } }); -var v2_2 = __webpack_require__(895); -Object.defineProperty(exports, "bigquery_v2", { enumerable: true, get: function () { return v2_2.bigquery_v2; } }); -var v1beta1_3 = __webpack_require__(529); -Object.defineProperty(exports, "bigqueryconnection_v1beta1", { enumerable: true, get: function () { return v1beta1_3.bigqueryconnection_v1beta1; } }); -var v1_13 = __webpack_require__(586); -Object.defineProperty(exports, "bigquerydatatransfer_v1", { enumerable: true, get: function () { return v1_13.bigquerydatatransfer_v1; } }); -var v1_14 = __webpack_require__(382); -Object.defineProperty(exports, "bigqueryreservation_v1", { enumerable: true, get: function () { return v1_14.bigqueryreservation_v1; } }); -var v1alpha2_1 = __webpack_require__(307); +var v1_14 = __webpack_require__(8000); +Object.defineProperty(exports, "apigateway_v1", { enumerable: true, get: function () { return v1_14.apigateway_v1; } }); +var v1beta_5 = __webpack_require__(4822); +Object.defineProperty(exports, "apigateway_v1beta", { enumerable: true, get: function () { return v1beta_5.apigateway_v1beta; } }); +var v1_15 = __webpack_require__(5017); +Object.defineProperty(exports, "apigeeregistry_v1", { enumerable: true, get: function () { return v1_15.apigeeregistry_v1; } }); +var v2_3 = __webpack_require__(3355); +Object.defineProperty(exports, "apikeys_v2", { enumerable: true, get: function () { return v2_3.apikeys_v2; } }); +var v1_16 = __webpack_require__(5840); +Object.defineProperty(exports, "appengine_v1", { enumerable: true, get: function () { return v1_16.appengine_v1; } }); +var v1alpha_3 = __webpack_require__(765); +Object.defineProperty(exports, "appengine_v1alpha", { enumerable: true, get: function () { return v1alpha_3.appengine_v1alpha; } }); +var v1beta_6 = __webpack_require__(8867); +Object.defineProperty(exports, "appengine_v1beta", { enumerable: true, get: function () { return v1beta_6.appengine_v1beta; } }); +var v1_17 = __webpack_require__(9556); +Object.defineProperty(exports, "appsactivity_v1", { enumerable: true, get: function () { return v1_17.appsactivity_v1; } }); +var v1alpha1_1 = __webpack_require__(7999); +Object.defineProperty(exports, "area120tables_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.area120tables_v1alpha1; } }); +var v1_18 = __webpack_require__(2015); +Object.defineProperty(exports, "artifactregistry_v1", { enumerable: true, get: function () { return v1_18.artifactregistry_v1; } }); +var v1beta1_4 = __webpack_require__(9496); +Object.defineProperty(exports, "artifactregistry_v1beta1", { enumerable: true, get: function () { return v1beta1_4.artifactregistry_v1beta1; } }); +var v1beta2_1 = __webpack_require__(5946); +Object.defineProperty(exports, "artifactregistry_v1beta2", { enumerable: true, get: function () { return v1beta2_1.artifactregistry_v1beta2; } }); +var v1_19 = __webpack_require__(140); +Object.defineProperty(exports, "assuredworkloads_v1", { enumerable: true, get: function () { return v1_19.assuredworkloads_v1; } }); +var v1beta1_5 = __webpack_require__(3752); +Object.defineProperty(exports, "assuredworkloads_v1beta1", { enumerable: true, get: function () { return v1beta1_5.assuredworkloads_v1beta1; } }); +var v1_20 = __webpack_require__(8775); +Object.defineProperty(exports, "authorizedbuyersmarketplace_v1", { enumerable: true, get: function () { return v1_20.authorizedbuyersmarketplace_v1; } }); +var v1_21 = __webpack_require__(5140); +Object.defineProperty(exports, "baremetalsolution_v1", { enumerable: true, get: function () { return v1_21.baremetalsolution_v1; } }); +var v1alpha1_2 = __webpack_require__(3812); +Object.defineProperty(exports, "baremetalsolution_v1alpha1", { enumerable: true, get: function () { return v1alpha1_2.baremetalsolution_v1alpha1; } }); +var v2_4 = __webpack_require__(843); +Object.defineProperty(exports, "baremetalsolution_v2", { enumerable: true, get: function () { return v2_4.baremetalsolution_v2; } }); +var v1_22 = __webpack_require__(5892); +Object.defineProperty(exports, "batch_v1", { enumerable: true, get: function () { return v1_22.batch_v1; } }); +var v1_23 = __webpack_require__(2408); +Object.defineProperty(exports, "beyondcorp_v1", { enumerable: true, get: function () { return v1_23.beyondcorp_v1; } }); +var v1alpha_4 = __webpack_require__(5178); +Object.defineProperty(exports, "beyondcorp_v1alpha", { enumerable: true, get: function () { return v1alpha_4.beyondcorp_v1alpha; } }); +var v2_5 = __webpack_require__(7895); +Object.defineProperty(exports, "bigquery_v2", { enumerable: true, get: function () { return v2_5.bigquery_v2; } }); +var v1beta1_6 = __webpack_require__(6529); +Object.defineProperty(exports, "bigqueryconnection_v1beta1", { enumerable: true, get: function () { return v1beta1_6.bigqueryconnection_v1beta1; } }); +var v1_24 = __webpack_require__(5586); +Object.defineProperty(exports, "bigquerydatatransfer_v1", { enumerable: true, get: function () { return v1_24.bigquerydatatransfer_v1; } }); +var v1_25 = __webpack_require__(5794); +Object.defineProperty(exports, "bigqueryreservation_v1", { enumerable: true, get: function () { return v1_25.bigqueryreservation_v1; } }); +var v1alpha2_1 = __webpack_require__(6307); Object.defineProperty(exports, "bigqueryreservation_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } }); -var v1beta1_4 = __webpack_require__(756); -Object.defineProperty(exports, "bigqueryreservation_v1beta1", { enumerable: true, get: function () { return v1beta1_4.bigqueryreservation_v1beta1; } }); -var v1_15 = __webpack_require__(103); -Object.defineProperty(exports, "bigtableadmin_v1", { enumerable: true, get: function () { return v1_15.bigtableadmin_v1; } }); -var v2_3 = __webpack_require__(226); -Object.defineProperty(exports, "bigtableadmin_v2", { enumerable: true, get: function () { return v2_3.bigtableadmin_v2; } }); -var v1beta1_5 = __webpack_require__(136); -Object.defineProperty(exports, "billingbudgets_v1beta1", { enumerable: true, get: function () { return v1beta1_5.billingbudgets_v1beta1; } }); -var v1_16 = __webpack_require__(3); -Object.defineProperty(exports, "binaryauthorization_v1", { enumerable: true, get: function () { return v1_16.binaryauthorization_v1; } }); -var v1beta1_6 = __webpack_require__(542); -Object.defineProperty(exports, "binaryauthorization_v1beta1", { enumerable: true, get: function () { return v1beta1_6.binaryauthorization_v1beta1; } }); -var v2_4 = __webpack_require__(52); -Object.defineProperty(exports, "blogger_v2", { enumerable: true, get: function () { return v2_4.blogger_v2; } }); -var v3_3 = __webpack_require__(303); +var v1beta1_7 = __webpack_require__(6237); +Object.defineProperty(exports, "bigqueryreservation_v1beta1", { enumerable: true, get: function () { return v1beta1_7.bigqueryreservation_v1beta1; } }); +var v1_26 = __webpack_require__(3103); +Object.defineProperty(exports, "bigtableadmin_v1", { enumerable: true, get: function () { return v1_26.bigtableadmin_v1; } }); +var v2_6 = __webpack_require__(7827); +Object.defineProperty(exports, "bigtableadmin_v2", { enumerable: true, get: function () { return v2_6.bigtableadmin_v2; } }); +var v1_27 = __webpack_require__(8402); +Object.defineProperty(exports, "billingbudgets_v1", { enumerable: true, get: function () { return v1_27.billingbudgets_v1; } }); +var v1beta1_8 = __webpack_require__(4136); +Object.defineProperty(exports, "billingbudgets_v1beta1", { enumerable: true, get: function () { return v1beta1_8.billingbudgets_v1beta1; } }); +var v1_28 = __webpack_require__(9966); +Object.defineProperty(exports, "binaryauthorization_v1", { enumerable: true, get: function () { return v1_28.binaryauthorization_v1; } }); +var v1beta1_9 = __webpack_require__(9542); +Object.defineProperty(exports, "binaryauthorization_v1beta1", { enumerable: true, get: function () { return v1beta1_9.binaryauthorization_v1beta1; } }); +var v2_7 = __webpack_require__(6551); +Object.defineProperty(exports, "blogger_v2", { enumerable: true, get: function () { return v2_7.blogger_v2; } }); +var v3_3 = __webpack_require__(5303); Object.defineProperty(exports, "blogger_v3", { enumerable: true, get: function () { return v3_3.blogger_v3; } }); -var v1_17 = __webpack_require__(613); -Object.defineProperty(exports, "books_v1", { enumerable: true, get: function () { return v1_17.books_v1; } }); -var v3_4 = __webpack_require__(100); +var v1_29 = __webpack_require__(6613); +Object.defineProperty(exports, "books_v1", { enumerable: true, get: function () { return v1_29.books_v1; } }); +var v1_30 = __webpack_require__(5766); +Object.defineProperty(exports, "businessprofileperformance_v1", { enumerable: true, get: function () { return v1_30.businessprofileperformance_v1; } }); +var v3_4 = __webpack_require__(1354); Object.defineProperty(exports, "calendar_v3", { enumerable: true, get: function () { return v3_4.calendar_v3; } }); -var v1_18 = __webpack_require__(939); -Object.defineProperty(exports, "chat_v1", { enumerable: true, get: function () { return v1_18.chat_v1; } }); -var v2_5 = __webpack_require__(369); -Object.defineProperty(exports, "civicinfo_v2", { enumerable: true, get: function () { return v2_5.civicinfo_v2; } }); -var v1_19 = __webpack_require__(217); -Object.defineProperty(exports, "classroom_v1", { enumerable: true, get: function () { return v1_19.classroom_v1; } }); -var v1_20 = __webpack_require__(10); -Object.defineProperty(exports, "cloudasset_v1", { enumerable: true, get: function () { return v1_20.cloudasset_v1; } }); -var v1beta1_7 = __webpack_require__(599); -Object.defineProperty(exports, "cloudasset_v1beta1", { enumerable: true, get: function () { return v1beta1_7.cloudasset_v1beta1; } }); -var v1p1beta1_1 = __webpack_require__(253); +var v1_31 = __webpack_require__(4952); +Object.defineProperty(exports, "certificatemanager_v1", { enumerable: true, get: function () { return v1_31.certificatemanager_v1; } }); +var v1_32 = __webpack_require__(5939); +Object.defineProperty(exports, "chat_v1", { enumerable: true, get: function () { return v1_32.chat_v1; } }); +var v1_33 = __webpack_require__(4748); +Object.defineProperty(exports, "chromemanagement_v1", { enumerable: true, get: function () { return v1_33.chromemanagement_v1; } }); +var v1_34 = __webpack_require__(8486); +Object.defineProperty(exports, "chromepolicy_v1", { enumerable: true, get: function () { return v1_34.chromepolicy_v1; } }); +var v1_35 = __webpack_require__(7127); +Object.defineProperty(exports, "chromeuxreport_v1", { enumerable: true, get: function () { return v1_35.chromeuxreport_v1; } }); +var v2_8 = __webpack_require__(1369); +Object.defineProperty(exports, "civicinfo_v2", { enumerable: true, get: function () { return v2_8.civicinfo_v2; } }); +var v1_36 = __webpack_require__(6217); +Object.defineProperty(exports, "classroom_v1", { enumerable: true, get: function () { return v1_36.classroom_v1; } }); +var v1_37 = __webpack_require__(5010); +Object.defineProperty(exports, "cloudasset_v1", { enumerable: true, get: function () { return v1_37.cloudasset_v1; } }); +var v1beta1_10 = __webpack_require__(4599); +Object.defineProperty(exports, "cloudasset_v1beta1", { enumerable: true, get: function () { return v1beta1_10.cloudasset_v1beta1; } }); +var v1p1beta1_1 = __webpack_require__(2141); Object.defineProperty(exports, "cloudasset_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } }); -var v1p4beta1_1 = __webpack_require__(320); +var v1p4beta1_1 = __webpack_require__(1320); Object.defineProperty(exports, "cloudasset_v1p4beta1", { enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } }); -var v1_21 = __webpack_require__(534); -Object.defineProperty(exports, "cloudbilling_v1", { enumerable: true, get: function () { return v1_21.cloudbilling_v1; } }); -var v1_22 = __webpack_require__(201); -Object.defineProperty(exports, "cloudbuild_v1", { enumerable: true, get: function () { return v1_22.cloudbuild_v1; } }); -var v1alpha1_1 = __webpack_require__(248); -Object.defineProperty(exports, "cloudbuild_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.cloudbuild_v1alpha1; } }); -var v1alpha2_2 = __webpack_require__(917); +var v1p5beta1_1 = __webpack_require__(2071); +Object.defineProperty(exports, "cloudasset_v1p5beta1", { enumerable: true, get: function () { return v1p5beta1_1.cloudasset_v1p5beta1; } }); +var v1p7beta1_1 = __webpack_require__(4720); +Object.defineProperty(exports, "cloudasset_v1p7beta1", { enumerable: true, get: function () { return v1p7beta1_1.cloudasset_v1p7beta1; } }); +var v1_38 = __webpack_require__(5534); +Object.defineProperty(exports, "cloudbilling_v1", { enumerable: true, get: function () { return v1_38.cloudbilling_v1; } }); +var v1beta_7 = __webpack_require__(5515); +Object.defineProperty(exports, "cloudbilling_v1beta", { enumerable: true, get: function () { return v1beta_7.cloudbilling_v1beta; } }); +var v1_39 = __webpack_require__(4201); +Object.defineProperty(exports, "cloudbuild_v1", { enumerable: true, get: function () { return v1_39.cloudbuild_v1; } }); +var v1alpha1_3 = __webpack_require__(326); +Object.defineProperty(exports, "cloudbuild_v1alpha1", { enumerable: true, get: function () { return v1alpha1_3.cloudbuild_v1alpha1; } }); +var v1alpha2_2 = __webpack_require__(6149); Object.defineProperty(exports, "cloudbuild_v1alpha2", { enumerable: true, get: function () { return v1alpha2_2.cloudbuild_v1alpha2; } }); -var v2_6 = __webpack_require__(409); -Object.defineProperty(exports, "clouddebugger_v2", { enumerable: true, get: function () { return v2_6.clouddebugger_v2; } }); -var v1beta1_8 = __webpack_require__(313); -Object.defineProperty(exports, "clouderrorreporting_v1beta1", { enumerable: true, get: function () { return v1beta1_8.clouderrorreporting_v1beta1; } }); -var v1_23 = __webpack_require__(14); -Object.defineProperty(exports, "cloudfunctions_v1", { enumerable: true, get: function () { return v1_23.cloudfunctions_v1; } }); -var v1beta2_1 = __webpack_require__(273); -Object.defineProperty(exports, "cloudfunctions_v1beta2", { enumerable: true, get: function () { return v1beta2_1.cloudfunctions_v1beta2; } }); -var v1_24 = __webpack_require__(619); -Object.defineProperty(exports, "cloudidentity_v1", { enumerable: true, get: function () { return v1_24.cloudidentity_v1; } }); -var v1beta1_9 = __webpack_require__(411); -Object.defineProperty(exports, "cloudidentity_v1beta1", { enumerable: true, get: function () { return v1beta1_9.cloudidentity_v1beta1; } }); -var v1_25 = __webpack_require__(210); -Object.defineProperty(exports, "cloudiot_v1", { enumerable: true, get: function () { return v1_25.cloudiot_v1; } }); -var v1_26 = __webpack_require__(973); -Object.defineProperty(exports, "cloudkms_v1", { enumerable: true, get: function () { return v1_26.cloudkms_v1; } }); -var v2_7 = __webpack_require__(573); -Object.defineProperty(exports, "cloudprofiler_v2", { enumerable: true, get: function () { return v2_7.cloudprofiler_v2; } }); -var v1_27 = __webpack_require__(509); -Object.defineProperty(exports, "cloudresourcemanager_v1", { enumerable: true, get: function () { return v1_27.cloudresourcemanager_v1; } }); -var v1beta1_10 = __webpack_require__(530); -Object.defineProperty(exports, "cloudresourcemanager_v1beta1", { enumerable: true, get: function () { return v1beta1_10.cloudresourcemanager_v1beta1; } }); -var v2_8 = __webpack_require__(962); -Object.defineProperty(exports, "cloudresourcemanager_v2", { enumerable: true, get: function () { return v2_8.cloudresourcemanager_v2; } }); -var v2beta1_2 = __webpack_require__(656); +var v1beta1_11 = __webpack_require__(18); +Object.defineProperty(exports, "cloudbuild_v1beta1", { enumerable: true, get: function () { return v1beta1_11.cloudbuild_v1beta1; } }); +var v1_40 = __webpack_require__(7055); +Object.defineProperty(exports, "cloudchannel_v1", { enumerable: true, get: function () { return v1_40.cloudchannel_v1; } }); +var v2_9 = __webpack_require__(4409); +Object.defineProperty(exports, "clouddebugger_v2", { enumerable: true, get: function () { return v2_9.clouddebugger_v2; } }); +var v1_41 = __webpack_require__(5970); +Object.defineProperty(exports, "clouddeploy_v1", { enumerable: true, get: function () { return v1_41.clouddeploy_v1; } }); +var v1beta1_12 = __webpack_require__(3313); +Object.defineProperty(exports, "clouderrorreporting_v1beta1", { enumerable: true, get: function () { return v1beta1_12.clouderrorreporting_v1beta1; } }); +var v1_42 = __webpack_require__(4079); +Object.defineProperty(exports, "cloudfunctions_v1", { enumerable: true, get: function () { return v1_42.cloudfunctions_v1; } }); +var v1beta2_2 = __webpack_require__(5682); +Object.defineProperty(exports, "cloudfunctions_v1beta2", { enumerable: true, get: function () { return v1beta2_2.cloudfunctions_v1beta2; } }); +var v2_10 = __webpack_require__(6207); +Object.defineProperty(exports, "cloudfunctions_v2", { enumerable: true, get: function () { return v2_10.cloudfunctions_v2; } }); +var v2alpha_1 = __webpack_require__(1389); +Object.defineProperty(exports, "cloudfunctions_v2alpha", { enumerable: true, get: function () { return v2alpha_1.cloudfunctions_v2alpha; } }); +var v2beta_1 = __webpack_require__(1094); +Object.defineProperty(exports, "cloudfunctions_v2beta", { enumerable: true, get: function () { return v2beta_1.cloudfunctions_v2beta; } }); +var v1_43 = __webpack_require__(7298); +Object.defineProperty(exports, "cloudidentity_v1", { enumerable: true, get: function () { return v1_43.cloudidentity_v1; } }); +var v1beta1_13 = __webpack_require__(7411); +Object.defineProperty(exports, "cloudidentity_v1beta1", { enumerable: true, get: function () { return v1beta1_13.cloudidentity_v1beta1; } }); +var v1_44 = __webpack_require__(2206); +Object.defineProperty(exports, "cloudiot_v1", { enumerable: true, get: function () { return v1_44.cloudiot_v1; } }); +var v1_45 = __webpack_require__(4973); +Object.defineProperty(exports, "cloudkms_v1", { enumerable: true, get: function () { return v1_45.cloudkms_v1; } }); +var v2_11 = __webpack_require__(2318); +Object.defineProperty(exports, "cloudprofiler_v2", { enumerable: true, get: function () { return v2_11.cloudprofiler_v2; } }); +var v1_46 = __webpack_require__(509); +Object.defineProperty(exports, "cloudresourcemanager_v1", { enumerable: true, get: function () { return v1_46.cloudresourcemanager_v1; } }); +var v1beta1_14 = __webpack_require__(3530); +Object.defineProperty(exports, "cloudresourcemanager_v1beta1", { enumerable: true, get: function () { return v1beta1_14.cloudresourcemanager_v1beta1; } }); +var v2_12 = __webpack_require__(9423); +Object.defineProperty(exports, "cloudresourcemanager_v2", { enumerable: true, get: function () { return v2_12.cloudresourcemanager_v2; } }); +var v2beta1_2 = __webpack_require__(9668); Object.defineProperty(exports, "cloudresourcemanager_v2beta1", { enumerable: true, get: function () { return v2beta1_2.cloudresourcemanager_v2beta1; } }); -var v1_28 = __webpack_require__(570); -Object.defineProperty(exports, "cloudscheduler_v1", { enumerable: true, get: function () { return v1_28.cloudscheduler_v1; } }); -var v1beta1_11 = __webpack_require__(124); -Object.defineProperty(exports, "cloudscheduler_v1beta1", { enumerable: true, get: function () { return v1beta1_11.cloudscheduler_v1beta1; } }); -var v1_29 = __webpack_require__(620); -Object.defineProperty(exports, "cloudsearch_v1", { enumerable: true, get: function () { return v1_29.cloudsearch_v1; } }); -var v1_30 = __webpack_require__(309); -Object.defineProperty(exports, "cloudshell_v1", { enumerable: true, get: function () { return v1_30.cloudshell_v1; } }); -var v1alpha1_2 = __webpack_require__(424); -Object.defineProperty(exports, "cloudshell_v1alpha1", { enumerable: true, get: function () { return v1alpha1_2.cloudshell_v1alpha1; } }); -var v2_9 = __webpack_require__(731); -Object.defineProperty(exports, "cloudtasks_v2", { enumerable: true, get: function () { return v2_9.cloudtasks_v2; } }); -var v2beta2_1 = __webpack_require__(802); +var v3_5 = __webpack_require__(8987); +Object.defineProperty(exports, "cloudresourcemanager_v3", { enumerable: true, get: function () { return v3_5.cloudresourcemanager_v3; } }); +var v1_47 = __webpack_require__(8207); +Object.defineProperty(exports, "cloudscheduler_v1", { enumerable: true, get: function () { return v1_47.cloudscheduler_v1; } }); +var v1beta1_15 = __webpack_require__(7124); +Object.defineProperty(exports, "cloudscheduler_v1beta1", { enumerable: true, get: function () { return v1beta1_15.cloudscheduler_v1beta1; } }); +var v1_48 = __webpack_require__(3386); +Object.defineProperty(exports, "cloudsearch_v1", { enumerable: true, get: function () { return v1_48.cloudsearch_v1; } }); +var v1_49 = __webpack_require__(5287); +Object.defineProperty(exports, "cloudshell_v1", { enumerable: true, get: function () { return v1_49.cloudshell_v1; } }); +var v1alpha1_4 = __webpack_require__(4424); +Object.defineProperty(exports, "cloudshell_v1alpha1", { enumerable: true, get: function () { return v1alpha1_4.cloudshell_v1alpha1; } }); +var v2beta_2 = __webpack_require__(7922); +Object.defineProperty(exports, "cloudsupport_v2beta", { enumerable: true, get: function () { return v2beta_2.cloudsupport_v2beta; } }); +var v2_13 = __webpack_require__(6731); +Object.defineProperty(exports, "cloudtasks_v2", { enumerable: true, get: function () { return v2_13.cloudtasks_v2; } }); +var v2beta2_1 = __webpack_require__(6802); Object.defineProperty(exports, "cloudtasks_v2beta2", { enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } }); -var v2beta3_1 = __webpack_require__(187); +var v2beta3_1 = __webpack_require__(5052); Object.defineProperty(exports, "cloudtasks_v2beta3", { enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } }); -var v1_31 = __webpack_require__(101); -Object.defineProperty(exports, "cloudtrace_v1", { enumerable: true, get: function () { return v1_31.cloudtrace_v1; } }); -var v2_10 = __webpack_require__(752); -Object.defineProperty(exports, "cloudtrace_v2", { enumerable: true, get: function () { return v2_10.cloudtrace_v2; } }); -var v2beta1_3 = __webpack_require__(603); +var v1_50 = __webpack_require__(6845); +Object.defineProperty(exports, "cloudtrace_v1", { enumerable: true, get: function () { return v1_50.cloudtrace_v1; } }); +var v2_14 = __webpack_require__(790); +Object.defineProperty(exports, "cloudtrace_v2", { enumerable: true, get: function () { return v2_14.cloudtrace_v2; } }); +var v2beta1_3 = __webpack_require__(9131); Object.defineProperty(exports, "cloudtrace_v2beta1", { enumerable: true, get: function () { return v2beta1_3.cloudtrace_v2beta1; } }); -var v1_32 = __webpack_require__(764); -Object.defineProperty(exports, "composer_v1", { enumerable: true, get: function () { return v1_32.composer_v1; } }); -var v1beta1_12 = __webpack_require__(230); -Object.defineProperty(exports, "composer_v1beta1", { enumerable: true, get: function () { return v1beta1_12.composer_v1beta1; } }); -var alpha_1 = __webpack_require__(951); +var v1_51 = __webpack_require__(1297); +Object.defineProperty(exports, "composer_v1", { enumerable: true, get: function () { return v1_51.composer_v1; } }); +var v1beta1_16 = __webpack_require__(1230); +Object.defineProperty(exports, "composer_v1beta1", { enumerable: true, get: function () { return v1beta1_16.composer_v1beta1; } }); +var alpha_1 = __webpack_require__(8951); Object.defineProperty(exports, "compute_alpha", { enumerable: true, get: function () { return alpha_1.compute_alpha; } }); -var beta_1 = __webpack_require__(233); +var beta_1 = __webpack_require__(4233); Object.defineProperty(exports, "compute_beta", { enumerable: true, get: function () { return beta_1.compute_beta; } }); -var v1_33 = __webpack_require__(635); -Object.defineProperty(exports, "compute_v1", { enumerable: true, get: function () { return v1_33.compute_v1; } }); -var v1_34 = __webpack_require__(720); -Object.defineProperty(exports, "container_v1", { enumerable: true, get: function () { return v1_34.container_v1; } }); -var v1beta1_13 = __webpack_require__(940); -Object.defineProperty(exports, "container_v1beta1", { enumerable: true, get: function () { return v1beta1_13.container_v1beta1; } }); -var v1alpha1_3 = __webpack_require__(763); -Object.defineProperty(exports, "containeranalysis_v1alpha1", { enumerable: true, get: function () { return v1alpha1_3.containeranalysis_v1alpha1; } }); -var v1beta1_14 = __webpack_require__(644); -Object.defineProperty(exports, "containeranalysis_v1beta1", { enumerable: true, get: function () { return v1beta1_14.containeranalysis_v1beta1; } }); +var v1_52 = __webpack_require__(1635); +Object.defineProperty(exports, "compute_v1", { enumerable: true, get: function () { return v1_52.compute_v1; } }); +var v1_53 = __webpack_require__(8362); +Object.defineProperty(exports, "connectors_v1", { enumerable: true, get: function () { return v1_53.connectors_v1; } }); +var v2_15 = __webpack_require__(7042); +Object.defineProperty(exports, "connectors_v2", { enumerable: true, get: function () { return v2_15.connectors_v2; } }); +var v1alpha1_5 = __webpack_require__(8744); +Object.defineProperty(exports, "contactcenteraiplatform_v1alpha1", { enumerable: true, get: function () { return v1alpha1_5.contactcenteraiplatform_v1alpha1; } }); +var v1_54 = __webpack_require__(2044); +Object.defineProperty(exports, "contactcenterinsights_v1", { enumerable: true, get: function () { return v1_54.contactcenterinsights_v1; } }); +var v1_55 = __webpack_require__(8840); +Object.defineProperty(exports, "container_v1", { enumerable: true, get: function () { return v1_55.container_v1; } }); +var v1beta1_17 = __webpack_require__(6389); +Object.defineProperty(exports, "container_v1beta1", { enumerable: true, get: function () { return v1beta1_17.container_v1beta1; } }); +var v1_56 = __webpack_require__(8711); +Object.defineProperty(exports, "containeranalysis_v1", { enumerable: true, get: function () { return v1_56.containeranalysis_v1; } }); +var v1alpha1_6 = __webpack_require__(2536); +Object.defineProperty(exports, "containeranalysis_v1alpha1", { enumerable: true, get: function () { return v1alpha1_6.containeranalysis_v1alpha1; } }); +var v1beta1_18 = __webpack_require__(644); +Object.defineProperty(exports, "containeranalysis_v1beta1", { enumerable: true, get: function () { return v1beta1_18.containeranalysis_v1beta1; } }); var v2_1_1 = __webpack_require__(839); Object.defineProperty(exports, "content_v2_1", { enumerable: true, get: function () { return v2_1_1.content_v2_1; } }); -var v2_11 = __webpack_require__(178); -Object.defineProperty(exports, "content_v2", { enumerable: true, get: function () { return v2_11.content_v2; } }); -var v1_35 = __webpack_require__(308); -Object.defineProperty(exports, "customsearch_v1", { enumerable: true, get: function () { return v1_35.customsearch_v1; } }); -var v1beta1_15 = __webpack_require__(350); -Object.defineProperty(exports, "datacatalog_v1beta1", { enumerable: true, get: function () { return v1beta1_15.datacatalog_v1beta1; } }); -var v1b3_1 = __webpack_require__(236); +var v2_16 = __webpack_require__(1446); +Object.defineProperty(exports, "content_v2", { enumerable: true, get: function () { return v2_16.content_v2; } }); +var v1_57 = __webpack_require__(2247); +Object.defineProperty(exports, "contentwarehouse_v1", { enumerable: true, get: function () { return v1_57.contentwarehouse_v1; } }); +var v1_58 = __webpack_require__(6747); +Object.defineProperty(exports, "customsearch_v1", { enumerable: true, get: function () { return v1_58.customsearch_v1; } }); +var v1_59 = __webpack_require__(542); +Object.defineProperty(exports, "datacatalog_v1", { enumerable: true, get: function () { return v1_59.datacatalog_v1; } }); +var v1beta1_19 = __webpack_require__(5654); +Object.defineProperty(exports, "datacatalog_v1beta1", { enumerable: true, get: function () { return v1beta1_19.datacatalog_v1beta1; } }); +var v1b3_1 = __webpack_require__(4954); Object.defineProperty(exports, "dataflow_v1b3", { enumerable: true, get: function () { return v1b3_1.dataflow_v1b3; } }); -var v1beta1_16 = __webpack_require__(695); -Object.defineProperty(exports, "datafusion_v1beta1", { enumerable: true, get: function () { return v1beta1_16.datafusion_v1beta1; } }); -var v1_36 = __webpack_require__(388); -Object.defineProperty(exports, "dataproc_v1", { enumerable: true, get: function () { return v1_36.dataproc_v1; } }); -var v1beta2_2 = __webpack_require__(523); -Object.defineProperty(exports, "dataproc_v1beta2", { enumerable: true, get: function () { return v1beta2_2.dataproc_v1beta2; } }); -var v1_37 = __webpack_require__(618); -Object.defineProperty(exports, "datastore_v1", { enumerable: true, get: function () { return v1_37.datastore_v1; } }); -var v1beta1_17 = __webpack_require__(234); -Object.defineProperty(exports, "datastore_v1beta1", { enumerable: true, get: function () { return v1beta1_17.datastore_v1beta1; } }); -var v1beta3_1 = __webpack_require__(502); +var v1beta1_20 = __webpack_require__(3228); +Object.defineProperty(exports, "dataform_v1beta1", { enumerable: true, get: function () { return v1beta1_20.dataform_v1beta1; } }); +var v1_60 = __webpack_require__(4121); +Object.defineProperty(exports, "datafusion_v1", { enumerable: true, get: function () { return v1_60.datafusion_v1; } }); +var v1beta1_21 = __webpack_require__(4695); +Object.defineProperty(exports, "datafusion_v1beta1", { enumerable: true, get: function () { return v1beta1_21.datafusion_v1beta1; } }); +var v1beta1_22 = __webpack_require__(1567); +Object.defineProperty(exports, "datalabeling_v1beta1", { enumerable: true, get: function () { return v1beta1_22.datalabeling_v1beta1; } }); +var v1_61 = __webpack_require__(9191); +Object.defineProperty(exports, "datalineage_v1", { enumerable: true, get: function () { return v1_61.datalineage_v1; } }); +var v1_62 = __webpack_require__(1922); +Object.defineProperty(exports, "datamigration_v1", { enumerable: true, get: function () { return v1_62.datamigration_v1; } }); +var v1beta1_23 = __webpack_require__(2985); +Object.defineProperty(exports, "datamigration_v1beta1", { enumerable: true, get: function () { return v1beta1_23.datamigration_v1beta1; } }); +var v1_63 = __webpack_require__(5216); +Object.defineProperty(exports, "datapipelines_v1", { enumerable: true, get: function () { return v1_63.datapipelines_v1; } }); +var v1_64 = __webpack_require__(1407); +Object.defineProperty(exports, "dataplex_v1", { enumerable: true, get: function () { return v1_64.dataplex_v1; } }); +var v1_65 = __webpack_require__(9388); +Object.defineProperty(exports, "dataproc_v1", { enumerable: true, get: function () { return v1_65.dataproc_v1; } }); +var v1beta2_3 = __webpack_require__(1377); +Object.defineProperty(exports, "dataproc_v1beta2", { enumerable: true, get: function () { return v1beta2_3.dataproc_v1beta2; } }); +var v1_66 = __webpack_require__(4618); +Object.defineProperty(exports, "datastore_v1", { enumerable: true, get: function () { return v1_66.datastore_v1; } }); +var v1beta1_24 = __webpack_require__(234); +Object.defineProperty(exports, "datastore_v1beta1", { enumerable: true, get: function () { return v1beta1_24.datastore_v1beta1; } }); +var v1beta3_1 = __webpack_require__(8672); Object.defineProperty(exports, "datastore_v1beta3", { enumerable: true, get: function () { return v1beta3_1.datastore_v1beta3; } }); -var alpha_2 = __webpack_require__(291); +var v1_67 = __webpack_require__(329); +Object.defineProperty(exports, "datastream_v1", { enumerable: true, get: function () { return v1_67.datastream_v1; } }); +var v1alpha1_7 = __webpack_require__(3913); +Object.defineProperty(exports, "datastream_v1alpha1", { enumerable: true, get: function () { return v1alpha1_7.datastream_v1alpha1; } }); +var alpha_2 = __webpack_require__(7449); Object.defineProperty(exports, "deploymentmanager_alpha", { enumerable: true, get: function () { return alpha_2.deploymentmanager_alpha; } }); -var v2_12 = __webpack_require__(726); -Object.defineProperty(exports, "deploymentmanager_v2", { enumerable: true, get: function () { return v2_12.deploymentmanager_v2; } }); -var v2beta_1 = __webpack_require__(339); -Object.defineProperty(exports, "deploymentmanager_v2beta", { enumerable: true, get: function () { return v2beta_1.deploymentmanager_v2beta; } }); -var v3_3_1 = __webpack_require__(959); +var v2_17 = __webpack_require__(3726); +Object.defineProperty(exports, "deploymentmanager_v2", { enumerable: true, get: function () { return v2_17.deploymentmanager_v2; } }); +var v2beta_3 = __webpack_require__(9883); +Object.defineProperty(exports, "deploymentmanager_v2beta", { enumerable: true, get: function () { return v2beta_3.deploymentmanager_v2beta; } }); +var v3_3_1 = __webpack_require__(2959); Object.defineProperty(exports, "dfareporting_v3_3", { enumerable: true, get: function () { return v3_3_1.dfareporting_v3_3; } }); -var v3_4_1 = __webpack_require__(292); +var v3_4_1 = __webpack_require__(5552); Object.defineProperty(exports, "dfareporting_v3_4", { enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } }); -var v2_13 = __webpack_require__(968); -Object.defineProperty(exports, "dialogflow_v2", { enumerable: true, get: function () { return v2_13.dialogflow_v2; } }); -var v2beta1_4 = __webpack_require__(80); +var v3_5_1 = __webpack_require__(719); +Object.defineProperty(exports, "dfareporting_v3_5", { enumerable: true, get: function () { return v3_5_1.dfareporting_v3_5; } }); +var v4_2 = __webpack_require__(1321); +Object.defineProperty(exports, "dfareporting_v4", { enumerable: true, get: function () { return v4_2.dfareporting_v4; } }); +var v2_18 = __webpack_require__(4968); +Object.defineProperty(exports, "dialogflow_v2", { enumerable: true, get: function () { return v2_18.dialogflow_v2; } }); +var v2beta1_4 = __webpack_require__(3080); Object.defineProperty(exports, "dialogflow_v2beta1", { enumerable: true, get: function () { return v2beta1_4.dialogflow_v2beta1; } }); -var v1_38 = __webpack_require__(584); -Object.defineProperty(exports, "digitalassetlinks_v1", { enumerable: true, get: function () { return v1_38.digitalassetlinks_v1; } }); -var v1_39 = __webpack_require__(358); -Object.defineProperty(exports, "discovery_v1", { enumerable: true, get: function () { return v1_39.discovery_v1; } }); -var v1_40 = __webpack_require__(164); -Object.defineProperty(exports, "displayvideo_v1", { enumerable: true, get: function () { return v1_40.displayvideo_v1; } }); -var v2_14 = __webpack_require__(772); -Object.defineProperty(exports, "dlp_v2", { enumerable: true, get: function () { return v2_14.dlp_v2; } }); -var v1_41 = __webpack_require__(611); -Object.defineProperty(exports, "dns_v1", { enumerable: true, get: function () { return v1_41.dns_v1; } }); -var v1beta2_3 = __webpack_require__(166); -Object.defineProperty(exports, "dns_v1beta2", { enumerable: true, get: function () { return v1beta2_3.dns_v1beta2; } }); -var v2beta1_5 = __webpack_require__(873); +var v3_6 = __webpack_require__(335); +Object.defineProperty(exports, "dialogflow_v3", { enumerable: true, get: function () { return v3_6.dialogflow_v3; } }); +var v3beta1_1 = __webpack_require__(4401); +Object.defineProperty(exports, "dialogflow_v3beta1", { enumerable: true, get: function () { return v3beta1_1.dialogflow_v3beta1; } }); +var v1_68 = __webpack_require__(7861); +Object.defineProperty(exports, "digitalassetlinks_v1", { enumerable: true, get: function () { return v1_68.digitalassetlinks_v1; } }); +var v1_69 = __webpack_require__(358); +Object.defineProperty(exports, "discovery_v1", { enumerable: true, get: function () { return v1_69.discovery_v1; } }); +var v1alpha_5 = __webpack_require__(5678); +Object.defineProperty(exports, "discoveryengine_v1alpha", { enumerable: true, get: function () { return v1alpha_5.discoveryengine_v1alpha; } }); +var v1beta_8 = __webpack_require__(8516); +Object.defineProperty(exports, "discoveryengine_v1beta", { enumerable: true, get: function () { return v1beta_8.discoveryengine_v1beta; } }); +var v1_70 = __webpack_require__(164); +Object.defineProperty(exports, "displayvideo_v1", { enumerable: true, get: function () { return v1_70.displayvideo_v1; } }); +var v1beta_9 = __webpack_require__(8505); +Object.defineProperty(exports, "displayvideo_v1beta", { enumerable: true, get: function () { return v1beta_9.displayvideo_v1beta; } }); +var v1beta2_4 = __webpack_require__(7063); +Object.defineProperty(exports, "displayvideo_v1beta2", { enumerable: true, get: function () { return v1beta2_4.displayvideo_v1beta2; } }); +var v1dev_1 = __webpack_require__(7281); +Object.defineProperty(exports, "displayvideo_v1dev", { enumerable: true, get: function () { return v1dev_1.displayvideo_v1dev; } }); +var v2_19 = __webpack_require__(4712); +Object.defineProperty(exports, "displayvideo_v2", { enumerable: true, get: function () { return v2_19.displayvideo_v2; } }); +var v2_20 = __webpack_require__(2772); +Object.defineProperty(exports, "dlp_v2", { enumerable: true, get: function () { return v2_20.dlp_v2; } }); +var v1_71 = __webpack_require__(1611); +Object.defineProperty(exports, "dns_v1", { enumerable: true, get: function () { return v1_71.dns_v1; } }); +var v1beta2_5 = __webpack_require__(3166); +Object.defineProperty(exports, "dns_v1beta2", { enumerable: true, get: function () { return v1beta2_5.dns_v1beta2; } }); +var v2_21 = __webpack_require__(2441); +Object.defineProperty(exports, "dns_v2", { enumerable: true, get: function () { return v2_21.dns_v2; } }); +var v2beta1_5 = __webpack_require__(6873); Object.defineProperty(exports, "dns_v2beta1", { enumerable: true, get: function () { return v2beta1_5.dns_v2beta1; } }); -var v1_42 = __webpack_require__(655); -Object.defineProperty(exports, "docs_v1", { enumerable: true, get: function () { return v1_42.docs_v1; } }); -var v1_43 = __webpack_require__(515); -Object.defineProperty(exports, "domainsrdap_v1", { enumerable: true, get: function () { return v1_43.domainsrdap_v1; } }); -var v1_1_2 = __webpack_require__(139); +var v1_72 = __webpack_require__(1102); +Object.defineProperty(exports, "docs_v1", { enumerable: true, get: function () { return v1_72.docs_v1; } }); +var v1_73 = __webpack_require__(2335); +Object.defineProperty(exports, "documentai_v1", { enumerable: true, get: function () { return v1_73.documentai_v1; } }); +var v1beta2_6 = __webpack_require__(1294); +Object.defineProperty(exports, "documentai_v1beta2", { enumerable: true, get: function () { return v1beta2_6.documentai_v1beta2; } }); +var v1beta3_2 = __webpack_require__(456); +Object.defineProperty(exports, "documentai_v1beta3", { enumerable: true, get: function () { return v1beta3_2.documentai_v1beta3; } }); +var v1_74 = __webpack_require__(1271); +Object.defineProperty(exports, "domains_v1", { enumerable: true, get: function () { return v1_74.domains_v1; } }); +var v1alpha2_3 = __webpack_require__(1691); +Object.defineProperty(exports, "domains_v1alpha2", { enumerable: true, get: function () { return v1alpha2_3.domains_v1alpha2; } }); +var v1beta1_25 = __webpack_require__(5516); +Object.defineProperty(exports, "domains_v1beta1", { enumerable: true, get: function () { return v1beta1_25.domains_v1beta1; } }); +var v1_75 = __webpack_require__(4937); +Object.defineProperty(exports, "domainsrdap_v1", { enumerable: true, get: function () { return v1_75.domainsrdap_v1; } }); +var v1_1_2 = __webpack_require__(6339); Object.defineProperty(exports, "doubleclickbidmanager_v1_1", { enumerable: true, get: function () { return v1_1_2.doubleclickbidmanager_v1_1; } }); -var v1_44 = __webpack_require__(25); -Object.defineProperty(exports, "doubleclickbidmanager_v1", { enumerable: true, get: function () { return v1_44.doubleclickbidmanager_v1; } }); -var v2_15 = __webpack_require__(311); -Object.defineProperty(exports, "doubleclicksearch_v2", { enumerable: true, get: function () { return v2_15.doubleclicksearch_v2; } }); -var v2_16 = __webpack_require__(583); -Object.defineProperty(exports, "drive_v2", { enumerable: true, get: function () { return v2_16.drive_v2; } }); -var v3_5 = __webpack_require__(776); -Object.defineProperty(exports, "drive_v3", { enumerable: true, get: function () { return v3_5.drive_v3; } }); -var v2_17 = __webpack_require__(488); -Object.defineProperty(exports, "driveactivity_v2", { enumerable: true, get: function () { return v2_17.driveactivity_v2; } }); -var v1alpha1_4 = __webpack_require__(690); -Object.defineProperty(exports, "factchecktools_v1alpha1", { enumerable: true, get: function () { return v1alpha1_4.factchecktools_v1alpha1; } }); -var v1_45 = __webpack_require__(891); -Object.defineProperty(exports, "fcm_v1", { enumerable: true, get: function () { return v1_45.fcm_v1; } }); -var v1_46 = __webpack_require__(982); -Object.defineProperty(exports, "file_v1", { enumerable: true, get: function () { return v1_46.file_v1; } }); -var v1beta1_18 = __webpack_require__(833); -Object.defineProperty(exports, "file_v1beta1", { enumerable: true, get: function () { return v1beta1_18.file_v1beta1; } }); -var v1beta1_19 = __webpack_require__(172); -Object.defineProperty(exports, "firebase_v1beta1", { enumerable: true, get: function () { return v1beta1_19.firebase_v1beta1; } }); -var v1_47 = __webpack_require__(907); -Object.defineProperty(exports, "firebasedynamiclinks_v1", { enumerable: true, get: function () { return v1_47.firebasedynamiclinks_v1; } }); -var v1beta1_20 = __webpack_require__(202); -Object.defineProperty(exports, "firebasehosting_v1beta1", { enumerable: true, get: function () { return v1beta1_20.firebasehosting_v1beta1; } }); -var v1beta2_4 = __webpack_require__(957); -Object.defineProperty(exports, "firebaseml_v1beta2", { enumerable: true, get: function () { return v1beta2_4.firebaseml_v1beta2; } }); -var v1_48 = __webpack_require__(340); -Object.defineProperty(exports, "firebaserules_v1", { enumerable: true, get: function () { return v1_48.firebaserules_v1; } }); -var v1_49 = __webpack_require__(920); -Object.defineProperty(exports, "firestore_v1", { enumerable: true, get: function () { return v1_49.firestore_v1; } }); -var v1beta1_21 = __webpack_require__(494); -Object.defineProperty(exports, "firestore_v1beta1", { enumerable: true, get: function () { return v1beta1_21.firestore_v1beta1; } }); -var v1beta2_5 = __webpack_require__(485); -Object.defineProperty(exports, "firestore_v1beta2", { enumerable: true, get: function () { return v1beta2_5.firestore_v1beta2; } }); -var v1_50 = __webpack_require__(740); -Object.defineProperty(exports, "fitness_v1", { enumerable: true, get: function () { return v1_50.fitness_v1; } }); -var v1_51 = __webpack_require__(437); -Object.defineProperty(exports, "games_v1", { enumerable: true, get: function () { return v1_51.games_v1; } }); -var v1configuration_1 = __webpack_require__(505); +var v1_76 = __webpack_require__(5424); +Object.defineProperty(exports, "doubleclickbidmanager_v1", { enumerable: true, get: function () { return v1_76.doubleclickbidmanager_v1; } }); +var v2_22 = __webpack_require__(4491); +Object.defineProperty(exports, "doubleclickbidmanager_v2", { enumerable: true, get: function () { return v2_22.doubleclickbidmanager_v2; } }); +var v2_23 = __webpack_require__(1919); +Object.defineProperty(exports, "doubleclicksearch_v2", { enumerable: true, get: function () { return v2_23.doubleclicksearch_v2; } }); +var v2_24 = __webpack_require__(9583); +Object.defineProperty(exports, "drive_v2", { enumerable: true, get: function () { return v2_24.drive_v2; } }); +var v3_7 = __webpack_require__(4959); +Object.defineProperty(exports, "drive_v3", { enumerable: true, get: function () { return v3_7.drive_v3; } }); +var v2_25 = __webpack_require__(8488); +Object.defineProperty(exports, "driveactivity_v2", { enumerable: true, get: function () { return v2_25.driveactivity_v2; } }); +var v2_26 = __webpack_require__(2591); +Object.defineProperty(exports, "drivelabels_v2", { enumerable: true, get: function () { return v2_26.drivelabels_v2; } }); +var v2beta_4 = __webpack_require__(7545); +Object.defineProperty(exports, "drivelabels_v2beta", { enumerable: true, get: function () { return v2beta_4.drivelabels_v2beta; } }); +var v1_77 = __webpack_require__(3769); +Object.defineProperty(exports, "essentialcontacts_v1", { enumerable: true, get: function () { return v1_77.essentialcontacts_v1; } }); +var v1_78 = __webpack_require__(4656); +Object.defineProperty(exports, "eventarc_v1", { enumerable: true, get: function () { return v1_78.eventarc_v1; } }); +var v1beta1_26 = __webpack_require__(4018); +Object.defineProperty(exports, "eventarc_v1beta1", { enumerable: true, get: function () { return v1beta1_26.eventarc_v1beta1; } }); +var v1alpha1_8 = __webpack_require__(5166); +Object.defineProperty(exports, "factchecktools_v1alpha1", { enumerable: true, get: function () { return v1alpha1_8.factchecktools_v1alpha1; } }); +var v1_79 = __webpack_require__(3891); +Object.defineProperty(exports, "fcm_v1", { enumerable: true, get: function () { return v1_79.fcm_v1; } }); +var v1beta1_27 = __webpack_require__(6235); +Object.defineProperty(exports, "fcmdata_v1beta1", { enumerable: true, get: function () { return v1beta1_27.fcmdata_v1beta1; } }); +var v1_80 = __webpack_require__(8731); +Object.defineProperty(exports, "file_v1", { enumerable: true, get: function () { return v1_80.file_v1; } }); +var v1beta1_28 = __webpack_require__(6833); +Object.defineProperty(exports, "file_v1beta1", { enumerable: true, get: function () { return v1beta1_28.file_v1beta1; } }); +var v1beta1_29 = __webpack_require__(9172); +Object.defineProperty(exports, "firebase_v1beta1", { enumerable: true, get: function () { return v1beta1_29.firebase_v1beta1; } }); +var v1_81 = __webpack_require__(4956); +Object.defineProperty(exports, "firebaseappcheck_v1", { enumerable: true, get: function () { return v1_81.firebaseappcheck_v1; } }); +var v1beta_10 = __webpack_require__(1657); +Object.defineProperty(exports, "firebaseappcheck_v1beta", { enumerable: true, get: function () { return v1beta_10.firebaseappcheck_v1beta; } }); +var v1_82 = __webpack_require__(7865); +Object.defineProperty(exports, "firebaseappdistribution_v1", { enumerable: true, get: function () { return v1_82.firebaseappdistribution_v1; } }); +var v1beta_11 = __webpack_require__(8779); +Object.defineProperty(exports, "firebasedatabase_v1beta", { enumerable: true, get: function () { return v1beta_11.firebasedatabase_v1beta; } }); +var v1_83 = __webpack_require__(5907); +Object.defineProperty(exports, "firebasedynamiclinks_v1", { enumerable: true, get: function () { return v1_83.firebasedynamiclinks_v1; } }); +var v1_84 = __webpack_require__(4843); +Object.defineProperty(exports, "firebasehosting_v1", { enumerable: true, get: function () { return v1_84.firebasehosting_v1; } }); +var v1beta1_30 = __webpack_require__(2202); +Object.defineProperty(exports, "firebasehosting_v1beta1", { enumerable: true, get: function () { return v1beta1_30.firebasehosting_v1beta1; } }); +var v1_85 = __webpack_require__(8157); +Object.defineProperty(exports, "firebaseml_v1", { enumerable: true, get: function () { return v1_85.firebaseml_v1; } }); +var v1beta2_7 = __webpack_require__(5529); +Object.defineProperty(exports, "firebaseml_v1beta2", { enumerable: true, get: function () { return v1beta2_7.firebaseml_v1beta2; } }); +var v1_86 = __webpack_require__(8034); +Object.defineProperty(exports, "firebaserules_v1", { enumerable: true, get: function () { return v1_86.firebaserules_v1; } }); +var v1beta_12 = __webpack_require__(308); +Object.defineProperty(exports, "firebasestorage_v1beta", { enumerable: true, get: function () { return v1beta_12.firebasestorage_v1beta; } }); +var v1_87 = __webpack_require__(9870); +Object.defineProperty(exports, "firestore_v1", { enumerable: true, get: function () { return v1_87.firestore_v1; } }); +var v1beta1_31 = __webpack_require__(7494); +Object.defineProperty(exports, "firestore_v1beta1", { enumerable: true, get: function () { return v1beta1_31.firestore_v1beta1; } }); +var v1beta2_8 = __webpack_require__(3485); +Object.defineProperty(exports, "firestore_v1beta2", { enumerable: true, get: function () { return v1beta2_8.firestore_v1beta2; } }); +var v1_88 = __webpack_require__(8243); +Object.defineProperty(exports, "fitness_v1", { enumerable: true, get: function () { return v1_88.fitness_v1; } }); +var v1_89 = __webpack_require__(1643); +Object.defineProperty(exports, "forms_v1", { enumerable: true, get: function () { return v1_89.forms_v1; } }); +var v1_90 = __webpack_require__(7013); +Object.defineProperty(exports, "games_v1", { enumerable: true, get: function () { return v1_90.games_v1; } }); +var v1configuration_1 = __webpack_require__(4505); Object.defineProperty(exports, "gamesConfiguration_v1configuration", { enumerable: true, get: function () { return v1configuration_1.gamesConfiguration_v1configuration; } }); -var v1management_1 = __webpack_require__(604); +var v1management_1 = __webpack_require__(226); Object.defineProperty(exports, "gamesManagement_v1management", { enumerable: true, get: function () { return v1management_1.gamesManagement_v1management; } }); -var v1beta_3 = __webpack_require__(364); -Object.defineProperty(exports, "gameservices_v1beta", { enumerable: true, get: function () { return v1beta_3.gameservices_v1beta; } }); -var v1_52 = __webpack_require__(419); -Object.defineProperty(exports, "genomics_v1", { enumerable: true, get: function () { return v1_52.genomics_v1; } }); -var v1alpha2_3 = __webpack_require__(837); -Object.defineProperty(exports, "genomics_v1alpha2", { enumerable: true, get: function () { return v1alpha2_3.genomics_v1alpha2; } }); -var v2alpha1_1 = __webpack_require__(941); +var v1_91 = __webpack_require__(3453); +Object.defineProperty(exports, "gameservices_v1", { enumerable: true, get: function () { return v1_91.gameservices_v1; } }); +var v1beta_13 = __webpack_require__(2364); +Object.defineProperty(exports, "gameservices_v1beta", { enumerable: true, get: function () { return v1beta_13.gameservices_v1beta; } }); +var v1_92 = __webpack_require__(5765); +Object.defineProperty(exports, "genomics_v1", { enumerable: true, get: function () { return v1_92.genomics_v1; } }); +var v1alpha2_4 = __webpack_require__(5877); +Object.defineProperty(exports, "genomics_v1alpha2", { enumerable: true, get: function () { return v1alpha2_4.genomics_v1alpha2; } }); +var v2alpha1_1 = __webpack_require__(5141); Object.defineProperty(exports, "genomics_v2alpha1", { enumerable: true, get: function () { return v2alpha1_1.genomics_v2alpha1; } }); -var v1_53 = __webpack_require__(579); -Object.defineProperty(exports, "gmail_v1", { enumerable: true, get: function () { return v1_53.gmail_v1; } }); -var v1_54 = __webpack_require__(27); -Object.defineProperty(exports, "groupsmigration_v1", { enumerable: true, get: function () { return v1_54.groupsmigration_v1; } }); -var v1_55 = __webpack_require__(32); -Object.defineProperty(exports, "groupssettings_v1", { enumerable: true, get: function () { return v1_55.groupssettings_v1; } }); -var v1_56 = __webpack_require__(487); -Object.defineProperty(exports, "healthcare_v1", { enumerable: true, get: function () { return v1_56.healthcare_v1; } }); -var v1beta1_22 = __webpack_require__(961); -Object.defineProperty(exports, "healthcare_v1beta1", { enumerable: true, get: function () { return v1beta1_22.healthcare_v1beta1; } }); -var v1_57 = __webpack_require__(825); -Object.defineProperty(exports, "homegraph_v1", { enumerable: true, get: function () { return v1_57.homegraph_v1; } }); -var v1_58 = __webpack_require__(992); -Object.defineProperty(exports, "iam_v1", { enumerable: true, get: function () { return v1_58.iam_v1; } }); -var v1_59 = __webpack_require__(22); -Object.defineProperty(exports, "iamcredentials_v1", { enumerable: true, get: function () { return v1_59.iamcredentials_v1; } }); -var v1_60 = __webpack_require__(86); -Object.defineProperty(exports, "iap_v1", { enumerable: true, get: function () { return v1_60.iap_v1; } }); -var v1beta1_23 = __webpack_require__(868); -Object.defineProperty(exports, "iap_v1beta1", { enumerable: true, get: function () { return v1beta1_23.iap_v1beta1; } }); -var v3_6 = __webpack_require__(394); -Object.defineProperty(exports, "identitytoolkit_v3", { enumerable: true, get: function () { return v3_6.identitytoolkit_v3; } }); -var v3_7 = __webpack_require__(641); -Object.defineProperty(exports, "indexing_v3", { enumerable: true, get: function () { return v3_7.indexing_v3; } }); -var v2_18 = __webpack_require__(787); -Object.defineProperty(exports, "jobs_v2", { enumerable: true, get: function () { return v2_18.jobs_v2; } }); -var v3_8 = __webpack_require__(924); -Object.defineProperty(exports, "jobs_v3", { enumerable: true, get: function () { return v3_8.jobs_v3; } }); -var v3p1beta1_1 = __webpack_require__(30); +var v1_93 = __webpack_require__(1973); +Object.defineProperty(exports, "gkebackup_v1", { enumerable: true, get: function () { return v1_93.gkebackup_v1; } }); +var v1_94 = __webpack_require__(1265); +Object.defineProperty(exports, "gkehub_v1", { enumerable: true, get: function () { return v1_94.gkehub_v1; } }); +var v1alpha_6 = __webpack_require__(9062); +Object.defineProperty(exports, "gkehub_v1alpha", { enumerable: true, get: function () { return v1alpha_6.gkehub_v1alpha; } }); +var v1alpha2_5 = __webpack_require__(5369); +Object.defineProperty(exports, "gkehub_v1alpha2", { enumerable: true, get: function () { return v1alpha2_5.gkehub_v1alpha2; } }); +var v1beta_14 = __webpack_require__(3900); +Object.defineProperty(exports, "gkehub_v1beta", { enumerable: true, get: function () { return v1beta_14.gkehub_v1beta; } }); +var v1beta1_32 = __webpack_require__(7365); +Object.defineProperty(exports, "gkehub_v1beta1", { enumerable: true, get: function () { return v1beta1_32.gkehub_v1beta1; } }); +var v2alpha_2 = __webpack_require__(9538); +Object.defineProperty(exports, "gkehub_v2alpha", { enumerable: true, get: function () { return v2alpha_2.gkehub_v2alpha; } }); +var v1_95 = __webpack_require__(1034); +Object.defineProperty(exports, "gmail_v1", { enumerable: true, get: function () { return v1_95.gmail_v1; } }); +var v1_96 = __webpack_require__(118); +Object.defineProperty(exports, "gmailpostmastertools_v1", { enumerable: true, get: function () { return v1_96.gmailpostmastertools_v1; } }); +var v1beta1_33 = __webpack_require__(2606); +Object.defineProperty(exports, "gmailpostmastertools_v1beta1", { enumerable: true, get: function () { return v1beta1_33.gmailpostmastertools_v1beta1; } }); +var v1_97 = __webpack_require__(9656); +Object.defineProperty(exports, "groupsmigration_v1", { enumerable: true, get: function () { return v1_97.groupsmigration_v1; } }); +var v1_98 = __webpack_require__(913); +Object.defineProperty(exports, "groupssettings_v1", { enumerable: true, get: function () { return v1_98.groupssettings_v1; } }); +var v1_99 = __webpack_require__(7487); +Object.defineProperty(exports, "healthcare_v1", { enumerable: true, get: function () { return v1_99.healthcare_v1; } }); +var v1beta1_34 = __webpack_require__(6961); +Object.defineProperty(exports, "healthcare_v1beta1", { enumerable: true, get: function () { return v1beta1_34.healthcare_v1beta1; } }); +var v1_100 = __webpack_require__(1114); +Object.defineProperty(exports, "homegraph_v1", { enumerable: true, get: function () { return v1_100.homegraph_v1; } }); +var v1_101 = __webpack_require__(8992); +Object.defineProperty(exports, "iam_v1", { enumerable: true, get: function () { return v1_101.iam_v1; } }); +var v2_27 = __webpack_require__(3889); +Object.defineProperty(exports, "iam_v2", { enumerable: true, get: function () { return v2_27.iam_v2; } }); +var v2beta_5 = __webpack_require__(4596); +Object.defineProperty(exports, "iam_v2beta", { enumerable: true, get: function () { return v2beta_5.iam_v2beta; } }); +var v1_102 = __webpack_require__(4622); +Object.defineProperty(exports, "iamcredentials_v1", { enumerable: true, get: function () { return v1_102.iamcredentials_v1; } }); +var v1_103 = __webpack_require__(5625); +Object.defineProperty(exports, "iap_v1", { enumerable: true, get: function () { return v1_103.iap_v1; } }); +var v1beta1_35 = __webpack_require__(3868); +Object.defineProperty(exports, "iap_v1beta1", { enumerable: true, get: function () { return v1beta1_35.iap_v1beta1; } }); +var v1alpha_7 = __webpack_require__(5174); +Object.defineProperty(exports, "ideahub_v1alpha", { enumerable: true, get: function () { return v1alpha_7.ideahub_v1alpha; } }); +var v1beta_15 = __webpack_require__(9002); +Object.defineProperty(exports, "ideahub_v1beta", { enumerable: true, get: function () { return v1beta_15.ideahub_v1beta; } }); +var v2_28 = __webpack_require__(9383); +Object.defineProperty(exports, "identitytoolkit_v2", { enumerable: true, get: function () { return v2_28.identitytoolkit_v2; } }); +var v3_8 = __webpack_require__(2210); +Object.defineProperty(exports, "identitytoolkit_v3", { enumerable: true, get: function () { return v3_8.identitytoolkit_v3; } }); +var v1_104 = __webpack_require__(1); +Object.defineProperty(exports, "ids_v1", { enumerable: true, get: function () { return v1_104.ids_v1; } }); +var v3_9 = __webpack_require__(3641); +Object.defineProperty(exports, "indexing_v3", { enumerable: true, get: function () { return v3_9.indexing_v3; } }); +var v1alpha_8 = __webpack_require__(1200); +Object.defineProperty(exports, "integrations_v1alpha", { enumerable: true, get: function () { return v1alpha_8.integrations_v1alpha; } }); +var v2_29 = __webpack_require__(2787); +Object.defineProperty(exports, "jobs_v2", { enumerable: true, get: function () { return v2_29.jobs_v2; } }); +var v3_10 = __webpack_require__(3994); +Object.defineProperty(exports, "jobs_v3", { enumerable: true, get: function () { return v3_10.jobs_v3; } }); +var v3p1beta1_1 = __webpack_require__(1030); Object.defineProperty(exports, "jobs_v3p1beta1", { enumerable: true, get: function () { return v3p1beta1_1.jobs_v3p1beta1; } }); -var v1_61 = __webpack_require__(38); -Object.defineProperty(exports, "kgsearch_v1", { enumerable: true, get: function () { return v1_61.kgsearch_v1; } }); -var v1_62 = __webpack_require__(31); -Object.defineProperty(exports, "language_v1", { enumerable: true, get: function () { return v1_62.language_v1; } }); -var v1beta1_24 = __webpack_require__(398); -Object.defineProperty(exports, "language_v1beta1", { enumerable: true, get: function () { return v1beta1_24.language_v1beta1; } }); -var v1beta2_6 = __webpack_require__(156); -Object.defineProperty(exports, "language_v1beta2", { enumerable: true, get: function () { return v1beta2_6.language_v1beta2; } }); -var v1_63 = __webpack_require__(113); -Object.defineProperty(exports, "libraryagent_v1", { enumerable: true, get: function () { return v1_63.libraryagent_v1; } }); -var v1_64 = __webpack_require__(376); -Object.defineProperty(exports, "licensing_v1", { enumerable: true, get: function () { return v1_64.licensing_v1; } }); -var v2beta_2 = __webpack_require__(48); -Object.defineProperty(exports, "lifesciences_v2beta", { enumerable: true, get: function () { return v2beta_2.lifesciences_v2beta; } }); -var v2_19 = __webpack_require__(110); -Object.defineProperty(exports, "logging_v2", { enumerable: true, get: function () { return v2_19.logging_v2; } }); -var v1_65 = __webpack_require__(94); -Object.defineProperty(exports, "managedidentities_v1", { enumerable: true, get: function () { return v1_65.managedidentities_v1; } }); -var v1alpha1_5 = __webpack_require__(531); -Object.defineProperty(exports, "managedidentities_v1alpha1", { enumerable: true, get: function () { return v1alpha1_5.managedidentities_v1alpha1; } }); -var v1beta1_25 = __webpack_require__(274); -Object.defineProperty(exports, "managedidentities_v1beta1", { enumerable: true, get: function () { return v1beta1_25.managedidentities_v1beta1; } }); -var v1_66 = __webpack_require__(21); -Object.defineProperty(exports, "manufacturers_v1", { enumerable: true, get: function () { return v1_66.manufacturers_v1; } }); -var v1beta2_7 = __webpack_require__(134); -Object.defineProperty(exports, "memcache_v1beta2", { enumerable: true, get: function () { return v1beta2_7.memcache_v1beta2; } }); -var v1_67 = __webpack_require__(905); -Object.defineProperty(exports, "ml_v1", { enumerable: true, get: function () { return v1_67.ml_v1; } }); -var v1_68 = __webpack_require__(918); -Object.defineProperty(exports, "monitoring_v1", { enumerable: true, get: function () { return v1_68.monitoring_v1; } }); -var v3_9 = __webpack_require__(653); -Object.defineProperty(exports, "monitoring_v3", { enumerable: true, get: function () { return v3_9.monitoring_v3; } }); -var v1beta1_26 = __webpack_require__(838); -Object.defineProperty(exports, "networkmanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_26.networkmanagement_v1beta1; } }); -var v2_20 = __webpack_require__(980); -Object.defineProperty(exports, "oauth2_v2", { enumerable: true, get: function () { return v2_20.oauth2_v2; } }); -var v1_69 = __webpack_require__(375); -Object.defineProperty(exports, "osconfig_v1", { enumerable: true, get: function () { return v1_69.osconfig_v1; } }); -var v1beta_4 = __webpack_require__(660); -Object.defineProperty(exports, "osconfig_v1beta", { enumerable: true, get: function () { return v1beta_4.osconfig_v1beta; } }); -var v1_70 = __webpack_require__(179); -Object.defineProperty(exports, "oslogin_v1", { enumerable: true, get: function () { return v1_70.oslogin_v1; } }); -var v1alpha_2 = __webpack_require__(632); -Object.defineProperty(exports, "oslogin_v1alpha", { enumerable: true, get: function () { return v1alpha_2.oslogin_v1alpha; } }); -var v1beta_5 = __webpack_require__(232); -Object.defineProperty(exports, "oslogin_v1beta", { enumerable: true, get: function () { return v1beta_5.oslogin_v1beta; } }); -var v2_21 = __webpack_require__(730); -Object.defineProperty(exports, "pagespeedonline_v2", { enumerable: true, get: function () { return v2_21.pagespeedonline_v2; } }); -var v4_2 = __webpack_require__(520); -Object.defineProperty(exports, "pagespeedonline_v4", { enumerable: true, get: function () { return v4_2.pagespeedonline_v4; } }); -var v5_1 = __webpack_require__(521); +var v4_3 = __webpack_require__(9912); +Object.defineProperty(exports, "jobs_v4", { enumerable: true, get: function () { return v4_3.jobs_v4; } }); +var v1_105 = __webpack_require__(9038); +Object.defineProperty(exports, "kgsearch_v1", { enumerable: true, get: function () { return v1_105.kgsearch_v1; } }); +var v1_106 = __webpack_require__(5554); +Object.defineProperty(exports, "kmsinventory_v1", { enumerable: true, get: function () { return v1_106.kmsinventory_v1; } }); +var v1_107 = __webpack_require__(4974); +Object.defineProperty(exports, "language_v1", { enumerable: true, get: function () { return v1_107.language_v1; } }); +var v1beta1_36 = __webpack_require__(2763); +Object.defineProperty(exports, "language_v1beta1", { enumerable: true, get: function () { return v1beta1_36.language_v1beta1; } }); +var v1beta2_9 = __webpack_require__(1142); +Object.defineProperty(exports, "language_v1beta2", { enumerable: true, get: function () { return v1beta2_9.language_v1beta2; } }); +var v1_108 = __webpack_require__(8164); +Object.defineProperty(exports, "libraryagent_v1", { enumerable: true, get: function () { return v1_108.libraryagent_v1; } }); +var v1_109 = __webpack_require__(5976); +Object.defineProperty(exports, "licensing_v1", { enumerable: true, get: function () { return v1_109.licensing_v1; } }); +var v2beta_6 = __webpack_require__(1048); +Object.defineProperty(exports, "lifesciences_v2beta", { enumerable: true, get: function () { return v2beta_6.lifesciences_v2beta; } }); +var v1_110 = __webpack_require__(1525); +Object.defineProperty(exports, "localservices_v1", { enumerable: true, get: function () { return v1_110.localservices_v1; } }); +var v2_30 = __webpack_require__(8914); +Object.defineProperty(exports, "logging_v2", { enumerable: true, get: function () { return v2_30.logging_v2; } }); +var v1_111 = __webpack_require__(813); +Object.defineProperty(exports, "managedidentities_v1", { enumerable: true, get: function () { return v1_111.managedidentities_v1; } }); +var v1alpha1_9 = __webpack_require__(9531); +Object.defineProperty(exports, "managedidentities_v1alpha1", { enumerable: true, get: function () { return v1alpha1_9.managedidentities_v1alpha1; } }); +var v1beta1_37 = __webpack_require__(3274); +Object.defineProperty(exports, "managedidentities_v1beta1", { enumerable: true, get: function () { return v1beta1_37.managedidentities_v1beta1; } }); +var v1_112 = __webpack_require__(9021); +Object.defineProperty(exports, "manufacturers_v1", { enumerable: true, get: function () { return v1_112.manufacturers_v1; } }); +var v1_113 = __webpack_require__(8462); +Object.defineProperty(exports, "memcache_v1", { enumerable: true, get: function () { return v1_113.memcache_v1; } }); +var v1beta2_10 = __webpack_require__(9134); +Object.defineProperty(exports, "memcache_v1beta2", { enumerable: true, get: function () { return v1beta2_10.memcache_v1beta2; } }); +var v1_114 = __webpack_require__(4773); +Object.defineProperty(exports, "metastore_v1", { enumerable: true, get: function () { return v1_114.metastore_v1; } }); +var v1alpha_9 = __webpack_require__(2926); +Object.defineProperty(exports, "metastore_v1alpha", { enumerable: true, get: function () { return v1alpha_9.metastore_v1alpha; } }); +var v1beta_16 = __webpack_require__(6077); +Object.defineProperty(exports, "metastore_v1beta", { enumerable: true, get: function () { return v1beta_16.metastore_v1beta; } }); +var v1alpha1_10 = __webpack_require__(8066); +Object.defineProperty(exports, "migrationcenter_v1alpha1", { enumerable: true, get: function () { return v1alpha1_10.migrationcenter_v1alpha1; } }); +var v1_115 = __webpack_require__(2609); +Object.defineProperty(exports, "ml_v1", { enumerable: true, get: function () { return v1_115.ml_v1; } }); +var v1_116 = __webpack_require__(9918); +Object.defineProperty(exports, "monitoring_v1", { enumerable: true, get: function () { return v1_116.monitoring_v1; } }); +var v3_11 = __webpack_require__(4037); +Object.defineProperty(exports, "monitoring_v3", { enumerable: true, get: function () { return v3_11.monitoring_v3; } }); +var v1_117 = __webpack_require__(5304); +Object.defineProperty(exports, "mybusinessaccountmanagement_v1", { enumerable: true, get: function () { return v1_117.mybusinessaccountmanagement_v1; } }); +var v1_118 = __webpack_require__(3415); +Object.defineProperty(exports, "mybusinessbusinesscalls_v1", { enumerable: true, get: function () { return v1_118.mybusinessbusinesscalls_v1; } }); +var v1_119 = __webpack_require__(5585); +Object.defineProperty(exports, "mybusinessbusinessinformation_v1", { enumerable: true, get: function () { return v1_119.mybusinessbusinessinformation_v1; } }); +var v1_120 = __webpack_require__(7834); +Object.defineProperty(exports, "mybusinesslodging_v1", { enumerable: true, get: function () { return v1_120.mybusinesslodging_v1; } }); +var v1_121 = __webpack_require__(7507); +Object.defineProperty(exports, "mybusinessnotifications_v1", { enumerable: true, get: function () { return v1_121.mybusinessnotifications_v1; } }); +var v1_122 = __webpack_require__(6147); +Object.defineProperty(exports, "mybusinessplaceactions_v1", { enumerable: true, get: function () { return v1_122.mybusinessplaceactions_v1; } }); +var v1_123 = __webpack_require__(7732); +Object.defineProperty(exports, "mybusinessqanda_v1", { enumerable: true, get: function () { return v1_123.mybusinessqanda_v1; } }); +var v1_124 = __webpack_require__(1478); +Object.defineProperty(exports, "mybusinessverifications_v1", { enumerable: true, get: function () { return v1_124.mybusinessverifications_v1; } }); +var v1_125 = __webpack_require__(7814); +Object.defineProperty(exports, "networkconnectivity_v1", { enumerable: true, get: function () { return v1_125.networkconnectivity_v1; } }); +var v1alpha1_11 = __webpack_require__(4693); +Object.defineProperty(exports, "networkconnectivity_v1alpha1", { enumerable: true, get: function () { return v1alpha1_11.networkconnectivity_v1alpha1; } }); +var v1_126 = __webpack_require__(1527); +Object.defineProperty(exports, "networkmanagement_v1", { enumerable: true, get: function () { return v1_126.networkmanagement_v1; } }); +var v1beta1_38 = __webpack_require__(6480); +Object.defineProperty(exports, "networkmanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_38.networkmanagement_v1beta1; } }); +var v1_127 = __webpack_require__(5093); +Object.defineProperty(exports, "networksecurity_v1", { enumerable: true, get: function () { return v1_127.networksecurity_v1; } }); +var v1beta1_39 = __webpack_require__(8963); +Object.defineProperty(exports, "networksecurity_v1beta1", { enumerable: true, get: function () { return v1beta1_39.networksecurity_v1beta1; } }); +var v1_128 = __webpack_require__(7981); +Object.defineProperty(exports, "networkservices_v1", { enumerable: true, get: function () { return v1_128.networkservices_v1; } }); +var v1beta1_40 = __webpack_require__(8228); +Object.defineProperty(exports, "networkservices_v1beta1", { enumerable: true, get: function () { return v1beta1_40.networkservices_v1beta1; } }); +var v1_129 = __webpack_require__(8361); +Object.defineProperty(exports, "notebooks_v1", { enumerable: true, get: function () { return v1_129.notebooks_v1; } }); +var v2_31 = __webpack_require__(7043); +Object.defineProperty(exports, "notebooks_v2", { enumerable: true, get: function () { return v2_31.notebooks_v2; } }); +var v2_32 = __webpack_require__(2980); +Object.defineProperty(exports, "oauth2_v2", { enumerable: true, get: function () { return v2_32.oauth2_v2; } }); +var v1_130 = __webpack_require__(5283); +Object.defineProperty(exports, "ondemandscanning_v1", { enumerable: true, get: function () { return v1_130.ondemandscanning_v1; } }); +var v1beta1_41 = __webpack_require__(1236); +Object.defineProperty(exports, "ondemandscanning_v1beta1", { enumerable: true, get: function () { return v1beta1_41.ondemandscanning_v1beta1; } }); +var v2_33 = __webpack_require__(1046); +Object.defineProperty(exports, "orgpolicy_v2", { enumerable: true, get: function () { return v2_33.orgpolicy_v2; } }); +var v1_131 = __webpack_require__(8375); +Object.defineProperty(exports, "osconfig_v1", { enumerable: true, get: function () { return v1_131.osconfig_v1; } }); +var v1alpha_10 = __webpack_require__(2583); +Object.defineProperty(exports, "osconfig_v1alpha", { enumerable: true, get: function () { return v1alpha_10.osconfig_v1alpha; } }); +var v1beta_17 = __webpack_require__(5660); +Object.defineProperty(exports, "osconfig_v1beta", { enumerable: true, get: function () { return v1beta_17.osconfig_v1beta; } }); +var v1_132 = __webpack_require__(8179); +Object.defineProperty(exports, "oslogin_v1", { enumerable: true, get: function () { return v1_132.oslogin_v1; } }); +var v1alpha_11 = __webpack_require__(3632); +Object.defineProperty(exports, "oslogin_v1alpha", { enumerable: true, get: function () { return v1alpha_11.oslogin_v1alpha; } }); +var v1beta_18 = __webpack_require__(1232); +Object.defineProperty(exports, "oslogin_v1beta", { enumerable: true, get: function () { return v1beta_18.oslogin_v1beta; } }); +var v5_1 = __webpack_require__(2638); Object.defineProperty(exports, "pagespeedonline_v5", { enumerable: true, get: function () { return v5_1.pagespeedonline_v5; } }); -var v1_71 = __webpack_require__(258); -Object.defineProperty(exports, "people_v1", { enumerable: true, get: function () { return v1_71.people_v1; } }); -var v1_72 = __webpack_require__(241); -Object.defineProperty(exports, "playcustomapp_v1", { enumerable: true, get: function () { return v1_72.playcustomapp_v1; } }); -var v1_73 = __webpack_require__(288); -Object.defineProperty(exports, "plus_v1", { enumerable: true, get: function () { return v1_73.plus_v1; } }); -var v1_74 = __webpack_require__(1); -Object.defineProperty(exports, "policytroubleshooter_v1", { enumerable: true, get: function () { return v1_74.policytroubleshooter_v1; } }); -var v1beta_6 = __webpack_require__(482); -Object.defineProperty(exports, "policytroubleshooter_v1beta", { enumerable: true, get: function () { return v1beta_6.policytroubleshooter_v1beta; } }); -var v1_75 = __webpack_require__(930); -Object.defineProperty(exports, "poly_v1", { enumerable: true, get: function () { return v1_75.poly_v1; } }); -var v1alpha1_6 = __webpack_require__(467); -Object.defineProperty(exports, "prod_tt_sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_6.prod_tt_sasportal_v1alpha1; } }); -var v1_76 = __webpack_require__(598); -Object.defineProperty(exports, "pubsub_v1", { enumerable: true, get: function () { return v1_76.pubsub_v1; } }); -var v1beta1a_1 = __webpack_require__(553); +var v1_133 = __webpack_require__(8657); +Object.defineProperty(exports, "paymentsresellersubscription_v1", { enumerable: true, get: function () { return v1_133.paymentsresellersubscription_v1; } }); +var v1_134 = __webpack_require__(9258); +Object.defineProperty(exports, "people_v1", { enumerable: true, get: function () { return v1_134.people_v1; } }); +var v3_12 = __webpack_require__(8004); +Object.defineProperty(exports, "playablelocations_v3", { enumerable: true, get: function () { return v3_12.playablelocations_v3; } }); +var v1_135 = __webpack_require__(241); +Object.defineProperty(exports, "playcustomapp_v1", { enumerable: true, get: function () { return v1_135.playcustomapp_v1; } }); +var v1alpha1_12 = __webpack_require__(5099); +Object.defineProperty(exports, "playdeveloperreporting_v1alpha1", { enumerable: true, get: function () { return v1alpha1_12.playdeveloperreporting_v1alpha1; } }); +var v1beta1_42 = __webpack_require__(3937); +Object.defineProperty(exports, "playdeveloperreporting_v1beta1", { enumerable: true, get: function () { return v1beta1_42.playdeveloperreporting_v1beta1; } }); +var v1_136 = __webpack_require__(1480); +Object.defineProperty(exports, "playintegrity_v1", { enumerable: true, get: function () { return v1_136.playintegrity_v1; } }); +var v1_137 = __webpack_require__(6615); +Object.defineProperty(exports, "plus_v1", { enumerable: true, get: function () { return v1_137.plus_v1; } }); +var v1_138 = __webpack_require__(6013); +Object.defineProperty(exports, "policyanalyzer_v1", { enumerable: true, get: function () { return v1_138.policyanalyzer_v1; } }); +var v1beta1_43 = __webpack_require__(4863); +Object.defineProperty(exports, "policyanalyzer_v1beta1", { enumerable: true, get: function () { return v1beta1_43.policyanalyzer_v1beta1; } }); +var v1_139 = __webpack_require__(7502); +Object.defineProperty(exports, "policysimulator_v1", { enumerable: true, get: function () { return v1_139.policysimulator_v1; } }); +var v1alpha_12 = __webpack_require__(106); +Object.defineProperty(exports, "policysimulator_v1alpha", { enumerable: true, get: function () { return v1alpha_12.policysimulator_v1alpha; } }); +var v1beta_19 = __webpack_require__(3115); +Object.defineProperty(exports, "policysimulator_v1beta", { enumerable: true, get: function () { return v1beta_19.policysimulator_v1beta; } }); +var v1beta1_44 = __webpack_require__(3556); +Object.defineProperty(exports, "policysimulator_v1beta1", { enumerable: true, get: function () { return v1beta1_44.policysimulator_v1beta1; } }); +var v1_140 = __webpack_require__(8001); +Object.defineProperty(exports, "policytroubleshooter_v1", { enumerable: true, get: function () { return v1_140.policytroubleshooter_v1; } }); +var v1beta_20 = __webpack_require__(5675); +Object.defineProperty(exports, "policytroubleshooter_v1beta", { enumerable: true, get: function () { return v1beta_20.policytroubleshooter_v1beta; } }); +var v1_141 = __webpack_require__(6930); +Object.defineProperty(exports, "poly_v1", { enumerable: true, get: function () { return v1_141.poly_v1; } }); +var v1_142 = __webpack_require__(5908); +Object.defineProperty(exports, "privateca_v1", { enumerable: true, get: function () { return v1_142.privateca_v1; } }); +var v1beta1_45 = __webpack_require__(2559); +Object.defineProperty(exports, "privateca_v1beta1", { enumerable: true, get: function () { return v1beta1_45.privateca_v1beta1; } }); +var v1alpha1_13 = __webpack_require__(9743); +Object.defineProperty(exports, "prod_tt_sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_13.prod_tt_sasportal_v1alpha1; } }); +var v1alpha1_14 = __webpack_require__(4447); +Object.defineProperty(exports, "publicca_v1alpha1", { enumerable: true, get: function () { return v1alpha1_14.publicca_v1alpha1; } }); +var v1beta1_46 = __webpack_require__(5934); +Object.defineProperty(exports, "publicca_v1beta1", { enumerable: true, get: function () { return v1beta1_46.publicca_v1beta1; } }); +var v1_143 = __webpack_require__(3077); +Object.defineProperty(exports, "pubsub_v1", { enumerable: true, get: function () { return v1_143.pubsub_v1; } }); +var v1beta1a_1 = __webpack_require__(7578); Object.defineProperty(exports, "pubsub_v1beta1a", { enumerable: true, get: function () { return v1beta1a_1.pubsub_v1beta1a; } }); -var v1beta2_8 = __webpack_require__(127); -Object.defineProperty(exports, "pubsub_v1beta2", { enumerable: true, get: function () { return v1beta2_8.pubsub_v1beta2; } }); -var v1beta1_27 = __webpack_require__(600); -Object.defineProperty(exports, "recommender_v1beta1", { enumerable: true, get: function () { return v1beta1_27.recommender_v1beta1; } }); -var v1_77 = __webpack_require__(473); -Object.defineProperty(exports, "redis_v1", { enumerable: true, get: function () { return v1_77.redis_v1; } }); -var v1beta1_28 = __webpack_require__(175); -Object.defineProperty(exports, "redis_v1beta1", { enumerable: true, get: function () { return v1beta1_28.redis_v1beta1; } }); -var v1_78 = __webpack_require__(497); -Object.defineProperty(exports, "remotebuildexecution_v1", { enumerable: true, get: function () { return v1_78.remotebuildexecution_v1; } }); -var v1alpha_3 = __webpack_require__(121); -Object.defineProperty(exports, "remotebuildexecution_v1alpha", { enumerable: true, get: function () { return v1alpha_3.remotebuildexecution_v1alpha; } }); -var v2_22 = __webpack_require__(789); -Object.defineProperty(exports, "remotebuildexecution_v2", { enumerable: true, get: function () { return v2_22.remotebuildexecution_v2; } }); -var v1_79 = __webpack_require__(516); -Object.defineProperty(exports, "reseller_v1", { enumerable: true, get: function () { return v1_79.reseller_v1; } }); -var v1_80 = __webpack_require__(923); -Object.defineProperty(exports, "run_v1", { enumerable: true, get: function () { return v1_80.run_v1; } }); -var v1alpha1_7 = __webpack_require__(238); -Object.defineProperty(exports, "run_v1alpha1", { enumerable: true, get: function () { return v1alpha1_7.run_v1alpha1; } }); -var v1beta1_29 = __webpack_require__(88); -Object.defineProperty(exports, "run_v1beta1", { enumerable: true, get: function () { return v1beta1_29.run_v1beta1; } }); -var v1_81 = __webpack_require__(601); -Object.defineProperty(exports, "runtimeconfig_v1", { enumerable: true, get: function () { return v1_81.runtimeconfig_v1; } }); -var v1beta1_30 = __webpack_require__(699); -Object.defineProperty(exports, "runtimeconfig_v1beta1", { enumerable: true, get: function () { return v1beta1_30.runtimeconfig_v1beta1; } }); -var v4_3 = __webpack_require__(662); -Object.defineProperty(exports, "safebrowsing_v4", { enumerable: true, get: function () { return v4_3.safebrowsing_v4; } }); -var v1alpha1_8 = __webpack_require__(387); -Object.defineProperty(exports, "sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_8.sasportal_v1alpha1; } }); -var v1_82 = __webpack_require__(448); -Object.defineProperty(exports, "script_v1", { enumerable: true, get: function () { return v1_82.script_v1; } }); -var v1_83 = __webpack_require__(754); -Object.defineProperty(exports, "searchconsole_v1", { enumerable: true, get: function () { return v1_83.searchconsole_v1; } }); -var v1_84 = __webpack_require__(719); -Object.defineProperty(exports, "secretmanager_v1", { enumerable: true, get: function () { return v1_84.secretmanager_v1; } }); -var v1beta1_31 = __webpack_require__(689); -Object.defineProperty(exports, "secretmanager_v1beta1", { enumerable: true, get: function () { return v1beta1_31.secretmanager_v1beta1; } }); -var v1_85 = __webpack_require__(223); -Object.defineProperty(exports, "securitycenter_v1", { enumerable: true, get: function () { return v1_85.securitycenter_v1; } }); -var v1beta1_32 = __webpack_require__(246); -Object.defineProperty(exports, "securitycenter_v1beta1", { enumerable: true, get: function () { return v1beta1_32.securitycenter_v1beta1; } }); -var v1p1alpha1_1 = __webpack_require__(44); +var v1beta2_11 = __webpack_require__(7431); +Object.defineProperty(exports, "pubsub_v1beta2", { enumerable: true, get: function () { return v1beta2_11.pubsub_v1beta2; } }); +var v1_144 = __webpack_require__(257); +Object.defineProperty(exports, "pubsublite_v1", { enumerable: true, get: function () { return v1_144.pubsublite_v1; } }); +var v1_145 = __webpack_require__(4743); +Object.defineProperty(exports, "readerrevenuesubscriptionlinking_v1", { enumerable: true, get: function () { return v1_145.readerrevenuesubscriptionlinking_v1; } }); +var v1_146 = __webpack_require__(2862); +Object.defineProperty(exports, "realtimebidding_v1", { enumerable: true, get: function () { return v1_146.realtimebidding_v1; } }); +var v1alpha_13 = __webpack_require__(7465); +Object.defineProperty(exports, "realtimebidding_v1alpha", { enumerable: true, get: function () { return v1alpha_13.realtimebidding_v1alpha; } }); +var v1_147 = __webpack_require__(6758); +Object.defineProperty(exports, "recaptchaenterprise_v1", { enumerable: true, get: function () { return v1_147.recaptchaenterprise_v1; } }); +var v1beta1_47 = __webpack_require__(7090); +Object.defineProperty(exports, "recommendationengine_v1beta1", { enumerable: true, get: function () { return v1beta1_47.recommendationengine_v1beta1; } }); +var v1_148 = __webpack_require__(5762); +Object.defineProperty(exports, "recommender_v1", { enumerable: true, get: function () { return v1_148.recommender_v1; } }); +var v1beta1_48 = __webpack_require__(8192); +Object.defineProperty(exports, "recommender_v1beta1", { enumerable: true, get: function () { return v1beta1_48.recommender_v1beta1; } }); +var v1_149 = __webpack_require__(9473); +Object.defineProperty(exports, "redis_v1", { enumerable: true, get: function () { return v1_149.redis_v1; } }); +var v1beta1_49 = __webpack_require__(7175); +Object.defineProperty(exports, "redis_v1beta1", { enumerable: true, get: function () { return v1beta1_49.redis_v1beta1; } }); +var v1_150 = __webpack_require__(1426); +Object.defineProperty(exports, "remotebuildexecution_v1", { enumerable: true, get: function () { return v1_150.remotebuildexecution_v1; } }); +var v1alpha_14 = __webpack_require__(488); +Object.defineProperty(exports, "remotebuildexecution_v1alpha", { enumerable: true, get: function () { return v1alpha_14.remotebuildexecution_v1alpha; } }); +var v2_34 = __webpack_require__(1508); +Object.defineProperty(exports, "remotebuildexecution_v2", { enumerable: true, get: function () { return v2_34.remotebuildexecution_v2; } }); +var v1_151 = __webpack_require__(8940); +Object.defineProperty(exports, "reseller_v1", { enumerable: true, get: function () { return v1_151.reseller_v1; } }); +var v1_152 = __webpack_require__(6769); +Object.defineProperty(exports, "resourcesettings_v1", { enumerable: true, get: function () { return v1_152.resourcesettings_v1; } }); +var v2_35 = __webpack_require__(924); +Object.defineProperty(exports, "retail_v2", { enumerable: true, get: function () { return v2_35.retail_v2; } }); +var v2alpha_3 = __webpack_require__(9414); +Object.defineProperty(exports, "retail_v2alpha", { enumerable: true, get: function () { return v2alpha_3.retail_v2alpha; } }); +var v2beta_7 = __webpack_require__(5691); +Object.defineProperty(exports, "retail_v2beta", { enumerable: true, get: function () { return v2beta_7.retail_v2beta; } }); +var v1_153 = __webpack_require__(7923); +Object.defineProperty(exports, "run_v1", { enumerable: true, get: function () { return v1_153.run_v1; } }); +var v1alpha1_15 = __webpack_require__(8238); +Object.defineProperty(exports, "run_v1alpha1", { enumerable: true, get: function () { return v1alpha1_15.run_v1alpha1; } }); +var v1beta1_50 = __webpack_require__(6088); +Object.defineProperty(exports, "run_v1beta1", { enumerable: true, get: function () { return v1beta1_50.run_v1beta1; } }); +var v2_36 = __webpack_require__(7327); +Object.defineProperty(exports, "run_v2", { enumerable: true, get: function () { return v2_36.run_v2; } }); +var v1_154 = __webpack_require__(3890); +Object.defineProperty(exports, "runtimeconfig_v1", { enumerable: true, get: function () { return v1_154.runtimeconfig_v1; } }); +var v1beta1_51 = __webpack_require__(8687); +Object.defineProperty(exports, "runtimeconfig_v1beta1", { enumerable: true, get: function () { return v1beta1_51.runtimeconfig_v1beta1; } }); +var v4_4 = __webpack_require__(2662); +Object.defineProperty(exports, "safebrowsing_v4", { enumerable: true, get: function () { return v4_4.safebrowsing_v4; } }); +var v1alpha1_16 = __webpack_require__(5772); +Object.defineProperty(exports, "sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_16.sasportal_v1alpha1; } }); +var v1_155 = __webpack_require__(8448); +Object.defineProperty(exports, "script_v1", { enumerable: true, get: function () { return v1_155.script_v1; } }); +var v0_1 = __webpack_require__(4533); +Object.defineProperty(exports, "searchads360_v0", { enumerable: true, get: function () { return v0_1.searchads360_v0; } }); +var v1_156 = __webpack_require__(8027); +Object.defineProperty(exports, "searchconsole_v1", { enumerable: true, get: function () { return v1_156.searchconsole_v1; } }); +var v1_157 = __webpack_require__(3030); +Object.defineProperty(exports, "secretmanager_v1", { enumerable: true, get: function () { return v1_157.secretmanager_v1; } }); +var v1beta1_52 = __webpack_require__(2); +Object.defineProperty(exports, "secretmanager_v1beta1", { enumerable: true, get: function () { return v1beta1_52.secretmanager_v1beta1; } }); +var v1_158 = __webpack_require__(4988); +Object.defineProperty(exports, "securitycenter_v1", { enumerable: true, get: function () { return v1_158.securitycenter_v1; } }); +var v1beta1_53 = __webpack_require__(5854); +Object.defineProperty(exports, "securitycenter_v1beta1", { enumerable: true, get: function () { return v1beta1_53.securitycenter_v1beta1; } }); +var v1beta2_12 = __webpack_require__(9718); +Object.defineProperty(exports, "securitycenter_v1beta2", { enumerable: true, get: function () { return v1beta2_12.securitycenter_v1beta2; } }); +var v1p1alpha1_1 = __webpack_require__(8021); Object.defineProperty(exports, "securitycenter_v1p1alpha1", { enumerable: true, get: function () { return v1p1alpha1_1.securitycenter_v1p1alpha1; } }); -var v1p1beta1_2 = __webpack_require__(737); +var v1p1beta1_2 = __webpack_require__(1897); Object.defineProperty(exports, "securitycenter_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_2.securitycenter_v1p1beta1; } }); -var v1_86 = __webpack_require__(112); -Object.defineProperty(exports, "serviceconsumermanagement_v1", { enumerable: true, get: function () { return v1_86.serviceconsumermanagement_v1; } }); -var v1beta1_33 = __webpack_require__(716); -Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_33.serviceconsumermanagement_v1beta1; } }); -var v1_87 = __webpack_require__(944); -Object.defineProperty(exports, "servicecontrol_v1", { enumerable: true, get: function () { return v1_87.servicecontrol_v1; } }); -var v1beta1_34 = __webpack_require__(991); -Object.defineProperty(exports, "servicedirectory_v1beta1", { enumerable: true, get: function () { return v1beta1_34.servicedirectory_v1beta1; } }); -var v1_88 = __webpack_require__(98); -Object.defineProperty(exports, "servicemanagement_v1", { enumerable: true, get: function () { return v1_88.servicemanagement_v1; } }); -var v1_89 = __webpack_require__(73); -Object.defineProperty(exports, "servicenetworking_v1", { enumerable: true, get: function () { return v1_89.servicenetworking_v1; } }); -var v1beta_7 = __webpack_require__(709); -Object.defineProperty(exports, "servicenetworking_v1beta", { enumerable: true, get: function () { return v1beta_7.servicenetworking_v1beta; } }); -var v1_90 = __webpack_require__(281); -Object.defineProperty(exports, "serviceusage_v1", { enumerable: true, get: function () { return v1_90.serviceusage_v1; } }); -var v1beta1_35 = __webpack_require__(952); -Object.defineProperty(exports, "serviceusage_v1beta1", { enumerable: true, get: function () { return v1beta1_35.serviceusage_v1beta1; } }); -var v4_4 = __webpack_require__(525); -Object.defineProperty(exports, "sheets_v4", { enumerable: true, get: function () { return v4_4.sheets_v4; } }); -var v1_91 = __webpack_require__(477); -Object.defineProperty(exports, "siteVerification_v1", { enumerable: true, get: function () { return v1_91.siteVerification_v1; } }); -var v1_92 = __webpack_require__(759); -Object.defineProperty(exports, "slides_v1", { enumerable: true, get: function () { return v1_92.slides_v1; } }); -var v1_93 = __webpack_require__(782); -Object.defineProperty(exports, "sourcerepo_v1", { enumerable: true, get: function () { return v1_93.sourcerepo_v1; } }); -var v1_94 = __webpack_require__(161); -Object.defineProperty(exports, "spanner_v1", { enumerable: true, get: function () { return v1_94.spanner_v1; } }); -var v1_95 = __webpack_require__(244); -Object.defineProperty(exports, "speech_v1", { enumerable: true, get: function () { return v1_95.speech_v1; } }); -var v1p1beta1_3 = __webpack_require__(806); +var v1_159 = __webpack_require__(5886); +Object.defineProperty(exports, "serviceconsumermanagement_v1", { enumerable: true, get: function () { return v1_159.serviceconsumermanagement_v1; } }); +var v1beta1_54 = __webpack_require__(3716); +Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_54.serviceconsumermanagement_v1beta1; } }); +var v1_160 = __webpack_require__(8944); +Object.defineProperty(exports, "servicecontrol_v1", { enumerable: true, get: function () { return v1_160.servicecontrol_v1; } }); +var v2_37 = __webpack_require__(9502); +Object.defineProperty(exports, "servicecontrol_v2", { enumerable: true, get: function () { return v2_37.servicecontrol_v2; } }); +var v1_161 = __webpack_require__(1021); +Object.defineProperty(exports, "servicedirectory_v1", { enumerable: true, get: function () { return v1_161.servicedirectory_v1; } }); +var v1beta1_55 = __webpack_require__(8991); +Object.defineProperty(exports, "servicedirectory_v1beta1", { enumerable: true, get: function () { return v1beta1_55.servicedirectory_v1beta1; } }); +var v1_162 = __webpack_require__(2239); +Object.defineProperty(exports, "servicemanagement_v1", { enumerable: true, get: function () { return v1_162.servicemanagement_v1; } }); +var v1_163 = __webpack_require__(1081); +Object.defineProperty(exports, "servicenetworking_v1", { enumerable: true, get: function () { return v1_163.servicenetworking_v1; } }); +var v1beta_21 = __webpack_require__(6908); +Object.defineProperty(exports, "servicenetworking_v1beta", { enumerable: true, get: function () { return v1beta_21.servicenetworking_v1beta; } }); +var v1_164 = __webpack_require__(2644); +Object.defineProperty(exports, "serviceusage_v1", { enumerable: true, get: function () { return v1_164.serviceusage_v1; } }); +var v1beta1_56 = __webpack_require__(735); +Object.defineProperty(exports, "serviceusage_v1beta1", { enumerable: true, get: function () { return v1beta1_56.serviceusage_v1beta1; } }); +var v4_5 = __webpack_require__(5525); +Object.defineProperty(exports, "sheets_v4", { enumerable: true, get: function () { return v4_5.sheets_v4; } }); +var v1_165 = __webpack_require__(5477); +Object.defineProperty(exports, "siteVerification_v1", { enumerable: true, get: function () { return v1_165.siteVerification_v1; } }); +var v1_166 = __webpack_require__(7641); +Object.defineProperty(exports, "slides_v1", { enumerable: true, get: function () { return v1_166.slides_v1; } }); +var v1_167 = __webpack_require__(1397); +Object.defineProperty(exports, "smartdevicemanagement_v1", { enumerable: true, get: function () { return v1_167.smartdevicemanagement_v1; } }); +var v1_168 = __webpack_require__(3012); +Object.defineProperty(exports, "sourcerepo_v1", { enumerable: true, get: function () { return v1_168.sourcerepo_v1; } }); +var v1_169 = __webpack_require__(7233); +Object.defineProperty(exports, "spanner_v1", { enumerable: true, get: function () { return v1_169.spanner_v1; } }); +var v1_170 = __webpack_require__(4838); +Object.defineProperty(exports, "speech_v1", { enumerable: true, get: function () { return v1_170.speech_v1; } }); +var v1p1beta1_3 = __webpack_require__(8340); Object.defineProperty(exports, "speech_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_3.speech_v1p1beta1; } }); -var v2beta1_6 = __webpack_require__(45); +var v2beta1_6 = __webpack_require__(9685); Object.defineProperty(exports, "speech_v2beta1", { enumerable: true, get: function () { return v2beta1_6.speech_v2beta1; } }); -var v1beta4_1 = __webpack_require__(475); +var v1beta4_1 = __webpack_require__(3475); Object.defineProperty(exports, "sql_v1beta4", { enumerable: true, get: function () { return v1beta4_1.sql_v1beta4; } }); -var v1_96 = __webpack_require__(511); -Object.defineProperty(exports, "storage_v1", { enumerable: true, get: function () { return v1_96.storage_v1; } }); -var v1beta2_9 = __webpack_require__(111); -Object.defineProperty(exports, "storage_v1beta2", { enumerable: true, get: function () { return v1beta2_9.storage_v1beta2; } }); -var v1_97 = __webpack_require__(189); -Object.defineProperty(exports, "storagetransfer_v1", { enumerable: true, get: function () { return v1_97.storagetransfer_v1; } }); -var v1_98 = __webpack_require__(500); -Object.defineProperty(exports, "streetviewpublish_v1", { enumerable: true, get: function () { return v1_98.streetviewpublish_v1; } }); -var v1_99 = __webpack_require__(97); -Object.defineProperty(exports, "tagmanager_v1", { enumerable: true, get: function () { return v1_99.tagmanager_v1; } }); -var v2_23 = __webpack_require__(543); -Object.defineProperty(exports, "tagmanager_v2", { enumerable: true, get: function () { return v2_23.tagmanager_v2; } }); -var v1_100 = __webpack_require__(727); -Object.defineProperty(exports, "tasks_v1", { enumerable: true, get: function () { return v1_100.tasks_v1; } }); -var v1_101 = __webpack_require__(405); -Object.defineProperty(exports, "testing_v1", { enumerable: true, get: function () { return v1_101.testing_v1; } }); -var v1_102 = __webpack_require__(657); -Object.defineProperty(exports, "texttospeech_v1", { enumerable: true, get: function () { return v1_102.texttospeech_v1; } }); -var v1beta1_36 = __webpack_require__(33); -Object.defineProperty(exports, "texttospeech_v1beta1", { enumerable: true, get: function () { return v1beta1_36.texttospeech_v1beta1; } }); -var v1beta3_2 = __webpack_require__(61); -Object.defineProperty(exports, "toolresults_v1beta3", { enumerable: true, get: function () { return v1beta3_2.toolresults_v1beta3; } }); -var v1_103 = __webpack_require__(698); -Object.defineProperty(exports, "tpu_v1", { enumerable: true, get: function () { return v1_103.tpu_v1; } }); -var v1alpha1_9 = __webpack_require__(154); -Object.defineProperty(exports, "tpu_v1alpha1", { enumerable: true, get: function () { return v1alpha1_9.tpu_v1alpha1; } }); -var v2_24 = __webpack_require__(637); -Object.defineProperty(exports, "translate_v2", { enumerable: true, get: function () { return v2_24.translate_v2; } }); -var v3_10 = __webpack_require__(66); -Object.defineProperty(exports, "translate_v3", { enumerable: true, get: function () { return v3_10.translate_v3; } }); -var v3beta1_1 = __webpack_require__(757); -Object.defineProperty(exports, "translate_v3beta1", { enumerable: true, get: function () { return v3beta1_1.translate_v3beta1; } }); -var v1_104 = __webpack_require__(460); -Object.defineProperty(exports, "vault_v1", { enumerable: true, get: function () { return v1_104.vault_v1; } }); -var v1_105 = __webpack_require__(841); -Object.defineProperty(exports, "verifiedaccess_v1", { enumerable: true, get: function () { return v1_105.verifiedaccess_v1; } }); -var v1_106 = __webpack_require__(885); -Object.defineProperty(exports, "videointelligence_v1", { enumerable: true, get: function () { return v1_106.videointelligence_v1; } }); -var v1beta2_10 = __webpack_require__(415); -Object.defineProperty(exports, "videointelligence_v1beta2", { enumerable: true, get: function () { return v1beta2_10.videointelligence_v1beta2; } }); -var v1p1beta1_4 = __webpack_require__(541); +var v1_171 = __webpack_require__(6683); +Object.defineProperty(exports, "sqladmin_v1", { enumerable: true, get: function () { return v1_171.sqladmin_v1; } }); +var v1beta4_2 = __webpack_require__(3562); +Object.defineProperty(exports, "sqladmin_v1beta4", { enumerable: true, get: function () { return v1beta4_2.sqladmin_v1beta4; } }); +var v1_172 = __webpack_require__(9511); +Object.defineProperty(exports, "storage_v1", { enumerable: true, get: function () { return v1_172.storage_v1; } }); +var v1beta2_13 = __webpack_require__(1111); +Object.defineProperty(exports, "storage_v1beta2", { enumerable: true, get: function () { return v1beta2_13.storage_v1beta2; } }); +var v1_173 = __webpack_require__(4102); +Object.defineProperty(exports, "storagetransfer_v1", { enumerable: true, get: function () { return v1_173.storagetransfer_v1; } }); +var v1_174 = __webpack_require__(5240); +Object.defineProperty(exports, "streetviewpublish_v1", { enumerable: true, get: function () { return v1_174.streetviewpublish_v1; } }); +var v1_175 = __webpack_require__(6502); +Object.defineProperty(exports, "sts_v1", { enumerable: true, get: function () { return v1_175.sts_v1; } }); +var v1beta_22 = __webpack_require__(9425); +Object.defineProperty(exports, "sts_v1beta", { enumerable: true, get: function () { return v1beta_22.sts_v1beta; } }); +var v1_176 = __webpack_require__(6097); +Object.defineProperty(exports, "tagmanager_v1", { enumerable: true, get: function () { return v1_176.tagmanager_v1; } }); +var v2_38 = __webpack_require__(9354); +Object.defineProperty(exports, "tagmanager_v2", { enumerable: true, get: function () { return v2_38.tagmanager_v2; } }); +var v1_177 = __webpack_require__(3727); +Object.defineProperty(exports, "tasks_v1", { enumerable: true, get: function () { return v1_177.tasks_v1; } }); +var v1_178 = __webpack_require__(3405); +Object.defineProperty(exports, "testing_v1", { enumerable: true, get: function () { return v1_178.testing_v1; } }); +var v1_179 = __webpack_require__(6332); +Object.defineProperty(exports, "texttospeech_v1", { enumerable: true, get: function () { return v1_179.texttospeech_v1; } }); +var v1beta1_57 = __webpack_require__(2929); +Object.defineProperty(exports, "texttospeech_v1beta1", { enumerable: true, get: function () { return v1beta1_57.texttospeech_v1beta1; } }); +var v1beta3_3 = __webpack_require__(3061); +Object.defineProperty(exports, "toolresults_v1beta3", { enumerable: true, get: function () { return v1beta3_3.toolresults_v1beta3; } }); +var v1_180 = __webpack_require__(1339); +Object.defineProperty(exports, "tpu_v1", { enumerable: true, get: function () { return v1_180.tpu_v1; } }); +var v1alpha1_17 = __webpack_require__(2274); +Object.defineProperty(exports, "tpu_v1alpha1", { enumerable: true, get: function () { return v1alpha1_17.tpu_v1alpha1; } }); +var v2_39 = __webpack_require__(1761); +Object.defineProperty(exports, "tpu_v2", { enumerable: true, get: function () { return v2_39.tpu_v2; } }); +var v2alpha1_2 = __webpack_require__(7581); +Object.defineProperty(exports, "tpu_v2alpha1", { enumerable: true, get: function () { return v2alpha1_2.tpu_v2alpha1; } }); +var v2_40 = __webpack_require__(9498); +Object.defineProperty(exports, "trafficdirector_v2", { enumerable: true, get: function () { return v2_40.trafficdirector_v2; } }); +var v1_181 = __webpack_require__(9789); +Object.defineProperty(exports, "transcoder_v1", { enumerable: true, get: function () { return v1_181.transcoder_v1; } }); +var v1beta1_58 = __webpack_require__(8591); +Object.defineProperty(exports, "transcoder_v1beta1", { enumerable: true, get: function () { return v1beta1_58.transcoder_v1beta1; } }); +var v2_41 = __webpack_require__(5504); +Object.defineProperty(exports, "translate_v2", { enumerable: true, get: function () { return v2_41.translate_v2; } }); +var v3_13 = __webpack_require__(1076); +Object.defineProperty(exports, "translate_v3", { enumerable: true, get: function () { return v3_13.translate_v3; } }); +var v3beta1_2 = __webpack_require__(9730); +Object.defineProperty(exports, "translate_v3beta1", { enumerable: true, get: function () { return v3beta1_2.translate_v3beta1; } }); +var v1_182 = __webpack_require__(5383); +Object.defineProperty(exports, "travelimpactmodel_v1", { enumerable: true, get: function () { return v1_182.travelimpactmodel_v1; } }); +var v1_183 = __webpack_require__(460); +Object.defineProperty(exports, "vault_v1", { enumerable: true, get: function () { return v1_183.vault_v1; } }); +var v1_184 = __webpack_require__(9303); +Object.defineProperty(exports, "vectortile_v1", { enumerable: true, get: function () { return v1_184.vectortile_v1; } }); +var v1_185 = __webpack_require__(7393); +Object.defineProperty(exports, "verifiedaccess_v1", { enumerable: true, get: function () { return v1_185.verifiedaccess_v1; } }); +var v2_42 = __webpack_require__(3345); +Object.defineProperty(exports, "verifiedaccess_v2", { enumerable: true, get: function () { return v2_42.verifiedaccess_v2; } }); +var v1_186 = __webpack_require__(720); +Object.defineProperty(exports, "versionhistory_v1", { enumerable: true, get: function () { return v1_186.versionhistory_v1; } }); +var v1_187 = __webpack_require__(9463); +Object.defineProperty(exports, "videointelligence_v1", { enumerable: true, get: function () { return v1_187.videointelligence_v1; } }); +var v1beta2_14 = __webpack_require__(3489); +Object.defineProperty(exports, "videointelligence_v1beta2", { enumerable: true, get: function () { return v1beta2_14.videointelligence_v1beta2; } }); +var v1p1beta1_4 = __webpack_require__(4541); Object.defineProperty(exports, "videointelligence_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_4.videointelligence_v1p1beta1; } }); -var v1p2beta1_1 = __webpack_require__(283); +var v1p2beta1_1 = __webpack_require__(8039); Object.defineProperty(exports, "videointelligence_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } }); -var v1p3beta1_1 = __webpack_require__(228); +var v1p3beta1_1 = __webpack_require__(6184); Object.defineProperty(exports, "videointelligence_v1p3beta1", { enumerable: true, get: function () { return v1p3beta1_1.videointelligence_v1p3beta1; } }); -var v1_107 = __webpack_require__(932); -Object.defineProperty(exports, "vision_v1", { enumerable: true, get: function () { return v1_107.vision_v1; } }); -var v1p1beta1_5 = __webpack_require__(468); +var v1_188 = __webpack_require__(1833); +Object.defineProperty(exports, "vision_v1", { enumerable: true, get: function () { return v1_188.vision_v1; } }); +var v1p1beta1_5 = __webpack_require__(8493); Object.defineProperty(exports, "vision_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_5.vision_v1p1beta1; } }); -var v1p2beta1_2 = __webpack_require__(781); +var v1p2beta1_2 = __webpack_require__(4666); Object.defineProperty(exports, "vision_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_2.vision_v1p2beta1; } }); -var v1_108 = __webpack_require__(858); -Object.defineProperty(exports, "webfonts_v1", { enumerable: true, get: function () { return v1_108.webfonts_v1; } }); -var v3_11 = __webpack_require__(843); -Object.defineProperty(exports, "webmasters_v3", { enumerable: true, get: function () { return v3_11.webmasters_v3; } }); -var v1_109 = __webpack_require__(167); -Object.defineProperty(exports, "websecurityscanner_v1", { enumerable: true, get: function () { return v1_109.websecurityscanner_v1; } }); -var v1alpha_4 = __webpack_require__(810); -Object.defineProperty(exports, "websecurityscanner_v1alpha", { enumerable: true, get: function () { return v1alpha_4.websecurityscanner_v1alpha; } }); -var v1beta_8 = __webpack_require__(381); -Object.defineProperty(exports, "websecurityscanner_v1beta", { enumerable: true, get: function () { return v1beta_8.websecurityscanner_v1beta; } }); -var v3_12 = __webpack_require__(261); -Object.defineProperty(exports, "youtube_v3", { enumerable: true, get: function () { return v3_12.youtube_v3; } }); -var v1_110 = __webpack_require__(683); -Object.defineProperty(exports, "youtubeAnalytics_v1", { enumerable: true, get: function () { return v1_110.youtubeAnalytics_v1; } }); -var v2_25 = __webpack_require__(633); -Object.defineProperty(exports, "youtubeAnalytics_v2", { enumerable: true, get: function () { return v2_25.youtubeAnalytics_v2; } }); -var v1_111 = __webpack_require__(222); -Object.defineProperty(exports, "youtubereporting_v1", { enumerable: true, get: function () { return v1_111.youtubereporting_v1; } }); -//# sourceMappingURL=index.js.map +var v1_189 = __webpack_require__(8450); +Object.defineProperty(exports, "vmmigration_v1", { enumerable: true, get: function () { return v1_189.vmmigration_v1; } }); +var v1alpha1_18 = __webpack_require__(9225); +Object.defineProperty(exports, "vmmigration_v1alpha1", { enumerable: true, get: function () { return v1alpha1_18.vmmigration_v1alpha1; } }); +var v1_190 = __webpack_require__(5340); +Object.defineProperty(exports, "vpcaccess_v1", { enumerable: true, get: function () { return v1_190.vpcaccess_v1; } }); +var v1beta1_59 = __webpack_require__(9170); +Object.defineProperty(exports, "vpcaccess_v1beta1", { enumerable: true, get: function () { return v1beta1_59.vpcaccess_v1beta1; } }); +var v1_191 = __webpack_require__(561); +Object.defineProperty(exports, "webfonts_v1", { enumerable: true, get: function () { return v1_191.webfonts_v1; } }); +var v3_14 = __webpack_require__(7469); +Object.defineProperty(exports, "webmasters_v3", { enumerable: true, get: function () { return v3_14.webmasters_v3; } }); +var v1_192 = __webpack_require__(7430); +Object.defineProperty(exports, "webrisk_v1", { enumerable: true, get: function () { return v1_192.webrisk_v1; } }); +var v1_193 = __webpack_require__(3781); +Object.defineProperty(exports, "websecurityscanner_v1", { enumerable: true, get: function () { return v1_193.websecurityscanner_v1; } }); +var v1alpha_15 = __webpack_require__(4810); +Object.defineProperty(exports, "websecurityscanner_v1alpha", { enumerable: true, get: function () { return v1alpha_15.websecurityscanner_v1alpha; } }); +var v1beta_23 = __webpack_require__(2280); +Object.defineProperty(exports, "websecurityscanner_v1beta", { enumerable: true, get: function () { return v1beta_23.websecurityscanner_v1beta; } }); +var v1_194 = __webpack_require__(5560); +Object.defineProperty(exports, "workflowexecutions_v1", { enumerable: true, get: function () { return v1_194.workflowexecutions_v1; } }); +var v1beta_24 = __webpack_require__(6843); +Object.defineProperty(exports, "workflowexecutions_v1beta", { enumerable: true, get: function () { return v1beta_24.workflowexecutions_v1beta; } }); +var v1_195 = __webpack_require__(3946); +Object.defineProperty(exports, "workflows_v1", { enumerable: true, get: function () { return v1_195.workflows_v1; } }); +var v1beta_25 = __webpack_require__(5949); +Object.defineProperty(exports, "workflows_v1beta", { enumerable: true, get: function () { return v1beta_25.workflows_v1beta; } }); +var v1_196 = __webpack_require__(8353); +Object.defineProperty(exports, "workloadmanager_v1", { enumerable: true, get: function () { return v1_196.workloadmanager_v1; } }); +var v1beta_26 = __webpack_require__(7224); +Object.defineProperty(exports, "workstations_v1beta", { enumerable: true, get: function () { return v1beta_26.workstations_v1beta; } }); +var v3_15 = __webpack_require__(2261); +Object.defineProperty(exports, "youtube_v3", { enumerable: true, get: function () { return v3_15.youtube_v3; } }); +var v1_197 = __webpack_require__(3881); +Object.defineProperty(exports, "youtubeAnalytics_v1", { enumerable: true, get: function () { return v1_197.youtubeAnalytics_v1; } }); +var v2_43 = __webpack_require__(4633); +Object.defineProperty(exports, "youtubeAnalytics_v2", { enumerable: true, get: function () { return v2_43.youtubeAnalytics_v2; } }); +var v1_198 = __webpack_require__(2222); +Object.defineProperty(exports, "youtubereporting_v1", { enumerable: true, get: function () { return v1_198.youtubereporting_v1; } }); + /***/ }), -/* 820 */, -/* 821 */ + +/***/ 8833: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -256911,26 +515274,34 @@ Object.defineProperty(exports, "youtubereporting_v1", { enumerable: true, get: f // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.firebaserules = exports.VERSIONS = void 0; +exports.AuthPlus = exports.mybusinessverifications_v1 = exports.auth = exports.mybusinessverifications = exports.VERSIONS = void 0; /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(340); +const v1_1 = __webpack_require__(1478); +Object.defineProperty(exports, "mybusinessverifications_v1", { enumerable: true, get: function () { return v1_1.mybusinessverifications_v1; } }); exports.VERSIONS = { - v1: v1_1.firebaserules_v1.Firebaserules, + v1: v1_1.mybusinessverifications_v1.Mybusinessverifications, }; -function firebaserules(versionOrOptions) { - return googleapis_common_1.getAPI('firebaserules', versionOrOptions, exports.VERSIONS, this); +function mybusinessverifications(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessverifications', versionOrOptions, exports.VERSIONS, this); } -exports.firebaserules = firebaserules; +exports.mybusinessverifications = mybusinessverifications; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; -//# sourceMappingURL=index.js.map +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8835: +/***/ (function(module) { + +module.exports = require("url"); /***/ }), -/* 822 */, -/* 823 */, -/* 824 */, -/* 825 */ + +/***/ 8837: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -256948,457 +515319,1116 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.homegraph_v1 = void 0; +exports.AuthPlus = exports.workflowexecutions_v1beta = exports.workflowexecutions_v1 = exports.auth = exports.workflowexecutions = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5560); +Object.defineProperty(exports, "workflowexecutions_v1", { enumerable: true, get: function () { return v1_1.workflowexecutions_v1; } }); +const v1beta_1 = __webpack_require__(6843); +Object.defineProperty(exports, "workflowexecutions_v1beta", { enumerable: true, get: function () { return v1beta_1.workflowexecutions_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.workflowexecutions_v1.Workflowexecutions, + v1beta: v1beta_1.workflowexecutions_v1beta.Workflowexecutions, +}; +function workflowexecutions(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('workflowexecutions', versionOrOptions, exports.VERSIONS, this); +} +exports.workflowexecutions = workflowexecutions; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8840: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.container_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 = __webpack_require__(927); -var homegraph_v1; -(function (homegraph_v1) { +var container_v1; +(function (container_v1) { /** - * HomeGraph API - * + * Kubernetes Engine API * + * Builds and manages container-based applications, powered by the open source Kubernetes technology. * * @example + * ```js * const {google} = require('googleapis'); - * const homegraph = google.homegraph('v1'); - * - * @namespace homegraph - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Homegraph + * const container = google.container('v1'); + * ``` */ - class Homegraph { + class Container { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.agentUsers = new Resource$Agentusers(this.context); - this.devices = new Resource$Devices(this.context); + this.projects = new Resource$Projects(this.context); } } - homegraph_v1.Homegraph = Homegraph; - class Resource$Agentusers { + container_v1.Container = Container; + class Resource$Projects { + constructor(context) { + this.context = context; + this.aggregated = new Resource$Projects$Aggregated(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.zones = new Resource$Projects$Zones(this.context); + } + } + container_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Aggregated { + constructor(context) { + this.context = context; + this.usableSubnetworks = + new Resource$Projects$Aggregated$Usablesubnetworks(this.context); + } + } + container_v1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; + class Resource$Projects$Aggregated$Usablesubnetworks { + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1.Resource$Projects$Aggregated$Usablesubnetworks = Resource$Projects$Aggregated$Usablesubnetworks; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + getServerConfig(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(this.context); + this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(this.context); + } + completeIpRotation(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getJwks(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setAddons(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLegacyAbac(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLocations(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLogging(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMaintenancePolicy(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMasterAuth(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setMonitoring(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNetworkPolicy(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setResourceLabels(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startIpRotation(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateMaster(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + container_v1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$Nodepools { constructor(context) { this.context = context; } + completeUpgrade(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:completeUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+agentUserId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['agentUserId'], - pathParams: ['agentUserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - homegraph_v1.Resource$Agentusers = Resource$Agentusers; - class Resource$Devices { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStateAndNotification(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:reportStateAndNotification').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestSync(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:requestSync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setAutoscaling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:sync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - homegraph_v1.Resource$Devices = Resource$Devices; -})(homegraph_v1 = exports.homegraph_v1 || (exports.homegraph_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 826 */ -/***/ (function(module) { - -"use strict"; - - -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } - - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } - - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } - - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } - - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } - - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } - - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } - - return true; -}; - - -/***/ }), -/* 827 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.androidpublisher_v3 = 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 = __webpack_require__(927); -var androidpublisher_v3; -(function (androidpublisher_v3) { - /** - * Google Play Developer API - * - * Accesses Android application developers' Google Play accounts. - * - * @example - * const {google} = require('googleapis'); - * const androidpublisher = google.androidpublisher('v3'); - * - * @namespace androidpublisher - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Androidpublisher - */ - class Androidpublisher { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.edits = new Resource$Edits(this.context); - this.inappproducts = new Resource$Inappproducts(this.context); - this.internalappsharingartifacts = new Resource$Internalappsharingartifacts(this.context); - this.orders = new Resource$Orders(this.context); - this.purchases = new Resource$Purchases(this.context); - this.reviews = new Resource$Reviews(this.context); - this.systemapks = new Resource$Systemapks(this.context); - } - } - androidpublisher_v3.Androidpublisher = Androidpublisher; - class Resource$Edits { - constructor(context) { - this.context = context; - this.apks = new Resource$Edits$Apks(this.context); - this.bundles = new Resource$Edits$Bundles(this.context); - this.deobfuscationfiles = new Resource$Edits$Deobfuscationfiles(this.context); - this.details = new Resource$Edits$Details(this.context); - this.expansionfiles = new Resource$Edits$Expansionfiles(this.context); - this.images = new Resource$Edits$Images(this.context); - this.listings = new Resource$Edits$Listings(this.context); - this.testers = new Resource$Edits$Testers(this.context); - this.tracks = new Resource$Edits$Tracks(this.context); - } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setManagement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + container_v1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; + class Resource$Projects$Locations$Clusters$WellKnown { + constructor(context) { + this.context = context; + } + getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/applications/{packageName}/edits').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + container_v1.Resource$Projects$Locations$Clusters$WellKnown = Resource$Projects$Locations$Clusters$WellKnown; + 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; @@ -257409,32 +516439,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits = Resource$Edits; - class Resource$Edits$Apks { - constructor(context) { - this.context = context; - } - addexternallyhosted(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257447,27 +516470,27 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257478,26 +516501,33 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + } + container_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Zones { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Zones$Clusters(this.context); + this.operations = new Resource$Projects$Zones$Operations(this.context); + } + getServerconfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257510,34 +516540,32 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidpublisher_v3.Resource$Edits$Apks = Resource$Edits$Apks; - class Resource$Edits$Bundles { + container_v1.Resource$Projects$Zones = Resource$Projects$Zones; + class Resource$Projects$Zones$Clusters { constructor(context) { this.context = context; + this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + addons(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257550,66 +516578,59 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Bundles = Resource$Edits$Bundles; - class Resource$Edits$Deobfuscationfiles { - constructor(context) { - this.context = context; - } - upload(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257622,44 +516643,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'deobfuscationFileType', - ], - pathParams: [ - 'apkVersionCode', - 'deobfuscationFileType', - 'editId', - 'packageName', - ], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Deobfuscationfiles = Resource$Edits$Deobfuscationfiles; - class Resource$Edits$Details { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257672,26 +516674,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257704,26 +516706,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + legacyAbac(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257736,32 +516738,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Details = Resource$Edits$Details; - class Resource$Edits$Expansionfiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257774,36 +516770,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + locations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257816,36 +516801,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + logging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257858,36 +516833,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + master(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257900,44 +516865,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Expansionfiles = Resource$Edits$Expansionfiles; - class Resource$Edits$Images { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + monitoring(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257950,38 +516897,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'language', - 'imageType', - 'imageId', - ], - pathParams: [ - 'editId', - 'imageId', - 'imageType', - 'language', - 'packageName', - ], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteall(paramsOrCallback, optionsOrCallback, callback) { + resourceLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257994,58 +516929,59 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'language', 'imageType'], - pathParams: ['editId', 'imageType', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'language', 'imageType'], - pathParams: ['editId', 'imageType', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258058,34 +516994,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName', 'editId', 'language', 'imageType'], - pathParams: ['editId', 'imageType', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Images = Resource$Edits$Images; - class Resource$Edits$Listings { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258098,26 +517026,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteall(paramsOrCallback, optionsOrCallback, callback) { + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258130,26 +517058,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258162,58 +517090,65 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + container_v1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; + class Resource$Projects$Zones$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + autoscaling(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258226,26 +517161,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258258,31 +517193,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Listings = Resource$Edits$Listings; - class Resource$Edits$Testers { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -258296,26 +517225,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258328,95 +517257,125 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Testers = Resource$Edits$Testers; - class Resource$Edits$Tracks { - constructor(context) { - this.context = context; + setManagement(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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258429,26 +517388,32 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + container_v1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; + class Resource$Projects$Zones$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258461,26 +517426,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258493,34 +517458,240 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidpublisher_v3.Resource$Edits$Tracks = Resource$Edits$Tracks; - class Resource$Inappproducts { + container_v1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; +})(container_v1 = exports.container_v1 || (exports.container_v1 = {})); + + +/***/ }), + +/***/ 8846: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2015 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.UserRefreshClient = exports.USER_REFRESH_ACCOUNT_TYPE = void 0; +const oauth2client_1 = __webpack_require__(4449); +exports.USER_REFRESH_ACCOUNT_TYPE = 'authorized_user'; +class UserRefreshClient extends oauth2client_1.OAuth2Client { + constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { + clientId: optionsOrClientId, + clientSecret, + refreshToken, + eagerRefreshThresholdMillis, + forceRefreshOnFailure, + }; + super({ + clientId: opts.clientId, + clientSecret: opts.clientSecret, + eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, + forceRefreshOnFailure: opts.forceRefreshOnFailure, + }); + this._refreshToken = opts.refreshToken; + this.credentials.refresh_token = opts.refreshToken; + } + /** + * Refreshes the access token. + * @param refreshToken An ignored refreshToken.. + * @param callback Optional callback. + */ + async refreshTokenNoCache( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + refreshToken) { + return super.refreshTokenNoCache(this._refreshToken); + } + /** + * Create a UserRefreshClient credentials instance using the given input + * options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the user refresh token'); + } + if (json.type !== 'authorized_user') { + throw new Error('The incoming JSON object does not have the "authorized_user" type'); + } + if (!json.client_id) { + throw new Error('The incoming JSON object does not contain a client_id field'); + } + if (!json.client_secret) { + throw new Error('The incoming JSON object does not contain a client_secret field'); + } + if (!json.refresh_token) { + throw new Error('The incoming JSON object does not contain a refresh_token field'); + } + this._clientId = json.client_id; + this._clientSecret = json.client_secret; + this._refreshToken = json.refresh_token; + this.credentials.refresh_token = json.refresh_token; + this.quotaProjectId = json.quota_project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(() => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + async fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + return reject(new Error('Must pass in a stream containing the user refresh token.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + return resolve(); + } + catch (err) { + return reject(err); + } + }); + }); + } +} +exports.UserRefreshClient = UserRefreshClient; +//# sourceMappingURL=refreshclient.js.map + +/***/ }), + +/***/ 8867: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.appengine_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var appengine_v1beta; +(function (appengine_v1beta) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1beta'); + * ``` + */ + class Appengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apps = new Resource$Apps(this.context); + this.projects = new Resource$Projects(this.context); + } + } + appengine_v1beta.Appengine = Appengine; + class Resource$Apps { constructor(context) { this.context = context; + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.firewall = new Resource$Apps$Firewall(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); + this.services = new Resource$Apps$Services(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258531,28 +517702,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258563,28 +517732,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258595,28 +517762,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258627,26 +517792,31 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1beta.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258659,26 +517829,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258691,32 +517860,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Inappproducts = Resource$Inappproducts; - class Resource$Internalappsharingartifacts { - constructor(context) { - this.context = context; - } - uploadapk(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258729,28 +517892,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadbundle(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258763,35 +517924,27 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Internalappsharingartifacts = Resource$Internalappsharingartifacts; - class Resource$Orders { - constructor(context) { - this.context = context; - } - refund(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258802,41 +517955,32 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'orderId'], - pathParams: ['orderId', 'packageName'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidpublisher_v3.Resource$Orders = Resource$Orders; - class Resource$Purchases { - constructor(context) { - this.context = context; - this.products = new Resource$Purchases$Products(this.context); - this.subscriptions = new Resource$Purchases$Subscriptions(this.context); - this.voidedpurchases = new Resource$Purchases$Voidedpurchases(this.context); - } - } - androidpublisher_v3.Resource$Purchases = Resource$Purchases; - class Resource$Purchases$Products { + appengine_v1beta.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { constructor(context) { this.context = context; } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258849,26 +517993,31 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1beta.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258881,32 +518030,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Purchases$Products = Resource$Purchases$Products; - class Resource$Purchases$Subscriptions { - constructor(context) { - this.context = context; - } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258919,26 +518061,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258951,26 +518093,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - defer(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258983,26 +518125,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259015,26 +518156,39 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refund(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1beta.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Firewall { + constructor(context) { + this.context = context; + this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); + } + } + appengine_v1beta.Resource$Apps$Firewall = Resource$Apps$Firewall; + class Resource$Apps$Firewall$Ingressrules { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259047,26 +518201,26 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revoke(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259079,32 +518233,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Purchases$Subscriptions = Resource$Purchases$Subscriptions; - class Resource$Purchases$Voidedpurchases { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259117,33 +518264,28 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Purchases$Voidedpurchases = Resource$Purchases$Voidedpurchases; - class Resource$Reviews { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259154,27 +518296,28 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'reviewId'], - pathParams: ['packageName', 'reviewId'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259185,27 +518328,27 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/reviews').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reply(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259216,39 +518359,32 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'reviewId'], - pathParams: ['packageName', 'reviewId'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidpublisher_v3.Resource$Reviews = Resource$Reviews; - class Resource$Systemapks { - constructor(context) { - this.context = context; - this.variants = new Resource$Systemapks$Variants(this.context); - } - } - androidpublisher_v3.Resource$Systemapks = Resource$Systemapks; - class Resource$Systemapks$Variants { + appengine_v1beta.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259261,26 +518397,25 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode'], - pathParams: ['packageName', 'versionCode'], + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259293,25 +518428,30 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode', 'variantId'], - pathParams: ['packageName', 'variantId', 'versionCode'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + appengine_v1beta.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -259325,23 +518465,22 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode', 'variantId'], - pathParams: ['packageName', 'variantId', 'versionCode'], + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -259357,1129 +518496,711 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode'], - pathParams: ['packageName', 'versionCode'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidpublisher_v3.Resource$Systemapks$Variants = Resource$Systemapks$Variants; -})(androidpublisher_v3 = exports.androidpublisher_v3 || (exports.androidpublisher_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 828 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Advanced Encryption Standard (AES) implementation. - * - * This implementation is based on the public domain library 'jscrypto' which - * was written by: - * - * Emily Stark (estark@stanford.edu) - * Mike Hamburg (mhamburg@stanford.edu) - * Dan Boneh (dabo@cs.stanford.edu) - * - * Parts of this code are based on the OpenSSL implementation of AES: - * http://www.openssl.org - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(426); -__webpack_require__(158); -__webpack_require__(54); - -/* AES API */ -module.exports = forge.aes = forge.aes || {}; - -/** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('AES-', key); - * cipher.start({iv: iv}); - * - * Creates an AES cipher object to encrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as a string of bytes, an array of bytes, - * a byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.aes.startEncrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: false, - mode: mode - }); - cipher.start(iv); - return cipher; -}; - -/** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('AES-', key); - * - * Creates an AES cipher object to encrypt data using the given symmetric key. - * - * The key may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.aes.createEncryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: false, - mode: mode - }); -}; - -/** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('AES-', key); - * decipher.start({iv: iv}); - * - * Creates an AES cipher object to decrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as a string of bytes, an array of bytes, - * a byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.aes.startDecrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: true, - mode: mode - }); - cipher.start(iv); - return cipher; -}; - -/** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('AES-', key); - * - * Creates an AES cipher object to decrypt data using the given symmetric key. - * - * The key may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.aes.createDecryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: true, - mode: mode - }); -}; - -/** - * Creates a new AES cipher algorithm object. - * - * @param name the name of the algorithm. - * @param mode the mode factory function. - * - * @return the AES algorithm object. - */ -forge.aes.Algorithm = function(name, mode) { - if(!init) { - initialize(); - } - var self = this; - self.name = name; - self.mode = new mode({ - blockSize: 16, - cipher: { - encrypt: function(inBlock, outBlock) { - return _updateBlock(self._w, inBlock, outBlock, false); - }, - decrypt: function(inBlock, outBlock) { - return _updateBlock(self._w, inBlock, outBlock, true); - } - } - }); - self._init = false; -}; - -/** - * Initializes this AES algorithm by expanding its key. - * - * @param options the options to use. - * key the key to use with this algorithm. - * decrypt true if the algorithm should be initialized for decryption, - * false for encryption. - */ -forge.aes.Algorithm.prototype.initialize = function(options) { - if(this._init) { - return; - } - - var key = options.key; - var tmp; - - /* Note: The key may be a string of bytes, an array of bytes, a byte - buffer, or an array of 32-bit integers. If the key is in bytes, then - it must be 16, 24, or 32 bytes in length. If it is in 32-bit - integers, it must be 4, 6, or 8 integers long. */ - - if(typeof key === 'string' && - (key.length === 16 || key.length === 24 || key.length === 32)) { - // convert key string into byte buffer - key = forge.util.createBuffer(key); - } else if(forge.util.isArray(key) && - (key.length === 16 || key.length === 24 || key.length === 32)) { - // convert key integer array into byte buffer - tmp = key; - key = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - key.putByte(tmp[i]); - } - } - - // convert key byte buffer into 32-bit integer array - if(!forge.util.isArray(key)) { - tmp = key; - key = []; - - // key lengths of 16, 24, 32 bytes allowed - var len = tmp.length(); - if(len === 16 || len === 24 || len === 32) { - len = len >>> 2; - for(var i = 0; i < len; ++i) { - key.push(tmp.getInt32()); - } - } - } - - // key must be an array of 32-bit integers by now - if(!forge.util.isArray(key) || - !(key.length === 4 || key.length === 6 || key.length === 8)) { - throw new Error('Invalid key parameter.'); - } - - // encryption operation is always used for these modes - var mode = this.mode.name; - var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1); - - // do key expansion - this._w = _expandKey(key, options.decrypt && !encryptOp); - this._init = true; -}; - -/** - * Expands a key. Typically only used for testing. - * - * @param key the symmetric key to expand, as an array of 32-bit words. - * @param decrypt true to expand for decryption, false for encryption. - * - * @return the expanded key. - */ -forge.aes._expandKey = function(key, decrypt) { - if(!init) { - initialize(); - } - return _expandKey(key, decrypt); -}; - -/** - * Updates a single block. Typically only used for testing. - * - * @param w the expanded key to use. - * @param input an array of block-size 32-bit words. - * @param output an array of block-size 32-bit words. - * @param decrypt true to decrypt, false to encrypt. - */ -forge.aes._updateBlock = _updateBlock; - -/** Register AES algorithms **/ - -registerAlgorithm('AES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('AES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('AES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('AES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('AES-CTR', forge.cipher.modes.ctr); -registerAlgorithm('AES-GCM', forge.cipher.modes.gcm); - -function registerAlgorithm(name, mode) { - var factory = function() { - return new forge.aes.Algorithm(name, mode); - }; - forge.cipher.registerAlgorithm(name, factory); -} - -/** AES implementation **/ - -var init = false; // not yet initialized -var Nb = 4; // number of words comprising the state (AES = 4) -var sbox; // non-linear substitution table used in key expansion -var isbox; // inversion of sbox -var rcon; // round constant word array -var mix; // mix-columns table -var imix; // inverse mix-columns table - -/** - * Performs initialization, ie: precomputes tables to optimize for speed. - * - * One way to understand how AES works is to imagine that 'addition' and - * 'multiplication' are interfaces that require certain mathematical - * properties to hold true (ie: they are associative) but they might have - * different implementations and produce different kinds of results ... - * provided that their mathematical properties remain true. AES defines - * its own methods of addition and multiplication but keeps some important - * properties the same, ie: associativity and distributivity. The - * explanation below tries to shed some light on how AES defines addition - * and multiplication of bytes and 32-bit words in order to perform its - * encryption and decryption algorithms. - * - * The basics: - * - * The AES algorithm views bytes as binary representations of polynomials - * that have either 1 or 0 as the coefficients. It defines the addition - * or subtraction of two bytes as the XOR operation. It also defines the - * multiplication of two bytes as a finite field referred to as GF(2^8) - * (Note: 'GF' means "Galois Field" which is a field that contains a finite - * number of elements so GF(2^8) has 256 elements). - * - * This means that any two bytes can be represented as binary polynomials; - * when they multiplied together and modularly reduced by an irreducible - * polynomial of the 8th degree, the results are the field GF(2^8). The - * specific irreducible polynomial that AES uses in hexadecimal is 0x11b. - * This multiplication is associative with 0x01 as the identity: - * - * (b * 0x01 = GF(b, 0x01) = b). - * - * The operation GF(b, 0x02) can be performed at the byte level by left - * shifting b once and then XOR'ing it (to perform the modular reduction) - * with 0x11b if b is >= 128. Repeated application of the multiplication - * of 0x02 can be used to implement the multiplication of any two bytes. - * - * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can - * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these - * factors can each be multiplied by 0x57 and then added together. To do - * the multiplication, values for 0x57 multiplied by each of these 3 factors - * can be precomputed and stored in a table. To add them, the values from - * the table are XOR'd together. - * - * AES also defines addition and multiplication of words, that is 4-byte - * numbers represented as polynomials of 3 degrees where the coefficients - * are the values of the bytes. - * - * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0. - * - * Addition is performed by XOR'ing like powers of x. Multiplication - * is performed in two steps, the first is an algebriac expansion as - * you would do normally (where addition is XOR). But the result is - * a polynomial larger than 3 degrees and thus it cannot fit in a word. So - * next the result is modularly reduced by an AES-specific polynomial of - * degree 4 which will always produce a polynomial of less than 4 degrees - * such that it will fit in a word. In AES, this polynomial is x^4 + 1. - * - * The modular product of two polynomials 'a' and 'b' is thus: - * - * d(x) = d3x^3 + d2x^2 + d1x + d0 - * with - * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3) - * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3) - * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3) - * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3) - * - * As a matrix: - * - * [d0] = [a0 a3 a2 a1][b0] - * [d1] [a1 a0 a3 a2][b1] - * [d2] [a2 a1 a0 a3][b2] - * [d3] [a3 a2 a1 a0][b3] - * - * Special polynomials defined by AES (0x02 == {02}): - * a(x) = {03}x^3 + {01}x^2 + {01}x + {02} - * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}. - * - * These polynomials are used in the MixColumns() and InverseMixColumns() - * operations, respectively, to cause each element in the state to affect - * the output (referred to as diffusing). - * - * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the - * polynomial x3. - * - * The ShiftRows() method modifies the last 3 rows in the state (where - * the state is 4 words with 4 bytes per word) by shifting bytes cyclically. - * The 1st byte in the second row is moved to the end of the row. The 1st - * and 2nd bytes in the third row are moved to the end of the row. The 1st, - * 2nd, and 3rd bytes are moved in the fourth row. - * - * More details on how AES arithmetic works: - * - * In the polynomial representation of binary numbers, XOR performs addition - * and subtraction and multiplication in GF(2^8) denoted as GF(a, b) - * corresponds with the multiplication of polynomials modulo an irreducible - * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply - * polynomial 'a' with polynomial 'b' and then do a modular reduction by - * an AES-specific irreducible polynomial of degree 8. - * - * A polynomial is irreducible if its only divisors are one and itself. For - * the AES algorithm, this irreducible polynomial is: - * - * m(x) = x^8 + x^4 + x^3 + x + 1, - * - * or {01}{1b} in hexadecimal notation, where each coefficient is a bit: - * 100011011 = 283 = 0x11b. - * - * For example, GF(0x57, 0x83) = 0xc1 because - * - * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1 - * 0x85 = 131 = 10000101 = x^7 + x + 1 - * - * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1) - * = x^13 + x^11 + x^9 + x^8 + x^7 + - * x^7 + x^5 + x^3 + x^2 + x + - * x^6 + x^4 + x^2 + x + 1 - * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y - * y modulo (x^8 + x^4 + x^3 + x + 1) - * = x^7 + x^6 + 1. - * - * The modular reduction by m(x) guarantees the result will be a binary - * polynomial of less than degree 8, so that it can fit in a byte. - * - * The operation to multiply a binary polynomial b with x (the polynomial - * x in binary representation is 00000010) is: - * - * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1 - * - * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the - * most significant bit is 0 in b) then the result is already reduced. If - * it is 1, then we can reduce it by subtracting m(x) via an XOR. - * - * It follows that multiplication by x (00000010 or 0x02) can be implemented - * by performing a left shift followed by a conditional bitwise XOR with - * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by - * higher powers of x can be implemented by repeated application of xtime(). - * - * By adding intermediate results, multiplication by any constant can be - * implemented. For instance: - * - * GF(0x57, 0x13) = 0xfe because: - * - * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1) - * - * Note: We XOR with 0x11b instead of 0x1b because in javascript our - * datatype for b can be larger than 1 byte, so a left shift will not - * automatically eliminate bits that overflow a byte ... by XOR'ing the - * overflow bit with 1 (the extra one from 0x11b) we zero it out. - * - * GF(0x57, 0x02) = xtime(0x57) = 0xae - * GF(0x57, 0x04) = xtime(0xae) = 0x47 - * GF(0x57, 0x08) = xtime(0x47) = 0x8e - * GF(0x57, 0x10) = xtime(0x8e) = 0x07 - * - * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10)) - * - * And by the distributive property (since XOR is addition and GF() is - * multiplication): - * - * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10) - * = 0x57 ^ 0xae ^ 0x07 - * = 0xfe. - */ -function initialize() { - init = true; - - /* Populate the Rcon table. These are the values given by - [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02) - in the field of GF(2^8), where i starts at 1. - - rcon[0] = [0x00, 0x00, 0x00, 0x00] - rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1 - rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2 - ... - rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B - rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36 - - We only store the first byte because it is the only one used. - */ - rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36]; - - // compute xtime table which maps i onto GF(i, 0x02) - var xtime = new Array(256); - for(var i = 0; i < 128; ++i) { - xtime[i] = i << 1; - xtime[i + 128] = (i + 128) << 1 ^ 0x11B; - } - - // compute all other tables - sbox = new Array(256); - isbox = new Array(256); - mix = new Array(4); - imix = new Array(4); - for(var i = 0; i < 4; ++i) { - mix[i] = new Array(256); - imix[i] = new Array(256); - } - var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime; - for(var i = 0; i < 256; ++i) { - /* We need to generate the SubBytes() sbox and isbox tables so that - we can perform byte substitutions. This requires us to traverse - all of the elements in GF, find their multiplicative inverses, - and apply to each the following affine transformation: - - bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^ - b(i + 7) mod 8 ^ ci - for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the - ith bit of a byte c with the value {63} or {01100011}. - - It is possible to traverse every possible value in a Galois field - using what is referred to as a 'generator'. There are many - generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully - traverse GF we iterate 255 times, multiplying by our generator - each time. - - On each iteration we can determine the multiplicative inverse for - the current element. - - Suppose there is an element in GF 'e'. For a given generator 'g', - e = g^x. The multiplicative inverse of e is g^(255 - x). It turns - out that if use the inverse of a generator as another generator - it will produce all of the corresponding multiplicative inverses - at the same time. For this reason, we choose 5 as our inverse - generator because it only requires 2 multiplies and 1 add and its - inverse, 82, requires relatively few operations as well. - - In order to apply the affine transformation, the multiplicative - inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a - bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and - 'x'. Then 's' is left shifted and the high bit of 's' is made the - low bit. The resulting value is stored in 's'. Then 'x' is XOR'd - with 's' and stored in 'x'. On each subsequent iteration the same - operation is performed. When 4 iterations are complete, 'x' is - XOR'd with 'c' (0x63) and the transformed value is stored in 'x'. - For example: - - s = 01000001 - x = 01000001 - - iteration 1: s = 10000010, x ^= s - iteration 2: s = 00000101, x ^= s - iteration 3: s = 00001010, x ^= s - iteration 4: s = 00010100, x ^= s - x ^= 0x63 - - This can be done with a loop where s = (s << 1) | (s >> 7). However, - it can also be done by using a single 16-bit (in this case 32-bit) - number 'sx'. Since XOR is an associative operation, we can set 'sx' - to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times. - The most significant bits will flow into the high 8 bit positions - and be correctly XOR'd with one another. All that remains will be - to cycle the high 8 bits by XOR'ing them all with the lower 8 bits - afterwards. - - At the same time we're populating sbox and isbox we can precompute - the multiplication we'll need to do to do MixColumns() later. - */ - - // apply affine transformation - sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4); - sx = (sx >> 8) ^ (sx & 255) ^ 0x63; - - // update tables - sbox[e] = sx; - isbox[sx] = e; - - /* Mixing columns is done using matrix multiplication. The columns - that are to be mixed are each a single word in the current state. - The state has Nb columns (4 columns). Therefore each column is a - 4 byte word. So to mix the columns in a single column 'c' where - its rows are r0, r1, r2, and r3, we use the following matrix - multiplication: - - [2 3 1 1]*[r0,c]=[r'0,c] - [1 2 3 1] [r1,c] [r'1,c] - [1 1 2 3] [r2,c] [r'2,c] - [3 1 1 2] [r3,c] [r'3,c] - - r0, r1, r2, and r3 are each 1 byte of one of the words in the - state (a column). To do matrix multiplication for each mixed - column c' we multiply the corresponding row from the left matrix - with the corresponding column from the right matrix. In total, we - get 4 equations: - - r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c - r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c - r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c - r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c - - As usual, the multiplication is as previously defined and the - addition is XOR. In order to optimize mixing columns we can store - the multiplication results in tables. If you think of the whole - column as a word (it might help to visualize by mentally rotating - the equations above by counterclockwise 90 degrees) then you can - see that it would be useful to map the multiplications performed on - each byte (r0, r1, r2, r3) onto a word as well. For instance, we - could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the - highest 8 bits and 3*r0 in the lowest 8 bits (with the other two - respectively in the middle). This means that a table can be - constructed that uses r0 as an index to the word. We can do the - same with r1, r2, and r3, creating a total of 4 tables. - - To construct a full c', we can just look up each byte of c in - their respective tables and XOR the results together. - - Also, to build each table we only have to calculate the word - for 2,1,1,3 for every byte ... which we can do on each iteration - of this loop since we will iterate over every byte. After we have - calculated 2,1,1,3 we can get the results for the other tables - by cycling the byte at the end to the beginning. For instance - we can take the result of table 2,1,1,3 and produce table 3,2,1,1 - by moving the right most byte to the left most position just like - how you can imagine the 3 moved out of 2,1,1,3 and to the front - to produce 3,2,1,1. - - There is another optimization in that the same multiples of - the current element we need in order to advance our generator - to the next iteration can be reused in performing the 2,1,1,3 - calculation. We also calculate the inverse mix column tables, - with e,9,d,b being the inverse of 2,1,1,3. - - When we're done, and we need to actually mix columns, the first - byte of each state word should be put through mix[0] (2,1,1,3), - the second through mix[1] (3,2,1,1) and so forth. Then they should - be XOR'd together to produce the fully mixed column. - */ - - // calculate mix and imix table values - sx2 = xtime[sx]; - e2 = xtime[e]; - e4 = xtime[e2]; - e8 = xtime[e4]; - me = - (sx2 << 24) ^ // 2 - (sx << 16) ^ // 1 - (sx << 8) ^ // 1 - (sx ^ sx2); // 3 - ime = - (e2 ^ e4 ^ e8) << 24 ^ // E (14) - (e ^ e8) << 16 ^ // 9 - (e ^ e4 ^ e8) << 8 ^ // D (13) - (e ^ e2 ^ e8); // B (11) - // produce each of the mix tables by rotating the 2,1,1,3 value - for(var n = 0; n < 4; ++n) { - mix[n][e] = me; - imix[n][sx] = ime; - // cycle the right most byte to the left most position - // ie: 2,1,1,3 becomes 3,2,1,1 - me = me << 24 | me >>> 8; - ime = ime << 24 | ime >>> 8; + appengine_v1beta.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Apps$Services { + constructor(context) { + this.context = context; + this.versions = new Resource$Apps$Services$Versions(this.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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // get next element and inverse - if(e === 0) { - // 1 is the inverse of 1 - e = ei = 1; - } else { - // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator) - // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator) - e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]]; - ei ^= xtime[xtime[ei]]; + appengine_v1beta.Resource$Apps$Services = Resource$Apps$Services; + class Resource$Apps$Services$Versions { + constructor(context) { + this.context = context; + this.instances = new Resource$Apps$Services$Versions$Instances(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } -} - -/** - * Generates a key schedule using the AES key expansion algorithm. - * - * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion - * routine to generate a key schedule. The Key Expansion generates a total - * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words, - * and each of the Nr rounds requires Nb words of key data. The resulting - * key schedule consists of a linear array of 4-byte words, denoted [wi ], - * with i in the range 0 <= i < Nb(Nr + 1). - * - * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk) - * AES-128 (Nb=4, Nk=4, Nr=10) - * AES-192 (Nb=4, Nk=6, Nr=12) - * AES-256 (Nb=4, Nk=8, Nr=14) - * Note: Nr=Nk+6. - * - * Nb is the number of columns (32-bit words) comprising the State (or - * number of bytes in a block). For AES, Nb=4. - * - * @param key the key to schedule (as an array of 32-bit words). - * @param decrypt true to modify the key schedule to decrypt, false not to. - * - * @return the generated key schedule. - */ -function _expandKey(key, decrypt) { - // copy the key's words to initialize the key schedule - var w = key.slice(0); - - /* RotWord() will rotate a word, moving the first byte to the last - byte's position (shifting the other bytes left). - - We will be getting the value of Rcon at i / Nk. 'i' will iterate - from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in - a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from - 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will - increase by 1. We use a counter iNk to keep track of this. - */ - - // go through the rounds expanding the key - var temp, iNk = 1; - var Nk = w.length; - var Nr1 = Nk + 6 + 1; - var end = Nb * Nr1; - for(var i = Nk; i < end; ++i) { - temp = w[i - 1]; - if(i % Nk === 0) { - // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk] - temp = - sbox[temp >>> 16 & 255] << 24 ^ - sbox[temp >>> 8 & 255] << 16 ^ - sbox[temp & 255] << 8 ^ - sbox[temp >>> 24] ^ (rcon[iNk] << 24); - iNk++; - } else if(Nk > 6 && (i % Nk === 4)) { - // temp = SubWord(temp) - temp = - sbox[temp >>> 24] << 24 ^ - sbox[temp >>> 16 & 255] << 16 ^ - sbox[temp >>> 8 & 255] << 8 ^ - sbox[temp & 255]; + appengine_v1beta.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; + class Resource$Apps$Services$Versions$Instances { + constructor(context) { + this.context = context; + } + debug(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - w[i] = w[i - Nk] ^ temp; - } - - /* When we are updating a cipher block we always use the code path for - encryption whether we are decrypting or not (to shorten code and - simplify the generation of look up tables). However, because there - are differences in the decryption algorithm, other than just swapping - in different look up tables, we must transform our key schedule to - account for these changes: - - 1. The decryption algorithm gets its key rounds in reverse order. - 2. The decryption algorithm adds the round key before mixing columns - instead of afterwards. - - We don't need to modify our key schedule to handle the first case, - we can just traverse the key schedule in reverse order when decrypting. - - The second case requires a little work. - - The tables we built for performing rounds will take an input and then - perform SubBytes() and MixColumns() or, for the decrypt version, - InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires - us to AddRoundKey() before InvMixColumns(). This means we'll need to - apply some transformations to the round key to inverse-mix its columns - so they'll be correct for moving AddRoundKey() to after the state has - had its columns inverse-mixed. - - To inverse-mix the columns of the state when we're decrypting we use a - lookup table that will apply InvSubBytes() and InvMixColumns() at the - same time. However, the round key's bytes are not inverse-substituted - in the decryption algorithm. To get around this problem, we can first - substitute the bytes in the round key so that when we apply the - transformation via the InvSubBytes()+InvMixColumns() table, it will - undo our substitution leaving us with the original value that we - want -- and then inverse-mix that value. - - This change will correctly alter our key schedule so that we can XOR - each round key with our already transformed decryption state. This - allows us to use the same code path as the encryption algorithm. - - We make one more change to the decryption key. Since the decryption - algorithm runs in reverse from the encryption algorithm, we reverse - the order of the round keys to avoid having to iterate over the key - schedule backwards when running the encryption algorithm later in - decryption mode. In addition to reversing the order of the round keys, - we also swap each round key's 2nd and 4th rows. See the comments - section where rounds are performed for more details about why this is - done. These changes are done inline with the other substitution - described above. - */ - if(decrypt) { - var tmp; - var m0 = imix[0]; - var m1 = imix[1]; - var m2 = imix[2]; - var m3 = imix[3]; - var wnew = w.slice(0); - end = w.length; - for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) { - // do not sub the first or last round key (round keys are Nb - // words) as no column mixing is performed before they are added, - // but do change the key order - if(i === 0 || i === (end - Nb)) { - wnew[i] = w[wi]; - wnew[i + 1] = w[wi + 3]; - wnew[i + 2] = w[wi + 2]; - wnew[i + 3] = w[wi + 1]; - } else { - // substitute each round key byte because the inverse-mix - // table will inverse-substitute it (effectively cancel the - // substitution because round key bytes aren't sub'd in - // decryption mode) and swap indexes 3 and 1 - for(var n = 0; n < Nb; ++n) { - tmp = w[wi + n]; - wnew[i + (3&-n)] = - m0[sbox[tmp >>> 24]] ^ - m1[sbox[tmp >>> 16 & 255]] ^ - m2[sbox[tmp >>> 8 & 255]] ^ - m3[sbox[tmp & 255]]; + appengine_v1beta.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - } } - w = wnew; - } - - return w; -} - -/** - * Updates a single block (16 bytes) using AES. The update will either - * encrypt or decrypt the block. - * - * @param w the key schedule. - * @param input the input block (an array of 32-bit words). - * @param output the updated output block. - * @param decrypt true to decrypt the block, false to encrypt it. - */ -function _updateBlock(w, input, output, decrypt) { - /* - Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) - begin - byte state[4,Nb] - state = in - AddRoundKey(state, w[0, Nb-1]) - for round = 1 step 1 to Nr-1 - SubBytes(state) - ShiftRows(state) - MixColumns(state) - AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) - end for - SubBytes(state) - ShiftRows(state) - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - out = state - end - - InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) - begin - byte state[4,Nb] - state = in - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - for round = Nr-1 step -1 downto 1 - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) - InvMixColumns(state) - end for - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[0, Nb-1]) - out = state - end - */ - - // Encrypt: AddRoundKey(state, w[0, Nb-1]) - // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - var Nr = w.length / 4 - 1; - var m0, m1, m2, m3, sub; - if(decrypt) { - m0 = imix[0]; - m1 = imix[1]; - m2 = imix[2]; - m3 = imix[3]; - sub = isbox; - } else { - m0 = mix[0]; - m1 = mix[1]; - m2 = mix[2]; - m3 = mix[3]; - sub = sbox; - } - var a, b, c, d, a2, b2, c2; - a = input[0] ^ w[0]; - b = input[decrypt ? 3 : 1] ^ w[1]; - c = input[2] ^ w[2]; - d = input[decrypt ? 1 : 3] ^ w[3]; - var i = 3; - - /* In order to share code we follow the encryption algorithm when both - encrypting and decrypting. To account for the changes required in the - decryption algorithm, we use different lookup tables when decrypting - and use a modified key schedule to account for the difference in the - order of transformations applied when performing rounds. We also get - key rounds in reverse order (relative to encryption). */ - for(var round = 1; round < Nr; ++round) { - /* As described above, we'll be using table lookups to perform the - column mixing. Each column is stored as a word in the state (the - array 'input' has one column as a word at each index). In order to - mix a column, we perform these transformations on each row in c, - which is 1 byte in each word. The new column for c0 is c'0: - - m0 m1 m2 m3 - r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0 - r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0 - r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0 - r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0 - - So using mix tables where c0 is a word with r0 being its upper - 8 bits and r3 being its lower 8 bits: - - m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0] - ... - m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3] - - Therefore to mix the columns in each word in the state we - do the following (& 255 omitted for brevity): - c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - - However, before mixing, the algorithm requires us to perform - ShiftRows(). The ShiftRows() transformation cyclically shifts the - last 3 rows of the state over different offsets. The first row - (r = 0) is not shifted. - - s'_r,c = s_r,(c + shift(r, Nb) mod Nb - for 0 < r < 4 and 0 <= c < Nb and - shift(1, 4) = 1 - shift(2, 4) = 2 - shift(3, 4) = 3. - - This causes the first byte in r = 1 to be moved to the end of - the row, the first 2 bytes in r = 2 to be moved to the end of - the row, the first 3 bytes in r = 3 to be moved to the end of - the row: - - r1: [c0 c1 c2 c3] => [c1 c2 c3 c0] - r2: [c0 c1 c2 c3] [c2 c3 c0 c1] - r3: [c0 c1 c2 c3] [c3 c0 c1 c2] - - We can make these substitutions inline with our column mixing to - generate an updated set of equations to produce each word in the - state (note the columns have changed positions): - - c0 c1 c2 c3 => c0 c1 c2 c3 - c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte) - c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes) - c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes) - - Therefore: - - c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3 - c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3 - c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3 - c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3 - - c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0 - c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0 - c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0 - c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0 - - ... and so forth for c'2 and c'3. The important distinction is - that the columns are cycling, with c0 being used with the m0 - map when calculating c0, but c1 being used with the m0 map when - calculating c1 ... and so forth. - - When performing the inverse we transform the mirror image and - skip the bottom row, instead of the top one, and move upwards: - - c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption - c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes) - c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption - c3 c2 c1 c0 c3 c2 c1 c0 - - If you compare the resulting matrices for ShiftRows()+MixColumns() - and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are - different (in encrypt mode vs. decrypt mode). So in order to use - the same code to handle both encryption and decryption, we will - need to do some mapping. - - If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be - a row number in the state, then the resulting matrix in encryption - mode for applying the above transformations would be: - - r1: a b c d - r2: b c d a - r3: c d a b - r4: d a b c - - If we did the same in decryption mode we would get: - - r1: a d c b - r2: b a d c - r3: c b a d - r4: d c b a - - If instead we swap d and b (set b=c3 and d=c1), then we get: - - r1: a b c d - r2: d a b c - r3: c d a b - r4: b c d a - - Now the 1st and 3rd rows are the same as the encryption matrix. All - we need to do then to make the mapping exactly the same is to swap - the 2nd and 4th rows when in decryption mode. To do this without - having to do it on each iteration, we swapped the 2nd and 4th rows - in the decryption key schedule. We also have to do the swap above - when we first pull in the input and when we set the final output. */ - a2 = - m0[a >>> 24] ^ - m1[b >>> 16 & 255] ^ - m2[c >>> 8 & 255] ^ - m3[d & 255] ^ w[++i]; - b2 = - m0[b >>> 24] ^ - m1[c >>> 16 & 255] ^ - m2[d >>> 8 & 255] ^ - m3[a & 255] ^ w[++i]; - c2 = - m0[c >>> 24] ^ - m1[d >>> 16 & 255] ^ - m2[a >>> 8 & 255] ^ - m3[b & 255] ^ w[++i]; - d = - m0[d >>> 24] ^ - m1[a >>> 16 & 255] ^ - m2[b >>> 8 & 255] ^ - m3[c & 255] ^ w[++i]; - a = a2; - b = b2; - c = c2; - } - - /* - Encrypt: - SubBytes(state) - ShiftRows(state) - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - - Decrypt: - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[0, Nb-1]) - */ - // Note: rows are shifted inline - output[0] = - (sub[a >>> 24] << 24) ^ - (sub[b >>> 16 & 255] << 16) ^ - (sub[c >>> 8 & 255] << 8) ^ - (sub[d & 255]) ^ w[++i]; - output[decrypt ? 3 : 1] = - (sub[b >>> 24] << 24) ^ - (sub[c >>> 16 & 255] << 16) ^ - (sub[d >>> 8 & 255] << 8) ^ - (sub[a & 255]) ^ w[++i]; - output[2] = - (sub[c >>> 24] << 24) ^ - (sub[d >>> 16 & 255] << 16) ^ - (sub[a >>> 8 & 255] << 8) ^ - (sub[b & 255]) ^ w[++i]; - output[decrypt ? 1 : 3] = - (sub[d >>> 24] << 24) ^ - (sub[a >>> 16 & 255] << 16) ^ - (sub[b >>> 8 & 255] << 8) ^ - (sub[c & 255]) ^ w[++i]; -} - -/** - * Deprecated. Instead, use: - * - * forge.cipher.createCipher('AES-', key); - * forge.cipher.createDecipher('AES-', key); - * - * Creates a deprecated AES cipher object. This object's mode will default to - * CBC (cipher-block-chaining). - * - * The key and iv may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param options the options to use. - * key the symmetric key to use. - * output the buffer to write to. - * decrypt true for decryption, false for encryption. - * mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -function _createCipher(options) { - options = options || {}; - var mode = (options.mode || 'CBC').toUpperCase(); - var algorithm = 'AES-' + mode; - - var cipher; - if(options.decrypt) { - cipher = forge.cipher.createDecipher(algorithm, options.key); - } else { - cipher = forge.cipher.createCipher(algorithm, options.key); - } - - // backwards compatible start API - var start = cipher.start; - cipher.start = function(iv, options) { - // backwards compatibility: support second arg as output buffer - var output = null; - if(options instanceof forge.util.ByteBuffer) { - output = options; - options = {}; + appengine_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.applications = new Resource$Projects$Locations$Applications(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId'], + pathParams: ['projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Applications { + 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + repair(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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appengine_v1beta.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId', 'locationsId', 'operationsId'], + pathParams: ['locationsId', 'operationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - options = options || {}; - options.output = output; - options.iv = iv; - start.call(cipher, options); - }; - - return cipher; -} + appengine_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(appengine_v1beta = exports.appengine_v1beta || (exports.appengine_v1beta = {})); /***/ }), -/* 829 */ + +/***/ 8894: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -260497,28 +519218,247 @@ function _createCipher(options) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.auth = exports.classroom = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ +exports.analyticsdata_v1alpha = 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 = __webpack_require__(927); -const v1_1 = __webpack_require__(217); -exports.VERSIONS = { - v1: v1_1.classroom_v1.Classroom, -}; -function classroom(versionOrOptions) { - return googleapis_common_1.getAPI('classroom', versionOrOptions, exports.VERSIONS, this); -} -exports.classroom = classroom; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +var analyticsdata_v1alpha; +(function (analyticsdata_v1alpha) { + /** + * Google Analytics Data API + * + * Accesses report data in Google Analytics. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticsdata = google.analyticsdata('v1alpha'); + * ``` + */ + class Analyticsdata { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.properties = new Resource$Properties(this.context); + this.v1alpha = new Resource$V1alpha(this.context); + } + } + analyticsdata_v1alpha.Analyticsdata = Analyticsdata; + class Resource$Properties { + constructor(context) { + this.context = context; + } + getMetadata(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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runRealtimeReport(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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+property}:runRealtimeReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['property'], + pathParams: ['property'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsdata_v1alpha.Resource$Properties = Resource$Properties; + class Resource$V1alpha { + constructor(context) { + this.context = context; + } + batchRunPivotReports(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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha:batchRunPivotReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchRunReports(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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha:batchRunReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runPivotReport(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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha:runPivotReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + runReport(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://analyticsdata.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha:runReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + analyticsdata_v1alpha.Resource$V1alpha = Resource$V1alpha; +})(analyticsdata_v1alpha = exports.analyticsdata_v1alpha || (exports.analyticsdata_v1alpha = {})); + /***/ }), -/* 830 */ + +/***/ 8914: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; -// Copyright 2018 Google LLC +// 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 @@ -260530,322 +519470,984 @@ exports.auth = auth; // 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. -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; Object.defineProperty(exports, "__esModule", { value: true }); -const extend_1 = __importDefault(__webpack_require__(374)); -const node_fetch_1 = __importDefault(__webpack_require__(454)); -const querystring_1 = __importDefault(__webpack_require__(191)); -const is_stream_1 = __importDefault(__webpack_require__(625)); -const url_1 = __importDefault(__webpack_require__(835)); -const common_1 = __webpack_require__(259); -const retry_1 = __webpack_require__(642); +exports.logging_v2 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ -/* eslint-disable node/no-unsupported-features/node-builtins */ -const URL = hasURL() ? window.URL : url_1.default.URL; -const fetch = hasFetch() ? window.fetch : node_fetch_1.default; -function hasWindow() { - return typeof window !== 'undefined' && !!window; -} -function hasURL() { - return hasWindow() && !!window.URL; -} -function hasFetch() { - return hasWindow() && !!window.fetch; -} -let HttpsProxyAgent; -// Figure out if we should be using a proxy. Only if it's required, load -// the https-proxy-agent module as it adds startup cost. -function loadProxy() { - const proxy = process.env.HTTPS_PROXY || - process.env.https_proxy || - process.env.HTTP_PROXY || - process.env.http_proxy; - if (proxy) { - HttpsProxyAgent = __webpack_require__(225); - } - return proxy; -} -loadProxy(); -class Gaxios { +/* 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 = __webpack_require__(927); +var logging_v2; +(function (logging_v2) { /** - * The Gaxios class is responsible for making HTTP requests. - * @param defaults The default set of options to be used for this instance. + * Cloud Logging API + * + * Writes log entries and manages your Cloud Logging configuration. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const logging = google.logging('v2'); + * ``` */ - constructor(defaults) { - this.agentCache = new Map(); - this.defaults = defaults || {}; + 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); + } } - /** - * Perform an HTTP request with the given options. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async request(opts = {}) { - opts = this.validateOpts(opts); - return this._request(opts); + logging_v2.Logging = Logging; + class Resource$Billingaccounts { + constructor(context) { + this.context = 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.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - /** - * Internal, retryable version of the `request` method. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async _request(opts = {}) { - try { - let translatedResponse; - if (opts.adapter) { - translatedResponse = await opts.adapter(opts); + logging_v2.Resource$Billingaccounts = Resource$Billingaccounts; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - const res = await fetch(opts.url, opts); - const data = await this.getResponseData(opts, res); - translatedResponse = this.translateResponse(opts, res, data); + return (0, googleapis_common_1.createAPIRequest)(parameters); } - if (!opts.validateStatus(translatedResponse.status)) { - throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - return translatedResponse; } - catch (e) { - const err = e; - err.config = opts; - const { shouldRetry, config } = await retry_1.getRetryConfig(e); - if (shouldRetry && config) { - err.config.retryConfig.currentRetryAttempt = config.retryConfig.currentRetryAttempt; - return this._request(err.config); + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - throw err; } } - async getResponseData(opts, res) { - switch (opts.responseType) { - case 'stream': - return res.body; - case 'json': { - let data = await res.text(); - try { - data = JSON.parse(data); - } - catch (_a) { - // continue - } - return data; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - case 'arraybuffer': - return res.arrayBuffer(); - case 'blob': - return res.blob(); - default: - return res.text(); } } - /** - * Validates the options, and merges them with defaults. - * @param opts The original options passed from the client. - */ - validateOpts(options) { - const opts = extend_1.default(true, {}, this.defaults, options); - if (!opts.url) { - throw new Error('URL is required.'); + logging_v2.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; + class Resource$Billingaccounts$Locations$Buckets { + constructor(context) { + this.context = context; + this.links = new Resource$Billingaccounts$Locations$Buckets$Links(this.context); + this.views = new Resource$Billingaccounts$Locations$Buckets$Views(this.context); } - // baseUrl has been deprecated, remove in 2.0 - const baseUrl = opts.baseUrl || opts.baseURL; - if (baseUrl) { - opts.url = baseUrl + opts.url; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - const parsedUrl = new URL(opts.url); - opts.url = `${parsedUrl.origin}${parsedUrl.pathname}`; - opts.params = extend_1.default(querystring_1.default.parse(parsedUrl.search.substr(1)), // removes leading ? - opts.params); - opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; - if (opts.params) { - parsedUrl.search = opts.paramsSerializer(opts.params); + createAsync(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:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - opts.url = parsedUrl.href; - if (typeof options.maxContentLength === 'number') { - opts.size = options.maxContentLength; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - if (typeof options.maxRedirects === 'number') { - opts.follow = options.maxRedirects; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAsync(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}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Locations$Buckets = Resource$Billingaccounts$Locations$Buckets; + class Resource$Billingaccounts$Locations$Buckets$Links { + 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}/links').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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}/links').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Locations$Buckets$Links = Resource$Billingaccounts$Locations$Buckets$Links; + class Resource$Billingaccounts$Locations$Buckets$Views { + constructor(context) { + this.context = context; + this.logs = new Resource$Billingaccounts$Locations$Buckets$Views$Logs(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}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - opts.headers = opts.headers || {}; - if (opts.data) { - if (is_stream_1.default.readable(opts.data)) { - opts.body = opts.data; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - else if (typeof opts.data === 'object') { - opts.body = JSON.stringify(opts.data); - // Allow the user to specifiy their own content type, - // such as application/json-patch+json; for historical reasons this - // content type must currently be a json type, as we are relying on - // application/x-www-form-urlencoded (which is incompatible with - // upstream GCP APIs) being rewritten to application/json. - // - // TODO: refactor upstream dependencies to stop relying on this - // side-effect. - if (!opts.headers['Content-Type'] || - !opts.headers['Content-Type'].includes('json')) { - opts.headers['Content-Type'] = 'application/json'; - } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - opts.body = opts.data; + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - opts.validateStatus = opts.validateStatus || this.validateStatus; - opts.responseType = opts.responseType || 'json'; - if (!opts.headers['Accept'] && opts.responseType === 'json') { - opts.headers['Accept'] = 'application/json'; - } - opts.method = opts.method || 'GET'; - const proxy = loadProxy(); - if (proxy) { - if (this.agentCache.has(proxy)) { - opts.agent = this.agentCache.get(proxy); + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - opts.agent = new HttpsProxyAgent(proxy); - this.agentCache.set(proxy, opts.agent); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - return opts; - } - /** - * By default, throw for any non-2xx status code - * @param status status code from the HTTP response - */ - validateStatus(status) { - return status >= 200 && status < 300; - } - /** - * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) - * @param params key value pars to encode - */ - paramsSerializer(params) { - return querystring_1.default.stringify(params); - } - translateResponse(opts, res, data) { - // headers need to be converted from a map to an obj - const headers = {}; - res.headers.forEach((value, key) => { - headers[key] = value; - }); - return { - config: opts, - data: data, - headers, - status: res.status, - statusText: res.statusText, - // XMLHttpRequestLike - request: { - responseURL: res.url, - }, - }; - } -} -exports.Gaxios = Gaxios; -//# sourceMappingURL=gaxios.js.map - -/***/ }), -/* 831 */, -/* 832 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.digitalassetlinks = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(584); -exports.VERSIONS = { - v1: v1_1.digitalassetlinks_v1.Digitalassetlinks, -}; -function digitalassetlinks(versionOrOptions) { - return googleapis_common_1.getAPI('digitalassetlinks', versionOrOptions, exports.VERSIONS, this); -} -exports.digitalassetlinks = digitalassetlinks; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 833 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.file_v1beta1 = 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 = __webpack_require__(927); -var file_v1beta1; -(function (file_v1beta1) { - /** - * Cloud Filestore API - * - * The Cloud Filestore API is used for creating and managing cloud file servers. - * - * @example - * const {google} = require('googleapis'); - * const file = google.file('v1beta1'); - * - * @namespace file - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for File - */ - class File { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - file_v1beta1.File = File; - class Resource$Projects { + logging_v2.Resource$Billingaccounts$Locations$Buckets$Views = Resource$Billingaccounts$Locations$Buckets$Views; + class Resource$Billingaccounts$Locations$Buckets$Views$Logs { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.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/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - file_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + logging_v2.Resource$Billingaccounts$Locations$Buckets$Views$Logs = Resource$Billingaccounts$Locations$Buckets$Views$Logs; + class Resource$Billingaccounts$Locations$Operations { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -260860,10 +520462,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -260872,10 +520474,10 @@ var file_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -260884,17 +520486,18 @@ var file_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -260903,15 +520506,83 @@ var file_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - file_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Logs = Resource$Billingaccounts$Logs; + class Resource$Billingaccounts$Sinks { constructor(context) { this.context = context; } @@ -260928,10 +520599,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -260940,10 +520611,10 @@ var file_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -260959,22 +520630,22 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -260990,22 +520661,22 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -261021,10 +520692,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -261033,10 +520704,10 @@ var file_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -261052,31 +520723,188 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - file_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { + logging_v2.Resource$Billingaccounts$Sinks = Resource$Billingaccounts$Sinks; + class Resource$Entries { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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 || {}); @@ -261089,22 +520917,22 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -261120,10 +520948,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -261132,15 +520960,14 @@ var file_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261151,10 +520978,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -261163,15 +520990,14 @@ var file_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261182,97 +521008,65 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - file_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(file_v1beta1 = exports.file_v1beta1 || (exports.file_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 834 */, -/* 835 */ -/***/ (function(module) { - -module.exports = require("url"); - -/***/ }), -/* 836 */, -/* 837 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.genomics_v1alpha2 = 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 = __webpack_require__(927); -var genomics_v1alpha2; -(function (genomics_v1alpha2) { - /** - * Genomics API - * - * Uploads, processes, queries, and searches Genomics data in the cloud. - * - * @example - * const {google} = require('googleapis'); - * const genomics = google.genomics('v1alpha2'); - * - * @namespace genomics - * @type {Function} - * @version v1alpha2 - * @variation v1alpha2 - * @param {object=} options Options for Genomics - */ - class Genomics { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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, }; - this.operations = new Resource$Operations(this.context); - this.pipelines = new Resource$Pipelines(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - genomics_v1alpha2.Genomics = Genomics; - class Resource$Operations { + 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); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261285,11 +521079,11 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -261297,14 +521091,15 @@ var genomics_v1alpha2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261315,10 +521110,10 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -261327,14 +521122,15 @@ var genomics_v1alpha2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261345,11 +521141,11 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -261357,20 +521153,21 @@ var genomics_v1alpha2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - genomics_v1alpha2.Resource$Operations = Resource$Operations; - class Resource$Pipelines { + logging_v2.Resource$Folders = Resource$Folders; + class Resource$Folders$Exclusions { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261381,26 +521178,27 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261411,26 +521209,27 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['pipelineId'], - pathParams: ['pipelineId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261441,25 +521240,25 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['pipelineId'], - pathParams: ['pipelineId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getControllerConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261472,26 +521271,27 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines:getControllerConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261502,26 +521302,35 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -261532,25 +521341,25 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOperationStatus(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261563,94 +521372,124 @@ var genomics_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/pipelines:setOperationStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - genomics_v1alpha2.Resource$Pipelines = Resource$Pipelines; -})(genomics_v1alpha2 = exports.genomics_v1alpha2 || (exports.genomics_v1alpha2 = {})); -//# sourceMappingURL=v1alpha2.js.map - -/***/ }), -/* 838 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.networkmanagement_v1beta1 = 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 = __webpack_require__(927); -var networkmanagement_v1beta1; -(function (networkmanagement_v1beta1) { - /** - * Network Management API - * - * The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. - * - * @example - * const {google} = require('googleapis'); - * const networkmanagement = google.networkmanagement('v1beta1'); - * - * @namespace networkmanagement - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Networkmanagement - */ - class Networkmanagement { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - networkmanagement_v1beta1.Networkmanagement = Networkmanagement; - class Resource$Projects { + logging_v2.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Buckets { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.links = new Resource$Folders$Locations$Buckets$Links(this.context); + this.views = new Resource$Folders$Locations$Buckets$Views(this.context); } - } - networkmanagement_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.global = new Resource$Projects$Locations$Global(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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createAsync(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:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -261665,10 +521504,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -261677,10 +521516,10 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -261696,35 +521535,120 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkmanagement_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Global { - constructor(context) { - this.context = context; - this.connectivityTests = new Resource$Projects$Locations$Global$Connectivitytests(this.context); - this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAsync(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}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - networkmanagement_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Connectivitytests { + logging_v2.Resource$Folders$Locations$Buckets = Resource$Folders$Locations$Buckets; + class Resource$Folders$Locations$Buckets$Links { constructor(context) { this.context = context; } @@ -261741,10 +521665,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -261753,10 +521677,10 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -261772,10 +521696,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -261784,10 +521708,10 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -261803,10 +521727,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -261815,13 +521739,13 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261834,25 +521758,32 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Folders$Locations$Buckets$Links = Resource$Folders$Locations$Buckets$Links; + class Resource$Folders$Locations$Buckets$Views { + constructor(context) { + this.context = context; + this.logs = new Resource$Folders$Locations$Buckets$Views$Logs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261865,11 +521796,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -261877,13 +521808,13 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261896,11 +521827,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -261908,13 +521839,13 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rerun(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261927,11 +521858,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -261939,13 +521870,13 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261958,25 +521889,25 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261989,62 +521920,69 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - networkmanagement_v1beta1.Resource$Projects$Locations$Global$Connectivitytests = Resource$Projects$Locations$Global$Connectivitytests; - class Resource$Projects$Locations$Global$Operations { + logging_v2.Resource$Folders$Locations$Buckets$Views = Resource$Folders$Locations$Buckets$Views; + class Resource$Folders$Locations$Buckets$Views$Logs { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Folders$Locations$Buckets$Views$Logs = Resource$Folders$Locations$Buckets$Views$Logs; + class Resource$Folders$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262057,11 +521995,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -262069,10 +522007,10 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -262088,10 +522026,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -262100,10 +522038,10 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -262119,10 +522057,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -262131,96 +522069,19 @@ var networkmanagement_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - networkmanagement_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; -})(networkmanagement_v1beta1 = exports.networkmanagement_v1beta1 || (exports.networkmanagement_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 839 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.content_v2_1 = 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 = __webpack_require__(927); -var content_v2_1; -(function (content_v2_1) { - /** - * Content API for Shopping - * - * Manages product items, inventory, and Merchant Center accounts for Google Shopping. - * - * @example - * const {google} = require('googleapis'); - * const content = google.content('v2.1'); - * - * @namespace content - * @type {Function} - * @version v2.1 - * @variation v2.1 - * @param {object=} options Options for Content - */ - class Content { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - this.accountstatuses = new Resource$Accountstatuses(this.context); - this.accounttax = new Resource$Accounttax(this.context); - this.datafeeds = new Resource$Datafeeds(this.context); - this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); - this.liasettings = new Resource$Liasettings(this.context); - this.localinventory = new Resource$Localinventory(this.context); - this.orderinvoices = new Resource$Orderinvoices(this.context); - this.orderreports = new Resource$Orderreports(this.context); - this.orderreturns = new Resource$Orderreturns(this.context); - this.orders = new Resource$Orders(this.context); - this.pos = new Resource$Pos(this.context); - this.products = new Resource$Products(this.context); - this.productstatuses = new Resource$Productstatuses(this.context); - this.pubsubnotificationsettings = new Resource$Pubsubnotificationsettings(this.context); - this.regionalinventory = new Resource$Regionalinventory(this.context); - this.returnaddress = new Resource$Returnaddress(this.context); - this.returnpolicy = new Resource$Returnpolicy(this.context); - this.settlementreports = new Resource$Settlementreports(this.context); - this.settlementtransactions = new Resource$Settlementtransactions(this.context); - this.shippingsettings = new Resource$Shippingsettings(this.context); - } - } - content_v2_1.Content = Content; - class Resource$Accounts { + logging_v2.Resource$Folders$Locations$Operations = Resource$Folders$Locations$Operations; + class Resource$Folders$Logs { constructor(context) { this.context = context; } - authinfo(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262233,25 +522094,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - claimwebsite(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262264,26 +522125,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -262296,26 +522162,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262326,26 +522193,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262356,26 +522224,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262386,26 +522255,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - link(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262416,26 +522286,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262446,27 +522317,34 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listlinks(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -262477,26 +522355,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/listlinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -262508,31 +522385,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Accounts = Resource$Accounts; - class Resource$Accountstatuses { + logging_v2.Resource$Locations = Resource$Locations; + class Resource$Locations$Buckets { constructor(context) { this.context = context; + this.links = new Resource$Locations$Buckets$Links(this.context); + this.views = new Resource$Locations$Buckets$Views(this.context); } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262545,25 +522424,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + createAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262576,25 +522455,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262607,31 +522486,56 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Accountstatuses = Resource$Accountstatuses; - class Resource$Accounttax { - 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262644,26 +522548,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262674,26 +522579,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262704,25 +522610,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updateAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262735,31 +522641,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Accounttax = Resource$Accounttax; - class Resource$Datafeeds { + logging_v2.Resource$Locations$Buckets = Resource$Locations$Buckets; + class Resource$Locations$Buckets$Links { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262772,26 +522678,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262802,25 +522709,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchnow(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262833,27 +522740,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262864,26 +522771,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + logging_v2.Resource$Locations$Buckets$Links = Resource$Locations$Buckets$Links; + 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; @@ -262894,26 +522808,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262924,26 +522839,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262954,31 +522870,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Datafeeds = Resource$Datafeeds; - class Resource$Datafeedstatuses { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262991,25 +522901,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263022,26 +522932,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -263054,31 +522969,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Datafeedstatuses = Resource$Datafeedstatuses; - class Resource$Liasettings { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263091,26 +523000,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -263121,27 +523031,32 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -263152,23 +523067,22 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -263183,25 +523097,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Logs = Resource$Logs; + class Resource$Monitoredresourcedescriptors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263214,10 +523134,10 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -263226,13 +523146,23 @@ var content_v2_1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -263245,26 +523175,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'gmbEmail'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263277,26 +523206,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'country', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setinventoryverificationcontact(paramsOrCallback, optionsOrCallback, callback) { + updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263309,33 +523237,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'merchantId', - 'accountId', - 'contactEmail', - 'contactName', - 'country', - 'language', - ], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263348,26 +523268,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -263380,31 +523305,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Liasettings = Resource$Liasettings; - class Resource$Localinventory { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263417,25 +523336,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/localinventory/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263448,32 +523367,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/products/{productId}/localinventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Localinventory = Resource$Localinventory; - class Resource$Orderinvoices { - constructor(context) { - this.context = context; - } - createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263486,26 +523398,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263518,32 +523429,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Orderinvoices = Resource$Orderinvoices; - class Resource$Orderreports { + 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); } - listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263556,25 +523468,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'disbursementStartDate'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listtransactions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263587,36 +523499,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'merchantId', - 'disbursementId', - 'transactionStartDate', - ], - pathParams: ['disbursementId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Orderreports = Resource$Orderreports; - class Resource$Orderreturns { + logging_v2.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Buckets { constructor(context) { this.context = context; + this.links = new Resource$Organizations$Locations$Buckets$Links(this.context); + this.views = new Resource$Organizations$Locations$Buckets$Views(this.context); } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263629,56 +523538,57 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createAsync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263691,25 +523601,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263722,32 +523632,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/process').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Orderreturns = Resource$Orderreturns; - class Resource$Orders { - constructor(context) { - this.context = context; - } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263760,26 +523663,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263792,27 +523694,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -263823,403 +523725,434 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancellineitem(paramsOrCallback, optionsOrCallback, callback) { + updateAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Organizations$Locations$Buckets = Resource$Organizations$Locations$Buckets; + class Resource$Organizations$Locations$Buckets$Links { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createtestorder(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createtestreturn(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Organizations$Locations$Buckets$Links = Resource$Organizations$Locations$Buckets$Links; + class Resource$Organizations$Locations$Buckets$Views { + constructor(context) { + this.context = context; + this.logs = new Resource$Organizations$Locations$Buckets$Views$Logs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'merchantOrderId'], - pathParams: ['merchantId', 'merchantOrderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'templateName'], - pathParams: ['merchantId', 'templateName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Organizations$Locations$Buckets$Views = Resource$Organizations$Locations$Buckets$Views; + class Resource$Organizations$Locations$Buckets$Views$Logs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Organizations$Locations$Buckets$Views$Logs = Resource$Organizations$Locations$Buckets$Views$Logs; + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - shiplineitems(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264232,26 +524165,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264264,26 +524196,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -264296,26 +524233,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateshipment(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264328,33 +524264,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Orders = Resource$Orders; - class Resource$Pos { + logging_v2.Resource$Organizations$Logs = Resource$Organizations$Logs; + class Resource$Organizations$Sinks { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264365,26 +524301,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/pos/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264395,27 +524332,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264426,27 +524363,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264457,27 +524394,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inventory(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264488,27 +524425,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264519,27 +524456,38 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sale(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -264550,31 +524498,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Pos = Resource$Pos; - class Resource$Products { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264587,26 +524529,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/products/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -264617,26 +524566,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264647,26 +524597,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264677,26 +524628,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264707,31 +524659,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Products = Resource$Products; - class Resource$Productstatuses { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264744,24 +524690,32 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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 || {}); @@ -264775,22 +524729,22 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -264806,31 +524760,33 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Productstatuses = Resource$Productstatuses; - class Resource$Pubsubnotificationsettings { + logging_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Buckets { constructor(context) { this.context = context; + this.links = new Resource$Projects$Locations$Buckets$Links(this.context); + this.views = new Resource$Projects$Locations$Buckets$Views(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264843,25 +524799,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + createAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264874,31 +524830,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - content_v2_1.Resource$Pubsubnotificationsettings = Resource$Pubsubnotificationsettings; - class Resource$Regionalinventory { - constructor(context) { - this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264911,25 +524861,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/regionalinventory/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264942,32 +524892,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/products/{productId}/regionalinventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Regionalinventory = Resource$Regionalinventory; - class Resource$Returnaddress { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264980,25 +524923,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/returnaddress/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265011,26 +524954,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'returnAddressId'], - pathParams: ['merchantId', 'returnAddressId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265043,26 +524985,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'returnAddressId'], - pathParams: ['merchantId', 'returnAddressId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265075,25 +525016,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Projects$Locations$Buckets = Resource$Projects$Locations$Buckets; + class Resource$Projects$Locations$Buckets$Links { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265106,31 +525053,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Returnaddress = Resource$Returnaddress; - class Resource$Returnpolicy { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265143,25 +525084,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/returnpolicy/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265174,27 +525115,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265205,26 +525146,32 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Projects$Locations$Buckets$Links = Resource$Projects$Locations$Buckets$Links; + class Resource$Projects$Locations$Buckets$Views { + constructor(context) { + this.context = context; + this.logs = new Resource$Projects$Locations$Buckets$Views$Logs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265237,25 +525184,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265268,30 +525215,24 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Returnpolicy = Resource$Returnpolicy; - class Resource$Settlementreports { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -265305,23 +525246,22 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/settlementreports/{settlementId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'settlementId'], - pathParams: ['merchantId', 'settlementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -265337,31 +525277,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/settlementreports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Settlementreports = Resource$Settlementreports; - class Resource$Settlementtransactions { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265374,63 +525308,69 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'settlementId'], - pathParams: ['merchantId', 'settlementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - content_v2_1.Resource$Settlementtransactions = Resource$Settlementtransactions; - class Resource$Shippingsettings { + logging_v2.Resource$Projects$Locations$Buckets$Views = Resource$Projects$Locations$Buckets$Views; + class Resource$Projects$Locations$Buckets$Views$Logs { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Projects$Locations$Buckets$Views$Logs = Resource$Projects$Locations$Buckets$Views$Logs; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265443,26 +525383,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265475,25 +525414,25 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265506,25 +525445,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedpickupservices(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -265537,22 +525482,22 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -265568,25 +525513,31 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -265599,97 +525550,27 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Shippingsettings = Resource$Shippingsettings; -})(content_v2_1 = exports.content_v2_1 || (exports.content_v2_1 = {})); -//# sourceMappingURL=v2.1.js.map - -/***/ }), -/* 840 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.appengine_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 = __webpack_require__(927); -var appengine_v1; -(function (appengine_v1) { - /** - * App Engine Admin API - * - * Provisions and manages developers' App Engine applications. - * - * @example - * const {google} = require('googleapis'); - * const appengine = google.appengine('v1'); - * - * @namespace appengine - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Appengine - */ - class Appengine { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.apps = new Resource$Apps(this.context); - } - } - appengine_v1.Appengine = Appengine; - class Resource$Apps { - constructor(context) { - this.context = context; - this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); - this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); - this.domainMappings = new Resource$Apps$Domainmappings(this.context); - this.firewall = new Resource$Apps$Firewall(this.context); - this.locations = new Resource$Apps$Locations(this.context); - this.operations = new Resource$Apps$Operations(this.context); - this.services = new Resource$Apps$Services(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265700,26 +525581,27 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['metricName'], + pathParams: ['metricName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265730,26 +525612,27 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['metricName'], + pathParams: ['metricName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265760,26 +525643,27 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - repair(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265790,27 +525674,27 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['metricName'], + pathParams: ['metricName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - appengine_v1.Resource$Apps = Resource$Apps; - class Resource$Apps$Authorizedcertificates { + logging_v2.Resource$Projects$Metrics = Resource$Projects$Metrics; + class Resource$Projects$Sinks { constructor(context) { this.context = context; } @@ -265827,22 +525711,22 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -265858,23 +525742,22 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -265890,23 +525773,22 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -265922,22 +525804,22 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -265953,32 +525835,25 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; - class Resource$Apps$Authorizeddomains { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265991,33 +525866,32 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - appengine_v1.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; - class Resource$Apps$Domainmappings { + logging_v2.Resource$Projects$Sinks = Resource$Projects$Sinks; + class Resource$Sinks { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266028,27 +525902,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266059,27 +525932,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266090,27 +525962,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266121,27 +525992,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266152,100 +526022,31 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - appengine_v1.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; - class Resource$Apps$Firewall { - constructor(context) { - this.context = context; - this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); - } - } - appengine_v1.Resource$Apps$Firewall = Resource$Apps$Firewall; - class Resource$Apps$Firewall$Ingressrules { + logging_v2.Resource$Sinks = Resource$Sinks; + class Resource$V2 { constructor(context) { this.context = context; } - batchUpdate(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://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['appsId'], - pathParams: ['appsId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - 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://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['appsId'], - pathParams: ['appsId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266258,28 +526059,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266290,26 +526089,25 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266322,25 +526120,25 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266353,34 +526151,403 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - appengine_v1.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; - class Resource$Apps$Locations { + logging_v2.Resource$V2 = Resource$V2; +})(logging_v2 = exports.logging_v2 || (exports.logging_v2 = {})); + + +/***/ }), + +/***/ 8916: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +const VERSION = "1.0.4"; + +/** + * @param octokit Octokit instance + * @param options Options passed to Octokit constructor + */ + +function requestLog(octokit) { + octokit.hook.wrap("request", (request, options) => { + octokit.log.debug("request", options); + const start = Date.now(); + const requestOptions = octokit.request.endpoint.parse(options); + const path = requestOptions.url.replace(options.baseUrl, ""); + return request(options).then(response => { + octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); + return response; + }).catch(error => { + octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); + throw error; + }); + }); +} +requestLog.VERSION = VERSION; + +exports.requestLog = requestLog; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 8917: +/***/ (function(module, __unusedexports, __webpack_require__) { + +const { context } = __webpack_require__(1469); + +/** + * This function creates a comment and assigns users. + * @param {import('@octokit/rest').Octokit} octokit + * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest + * @param {string[]} assignees + * @param {string} comment + */ +const commentAndAssignUsers = async ( + octokit, pullRequest, assignees, comment +) => { + await octokit.issues.createComment({ + issue_number: pullRequest.number, + body: comment, + ...context.repo, + }); + + await octokit.issues.addAssignees({ + issue_number: pullRequest.number, + assignees: assignees, + ...context.repo, + }); +}; + +module.exports = { + commentAndAssignUsers, +}; + + +/***/ }), + +/***/ 8928: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/** + * Functions to output keys in SSH-friendly formats. + * + * This is part of the Forge project which may be used under the terms of + * either the BSD License or the GNU General Public License (GPL) Version 2. + * + * See: https://github.com/digitalbazaar/forge/blob/cbebca3780658703d925b61b2caffb1d263a6c1d/LICENSE + * + * @author https://github.com/shellac + */ +var forge = __webpack_require__(239); +__webpack_require__(828); +__webpack_require__(3000); +__webpack_require__(5237); +__webpack_require__(2707); +__webpack_require__(7152); + +var ssh = module.exports = forge.ssh = forge.ssh || {}; + +/** + * Encodes (and optionally encrypts) a private RSA key as a Putty PPK file. + * + * @param privateKey the key. + * @param passphrase a passphrase to protect the key (falsy for no encryption). + * @param comment a comment to include in the key file. + * + * @return the PPK file as a string. + */ +ssh.privateKeyToPutty = function(privateKey, passphrase, comment) { + comment = comment || ''; + passphrase = passphrase || ''; + var algorithm = 'ssh-rsa'; + var encryptionAlgorithm = (passphrase === '') ? 'none' : 'aes256-cbc'; + + var ppk = 'PuTTY-User-Key-File-2: ' + algorithm + '\r\n'; + ppk += 'Encryption: ' + encryptionAlgorithm + '\r\n'; + ppk += 'Comment: ' + comment + '\r\n'; + + // public key into buffer for ppk + var pubbuffer = forge.util.createBuffer(); + _addStringToBuffer(pubbuffer, algorithm); + _addBigIntegerToBuffer(pubbuffer, privateKey.e); + _addBigIntegerToBuffer(pubbuffer, privateKey.n); + + // write public key + var pub = forge.util.encode64(pubbuffer.bytes(), 64); + var length = Math.floor(pub.length / 66) + 1; // 66 = 64 + \r\n + ppk += 'Public-Lines: ' + length + '\r\n'; + ppk += pub; + + // private key into a buffer + var privbuffer = forge.util.createBuffer(); + _addBigIntegerToBuffer(privbuffer, privateKey.d); + _addBigIntegerToBuffer(privbuffer, privateKey.p); + _addBigIntegerToBuffer(privbuffer, privateKey.q); + _addBigIntegerToBuffer(privbuffer, privateKey.qInv); + + // optionally encrypt the private key + var priv; + if(!passphrase) { + // use the unencrypted buffer + priv = forge.util.encode64(privbuffer.bytes(), 64); + } else { + // encrypt RSA key using passphrase + var encLen = privbuffer.length() + 16 - 1; + encLen -= encLen % 16; + + // pad private key with sha1-d data -- needs to be a multiple of 16 + var padding = _sha1(privbuffer.bytes()); + + padding.truncate(padding.length() - encLen + privbuffer.length()); + privbuffer.putBuffer(padding); + + var aeskey = forge.util.createBuffer(); + aeskey.putBuffer(_sha1('\x00\x00\x00\x00', passphrase)); + aeskey.putBuffer(_sha1('\x00\x00\x00\x01', passphrase)); + + // encrypt some bytes using CBC mode + // key is 40 bytes, so truncate *by* 8 bytes + var cipher = forge.aes.createEncryptionCipher(aeskey.truncate(8), 'CBC'); + cipher.start(forge.util.createBuffer().fillWithByte(0, 16)); + cipher.update(privbuffer.copy()); + cipher.finish(); + var encrypted = cipher.output; + + // Note: this appears to differ from Putty -- is forge wrong, or putty? + // due to padding we finish as an exact multiple of 16 + encrypted.truncate(16); // all padding + + priv = forge.util.encode64(encrypted.bytes(), 64); + } + + // output private key + length = Math.floor(priv.length / 66) + 1; // 64 + \r\n + ppk += '\r\nPrivate-Lines: ' + length + '\r\n'; + ppk += priv; + + // MAC + var mackey = _sha1('putty-private-key-file-mac-key', passphrase); + + var macbuffer = forge.util.createBuffer(); + _addStringToBuffer(macbuffer, algorithm); + _addStringToBuffer(macbuffer, encryptionAlgorithm); + _addStringToBuffer(macbuffer, comment); + macbuffer.putInt32(pubbuffer.length()); + macbuffer.putBuffer(pubbuffer); + macbuffer.putInt32(privbuffer.length()); + macbuffer.putBuffer(privbuffer); + + var hmac = forge.hmac.create(); + hmac.start('sha1', mackey); + hmac.update(macbuffer.bytes()); + + ppk += '\r\nPrivate-MAC: ' + hmac.digest().toHex() + '\r\n'; + + return ppk; +}; + +/** + * Encodes a public RSA key as an OpenSSH file. + * + * @param key the key. + * @param comment a comment. + * + * @return the public key in OpenSSH format. + */ +ssh.publicKeyToOpenSSH = function(key, comment) { + var type = 'ssh-rsa'; + comment = comment || ''; + + var buffer = forge.util.createBuffer(); + _addStringToBuffer(buffer, type); + _addBigIntegerToBuffer(buffer, key.e); + _addBigIntegerToBuffer(buffer, key.n); + + return type + ' ' + forge.util.encode64(buffer.bytes()) + ' ' + comment; +}; + +/** + * Encodes a private RSA key as an OpenSSH file. + * + * @param key the key. + * @param passphrase a passphrase to protect the key (falsy for no encryption). + * + * @return the public key in OpenSSH format. + */ +ssh.privateKeyToOpenSSH = function(privateKey, passphrase) { + if(!passphrase) { + return forge.pki.privateKeyToPem(privateKey); + } + // OpenSSH private key is just a legacy format, it seems + return forge.pki.encryptRsaPrivateKey(privateKey, passphrase, + {legacy: true, algorithm: 'aes128'}); +}; + +/** + * Gets the SSH fingerprint for the given public key. + * + * @param options the options to use. + * [md] the message digest object to use (defaults to forge.md.md5). + * [encoding] an alternative output encoding, such as 'hex' + * (defaults to none, outputs a byte buffer). + * [delimiter] the delimiter to use between bytes for 'hex' encoded + * output, eg: ':' (defaults to none). + * + * @return the fingerprint as a byte buffer or other encoding based on options. + */ +ssh.getPublicKeyFingerprint = function(key, options) { + options = options || {}; + var md = options.md || forge.md.md5.create(); + + var type = 'ssh-rsa'; + var buffer = forge.util.createBuffer(); + _addStringToBuffer(buffer, type); + _addBigIntegerToBuffer(buffer, key.e); + _addBigIntegerToBuffer(buffer, key.n); + + // hash public key bytes + md.start(); + md.update(buffer.getBytes()); + var digest = md.digest(); + if(options.encoding === 'hex') { + var hex = digest.toHex(); + if(options.delimiter) { + return hex.match(/.{2}/g).join(options.delimiter); + } + return hex; + } else if(options.encoding === 'binary') { + return digest.getBytes(); + } else if(options.encoding) { + throw new Error('Unknown encoding "' + options.encoding + '".'); + } + return digest; +}; + +/** + * Adds len(val) then val to a buffer. + * + * @param buffer the buffer to add to. + * @param val a big integer. + */ +function _addBigIntegerToBuffer(buffer, val) { + var hexVal = val.toString(16); + // ensure 2s complement +ve + if(hexVal[0] >= '8') { + hexVal = '00' + hexVal; + } + var bytes = forge.util.hexToBytes(hexVal); + buffer.putInt32(bytes.length); + buffer.putBytes(bytes); +} + +/** + * Adds len(val) then val to a buffer. + * + * @param buffer the buffer to add to. + * @param val a string. + */ +function _addStringToBuffer(buffer, val) { + buffer.putInt32(val.length); + buffer.putString(val); +} + +/** + * Hashes the arguments into one value using SHA-1. + * + * @return the sha1 hash of the provided arguments. + */ +function _sha1() { + var sha = forge.md.sha1.create(); + var num = arguments.length; + for (var i = 0; i < num; ++i) { + sha.update(arguments[i]); + } + return sha.digest(); +} + + +/***/ }), + +/***/ 8940: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.reseller_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var reseller_v1; +(function (reseller_v1) { + /** + * Google Workspace Reseller API + * + * Perform common functions that are available on the Channel Services console at scale, like placing orders and viewing customer information + * + * @example + * ```js + * const {google} = require('googleapis'); + * const reseller = google.reseller('v1'); + * ``` + */ + class Reseller { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.resellernotify = new Resource$Resellernotify(this.context); + this.subscriptions = new Resource$Subscriptions(this.context); + } + } + reseller_v1.Reseller = Reseller; + class Resource$Customers { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266391,27 +526558,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'locationsId'], - pathParams: ['appsId', 'locationsId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266422,33 +526588,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1.Resource$Apps$Locations = Resource$Apps$Locations; - class Resource$Apps$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266459,27 +526618,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'operationsId'], - pathParams: ['appsId', 'operationsId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266490,63 +526648,31 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - appengine_v1.Resource$Apps$Operations = Resource$Apps$Operations; - class Resource$Apps$Services { + reseller_v1.Resource$Customers = Resource$Customers; + class Resource$Resellernotify { constructor(context) { this.context = context; - this.versions = new Resource$Apps$Services$Versions(this.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://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } } - get(paramsOrCallback, optionsOrCallback, callback) { + getwatchdetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266559,25 +526685,25 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apps/reseller/v1/resellernotify/getwatchdetails').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + register(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266590,25 +526716,25 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/resellernotify/register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + unregister(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266621,63 +526747,31 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apps/reseller/v1/resellernotify/unregister').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - appengine_v1.Resource$Apps$Services = Resource$Apps$Services; - class Resource$Apps$Services$Versions { + reseller_v1.Resource$Resellernotify = Resource$Resellernotify; + class Resource$Subscriptions { constructor(context) { this.context = context; - this.instances = new Resource$Apps$Services$Versions$Instances(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://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } } - delete(paramsOrCallback, optionsOrCallback, callback) { + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266690,26 +526784,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + changePlan(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266722,57 +526816,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], - 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://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + changeRenewalSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266785,32 +526848,26 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; - class Resource$Apps$Services$Versions$Instances { - constructor(context) { - this.context = context; - } - debug(paramsOrCallback, optionsOrCallback, callback) { + changeSeats(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266823,23 +526880,23 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -266855,23 +526912,23 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['customerId', 'subscriptionId', 'deletionType'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -266887,13449 +526944,16716 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], - 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://appengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - appengine_v1.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; -})(appengine_v1 = exports.appengine_v1 || (exports.appengine_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 841 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.verifiedaccess_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 = __webpack_require__(927); -var verifiedaccess_v1; -(function (verifiedaccess_v1) { - /** - * Verified Access API - * - * API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network - * - * @example - * const {google} = require('googleapis'); - * const verifiedaccess = google.verifiedaccess('v1'); - * - * @namespace verifiedaccess - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Verifiedaccess - */ - class Verifiedaccess { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.challenge = new Resource$Challenge(this.context); - } - } - verifiedaccess_v1.Verifiedaccess = Verifiedaccess; - class Resource$Challenge { - 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://verifiedaccess.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/challenge').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); - } - } - verify(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://verifiedaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/challenge:verify').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); - } - } - } - verifiedaccess_v1.Resource$Challenge = Resource$Challenge; -})(verifiedaccess_v1 = exports.verifiedaccess_v1 || (exports.verifiedaccess_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 842 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -var deprecation = __webpack_require__(692); - -var endpointsByScope = { - actions: { - cancelWorkflowRun: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel" - }, - createOrUpdateSecretForRepo: { - method: "PUT", - params: { - encrypted_value: { - type: "string" - }, - key_id: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - createRegistrationToken: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners/registration-token" - }, - createRemoveToken: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners/remove-token" - }, - deleteArtifact: { - method: "DELETE", - params: { - artifact_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - deleteSecretFromRepo: { - method: "DELETE", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - downloadArtifact: { - method: "GET", - params: { - archive_format: { - required: true, - type: "string" - }, - artifact_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format" - }, - getArtifact: { - method: "GET", - params: { - artifact_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - getPublicKey: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/public-key" - }, - getSecret: { - method: "GET", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - getSelfHostedRunner: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - runner_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - }, - getWorkflow: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - workflow_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id" - }, - getWorkflowJob: { - method: "GET", - params: { - job_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id" - }, - getWorkflowRun: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id" - }, - listDownloadsForSelfHostedRunnerApplication: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners/downloads" - }, - listJobsForWorkflowRun: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs" - }, - listRepoWorkflowRuns: { - method: "GET", - params: { - actor: { - type: "string" - }, - branch: { - type: "string" - }, - event: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["completed", "status", "conclusion"], - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runs" - }, - listRepoWorkflows: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/workflows" - }, - listSecretsForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets" - }, - listSelfHostedRunnersForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners" - }, - listWorkflowJobLogs: { - method: "GET", - params: { - job_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs" - }, - listWorkflowRunArtifacts: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts" - }, - listWorkflowRunLogs: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/logs" - }, - listWorkflowRuns: { - method: "GET", - params: { - actor: { - type: "string" - }, - branch: { - type: "string" - }, - event: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["completed", "status", "conclusion"], - type: "string" - }, - workflow_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs" - }, - reRunWorkflow: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun" - }, - removeSelfHostedRunner: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - runner_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - } - }, - activity: { - checkStarringRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/user/starred/:owner/:repo" - }, - deleteRepoSubscription: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/subscription" - }, - deleteThreadSubscription: { - method: "DELETE", - params: { - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - getRepoSubscription: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/subscription" - }, - getThread: { - method: "GET", - params: { - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id" - }, - getThreadSubscription: { - method: "GET", - params: { - thread_id: { - required: true, - type: "integer" + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - listEventsForOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + insert(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://reseller.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/events/orgs/:org" - }, - listEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + 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://reseller.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/events" - }, - listFeeds: { - method: "GET", - params: {}, - url: "/feeds" - }, - listNotifications: { - method: "GET", - params: { - all: { - type: "boolean" - }, - before: { - type: "string" - }, - page: { - type: "integer" - }, - participating: { - type: "boolean" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" + startPaidService(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://reseller.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/notifications" - }, - listNotificationsForRepo: { - method: "GET", - params: { - all: { - type: "boolean" - }, - before: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - participating: { - type: "boolean" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" + suspend(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://reseller.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/notifications" - }, - listPublicEvents: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + reseller_v1.Resource$Subscriptions = Resource$Subscriptions; +})(reseller_v1 = exports.reseller_v1 || (exports.reseller_v1 = {})); + + +/***/ }), + +/***/ 8944: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.servicecontrol_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var servicecontrol_v1; +(function (servicecontrol_v1) { + /** + * Service Control API + * + * Provides admission control and telemetry reporting for services integrated with Service Infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicecontrol = google.servicecontrol('v1'); + * ``` + */ + class Servicecontrol { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.services = new Resource$Services(this.context); } - }, - url: "/events" - }, - listPublicEventsForOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + servicecontrol_v1.Servicecontrol = Servicecontrol; + class Resource$Services { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/events" - }, - listPublicEventsForRepoNetwork: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + allocateQuota(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://servicecontrol.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:allocateQuota').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/networks/:owner/:repo/events" - }, - listPublicEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + check(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://servicecontrol.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:check').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/events/public" - }, - listReceivedEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + 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://servicecontrol.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/received_events" - }, - listReceivedPublicEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + } + servicecontrol_v1.Resource$Services = Resource$Services; +})(servicecontrol_v1 = exports.servicecontrol_v1 || (exports.servicecontrol_v1 = {})); + + +/***/ }), + +/***/ 8948: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2019 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.GoogleAuth = exports.CLOUD_SDK_CLIENT_ID = void 0; +const child_process_1 = __webpack_require__(3129); +const fs = __webpack_require__(5747); +const gcpMetadata = __webpack_require__(1479); +const os = __webpack_require__(2087); +const path = __webpack_require__(5622); +const crypto_1 = __webpack_require__(8984); +const transporters_1 = __webpack_require__(2974); +const computeclient_1 = __webpack_require__(4310); +const idtokenclient_1 = __webpack_require__(3331); +const envDetect_1 = __webpack_require__(4813); +const jwtclient_1 = __webpack_require__(2484); +const refreshclient_1 = __webpack_require__(8846); +const impersonated_1 = __webpack_require__(2893); +const externalclient_1 = __webpack_require__(992); +const baseexternalclient_1 = __webpack_require__(48); +const externalAccountAuthorizedUserClient_1 = __webpack_require__(7292); +exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; +const GoogleAuthExceptionMessages = { + NO_PROJECT_ID_FOUND: 'Unable to detect a Project Id in the current environment. \n' + + 'To learn more about authentication and Google APIs, visit: \n' + + 'https://cloud.google.com/docs/authentication/getting-started', +}; +class GoogleAuth { + // Note: this properly is only public to satisify unit tests. + // https://github.com/Microsoft/TypeScript/issues/5228 + get isGCE() { + return this.checkIsGCE; + } + constructor(opts) { + /** + * Caches a value indicating whether the auth layer is running on Google + * Compute Engine. + * @private + */ + this.checkIsGCE = undefined; + // To save the contents of the JSON credential file + this.jsonContent = null; + this.cachedCredential = null; + opts = opts || {}; + this._cachedProjectId = opts.projectId || null; + this.cachedCredential = opts.authClient || null; + this.keyFilename = opts.keyFilename || opts.keyFile; + this.scopes = opts.scopes; + this.jsonContent = opts.credentials || null; + this.clientOptions = opts.clientOptions; + } + // GAPIC client libraries should always use self-signed JWTs. The following + // variables are set on the JWT client in order to indicate the type of library, + // and sign the JWT with the correct audience and scopes (if not supplied). + setGapicJWTValues(client) { + client.defaultServicePath = this.defaultServicePath; + client.useJWTAccessWithScope = this.useJWTAccessWithScope; + client.defaultScopes = this.defaultScopes; + } + getProjectId(callback) { + if (callback) { + this.getProjectIdAsync().then(r => callback(null, r), callback); } - }, - url: "/users/:username/received_events/public" - }, - listRepoEvents: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + else { + return this.getProjectIdAsync(); } - }, - url: "/repos/:owner/:repo/events" - }, - listReposStarredByAuthenticatedUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" + } + /** + * A temporary method for internal `getProjectId` usages where `null` is + * acceptable. In a future major release, `getProjectId` should return `null` + * (as the `Promise` base signature describes) and this private + * method should be removed. + * + * @returns Promise that resolves with project id (or `null`) + */ + async getProjectIdOptional() { + try { + return await this.getProjectId(); } - }, - url: "/user/starred" - }, - listReposStarredByUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" - }, - username: { - required: true, - type: "string" + catch (e) { + if (e instanceof Error && + e.message === GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND) { + return null; + } + else { + throw e; + } } - }, - url: "/users/:username/starred" - }, - listReposWatchedByUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + } + /* + * A private method for finding and caching a projectId. + * + * Supports environments in order of precedence: + * - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable + * - GOOGLE_APPLICATION_CREDENTIALS JSON file + * - Cloud SDK: `gcloud config config-helper --format json` + * - GCE project ID from metadata server + * + * @returns projectId + */ + async findAndCacheProjectId() { + let projectId = null; + projectId || (projectId = await this.getProductionProjectId()); + projectId || (projectId = await this.getFileProjectId()); + projectId || (projectId = await this.getDefaultServiceProjectId()); + projectId || (projectId = await this.getGCEProjectId()); + projectId || (projectId = await this.getExternalAccountClientProjectId()); + if (projectId) { + this._cachedProjectId = projectId; + return projectId; } - }, - url: "/users/:username/subscriptions" - }, - listStargazersForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + else { + throw new Error(GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND); } - }, - url: "/repos/:owner/:repo/stargazers" - }, - listWatchedReposForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + async getProjectIdAsync() { + if (this._cachedProjectId) { + return this._cachedProjectId; } - }, - url: "/user/subscriptions" - }, - listWatchersForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + if (!this._findProjectIdPromise) { + this._findProjectIdPromise = this.findAndCacheProjectId(); } - }, - url: "/repos/:owner/:repo/subscribers" - }, - markAsRead: { - method: "PUT", - params: { - last_read_at: { - type: "string" + return this._findProjectIdPromise; + } + /** + * @returns Any scopes (user-specified or default scopes specified by the + * client library) that need to be set on the current Auth client. + */ + getAnyScopes() { + return this.scopes || this.defaultScopes; + } + getApplicationDefault(optionsOrCallback = {}, callback) { + let options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; } - }, - url: "/notifications" - }, - markNotificationsAsReadForRepo: { - method: "PUT", - params: { - last_read_at: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + else { + options = optionsOrCallback; } - }, - url: "/repos/:owner/:repo/notifications" - }, - markThreadAsRead: { - method: "PATCH", - params: { - thread_id: { - required: true, - type: "integer" + if (callback) { + this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); } - }, - url: "/notifications/threads/:thread_id" - }, - setRepoSubscription: { - method: "PUT", - params: { - ignored: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - subscribed: { - type: "boolean" + else { + return this.getApplicationDefaultAsync(options); } - }, - url: "/repos/:owner/:repo/subscription" - }, - setThreadSubscription: { - method: "PUT", - params: { - ignored: { - type: "boolean" - }, - thread_id: { - required: true, - type: "integer" + } + async getApplicationDefaultAsync(options = {}) { + // If we've already got a cached credential, return it. + // This will also preserve one's configured quota project, in case they + // set one directly on the credential previously. + if (this.cachedCredential) { + return await this.prepareAndCacheADC(this.cachedCredential); } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - starRepo: { - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + // Since this is a 'new' ADC to cache we will use the environment variable + // if it's available. We prefer this value over the value from ADC. + const quotaProjectIdOverride = process.env['GOOGLE_CLOUD_QUOTA_PROJECT']; + let credential; + // Check for the existence of a local environment variable pointing to the + // location of the credential file. This is typically used in local + // developer scenarios. + credential = + await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { + credential.scopes = this.getAnyScopes(); + } + return await this.prepareAndCacheADC(credential, quotaProjectIdOverride); } - }, - url: "/user/starred/:owner/:repo" - }, - unstarRepo: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + // Look in the well-known credential file location. + credential = await this._tryGetApplicationCredentialsFromWellKnownFile(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { + credential.scopes = this.getAnyScopes(); + } + return await this.prepareAndCacheADC(credential, quotaProjectIdOverride); } - }, - url: "/user/starred/:owner/:repo" - } - }, - apps: { - addRepoToInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "PUT", - params: { - installation_id: { - required: true, - type: "integer" - }, - repository_id: { - required: true, - type: "integer" + // Determine if we're running on GCE. + let isGCE; + try { + isGCE = await this._checkIsGCE(); } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - checkAccountIsAssociatedWithAny: { - method: "GET", - params: { - account_id: { - required: true, - type: "integer" + catch (e) { + if (e instanceof Error) { + e.message = `Unexpected error determining execution environment: ${e.message}`; + } + throw e; } - }, - url: "/marketplace_listing/accounts/:account_id" - }, - checkAccountIsAssociatedWithAnyStubbed: { - method: "GET", - params: { - account_id: { - required: true, - type: "integer" + if (!isGCE) { + // We failed to find the default credentials. Bail out with an error. + throw new Error('Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.'); } - }, - url: "/marketplace_listing/stubbed/accounts/:account_id" - }, - checkAuthorization: { - deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization", - method: "GET", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + // For GCE, just return a default ComputeClient. It will take care of + // the rest. + options.scopes = this.getAnyScopes(); + return await this.prepareAndCacheADC(new computeclient_1.Compute(options), quotaProjectIdOverride); + } + async prepareAndCacheADC(credential, quotaProjectIdOverride) { + const projectId = await this.getProjectIdOptional(); + if (quotaProjectIdOverride) { + credential.quotaProjectId = quotaProjectIdOverride; } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - checkToken: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "POST", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" + this.cachedCredential = credential; + return { credential, projectId }; + } + /** + * Determines whether the auth layer is running on Google Compute Engine. + * @returns A promise that resolves with the boolean. + * @api private + */ + async _checkIsGCE() { + if (this.checkIsGCE === undefined) { + this.checkIsGCE = await gcpMetadata.isAvailable(); } - }, - url: "/applications/:client_id/token" - }, - createContentAttachment: { - headers: { - accept: "application/vnd.github.corsair-preview+json" - }, - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - content_reference_id: { - required: true, - type: "integer" - }, - title: { - required: true, - type: "string" + return this.checkIsGCE; + } + /** + * Attempts to load default credentials from the environment variable path.. + * @returns Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { + const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || + process.env['google_application_credentials']; + if (!credentialsPath || credentialsPath.length === 0) { + return null; } - }, - url: "/content_references/:content_reference_id/attachments" - }, - createFromManifest: { - headers: { - accept: "application/vnd.github.fury-preview+json" - }, - method: "POST", - params: { - code: { - required: true, - type: "string" + try { + return this._getApplicationCredentialsFromFilePath(credentialsPath, options); } - }, - url: "/app-manifests/:code/conversions" - }, - createInstallationToken: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "POST", - params: { - installation_id: { - required: true, - type: "integer" - }, - permissions: { - type: "object" - }, - repository_ids: { - type: "integer[]" + catch (e) { + if (e instanceof Error) { + e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; + } + throw e; } - }, - url: "/app/installations/:installation_id/access_tokens" - }, - deleteAuthorization: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "DELETE", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" + } + /** + * Attempts to load default credentials from a well-known file location + * @return Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromWellKnownFile(options) { + // First, figure out the location of the file, depending upon the OS type. + let location = null; + if (this._isWindows()) { + // Windows + location = process.env['APPDATA']; } - }, - url: "/applications/:client_id/grant" - }, - deleteInstallation: { - headers: { - accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json" - }, - method: "DELETE", - params: { - installation_id: { - required: true, - type: "integer" + else { + // Linux or Mac + const home = process.env['HOME']; + if (home) { + location = path.join(home, '.config'); + } } - }, - url: "/app/installations/:installation_id" - }, - deleteToken: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "DELETE", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" + // If we found the root path, expand it. + if (location) { + location = path.join(location, 'gcloud', 'application_default_credentials.json'); + if (!fs.existsSync(location)) { + location = null; + } } - }, - url: "/applications/:client_id/token" - }, - findOrgInstallation: { - deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)", - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" + // The file does not exist. + if (!location) { + return null; } - }, - url: "/orgs/:org/installation" - }, - findRepoInstallation: { - deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)", - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + // The file seems to exist. Try to use it. + const client = await this._getApplicationCredentialsFromFilePath(location, options); + return client; + } + /** + * Attempts to load default credentials from a file at the given path.. + * @param filePath The path to the file to read. + * @returns Promise that resolves with the OAuth2Client + * @api private + */ + async _getApplicationCredentialsFromFilePath(filePath, options = {}) { + // Make sure the path looks like a string. + if (!filePath || filePath.length === 0) { + throw new Error('The file path is invalid.'); } - }, - url: "/repos/:owner/:repo/installation" - }, - findUserInstallation: { - deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)", - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - username: { - required: true, - type: "string" + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + filePath = fs.realpathSync(filePath); + if (!fs.lstatSync(filePath).isFile()) { + throw new Error(); + } } - }, - url: "/users/:username/installation" - }, - getAuthenticated: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: {}, - url: "/app" - }, - getBySlug: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - app_slug: { - required: true, - type: "string" + catch (err) { + if (err instanceof Error) { + err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + } + throw err; } - }, - url: "/apps/:app_slug" - }, - getInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - installation_id: { - required: true, - type: "integer" + // Now open a read stream on the file, and parse it. + const readStream = fs.createReadStream(filePath); + return this.fromStream(readStream, options); + } + /** + * Create a credentials instance using a given impersonated input options. + * @param json The impersonated input object. + * @returns JWT or UserRefresh Client with data + */ + fromImpersonatedJSON(json) { + var _a, _b, _c, _d; + if (!json) { + throw new Error('Must pass in a JSON object containing an impersonated refresh token'); + } + if (json.type !== impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { + throw new Error(`The incoming JSON object does not have the "${impersonated_1.IMPERSONATED_ACCOUNT_TYPE}" type`); + } + if (!json.source_credentials) { + throw new Error('The incoming JSON object does not contain a source_credentials field'); + } + if (!json.service_account_impersonation_url) { + throw new Error('The incoming JSON object does not contain a service_account_impersonation_url field'); + } + // Create source client for impersonation + const sourceClient = new refreshclient_1.UserRefreshClient(json.source_credentials.client_id, json.source_credentials.client_secret, json.source_credentials.refresh_token); + // Extreact service account from service_account_impersonation_url + const targetPrincipal = (_b = (_a = /(?[^/]+):generateAccessToken$/.exec(json.service_account_impersonation_url)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.target; + if (!targetPrincipal) { + throw new RangeError(`Cannot extract target principal from ${json.service_account_impersonation_url}`); + } + const targetScopes = (_c = this.getAnyScopes()) !== null && _c !== void 0 ? _c : []; + const client = new impersonated_1.Impersonated({ + delegates: (_d = json.delegates) !== null && _d !== void 0 ? _d : [], + sourceClient: sourceClient, + targetPrincipal: targetPrincipal, + targetScopes: Array.isArray(targetScopes) ? targetScopes : [targetScopes], + }); + return client; + } + /** + * Create a credentials instance using the given input options. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + fromJSON(json, options = {}) { + let client; + options = options || {}; + if (json.type === refreshclient_1.USER_REFRESH_ACCOUNT_TYPE) { + client = new refreshclient_1.UserRefreshClient(options); + client.fromJSON(json); } - }, - url: "/app/installations/:installation_id" - }, - getOrgInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" + else if (json.type === impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { + client = this.fromImpersonatedJSON(json); } - }, - url: "/orgs/:org/installation" - }, - getRepoInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + client = externalclient_1.ExternalAccountClient.fromJSON(json, options); + client.scopes = this.getAnyScopes(); } - }, - url: "/repos/:owner/:repo/installation" - }, - getUserInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - username: { - required: true, - type: "string" + else if (json.type === externalAccountAuthorizedUserClient_1.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE) { + client = new externalAccountAuthorizedUserClient_1.ExternalAccountAuthorizedUserClient(json, options); } - }, - url: "/users/:username/installation" - }, - listAccountsUserOrOrgOnPlan: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - plan_id: { - required: true, - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + this.setGapicJWTValues(client); + client.fromJSON(json); } - }, - url: "/marketplace_listing/plans/:plan_id/accounts" - }, - listAccountsUserOrOrgOnPlanStubbed: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - plan_id: { - required: true, - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" + return client; + } + /** + * Return a JWT or UserRefreshClient from JavaScript object, caching both the + * object used to instantiate and the client. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + _cacheClientFromJSON(json, options) { + const client = this.fromJSON(json, options); + // cache both raw data used to instantiate client and client itself. + this.jsonContent = json; + this.cachedCredential = client; + return client; + } + fromStream(inputStream, optionsOrCallback = {}, callback) { + let options = {}; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; } - }, - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts" - }, - listInstallationReposForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - installation_id: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + else { + options = optionsOrCallback; } - }, - url: "/user/installations/:installation_id/repositories" - }, - listInstallations: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + if (callback) { + this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); } - }, - url: "/app/installations" - }, - listInstallationsForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + else { + return this.fromStreamAsync(inputStream, options); } - }, - url: "/user/installations" - }, - listMarketplacePurchasesForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + fromStreamAsync(inputStream, options) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the Google auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + try { + const data = JSON.parse(s); + const r = this._cacheClientFromJSON(data, options); + return resolve(r); + } + catch (err) { + // If we failed parsing this.keyFileName, assume that it + // is a PEM or p12 certificate: + if (!this.keyFilename) + throw err; + const client = new jwtclient_1.JWT({ + ...this.clientOptions, + keyFile: this.keyFilename, + }); + this.cachedCredential = client; + this.setGapicJWTValues(client); + return resolve(client); + } + } + catch (err) { + return reject(err); + } + }); + }); + } + /** + * Create a credentials instance using the given API key string. + * @param apiKey The API key string + * @param options An optional options object. + * @returns A JWT loaded from the key + */ + fromAPIKey(apiKey, options) { + options = options || {}; + const client = new jwtclient_1.JWT(options); + client.fromAPIKey(apiKey); + return client; + } + /** + * Determines whether the current operating system is Windows. + * @api private + */ + _isWindows() { + const sys = os.platform(); + if (sys && sys.length >= 3) { + if (sys.substring(0, 3).toLowerCase() === 'win') { + return true; + } } - }, - url: "/user/marketplace_purchases" - }, - listMarketplacePurchasesForAuthenticatedUserStubbed: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + return false; + } + /** + * Run the Google Cloud SDK command that prints the default project ID + */ + async getDefaultServiceProjectId() { + return new Promise(resolve => { + (0, child_process_1.exec)('gcloud config config-helper --format json', (err, stdout) => { + if (!err && stdout) { + try { + const projectId = JSON.parse(stdout).configuration.properties.core.project; + resolve(projectId); + return; + } + catch (e) { + // ignore errors + } + } + resolve(null); + }); + }); + } + /** + * Loads the project id from environment variables. + * @api private + */ + getProductionProjectId() { + return (process.env['GCLOUD_PROJECT'] || + process.env['GOOGLE_CLOUD_PROJECT'] || + process.env['gcloud_project'] || + process.env['google_cloud_project']); + } + /** + * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. + * @api private + */ + async getFileProjectId() { + if (this.cachedCredential) { + // Try to read the project ID from the cached credentials file + return this.cachedCredential.projectId; } - }, - url: "/user/marketplace_purchases/stubbed" - }, - listPlans: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + // Ensure the projectId is loaded from the keyFile if available. + if (this.keyFilename) { + const creds = await this.getClient(); + if (creds && creds.projectId) { + return creds.projectId; + } } - }, - url: "/marketplace_listing/plans" - }, - listPlansStubbed: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + // Try to load a credentials file and read its project ID + const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); + if (r) { + return r.projectId; } - }, - url: "/marketplace_listing/stubbed/plans" - }, - listRepos: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + else { + return null; } - }, - url: "/installation/repositories" - }, - removeRepoFromInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "DELETE", - params: { - installation_id: { - required: true, - type: "integer" - }, - repository_id: { - required: true, - type: "integer" + } + /** + * Gets the project ID from external account client if available. + */ + async getExternalAccountClientProjectId() { + if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + return null; } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - resetAuthorization: { - deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization", - method: "POST", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + const creds = await this.getClient(); + // Do not suppress the underlying error, as the error could contain helpful + // information for debugging and fixing. This is especially true for + // external account creds as in order to get the project ID, the following + // operations have to succeed: + // 1. Valid credentials file should be supplied. + // 2. Ability to retrieve access tokens from STS token exchange API. + // 3. Ability to exchange for service account impersonated credentials (if + // enabled). + // 4. Ability to get project info using the access token from step 2 or 3. + // Without surfacing the error, it is harder for developers to determine + // which step went wrong. + return await creds.getProjectId(); + } + /** + * Gets the Compute Engine project ID if it can be inferred. + */ + async getGCEProjectId() { + try { + const r = await gcpMetadata.project('project-id'); + return r; } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - resetToken: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "PATCH", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" + catch (e) { + // Ignore any errors + return null; } - }, - url: "/applications/:client_id/token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + } + getCredentials(callback) { + if (callback) { + this.getCredentialsAsync().then(r => callback(null, r), callback); } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + else { + return this.getCredentialsAsync(); } - }, - url: "/applications/:client_id/grants/:access_token" - }, - revokeInstallationToken: { - headers: { - accept: "application/vnd.github.gambit-preview+json" - }, - method: "DELETE", - params: {}, - url: "/installation/token" } - }, - checks: { - create: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "POST", - params: { - actions: { - type: "object[]" - }, - "actions[].description": { - required: true, - type: "string" - }, - "actions[].identifier": { - required: true, - type: "string" - }, - "actions[].label": { - required: true, - type: "string" - }, - completed_at: { - type: "string" - }, - conclusion: { - enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"], - type: "string" - }, - details_url: { - type: "string" - }, - external_id: { - type: "string" - }, - head_sha: { - required: true, - type: "string" - }, - name: { - required: true, - type: "string" - }, - output: { - type: "object" - }, - "output.annotations": { - type: "object[]" - }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { - type: "integer" - }, - "output.annotations[].end_line": { - required: true, - type: "integer" - }, - "output.annotations[].message": { - required: true, - type: "string" - }, - "output.annotations[].path": { - required: true, - type: "string" - }, - "output.annotations[].raw_details": { - type: "string" - }, - "output.annotations[].start_column": { - type: "integer" - }, - "output.annotations[].start_line": { - required: true, - type: "integer" - }, - "output.annotations[].title": { - type: "string" - }, - "output.images": { - type: "object[]" - }, - "output.images[].alt": { - required: true, - type: "string" - }, - "output.images[].caption": { - type: "string" - }, - "output.images[].image_url": { - required: true, - type: "string" - }, - "output.summary": { - required: true, - type: "string" - }, - "output.text": { - type: "string" - }, - "output.title": { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - started_at: { - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" + async getCredentialsAsync() { + const client = await this.getClient(); + if (client instanceof baseexternalclient_1.BaseExternalAccountClient) { + const serviceAccountEmail = client.getServiceAccountEmail(); + if (serviceAccountEmail) { + return { client_email: serviceAccountEmail }; + } } - }, - url: "/repos/:owner/:repo/check-runs" - }, - createSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "POST", - params: { - head_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + if (this.jsonContent) { + const credential = { + client_email: this.jsonContent.client_email, + private_key: this.jsonContent.private_key, + }; + return credential; } - }, - url: "/repos/:owner/:repo/check-suites" - }, - get: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_run_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + const isGCE = await this._checkIsGCE(); + if (!isGCE) { + throw new Error('Unknown error.'); } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - }, - getSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_suite_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + // For GCE, return the service account details from the metadata server + // NOTE: The trailing '/' at the end of service-accounts/ is very important! + // The GCF metadata server doesn't respect querystring params if this / is + // not included. + const data = await gcpMetadata.instance({ + property: 'service-accounts/', + params: { recursive: 'true' }, + }); + if (!data || !data.default || !data.default.email) { + throw new Error('Failure from metadata server.'); } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id" - }, - listAnnotations: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_run_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + return { client_email: data.default.email }; + } + /** + * Automatically obtain a client based on the provided configuration. If no + * options were passed, use Application Default Credentials. + */ + async getClient() { + if (!this.cachedCredential) { + if (this.jsonContent) { + this._cacheClientFromJSON(this.jsonContent, this.clientOptions); + } + else if (this.keyFilename) { + const filePath = path.resolve(this.keyFilename); + const stream = fs.createReadStream(filePath); + await this.fromStreamAsync(stream, this.clientOptions); + } + else { + await this.getApplicationDefaultAsync(this.clientOptions); + } } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations" - }, - listForRef: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_name: { - type: "string" - }, - filter: { - enum: ["latest", "all"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" + return this.cachedCredential; + } + /** + * Creates a client which will fetch an ID token for authorization. + * @param targetAudience the audience for the fetched ID token. + * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. + */ + async getIdTokenClient(targetAudience) { + const client = await this.getClient(); + if (!('fetchIdToken' in client)) { + throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); } - }, - url: "/repos/:owner/:repo/commits/:ref/check-runs" - }, - listForSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_name: { - type: "string" - }, - check_suite_id: { - required: true, - type: "integer" - }, - filter: { - enum: ["latest", "all"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" + return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); + } + /** + * Automatically obtain application default credentials, and return + * an access token for making requests. + */ + async getAccessToken() { + const client = await this.getClient(); + return (await client.getAccessToken()).token; + } + /** + * Obtain the HTTP headers that will provide authorization for a given + * request. + */ + async getRequestHeaders(url) { + const client = await this.getClient(); + return client.getRequestHeaders(url); + } + /** + * Obtain credentials for a request, then attach the appropriate headers to + * the request options. + * @param opts Axios or Request options on which to attach the headers + */ + async authorizeRequest(opts) { + opts = opts || {}; + const url = opts.url || opts.uri; + const client = await this.getClient(); + const headers = await client.getRequestHeaders(url); + opts.headers = Object.assign(opts.headers || {}, headers); + return opts; + } + /** + * Automatically obtain application default credentials, and make an + * HTTP request using the given options. + * @param opts Axios request options for the HTTP request. + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async request(opts) { + const client = await this.getClient(); + return client.request(opts); + } + /** + * Determine the compute environment in which the code is running. + */ + getEnv() { + return (0, envDetect_1.getEnv)(); + } + /** + * Sign the given data with the current private key, or go out + * to the IAM API to sign it. + * @param data The data to be signed. + */ + async sign(data) { + const client = await this.getClient(); + const crypto = (0, crypto_1.createCrypto)(); + if (client instanceof jwtclient_1.JWT && client.key) { + const sign = await crypto.sign(client.key, data); + return sign; + } + const creds = await this.getCredentials(); + if (!creds.client_email) { + throw new Error('Cannot sign data without `client_email`.'); + } + return this.signBlob(crypto, creds.client_email, data); + } + async signBlob(crypto, emailOrUniqueId, data) { + const url = 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/' + + `${emailOrUniqueId}:signBlob`; + const res = await this.request({ + method: 'POST', + url, + data: { + payload: crypto.encodeBase64StringUtf8(data), + }, + }); + return res.data.signedBlob; + } +} +exports.GoogleAuth = GoogleAuth; +/** + * Export DefaultTransporter as a static property of the class. + */ +GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; +//# sourceMappingURL=googleauth.js.map + +/***/ }), + +/***/ 8950: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudresourcemanager_v3 = exports.cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2 = exports.cloudresourcemanager_v1beta1 = exports.cloudresourcemanager_v1 = exports.auth = exports.cloudresourcemanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(509); +Object.defineProperty(exports, "cloudresourcemanager_v1", { enumerable: true, get: function () { return v1_1.cloudresourcemanager_v1; } }); +const v1beta1_1 = __webpack_require__(3530); +Object.defineProperty(exports, "cloudresourcemanager_v1beta1", { enumerable: true, get: function () { return v1beta1_1.cloudresourcemanager_v1beta1; } }); +const v2_1 = __webpack_require__(9423); +Object.defineProperty(exports, "cloudresourcemanager_v2", { enumerable: true, get: function () { return v2_1.cloudresourcemanager_v2; } }); +const v2beta1_1 = __webpack_require__(9668); +Object.defineProperty(exports, "cloudresourcemanager_v2beta1", { enumerable: true, get: function () { return v2beta1_1.cloudresourcemanager_v2beta1; } }); +const v3_1 = __webpack_require__(8987); +Object.defineProperty(exports, "cloudresourcemanager_v3", { enumerable: true, get: function () { return v3_1.cloudresourcemanager_v3; } }); +exports.VERSIONS = { + v1: v1_1.cloudresourcemanager_v1.Cloudresourcemanager, + v1beta1: v1beta1_1.cloudresourcemanager_v1beta1.Cloudresourcemanager, + v2: v2_1.cloudresourcemanager_v2.Cloudresourcemanager, + v2beta1: v2beta1_1.cloudresourcemanager_v2beta1.Cloudresourcemanager, + v3: v3_1.cloudresourcemanager_v3.Cloudresourcemanager, +}; +function cloudresourcemanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudresourcemanager', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudresourcemanager = cloudresourcemanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 8951: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.compute_alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var compute_alpha; +(function (compute_alpha) { + /** + * Compute Engine API + * + * Creates and runs virtual machines on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const compute = google.compute('alpha'); + * ``` + */ + class Compute { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acceleratorTypes = new Resource$Acceleratortypes(this.context); + this.addresses = new Resource$Addresses(this.context); + this.autoscalers = new Resource$Autoscalers(this.context); + this.backendBuckets = new Resource$Backendbuckets(this.context); + this.backendServices = new Resource$Backendservices(this.context); + this.disks = new Resource$Disks(this.context); + this.diskTypes = new Resource$Disktypes(this.context); + this.externalVpnGateways = new Resource$Externalvpngateways(this.context); + this.firewallPolicies = new Resource$Firewallpolicies(this.context); + this.firewalls = new Resource$Firewalls(this.context); + this.forwardingRules = new Resource$Forwardingrules(this.context); + this.futureReservations = new Resource$Futurereservations(this.context); + this.globalAddresses = new Resource$Globaladdresses(this.context); + this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); + this.globalNetworkEndpointGroups = + new Resource$Globalnetworkendpointgroups(this.context); + this.globalOperations = new Resource$Globaloperations(this.context); + this.globalOrganizationOperations = + new Resource$Globalorganizationoperations(this.context); + this.globalPublicDelegatedPrefixes = + new Resource$Globalpublicdelegatedprefixes(this.context); + this.healthChecks = new Resource$Healthchecks(this.context); + this.httpHealthChecks = new Resource$Httphealthchecks(this.context); + this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); + this.imageFamilyViews = new Resource$Imagefamilyviews(this.context); + this.images = new Resource$Images(this.context); + this.instanceGroupManagerResizeRequests = + new Resource$Instancegroupmanagerresizerequests(this.context); + this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); + this.instanceGroups = new Resource$Instancegroups(this.context); + this.instances = new Resource$Instances(this.context); + this.instanceSettings = new Resource$Instancesettings(this.context); + this.instanceTemplates = new Resource$Instancetemplates(this.context); + this.instantSnapshots = new Resource$Instantsnapshots(this.context); + this.interconnectAttachments = new Resource$Interconnectattachments(this.context); + this.interconnectLocations = new Resource$Interconnectlocations(this.context); + this.interconnectRemoteLocations = + new Resource$Interconnectremotelocations(this.context); + this.interconnects = new Resource$Interconnects(this.context); + this.licenseCodes = new Resource$Licensecodes(this.context); + this.licenses = new Resource$Licenses(this.context); + this.machineImages = new Resource$Machineimages(this.context); + this.machineTypes = new Resource$Machinetypes(this.context); + this.networkAttachments = new Resource$Networkattachments(this.context); + this.networkEdgeSecurityServices = + new Resource$Networkedgesecurityservices(this.context); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); + this.networkFirewallPolicies = new Resource$Networkfirewallpolicies(this.context); + this.networks = new Resource$Networks(this.context); + this.nodeGroups = new Resource$Nodegroups(this.context); + this.nodeTemplates = new Resource$Nodetemplates(this.context); + this.nodeTypes = new Resource$Nodetypes(this.context); + this.organizationSecurityPolicies = + new Resource$Organizationsecuritypolicies(this.context); + this.packetMirrorings = new Resource$Packetmirrorings(this.context); + this.projects = new Resource$Projects(this.context); + this.publicAdvertisedPrefixes = new Resource$Publicadvertisedprefixes(this.context); + this.publicDelegatedPrefixes = new Resource$Publicdelegatedprefixes(this.context); + this.regionAutoscalers = new Resource$Regionautoscalers(this.context); + this.regionBackendServices = new Resource$Regionbackendservices(this.context); + this.regionCommitments = new Resource$Regioncommitments(this.context); + this.regionDisks = new Resource$Regiondisks(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); + this.regionInstanceGroupManagers = + new Resource$Regioninstancegroupmanagers(this.context); + this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); + this.regionInstances = new Resource$Regioninstances(this.context); + this.regionInstanceTemplates = new Resource$Regioninstancetemplates(this.context); + this.regionInstantSnapshots = new Resource$Regioninstantsnapshots(this.context); + this.regionNetworkEndpointGroups = + new Resource$Regionnetworkendpointgroups(this.context); + this.regionNetworkFirewallPolicies = + new Resource$Regionnetworkfirewallpolicies(this.context); + this.regionNotificationEndpoints = + new Resource$Regionnotificationendpoints(this.context); + this.regionOperations = new Resource$Regionoperations(this.context); + this.regions = new Resource$Regions(this.context); + this.regionSecurityPolicies = new Resource$Regionsecuritypolicies(this.context); + this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); + this.regionSslPolicies = new Resource$Regionsslpolicies(this.context); + this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); + this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); + this.regionTargetTcpProxies = new Resource$Regiontargettcpproxies(this.context); + this.regionUrlMaps = new Resource$Regionurlmaps(this.context); + this.reservations = new Resource$Reservations(this.context); + this.resourcePolicies = new Resource$Resourcepolicies(this.context); + this.routers = new Resource$Routers(this.context); + this.routes = new Resource$Routes(this.context); + this.securityPolicies = new Resource$Securitypolicies(this.context); + this.serviceAttachments = new Resource$Serviceattachments(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.storagePools = new Resource$Storagepools(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetGrpcProxies = new Resource$Targetgrpcproxies(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zoneQueuedResources = new Resource$Zonequeuedresources(this.context); + this.zones = new Resource$Zones(this.context); } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs" - }, - listSuitesForRef: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - app_id: { - type: "integer" - }, - check_name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/commits/:ref/check-suites" - }, - rerequestSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "POST", - params: { - check_suite_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest" - }, - setSuitesPreferences: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "PATCH", - params: { - auto_trigger_checks: { - type: "object[]" - }, - "auto_trigger_checks[].app_id": { - required: true, - type: "integer" - }, - "auto_trigger_checks[].setting": { - required: true, - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/check-suites/preferences" - }, - update: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "PATCH", - params: { - actions: { - type: "object[]" - }, - "actions[].description": { - required: true, - type: "string" - }, - "actions[].identifier": { - required: true, - type: "string" - }, - "actions[].label": { - required: true, - type: "string" - }, - check_run_id: { - required: true, - type: "integer" - }, - completed_at: { - type: "string" - }, - conclusion: { - enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"], - type: "string" - }, - details_url: { - type: "string" - }, - external_id: { - type: "string" - }, - name: { - type: "string" - }, - output: { - type: "object" - }, - "output.annotations": { - type: "object[]" - }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { - type: "integer" - }, - "output.annotations[].end_line": { - required: true, - type: "integer" - }, - "output.annotations[].message": { - required: true, - type: "string" - }, - "output.annotations[].path": { - required: true, - type: "string" - }, - "output.annotations[].raw_details": { - type: "string" - }, - "output.annotations[].start_column": { - type: "integer" - }, - "output.annotations[].start_line": { - required: true, - type: "integer" - }, - "output.annotations[].title": { - type: "string" - }, - "output.images": { - type: "object[]" - }, - "output.images[].alt": { - required: true, - type: "string" - }, - "output.images[].caption": { - type: "string" - }, - "output.images[].image_url": { - required: true, - type: "string" - }, - "output.summary": { - required: true, - type: "string" - }, - "output.text": { - type: "string" - }, - "output.title": { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - started_at: { - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" } - }, - codesOfConduct: { - getConductCode: { - headers: { - accept: "application/vnd.github.scarlet-witch-preview+json" - }, - method: "GET", - params: { - key: { - required: true, - type: "string" - } - }, - url: "/codes_of_conduct/:key" - }, - getForRepo: { - headers: { - accept: "application/vnd.github.scarlet-witch-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + compute_alpha.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/community/code_of_conduct" - }, - listConductCodes: { - headers: { - accept: "application/vnd.github.scarlet-witch-preview+json" - }, - method: "GET", - params: {}, - url: "/codes_of_conduct" - } - }, - emojis: { - get: { - method: "GET", - params: {}, - url: "/emojis" - } - }, - gists: { - checkIsStarred: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/star" - }, - create: { - method: "POST", - params: { - description: { - type: "string" - }, - files: { - required: true, - type: "object" - }, - "files.content": { - type: "string" - }, - public: { - type: "boolean" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - gist_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/comments" - }, - delete: { - method: "DELETE", - params: { - gist_id: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - fork: { - method: "POST", - params: { - gist_id: { - required: true, - type: "string" + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/forks" - }, - get: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - getRevision: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" + } + compute_alpha.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; } - }, - url: "/gists/:gist_id/:sha" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists" - }, - listComments: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/comments" - }, - listCommits: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/commits" - }, - listForks: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/forks" - }, - listPublic: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/public" - }, - listPublicForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/gists" - }, - listStarred: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/starred" - }, - star: { - method: "PUT", - params: { - gist_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/star" - }, - unstar: { - method: "DELETE", - params: { - gist_id: { - required: true, - type: "string" + } + compute_alpha.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; } - }, - url: "/gists/:gist_id/star" - }, - update: { - method: "PATCH", - params: { - description: { - type: "string" - }, - files: { - type: "object" - }, - "files.content": { - type: "string" - }, - "files.filename": { - type: "string" - }, - gist_id: { - required: true, - type: "string" + addSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id" - }, - updateComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gists/:gist_id/comments/:comment_id" - } - }, - git: { - createBlob: { - method: "POST", - params: { - content: { - required: true, - type: "string" - }, - encoding: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + deleteSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/blobs" - }, - createCommit: { - method: "POST", - params: { - author: { - type: "object" - }, - "author.date": { - type: "string" - }, - "author.email": { - type: "string" - }, - "author.name": { - type: "string" - }, - committer: { - type: "object" - }, - "committer.date": { - type: "string" - }, - "committer.email": { - type: "string" - }, - "committer.name": { - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - parents: { - required: true, - type: "string[]" - }, - repo: { - required: true, - type: "string" - }, - signature: { - type: "string" - }, - tree: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/commits" - }, - createRef: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/refs" - }, - createTag: { - method: "POST", - params: { - message: { - required: true, - type: "string" - }, - object: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tag: { - required: true, - type: "string" - }, - tagger: { - type: "object" - }, - "tagger.date": { - type: "string" - }, - "tagger.email": { - type: "string" - }, - "tagger.name": { - type: "string" - }, - type: { - enum: ["commit", "tree", "blob"], - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/tags" - }, - createTree: { - method: "POST", - params: { - base_tree: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tree: { - required: true, - type: "object[]" - }, - "tree[].content": { - type: "string" - }, - "tree[].mode": { - enum: ["100644", "100755", "040000", "160000", "120000"], - type: "string" - }, - "tree[].path": { - type: "string" - }, - "tree[].sha": { - allowNull: true, - type: "string" - }, - "tree[].type": { - enum: ["blob", "tree", "commit"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/trees" - }, - deleteRef: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - }, - getBlob: { - method: "GET", - params: { - file_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setEdgeSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/blobs/:file_sha" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/commits/:commit_sha" - }, - getRef: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/ref/:ref" - }, - getTag: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tag_sha: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/tags/:tag_sha" - }, - getTree: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - recursive: { - enum: ["1"], - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - tree_sha: { - required: true, - type: "string" + } + compute_alpha.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/git/trees/:tree_sha" - }, - listMatchingRefs: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + addSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/matching-refs/:ref" - }, - listRefs: { - method: "GET", - params: { - namespace: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/refs/:namespace" - }, - updateRef: { - method: "PATCH", - params: { - force: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - } - }, - gitignore: { - getTemplate: { - method: "GET", - params: { - name: { - required: true, - type: "string" + deleteSignedUrlKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/gitignore/templates/:name" - }, - listTemplates: { - method: "GET", - params: {}, - url: "/gitignore/templates" - } - }, - interactions: { - addOrUpdateRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/interaction-limits" - }, - addOrUpdateRestrictionsForRepo: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + getHealth(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - getRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/interaction-limits" - }, - getRestrictionsForRepo: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - removeRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "DELETE", - params: { - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/interaction-limits" - }, - removeRestrictionsForRepo: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/interaction-limits" - } - }, - issues: { - addAssignees: { - method: "POST", - params: { - assignees: { - type: "string[]" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setEdgeSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - addLabels: { - method: "POST", - params: { - issue_number: { - required: true, - type: "integer" - }, - labels: { - required: true, - type: "string[]" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - checkAssignee: { - method: "GET", - params: { - assignee: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/assignees/:assignee" - }, - create: { - method: "POST", - params: { - assignee: { - type: "string" - }, - assignees: { - type: "string[]" - }, - body: { - type: "string" - }, - labels: { - type: "string[]" - }, - milestone: { - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - title: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - createLabel: { - method: "POST", - params: { - color: { - required: true, - type: "string" - }, - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/labels" - }, - createMilestone: { - method: "POST", - params: { - description: { - type: "string" - }, - due_on: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - required: true, - type: "string" + addResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/milestones" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - deleteLabel: { - method: "DELETE", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - deleteMilestone: { - method: "DELETE", - params: { - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + createSnapshot(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - get: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - getEvent: { - method: "GET", - params: { - event_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/events/:event_id" - }, - getLabel: { - method: "GET", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - getMilestone: { - method: "GET", - params: { - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - list: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + removeResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/issues" - }, - listAssignees: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/assignees" - }, - listComments: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated"], - type: "string" + startAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/comments" - }, - listEvents: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + stopAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/events" - }, - listEventsForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + stopGroupAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/events" - }, - listEventsForTimeline: { - headers: { - accept: "application/vnd.github.mockingbird-preview+json" - }, - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/timeline" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/issues" - }, - listForOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + } + compute_alpha.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/issues" - }, - listForRepo: { - method: "GET", - params: { - assignee: { - type: "string" - }, - creator: { - type: "string" - }, - direction: { - enum: ["asc", "desc"], - type: "string" - }, - labels: { - type: "string" - }, - mentioned: { - type: "string" - }, - milestone: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues" - }, - listLabelsForMilestone: { - method: "GET", - params: { - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number/labels" - }, - listLabelsForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/labels" - }, - listLabelsOnIssue: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - listMilestonesForRepo: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sort: { - enum: ["due_on", "completeness"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/milestones" - }, - lock: { - method: "PUT", - params: { - issue_number: { - required: true, - type: "integer" - }, - lock_reason: { - enum: ["off-topic", "too heated", "resolved", "spam"], - type: "string" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - removeAssignees: { - method: "DELETE", - params: { - assignees: { - type: "string[]" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - removeLabel: { - method: "DELETE", - params: { - issue_number: { - required: true, - type: "integer" - }, - name: { - required: true, - type: "string" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name" - }, - removeLabels: { - method: "DELETE", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - replaceLabels: { - method: "PUT", - params: { - issue_number: { - required: true, - type: "integer" - }, - labels: { - type: "string[]" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - unlock: { - method: "DELETE", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - update: { - method: "PATCH", - params: { - assignee: { - type: "string" - }, - assignees: { - type: "string[]" - }, - body: { - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - labels: { - type: "string[]" - }, - milestone: { - allowNull: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - type: "string" + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - updateComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - updateLabel: { - method: "PATCH", - params: { - color: { - type: "string" - }, - current_name: { - required: true, - type: "string" - }, - description: { - type: "string" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + cloneRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/labels/:current_name" - }, - updateMilestone: { - method: "PATCH", - params: { - description: { - type: "string" - }, - due_on: { - type: "string" - }, - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - } - }, - licenses: { - get: { - method: "GET", - params: { - license: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/licenses/:license" - }, - getForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/license" - }, - list: { - deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)", - method: "GET", - params: {}, - url: "/licenses" - }, - listCommonlyUsed: { - method: "GET", - params: {}, - url: "/licenses" - } - }, - markdown: { - render: { - method: "POST", - params: { - context: { - type: "string" - }, - mode: { - enum: ["markdown", "gfm"], - type: "string" - }, - text: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/markdown" - }, - renderRaw: { - headers: { - "content-type": "text/plain; charset=utf-8" - }, - method: "POST", - params: { - data: { - mapTo: "data", - required: true, - type: "string" + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/markdown/raw" - } - }, - meta: { - get: { - method: "GET", - params: {}, - url: "/meta" - } - }, - migrations: { - cancelImport: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import" - }, - deleteArchiveForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/migrations/:migration_id/archive" - }, - deleteArchiveForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + listAssociations(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - downloadArchiveForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getArchiveForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/migrations/:migration_id/archive" - }, - getArchiveForOrg: { - deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)", - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getCommitAuthors: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import/authors" - }, - getImportProgress: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import" - }, - getLargeFiles: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import/large_files" - }, - getStatusForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/migrations/:migration_id" - }, - getStatusForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + } + compute_alpha.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/migrations/:migration_id" - }, - listForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/migrations" - }, - listForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations" - }, - listReposForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations/:migration_id/repositories" - }, - listReposForUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/:migration_id/repositories" - }, - mapCommitAuthor: { - method: "PATCH", - params: { - author_id: { - required: true, - type: "integer" - }, - email: { - type: "string" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import/authors/:author_id" - }, - setLfsPreference: { - method: "PATCH", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - use_lfs: { - enum: ["opt_in", "opt_out"], - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import/lfs" - }, - startForAuthenticatedUser: { - method: "POST", - params: { - exclude_attachments: { - type: "boolean" - }, - lock_repositories: { - type: "boolean" - }, - repositories: { - required: true, - type: "string[]" + } + compute_alpha.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; } - }, - url: "/user/migrations" - }, - startForOrg: { - method: "POST", - params: { - exclude_attachments: { - type: "boolean" - }, - lock_repositories: { - type: "boolean" - }, - org: { - required: true, - type: "string" - }, - repositories: { - required: true, - type: "string[]" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations" - }, - startImport: { - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tfvc_project: { - type: "string" - }, - vcs: { - enum: ["subversion", "git", "mercurial", "tfvc"], - type: "string" - }, - vcs_password: { - type: "string" - }, - vcs_url: { - required: true, - type: "string" - }, - vcs_username: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import" - }, - unlockRepoForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - }, - repo_name: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/migrations/:migration_id/repos/:repo_name/lock" - }, - unlockRepoForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - repo_name: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" - }, - updateImport: { - method: "PATCH", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - vcs_password: { - type: "string" - }, - vcs_username: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/import" - } - }, - oauthAuthorizations: { - checkAuthorization: { - deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)", - method: "GET", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - createAuthorization: { - deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization", - method: "POST", - params: { - client_id: { - type: "string" - }, - client_secret: { - type: "string" - }, - fingerprint: { - type: "string" - }, - note: { - required: true, - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations" - }, - deleteAuthorization: { - deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization", - method: "DELETE", - params: { - authorization_id: { - required: true, - type: "integer" + setTarget(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations/:authorization_id" - }, - deleteGrant: { - deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant", - method: "DELETE", - params: { - grant_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/applications/grants/:grant_id" - }, - getAuthorization: { - deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization", - method: "GET", - params: { - authorization_id: { - required: true, - type: "integer" + } + compute_alpha.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Futurereservations { + constructor(context) { + this.context = context; } - }, - url: "/authorizations/:authorization_id" - }, - getGrant: { - deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant", - method: "GET", - params: { - grant_id: { - required: true, - type: "integer" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/applications/grants/:grant_id" - }, - getOrCreateAuthorizationForApp: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app", - method: "PUT", - params: { - client_id: { - required: true, - type: "string" - }, - client_secret: { - required: true, - type: "string" - }, - fingerprint: { - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations/clients/:client_id" - }, - getOrCreateAuthorizationForAppAndFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint", - method: "PUT", - params: { - client_id: { - required: true, - type: "string" - }, - client_secret: { - required: true, - type: "string" - }, - fingerprint: { - required: true, - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - getOrCreateAuthorizationForAppFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)", - method: "PUT", - params: { - client_id: { - required: true, - type: "string" - }, - client_secret: { - required: true, - type: "string" - }, - fingerprint: { - required: true, - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - listAuthorizations: { - deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations" - }, - listGrants: { - deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/applications/grants" - }, - resetAuthorization: { - deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)", - method: "POST", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + } + compute_alpha.Resource$Futurereservations = Resource$Futurereservations; + class Resource$Globaladdresses { + constructor(context) { + this.context = context; } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/applications/:client_id/grants/:access_token" - }, - updateAuthorization: { - deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization", - method: "PATCH", - params: { - add_scopes: { - type: "string[]" - }, - authorization_id: { - required: true, - type: "integer" - }, - fingerprint: { - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - remove_scopes: { - type: "string[]" - }, - scopes: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/authorizations/:authorization_id" - } - }, - orgs: { - addOrUpdateMembership: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - role: { - enum: ["admin", "member"], - type: "string" - }, - username: { - required: true, - type: "string" + getOwnerInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/getOwnerInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/memberships/:username" - }, - blockUser: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/blocks/:username" - }, - checkBlockedUser: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/blocks/:username" - }, - checkMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/members/:username" - }, - checkPublicMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/public_members/:username" - }, - concealMembership: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/public_members/:username" - }, - convertMemberToOutsideCollaborator: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - createHook: { - method: "POST", - params: { - active: { - type: "boolean" - }, - config: { - required: true, - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/hooks" - }, - createInvitation: { - method: "POST", - params: { - email: { - type: "string" - }, - invitee_id: { - type: "integer" - }, - org: { - required: true, - type: "string" - }, - role: { - enum: ["admin", "direct_member", "billing_manager"], - type: "string" - }, - team_ids: { - type: "integer[]" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/invitations" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - get: { - method: "GET", - params: { - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org" - }, - getHook: { - method: "GET", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - getMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + setTarget(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/memberships/:username" - }, - getMembershipForAuthenticatedUser: { - method: "GET", - params: { - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/memberships/orgs/:org" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "integer" + } + compute_alpha.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { + constructor(context) { + this.context = context; } - }, - url: "/organizations" - }, - listBlockedUsers: { - method: "GET", - params: { - org: { - required: true, - type: "string" + attachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/blocks" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/orgs" - }, - listForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/orgs" - }, - listHooks: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/hooks" - }, - listInstallations: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/installations" - }, - listInvitationTeams: { - method: "GET", - params: { - invitation_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/invitations/:invitation_id/teams" - }, - listMembers: { - method: "GET", - params: { - filter: { - enum: ["2fa_disabled", "all"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["all", "admin", "member"], - type: "string" + listNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/members" - }, - listMemberships: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["active", "pending"], - type: "string" + } + compute_alpha.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; } - }, - url: "/user/memberships/orgs" - }, - listOutsideCollaborators: { - method: "GET", - params: { - filter: { - enum: ["2fa_disabled", "all"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/outside_collaborators" - }, - listPendingInvitations: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/invitations" - }, - listPublicMembers: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/public_members" - }, - pingHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/hooks/:hook_id/pings" - }, - publicizeMembership: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + wait(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/public_members/:username" - }, - removeMember: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/members/:username" - }, - removeMembership: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/memberships/:username" - }, - removeOutsideCollaborator: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - unblockUser: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/blocks/:username" - }, - update: { - method: "PATCH", - params: { - billing_email: { - type: "string" - }, - company: { - type: "string" - }, - default_repository_permission: { - enum: ["read", "write", "admin", "none"], - type: "string" - }, - description: { - type: "string" - }, - email: { - type: "string" - }, - has_organization_projects: { - type: "boolean" - }, - has_repository_projects: { - type: "boolean" - }, - location: { - type: "string" - }, - members_allowed_repository_creation_type: { - enum: ["all", "private", "none"], - type: "string" - }, - members_can_create_internal_repositories: { - type: "boolean" - }, - members_can_create_private_repositories: { - type: "boolean" - }, - members_can_create_public_repositories: { - type: "boolean" - }, - members_can_create_repositories: { - type: "boolean" - }, - name: { - type: "string" - }, - org: { - required: true, - type: "string" + } + compute_alpha.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org" - }, - updateHook: { - method: "PATCH", - params: { - active: { - type: "boolean" - }, - config: { - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - updateMembership: { - method: "PATCH", - params: { - org: { - required: true, - type: "string" - }, - state: { - enum: ["active"], - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/memberships/orgs/:org" - } - }, - projects: { - addCollaborator: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id/collaborators/:username" - }, - createCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - column_id: { - required: true, - type: "integer" - }, - content_id: { - type: "integer" - }, - content_type: { - type: "string" - }, - note: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/:column_id/cards" - }, - createColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - name: { - required: true, - type: "string" - }, - project_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id/columns" - }, - createForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - body: { - type: "string" - }, - name: { - required: true, - type: "string" + } + compute_alpha.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { + constructor(context) { + this.context = context; } - }, - url: "/user/projects" - }, - createForOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - body: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/projects" - }, - createForRepo: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - body: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/projects" - }, - delete: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id" - }, - deleteCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - card_id: { - required: true, - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/cards/:card_id" - }, - deleteColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - column_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/:column_id" - }, - get: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id" - }, - getCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - card_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/cards/:card_id" - }, - getColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - column_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/:column_id" - }, - listCards: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - archived_state: { - enum: ["all", "archived", "not_archived"], - type: "string" - }, - column_id: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + compute_alpha.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; } - }, - url: "/projects/columns/:column_id/cards" - }, - listCollaborators: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - affiliation: { - enum: ["outside", "direct", "all"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - project_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id/collaborators" - }, - listColumns: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - project_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id/columns" - }, - listForOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/projects" - }, - listForRepo: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/projects" - }, - listForUser: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/projects" - }, - moveCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - card_id: { - required: true, - type: "integer" - }, - column_id: { - type: "integer" - }, - position: { - required: true, - type: "string", - validation: "^(top|bottom|after:\\d+)$" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/cards/:card_id/moves" - }, - moveColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - column_id: { - required: true, - type: "integer" - }, - position: { - required: true, - type: "string", - validation: "^(first|last|after:\\d+)$" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/:column_id/moves" - }, - removeCollaborator: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; } - }, - url: "/projects/:project_id/collaborators/:username" - }, - reviewUserPermissionLevel: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id/collaborators/:username/permission" - }, - update: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PATCH", - params: { - body: { - type: "string" - }, - name: { - type: "string" - }, - organization_permission: { - type: "string" - }, - private: { - type: "boolean" - }, - project_id: { - required: true, - type: "integer" - }, - state: { - enum: ["open", "closed"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/:project_id" - }, - updateCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PATCH", - params: { - archived: { - type: "boolean" - }, - card_id: { - required: true, - type: "integer" - }, - note: { - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/cards/:card_id" - }, - updateColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PATCH", - params: { - column_id: { - required: true, - type: "integer" - }, - name: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/projects/columns/:column_id" - } - }, - pulls: { - checkIfMerged: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - create: { - method: "POST", - params: { - base: { - required: true, - type: "string" - }, - body: { - type: "string" - }, - draft: { - type: "boolean" - }, - head: { - required: true, - type: "string" - }, - maintainer_can_modify: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - title: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - commit_id: { - required: true, - type: "string" - }, - in_reply_to: { - deprecated: true, - description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", - type: "integer" - }, - line: { - type: "integer" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - position: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - side: { - enum: ["LEFT", "RIGHT"], - type: "string" - }, - start_line: { - type: "integer" - }, - start_side: { - enum: ["LEFT", "RIGHT", "side"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createCommentReply: { - deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - commit_id: { - required: true, - type: "string" - }, - in_reply_to: { - deprecated: true, - description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", - type: "integer" - }, - line: { - type: "integer" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - position: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - side: { - enum: ["LEFT", "RIGHT"], - type: "string" - }, - start_line: { - type: "integer" - }, - start_side: { - enum: ["LEFT", "RIGHT", "side"], - type: "string" + } + compute_alpha.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Imagefamilyviews { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createFromIssue: { - deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request", - method: "POST", - params: { - base: { - required: true, - type: "string" - }, - draft: { - type: "boolean" - }, - head: { - required: true, - type: "string" - }, - issue: { - required: true, - type: "integer" - }, - maintainer_can_modify: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls" - }, - createReview: { - method: "POST", - params: { - body: { - type: "string" - }, - comments: { - type: "object[]" - }, - "comments[].body": { - required: true, - type: "string" - }, - "comments[].path": { - required: true, - type: "string" - }, - "comments[].position": { - required: true, - type: "integer" - }, - commit_id: { - type: "string" - }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Imagefamilyviews = Resource$Imagefamilyviews; + class Resource$Images { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - createReviewCommentReply: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies" - }, - createReviewRequest: { - method: "POST", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - reviewers: { - type: "string[]" - }, - team_reviewers: { - type: "string[]" + deprecate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - deletePendingReview: { - method: "DELETE", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" + getFromFamily(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - deleteReviewRequest: { - method: "DELETE", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - reviewers: { - type: "string[]" - }, - team_reviewers: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - dismissReview: { - method: "PUT", - params: { - message: { - required: true, - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals" - }, - get: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - getCommentsForReview: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments" - }, - getReview: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - list: { - method: "GET", - params: { - base: { - type: "string" - }, - direction: { - enum: ["asc", "desc"], - type: "string" - }, - head: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sort: { - enum: ["created", "updated", "popularity", "long-running"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls" - }, - listComments: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated"], - type: "string" + } + compute_alpha.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagerresizerequests { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/comments" - }, - listCommits: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/commits" - }, - listFiles: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/files" - }, - listReviewRequests: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - listReviews: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - merge: { - method: "PUT", - params: { - commit_message: { - type: "string" - }, - commit_title: { - type: "string" - }, - merge_method: { - enum: ["merge", "squash", "rebase"], - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" + } + compute_alpha.Resource$Instancegroupmanagerresizerequests = Resource$Instancegroupmanagerresizerequests; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - submitReview: { - method: "POST", - params: { - body: { - type: "string" - }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - required: true, - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" + abandonInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events" - }, - update: { - method: "PATCH", - params: { - base: { - type: "string" - }, - body: { - type: "string" - }, - maintainer_can_modify: { - type: "boolean" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - updateBranch: { - headers: { - accept: "application/vnd.github.lydian-preview+json" - }, - method: "PUT", - params: { - expected_head_sha: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + applyUpdatesToInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch" - }, - updateComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + createInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - updateReview: { - method: "PUT", - params: { - body: { - required: true, - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - } - }, - rateLimit: { - get: { - method: "GET", - params: {}, - url: "/rate_limit" - } - }, - reactions: { - createForCommitComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + deleteInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - createForIssue: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + deletePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - createForIssueComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - createForPullRequestReviewComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - createForTeamDiscussion: { - deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionComment: { - deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listErrors(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + listManagedInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + patchPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - delete: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "DELETE", - params: { - reaction_id: { - required: true, - type: "integer" + recreateInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/reactions/:reaction_id" - }, - listForCommitComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - listForIssue: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + resizeAdvanced(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - listForIssueComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + resumeInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - listForPullRequestReviewComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + setAutoHealingPolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - listForTeamDiscussion: { - deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + setInstanceTemplate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionComment: { - deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + setTargetPools(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + stopInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + suspendInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" } - }, - repos: { - acceptInvitation: { - method: "PATCH", - params: { - invitation_id: { - required: true, - type: "integer" + compute_alpha.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; } - }, - url: "/user/repository_invitations/:invitation_id" - }, - addCollaborator: { - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + addInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - addDeployKey: { - method: "POST", - params: { - key: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - read_only: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - }, - title: { - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/keys" - }, - addProtectedBranchAdminEnforcement: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - addProtectedBranchAppRestrictions: { - method: "POST", - params: { - apps: { - mapTo: "data", - required: true, - type: "string[]" - }, - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - addProtectedBranchRequiredSignatures: { - headers: { - accept: "application/vnd.github.zzzax-preview+json" - }, - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - addProtectedBranchRequiredStatusChecksContexts: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - mapTo: "data", - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - addProtectedBranchTeamRestrictions: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - teams: { - mapTo: "data", - required: true, - type: "string[]" + listInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - addProtectedBranchUserRestrictions: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - users: { - mapTo: "data", - required: true, - type: "string[]" + removeInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - checkCollaborator: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + setNamedPorts(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - checkVulnerabilityAlerts: { - headers: { - accept: "application/vnd.github.dorian-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - compareCommits: { - method: "GET", - params: { - base: { - required: true, - type: "string" - }, - head: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/compare/:base...:head" - }, - createCommitComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - commit_sha: { - required: true, - type: "string" - }, - line: { - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - path: { - type: "string" - }, - position: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sha: { - alias: "commit_sha", - deprecated: true, - type: "string" + addAccessConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - createDeployment: { - method: "POST", - params: { - auto_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - environment: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - payload: { - type: "string" - }, - production_environment: { - type: "boolean" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - required_contexts: { - type: "string[]" - }, - task: { - type: "string" - }, - transient_environment: { - type: "boolean" + addResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/deployments" - }, - createDeploymentStatus: { - method: "POST", - params: { - auto_inactive: { - type: "boolean" - }, - deployment_id: { - required: true, - type: "integer" - }, - description: { - type: "string" - }, - environment: { - enum: ["production", "staging", "qa"], - type: "string" - }, - environment_url: { - type: "string" - }, - log_url: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"], - required: true, - type: "string" - }, - target_url: { - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + attachDisk(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - createDispatchEvent: { - method: "POST", - params: { - client_payload: { - type: "object" - }, - event_type: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/dispatches" - }, - createFile: { - deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { - type: "object" - }, - "author.email": { - required: true, - type: "string" - }, - "author.name": { - required: true, - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - required: true, - type: "string" - }, - "committer.name": { - required: true, - type: "string" - }, - content: { - required: true, - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createForAuthenticatedUser: { - method: "POST", - params: { - allow_merge_commit: { - type: "boolean" - }, - allow_rebase_merge: { - type: "boolean" - }, - allow_squash_merge: { - type: "boolean" - }, - auto_init: { - type: "boolean" - }, - delete_branch_on_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - gitignore_template: { - type: "string" - }, - has_issues: { - type: "boolean" - }, - has_projects: { - type: "boolean" - }, - has_wiki: { - type: "boolean" - }, - homepage: { - type: "string" - }, - is_template: { - type: "boolean" - }, - license_template: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - type: "integer" - }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" + deleteAccessConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/repos" - }, - createFork: { - method: "POST", - params: { - organization: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + detachDisk(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/forks" - }, - createHook: { - method: "POST", - params: { - active: { - type: "boolean" - }, - config: { - required: true, - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/hooks" - }, - createInOrg: { - method: "POST", - params: { - allow_merge_commit: { - type: "boolean" - }, - allow_rebase_merge: { - type: "boolean" - }, - allow_squash_merge: { - type: "boolean" - }, - auto_init: { - type: "boolean" - }, - delete_branch_on_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - gitignore_template: { - type: "string" - }, - has_issues: { - type: "boolean" - }, - has_projects: { - type: "boolean" - }, - has_wiki: { - type: "boolean" - }, - homepage: { - type: "string" - }, - is_template: { - type: "boolean" - }, - license_template: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - type: "integer" - }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" + getEffectiveFirewalls(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/repos" - }, - createOrUpdateFile: { - method: "PUT", - params: { - author: { - type: "object" - }, - "author.email": { - required: true, - type: "string" - }, - "author.name": { - required: true, - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - required: true, - type: "string" - }, - "committer.name": { - required: true, - type: "string" - }, - content: { - required: true, - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" + getGuestAttributes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createRelease: { - method: "POST", - params: { - body: { - type: "string" - }, - draft: { - type: "boolean" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - prerelease: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - }, - tag_name: { - required: true, - type: "string" - }, - target_commitish: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases" - }, - createStatus: { - method: "POST", - params: { - context: { - type: "string" - }, - description: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - }, - state: { - enum: ["error", "failure", "pending", "success"], - required: true, - type: "string" - }, - target_url: { - type: "string" + getScreenshot(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/statuses/:sha" - }, - createUsingTemplate: { - headers: { - accept: "application/vnd.github.baptiste-preview+json" - }, - method: "POST", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - type: "string" - }, - private: { - type: "boolean" - }, - template_owner: { - required: true, - type: "string" - }, - template_repo: { - required: true, - type: "string" + getSerialPortOutput(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:template_owner/:template_repo/generate" - }, - declineInvitation: { - method: "DELETE", - params: { - invitation_id: { - required: true, - type: "integer" + getShieldedInstanceIdentity(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/repository_invitations/:invitation_id" - }, - delete: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + getShieldedVmIdentity(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo" - }, - deleteCommitComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - deleteDownload: { - method: "DELETE", - params: { - download_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - deleteFile: { - method: "DELETE", - params: { - author: { - type: "object" - }, - "author.email": { - type: "string" - }, - "author.name": { - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - type: "string" - }, - "committer.name": { - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" + listReferrers(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + performMaintenance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - deleteInvitation: { - method: "DELETE", - params: { - invitation_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + removeResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - deleteRelease: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - deleteReleaseAsset: { - method: "DELETE", - params: { - asset_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + resume(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - disableAutomatedSecurityFixes: { - headers: { - accept: "application/vnd.github.london-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + sendDiagnosticInterrupt(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - disablePagesSite: { - headers: { - accept: "application/vnd.github.switcheroo-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setDeletionProtection(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages" - }, - disableVulnerabilityAlerts: { - headers: { - accept: "application/vnd.github.dorian-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setDiskAutoDelete(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - enableAutomatedSecurityFixes: { - headers: { - accept: "application/vnd.github.london-preview+json" - }, - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - enablePagesSite: { - headers: { - accept: "application/vnd.github.switcheroo-preview+json" - }, - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - source: { - type: "object" - }, - "source.branch": { - enum: ["master", "gh-pages"], - type: "string" - }, - "source.path": { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages" - }, - enableVulnerabilityAlerts: { - headers: { - accept: "application/vnd.github.dorian-preview+json" - }, - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setMachineResources(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - get: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo" - }, - getAppsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setMetadata(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - getArchiveLink: { - method: "GET", - params: { - archive_format: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setMinCpuPlatform(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/:archive_format/:ref" - }, - getBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setName(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch" - }, - getBranchProtection: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setScheduling(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - getClones: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - per: { - enum: ["day", "week"], - type: "string" - }, - repo: { - required: true, - type: "string" + setSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/traffic/clones" - }, - getCodeFrequencyStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setServiceAccount(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/stats/code_frequency" - }, - getCollaboratorPermissionLevel: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + setShieldedInstanceIntegrityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/collaborators/:username/permission" - }, - getCombinedStatusForRef: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + setShieldedVmIntegrityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:ref/status" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { - alias: "ref", - deprecated: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - alias: "ref", - deprecated: true, - type: "string" + setTags(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getCommitActivityStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + simulateMaintenanceEvent(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/stats/commit_activity" - }, - getCommitComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - getCommitRefSha: { - deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit", - headers: { - accept: "application/vnd.github.v3.sha" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + startWithEncryptionKey(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getContents: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - getContributorsStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + suspend(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/stats/contributors" - }, - getDeployKey: { - method: "GET", - params: { - key_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - getDeployment: { - method: "GET", - params: { - deployment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id" - }, - getDeploymentStatus: { - method: "GET", - params: { - deployment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - status_id: { - required: true, - type: "integer" + updateAccessConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id" - }, - getDownload: { - method: "GET", - params: { - download_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + updateDisplayDevice(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - getHook: { - method: "GET", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + updateNetworkInterface(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - getLatestPagesBuild: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + updateShieldedInstanceConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages/builds/latest" - }, - getLatestRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + updateShieldedVmConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/latest" - }, - getPages: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Instances = Resource$Instances; + class Resource$Instancesettings { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/pages" - }, - getPagesBuild: { - method: "GET", - params: { - build_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages/builds/:build_id" - }, - getParticipationStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/stats/participation" - }, - getProtectedBranchAdminEnforcement: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Instancesettings = Resource$Instancesettings; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - getProtectedBranchPullRequestReviewEnforcement: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - getProtectedBranchRequiredSignatures: { - headers: { - accept: "application/vnd.github.zzzax-preview+json" - }, - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - getProtectedBranchRequiredStatusChecks: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - getProtectedBranchRestrictions: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - getPunchCardStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/stats/punch_card" - }, - getReadme: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/readme" - }, - getRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - getReleaseAsset: { - method: "GET", - params: { - asset_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - getReleaseByTag: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tag: { - required: true, - type: "string" + } + compute_alpha.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Instantsnapshots { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/releases/tags/:tag" - }, - getTeamsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - getTopPaths: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/traffic/popular/paths" - }, - getTopReferrers: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + export(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/traffic/popular/referrers" - }, - getUsersWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - getViews: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - per: { - enum: ["day", "week"], - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/traffic/views" - }, - list: { - method: "GET", - params: { - affiliation: { - type: "string" - }, - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "owner", "public", "private", "member"], - type: "string" - }, - visibility: { - enum: ["all", "public", "private"], - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/repos" - }, - listAppsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - listAssetsForRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/:release_id/assets" - }, - listBranches: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - protected: { - type: "boolean" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches" - }, - listBranchesForHeadCommit: { - headers: { - accept: "application/vnd.github.groot-preview+json" - }, - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head" - }, - listCollaborators: { - method: "GET", - params: { - affiliation: { - enum: ["outside", "direct", "all"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Instantsnapshots = Resource$Instantsnapshots; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/collaborators" - }, - listCommentsForCommit: { - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - alias: "commit_sha", - deprecated: true, - type: "string" - }, - repo: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - listCommitComments: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/comments" - }, - listCommits: { - method: "GET", - params: { - author: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - path: { - type: "string" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - }, - since: { - type: "string" - }, - until: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits" - }, - listContributors: { - method: "GET", - params: { - anon: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/contributors" - }, - listDeployKeys: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/keys" - }, - listDeploymentStatuses: { - method: "GET", - params: { - deployment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - listDeployments: { - method: "GET", - params: { - environment: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - }, - task: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/deployments" - }, - listDownloads: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/downloads" - }, - listForOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "public", "private", "forks", "sources", "member", "internal"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/repos" - }, - listForUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "owner", "member"], - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/repos" - }, - listForks: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sort: { - enum: ["newest", "oldest", "stargazers"], - type: "string" + } + compute_alpha.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/forks" - }, - listHooks: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/hooks" - }, - listInvitations: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/invitations" - }, - listInvitationsForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/repository_invitations" - }, - listLanguages: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnectremotelocations { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/languages" - }, - listPagesBuilds: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnectRemoteLocation'], + pathParams: ['interconnectRemoteLocation', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - listProtectedBranchRequiredStatusChecksContexts: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - listProtectedBranchTeamRestrictions: { - deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listProtectedBranchUserRestrictions: { - deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Interconnectremotelocations = Resource$Interconnectremotelocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - listPublic: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repositories" - }, - listPullRequestsAssociatedWithCommit: { - headers: { - accept: "application/vnd.github.groot-preview+json" - }, - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/pulls" - }, - listReleases: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + getDiagnostics(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases" - }, - listStatusesForRef: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/commits/:ref/statuses" - }, - listTags: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + getMacsecConfig(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/tags" - }, - listTeams: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/teams" - }, - listTeamsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listTopics: { - headers: { - accept: "application/vnd.github.mercy-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/topics" - }, - listUsersWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - merge: { - method: "POST", - params: { - base: { - required: true, - type: "string" - }, - commit_message: { - type: "string" - }, - head: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/merges" - }, - pingHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/pings" - }, - removeBranchProtection: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - removeCollaborator: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - removeDeployKey: { - method: "DELETE", - params: { - key_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - removeProtectedBranchAdminEnforcement: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - removeProtectedBranchAppRestrictions: { - method: "DELETE", - params: { - apps: { - mapTo: "data", - required: true, - type: "string[]" - }, - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - removeProtectedBranchPullRequestReviewEnforcement: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - removeProtectedBranchRequiredSignatures: { - headers: { - accept: "application/vnd.github.zzzax-preview+json" - }, - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - removeProtectedBranchRequiredStatusChecks: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - removeProtectedBranchRequiredStatusChecksContexts: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - mapTo: "data", - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - removeProtectedBranchRestrictions: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - removeProtectedBranchTeamRestrictions: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - teams: { - mapTo: "data", - required: true, - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - removeProtectedBranchUserRestrictions: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - users: { - mapTo: "data", - required: true, - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceProtectedBranchAppRestrictions: { - method: "PUT", - params: { - apps: { - mapTo: "data", - required: true, - type: "string[]" - }, - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - replaceProtectedBranchRequiredStatusChecksContexts: { - method: "PUT", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - mapTo: "data", - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - replaceProtectedBranchTeamRestrictions: { - method: "PUT", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - teams: { - mapTo: "data", - required: true, - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - replaceProtectedBranchUserRestrictions: { - method: "PUT", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - users: { - mapTo: "data", - required: true, - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceTopics: { - headers: { - accept: "application/vnd.github.mercy-preview+json" - }, - method: "PUT", - params: { - names: { - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/topics" - }, - requestPageBuild: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - retrieveCommunityProfileMetrics: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/community/profile" - }, - testPushHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/tests" - }, - transfer: { - method: "POST", - params: { - new_owner: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_ids: { - type: "integer[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/transfer" - }, - update: { - method: "PATCH", - params: { - allow_merge_commit: { - type: "boolean" - }, - allow_rebase_merge: { - type: "boolean" - }, - allow_squash_merge: { - type: "boolean" - }, - archived: { - type: "boolean" - }, - default_branch: { - type: "string" - }, - delete_branch_on_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - has_issues: { - type: "boolean" - }, - has_projects: { - type: "boolean" - }, - has_wiki: { - type: "boolean" - }, - homepage: { - type: "string" - }, - is_template: { - type: "boolean" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" + } + compute_alpha.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo" - }, - updateBranchProtection: { - method: "PUT", - params: { - allow_deletions: { - type: "boolean" - }, - allow_force_pushes: { - allowNull: true, - type: "boolean" - }, - branch: { - required: true, - type: "string" - }, - enforce_admins: { - allowNull: true, - required: true, - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - required_linear_history: { - type: "boolean" - }, - required_pull_request_reviews: { - allowNull: true, - required: true, - type: "object" - }, - "required_pull_request_reviews.dismiss_stale_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.dismissal_restrictions": { - type: "object" - }, - "required_pull_request_reviews.dismissal_restrictions.teams": { - type: "string[]" - }, - "required_pull_request_reviews.dismissal_restrictions.users": { - type: "string[]" - }, - "required_pull_request_reviews.require_code_owner_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.required_approving_review_count": { - type: "integer" - }, - required_status_checks: { - allowNull: true, - required: true, - type: "object" - }, - "required_status_checks.contexts": { - required: true, - type: "string[]" - }, - "required_status_checks.strict": { - required: true, - type: "boolean" - }, - restrictions: { - allowNull: true, - required: true, - type: "object" - }, - "restrictions.apps": { - type: "string[]" - }, - "restrictions.teams": { - required: true, - type: "string[]" - }, - "restrictions.users": { - required: true, - type: "string[]" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - updateCommitComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - updateFile: { - deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { - type: "object" - }, - "author.email": { - required: true, - type: "string" - }, - "author.name": { - required: true, - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - required: true, - type: "string" - }, - "committer.name": { - required: true, - type: "string" - }, - content: { - required: true, - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - updateHook: { - method: "PATCH", - params: { - active: { - type: "boolean" - }, - add_events: { - type: "string[]" - }, - config: { - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - remove_events: { - type: "string[]" - }, - repo: { - required: true, - type: "string" + } + compute_alpha.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkattachments { + constructor(context) { + this.context = context; } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - updateInformationAboutPagesSite: { - method: "PUT", - params: { - cname: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - source: { - enum: ['"gh-pages"', '"master"', '"master /docs"'], - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/pages" - }, - updateInvitation: { - method: "PATCH", - params: { - invitation_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - permissions: { - enum: ["read", "write", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - updateProtectedBranchPullRequestReviewEnforcement: { - method: "PATCH", - params: { - branch: { - required: true, - type: "string" - }, - dismiss_stale_reviews: { - type: "boolean" - }, - dismissal_restrictions: { - type: "object" - }, - "dismissal_restrictions.teams": { - type: "string[]" - }, - "dismissal_restrictions.users": { - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - require_code_owner_reviews: { - type: "boolean" - }, - required_approving_review_count: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - updateProtectedBranchRequiredStatusChecks: { - method: "PATCH", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - strict: { - type: "boolean" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - updateRelease: { - method: "PATCH", - params: { - body: { - type: "string" - }, - draft: { - type: "boolean" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - prerelease: { - type: "boolean" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - tag_name: { - type: "string" - }, - target_commitish: { - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - updateReleaseAsset: { - method: "PATCH", - params: { - asset_id: { - required: true, - type: "integer" - }, - label: { - type: "string" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - uploadReleaseAsset: { - method: "POST", - params: { - data: { - mapTo: "data", - required: true, - type: "string | object" - }, - file: { - alias: "data", - deprecated: true, - type: "string | object" - }, - headers: { - required: true, - type: "object" - }, - "headers.content-length": { - required: true, - type: "integer" - }, - "headers.content-type": { - required: true, - type: "string" - }, - label: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - url: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: ":url" - } - }, - search: { - code: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["indexed"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/code" - }, - commits: { - headers: { - accept: "application/vnd.github.cloak-preview+json" - }, - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["author-date", "committer-date"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/commits" - }, - issues: { - deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)", - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"], - type: "string" + } + compute_alpha.Resource$Networkattachments = Resource$Networkattachments; + class Resource$Networkedgesecurityservices { + constructor(context) { + this.context = context; } - }, - url: "/search/issues" - }, - issuesAndPullRequests: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"], - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/issues" - }, - labels: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - q: { - required: true, - type: "string" - }, - repository_id: { - required: true, - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/labels" - }, - repos: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["stars", "forks", "help-wanted-issues", "updated"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/repositories" - }, - topics: { - method: "GET", - params: { - q: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/topics" - }, - users: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["followers", "repositories", "joined"], - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/search/users" } - }, - teams: { - addMember: { - deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)", - method: "PUT", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + compute_alpha.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; } - }, - url: "/teams/:team_id/members/:username" - }, - addMemberLegacy: { - deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy", - method: "PUT", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/members/:username" - }, - addOrUpdateMembership: { - deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)", - method: "PUT", - params: { - role: { - enum: ["member", "maintainer"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + attachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateMembershipInOrg: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - role: { - enum: ["member", "maintainer"], - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - addOrUpdateMembershipLegacy: { - deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy", - method: "PUT", - params: { - role: { - enum: ["member", "maintainer"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateProject: { - deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateProjectInOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_slug: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - addOrUpdateProjectLegacy: { - deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateRepo: { - deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)", - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - addOrUpdateRepoInOrg: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + } + compute_alpha.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - addOrUpdateRepoLegacy: { - deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy", - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepo: { - deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)", - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepoInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + cloneRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - checkManagesRepoLegacy: { - deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy", - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - create: { - method: "POST", - params: { - description: { - type: "string" - }, - maintainers: { - type: "string[]" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - repo_names: { - type: "string[]" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams" - }, - createDiscussion: { - deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - required: true, - type: "string" + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions" - }, - createDiscussionComment: { - deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionCommentInOrg: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - createDiscussionCommentLegacy: { - deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionInOrg: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_slug: { - required: true, - type: "string" - }, - title: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - createDiscussionLegacy: { - deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions" - }, - delete: { - deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id" - }, - deleteDiscussion: { - deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)", - method: "DELETE", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteDiscussionComment: { - deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)", - method: "DELETE", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentInOrg: { - method: "DELETE", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentLegacy: { - deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy", - method: "DELETE", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionInOrg: { - method: "DELETE", - params: { - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + } + compute_alpha.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - deleteDiscussionLegacy: { - deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy", - method: "DELETE", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + addPeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug" - }, - deleteLegacy: { - deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id" - }, - get: { - deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" + getEffectiveFirewalls(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id" - }, - getByName: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug" - }, - getDiscussion: { - deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)", - method: "GET", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getDiscussionComment: { - deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)", - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listIpAddresses(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentInOrg: { - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + listIpOwners(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentLegacy: { - deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy", - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listPeeringRoutes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionInOrg: { - method: "GET", - params: { - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - getDiscussionLegacy: { - deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy", - method: "GET", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + removePeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getLegacy: { - deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" + switchToCustomMode(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id" - }, - getMember: { - deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/members/:username" - }, - getMemberLegacy: { - deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + updatePeering(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/members/:username" - }, - getMembership: { - deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; } - }, - url: "/teams/:team_id/memberships/:username" - }, - getMembershipInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + addNodes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - getMembershipLegacy: { - deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/memberships/:username" - }, - list: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams" - }, - listChild: { - deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + deleteNodes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/teams" - }, - listChildInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/teams" - }, - listChildLegacy: { - deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/teams" - }, - listDiscussionComments: { - deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussionCommentsInOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - listDiscussionCommentsLegacy: { - deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listNodes(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussions: { - deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions" - }, - listDiscussionsInOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + performMaintenance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - listDiscussionsLegacy: { - deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + setNodeTemplate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/teams" - }, - listMembers: { - deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["member", "maintainer", "all"], - type: "string" - }, - team_id: { - required: true, - type: "integer" + simulateMaintenanceEvent(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/members" - }, - listMembersInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["member", "maintainer", "all"], - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/members" - }, - listMembersLegacy: { - deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["member", "maintainer", "all"], - type: "string" - }, - team_id: { - required: true, - type: "integer" + } + compute_alpha.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; } - }, - url: "/teams/:team_id/members" - }, - listPendingInvitations: { - deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/invitations" - }, - listPendingInvitationsInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/invitations" - }, - listPendingInvitationsLegacy: { - deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/invitations" - }, - listProjects: { - deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects" - }, - listProjectsInOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/projects" - }, - listProjectsLegacy: { - deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects" - }, - listRepos: { - deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos" - }, - listReposInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/repos" - }, - listReposLegacy: { - deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" + } + compute_alpha.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; } - }, - url: "/teams/:team_id/repos" - }, - removeMember: { - deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/members/:username" - }, - removeMemberLegacy: { - deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/members/:username" - }, - removeMembership: { - deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeMembershipInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Organizationsecuritypolicies { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - removeMembershipLegacy: { - deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeProject: { - deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)", - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + addRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeProjectInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_slug: { - required: true, - type: "string" + copyRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - removeProjectLegacy: { - deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy", - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeRepo: { - deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)", - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - removeRepoInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + getAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - removeRepoLegacy: { - deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy", - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - reviewProject: { - deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects/:project_id" - }, - reviewProjectInOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - reviewProjectLegacy: { - deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + listAssociations(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/projects/:project_id" - }, - update: { - deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)", - method: "PATCH", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - team_id: { - required: true, - type: "integer" + move(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id" - }, - updateDiscussion: { - deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateDiscussionComment: { - deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentInOrg: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentLegacy: { - deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy", - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionInOrg: { - method: "PATCH", - params: { - body: { - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - title: { - type: "string" + } + compute_alpha.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - updateDiscussionLegacy: { - deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy", - method: "PATCH", - params: { - body: { - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateInOrg: { - method: "PATCH", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/orgs/:org/teams/:team_slug" - }, - updateLegacy: { - deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy", - method: "PATCH", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - team_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/teams/:team_id" - } - }, - users: { - addEmails: { - method: "POST", - params: { - emails: { - required: true, - type: "string[]" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/emails" - }, - block: { - method: "PUT", - params: { - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/blocks/:username" - }, - checkBlocked: { - method: "GET", - params: { - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/blocks/:username" - }, - checkFollowing: { - method: "GET", - params: { - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/following/:username" - }, - checkFollowingForUser: { - method: "GET", - params: { - target_user: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; } - }, - url: "/users/:username/following/:target_user" - }, - createGpgKey: { - method: "POST", - params: { - armored_public_key: { - type: "string" + disableXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/gpg_keys" - }, - createPublicKey: { - method: "POST", - params: { - key: { - type: "string" - }, - title: { - type: "string" + disableXpnResource(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/keys" - }, - deleteEmails: { - method: "DELETE", - params: { - emails: { - required: true, - type: "string[]" + enableXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/emails" - }, - deleteGpgKey: { - method: "DELETE", - params: { - gpg_key_id: { - required: true, - type: "integer" + enableXpnResource(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/gpg_keys/:gpg_key_id" - }, - deletePublicKey: { - method: "DELETE", - params: { - key_id: { - required: true, - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/keys/:key_id" - }, - follow: { - method: "PUT", - params: { - username: { - required: true, - type: "string" + getXpnHost(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/following/:username" - }, - getAuthenticated: { - method: "GET", - params: {}, - url: "/user" - }, - getByUsername: { - method: "GET", - params: { - username: { - required: true, - type: "string" + getXpnResources(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username" - }, - getContextForUser: { - method: "GET", - params: { - subject_id: { - type: "string" - }, - subject_type: { - enum: ["organization", "repository", "issue", "pull_request"], - type: "string" - }, - username: { - required: true, - type: "string" + listXpnHosts(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/hovercard" - }, - getGpgKey: { - method: "GET", - params: { - gpg_key_id: { - required: true, - type: "integer" + moveDisk(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/gpg_keys/:gpg_key_id" - }, - getPublicKey: { - method: "GET", - params: { - key_id: { - required: true, - type: "integer" + moveInstance(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/keys/:key_id" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" + setCommonInstanceMetadata(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users" - }, - listBlocked: { - method: "GET", - params: {}, - url: "/user/blocks" - }, - listEmails: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + setDefaultNetworkTier(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/emails" - }, - listFollowersForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + setDefaultServiceAccount(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/followers" - }, - listFollowersForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + setUsageExportBucket(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/followers" - }, - listFollowingForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + compute_alpha.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { + constructor(context) { + this.context = context; } - }, - url: "/user/following" - }, - listFollowingForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + announce(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/following" - }, - listGpgKeys: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/gpg_keys" - }, - listGpgKeysForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/gpg_keys" - }, - listPublicEmails: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/public_emails" - }, - listPublicKeys: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/keys" - }, - listPublicKeysForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/users/:username/keys" - }, - togglePrimaryEmailVisibility: { - method: "PATCH", - params: { - email: { - required: true, - type: "string" - }, - visibility: { - required: true, - type: "string" + withdraw(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/email/visibility" - }, - unblock: { - method: "DELETE", - params: { - username: { - required: true, - type: "string" + } + compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { + constructor(context) { + this.context = context; } - }, - url: "/user/blocks/:username" - }, - unfollow: { - method: "DELETE", - params: { - username: { - required: true, - type: "string" + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user/following/:username" - }, - updateAuthenticated: { - method: "PATCH", - params: { - bio: { - type: "string" - }, - blog: { - type: "string" - }, - company: { - type: "string" - }, - email: { - type: "string" - }, - hireable: { - type: "boolean" - }, - location: { - type: "string" - }, - name: { - type: "string" + announce(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }, - url: "/user" - } - } -}; - -const VERSION = "2.4.0"; - -function registerEndpoints(octokit, routes) { - Object.keys(routes).forEach(namespaceName => { - if (!octokit[namespaceName]) { - octokit[namespaceName] = {}; - } - - Object.keys(routes[namespaceName]).forEach(apiName => { - const apiOptions = routes[namespaceName][apiName]; - const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => { - if (typeof apiOptions[key] !== "undefined") { - map[key] = apiOptions[key]; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - return map; - }, {}); - endpointDefaults.request = { - validate: apiOptions.params - }; - let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters. - // Not the most elegant solution, but we don’t want to move deprecation - // logic into octokit/endpoint.js as it’s out of scope - - const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated); - - if (hasDeprecatedParam) { - const patch = patchForDeprecation.bind(null, octokit, apiOptions); - request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`); - request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`); - request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`); - } - - if (apiOptions.deprecated) { - octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() { - octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`)); - octokit[namespaceName][apiName] = request; - return request.apply(null, arguments); - }, request); - return; - } - - octokit[namespaceName][apiName] = request; - }); - }); -} - -function patchForDeprecation(octokit, apiOptions, method, methodName) { - const patchedMethod = options => { - options = Object.assign({}, options); - Object.keys(options).forEach(key => { - if (apiOptions.params[key] && apiOptions.params[key].deprecated) { - const aliasKey = apiOptions.params[key].alias; - octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`)); - - if (!(aliasKey in options)) { - options[aliasKey] = options[key]; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - delete options[key]; - } - }); - return method(options); - }; - - Object.keys(method).forEach(key => { - patchedMethod[key] = method[key]; - }); - return patchedMethod; -} - -/** - * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary - * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is - * done, we will remove the registerEndpoints methods and return the methods - * directly as with the other plugins. At that point we will also remove the - * legacy workarounds and deprecations. - * - * See the plan at - * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 - */ - -function restEndpointMethods(octokit) { - // @ts-ignore - octokit.registerEndpoints = registerEndpoints.bind(null, octokit); - registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility - // See https://github.com/octokit/rest.js/pull/1134 - - [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => { - Object.defineProperty(octokit, deprecatedScope, { - get() { - octokit.log.warn( // @ts-ignore - new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore - - return octokit[scope]; - } - - }); - }); - return {}; -} -restEndpointMethods.VERSION = VERSION; - -exports.restEndpointMethods = restEndpointMethods; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 843 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.webmasters_v3 = 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 = __webpack_require__(927); -var webmasters_v3; -(function (webmasters_v3) { - /** - * Search Console API - * - * View Google Search Console data for your verified sites. - * - * @example - * const {google} = require('googleapis'); - * const webmasters = google.webmasters('v3'); - * - * @namespace webmasters - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Webmasters - */ - class Webmasters { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, }; - this.searchanalytics = new Resource$Searchanalytics(this.context); - this.sitemaps = new Resource$Sitemaps(this.context); - this.sites = new Resource$Sites(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - webmasters_v3.Webmasters = Webmasters; - class Resource$Searchanalytics { - constructor(context) { - this.context = context; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - query(paramsOrCallback, optionsOrCallback, callback) { + withdraw(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -280342,32 +543666,34 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - webmasters_v3.Resource$Searchanalytics = Resource$Searchanalytics; - class Resource$Sitemaps { + compute_alpha.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280378,26 +543704,28 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280408,26 +543736,60 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280438,26 +543800,28 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280468,32 +543832,60 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - webmasters_v3.Resource$Sitemaps = Resource$Sitemaps; - class Resource$Sites { - constructor(context) { - this.context = context; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - add(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280504,26 +543896,34 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_alpha.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280534,26 +543934,28 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280564,26 +543966,28 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280594,131 +543998,60 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - webmasters_v3.Resource$Sites = Resource$Sites; -})(webmasters_v3 = exports.webmasters_v3 || (exports.webmasters_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 844 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.cloudfunctions = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(14); -const v1beta2_1 = __webpack_require__(273); -exports.VERSIONS = { - v1: v1_1.cloudfunctions_v1.Cloudfunctions, - v1beta2: v1beta2_1.cloudfunctions_v1beta2.Cloudfunctions, -}; -function cloudfunctions(versionOrOptions) { - return googleapis_common_1.getAPI('cloudfunctions', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudfunctions = cloudfunctions; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 845 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adexchangebuyer_v1_3 = 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 = __webpack_require__(927); -var adexchangebuyer_v1_3; -(function (adexchangebuyer_v1_3) { - /** - * Ad Exchange Buyer API - * - * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. - * - * @example - * const {google} = require('googleapis'); - * const adexchangebuyer = google.adexchangebuyer('v1.3'); - * - * @namespace adexchangebuyer - * @type {Function} - * @version v1.3 - * @variation v1.3 - * @param {object=} options Options for Adexchangebuyer - */ - class Adexchangebuyer { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, }; - this.accounts = new Resource$Accounts(this.context); - this.billingInfo = new Resource$Billinginfo(this.context); - this.budget = new Resource$Budget(this.context); - this.creatives = new Resource$Creatives(this.context); - this.directDeals = new Resource$Directdeals(this.context); - this.performanceReport = new Resource$Performancereport(this.context); - this.pretargetingConfig = new Resource$Pretargetingconfig(this.context); - } - } - adexchangebuyer_v1_3.Adexchangebuyer = Adexchangebuyer; - class Resource$Accounts { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280729,26 +544062,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280759,26 +544094,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280789,26 +544126,124 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSecurityPolicy(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280819,32 +544254,34 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer_v1_3.Resource$Accounts = Resource$Accounts; - class Resource$Billinginfo { + compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280855,26 +544292,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280885,32 +544324,60 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_3.Resource$Billinginfo = Resource$Billinginfo; - class Resource$Budget { - constructor(context) { - this.context = context; + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280921,27 +544388,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280952,27 +544420,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -280983,31 +544452,191 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateReservations(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer_v1_3.Resource$Budget = Resource$Budget; - class Resource$Creatives { + compute_alpha.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { constructor(context) { this.context = context; } + addResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createSnapshot(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281020,26 +544649,90 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -281051,26 +544744,252 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeResourcePolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopGroupAsyncReplication(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -281081,32 +545000,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_3.Resource$Creatives = Resource$Creatives; - class Resource$Directdeals { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -281117,26 +545032,34 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/directdeals/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -281147,30 +545070,25 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/directdeals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_3.Resource$Directdeals = Resource$Directdeals; - class Resource$Performancereport { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -281184,27 +545102,28 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/performancereport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'endDateTime', 'startDateTime'], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer_v1_3.Resource$Performancereport = Resource$Performancereport; - class Resource$Pretargetingconfig { + compute_alpha.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { constructor(context) { this.context = context; } @@ -281221,23 +545140,23 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -281253,23 +545172,23 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -281285,22 +545204,23 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -281316,22 +545236,23 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -281347,26 +545268,26 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281379,2205 +545300,1915 @@ var adexchangebuyer_v1_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - adexchangebuyer_v1_3.Resource$Pretargetingconfig = Resource$Pretargetingconfig; -})(adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_3 || (exports.adexchangebuyer_v1_3 = {})); -//# sourceMappingURL=v1.3.js.map - -/***/ }), -/* 846 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2015 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 }); -const oauth2client_1 = __webpack_require__(449); -class UserRefreshClient extends oauth2client_1.OAuth2Client { - constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { - clientId: optionsOrClientId, - clientSecret, - refreshToken, - eagerRefreshThresholdMillis, - forceRefreshOnFailure, - }; - super({ - clientId: opts.clientId, - clientSecret: opts.clientSecret, - eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, - forceRefreshOnFailure: opts.forceRefreshOnFailure, - }); - this._refreshToken = opts.refreshToken; - this.credentials.refresh_token = opts.refreshToken; - } - /** - * Refreshes the access token. - * @param refreshToken An ignored refreshToken.. - * @param callback Optional callback. - */ - async refreshTokenNoCache(refreshToken) { - return super.refreshTokenNoCache(this._refreshToken); - } - /** - * Create a UserRefreshClient credentials instance using the given input - * options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the user refresh token'); - } - if (json.type !== 'authorized_user') { - throw new Error('The incoming JSON object does not have the "authorized_user" type'); - } - if (!json.client_id) { - throw new Error('The incoming JSON object does not contain a client_id field'); - } - if (!json.client_secret) { - throw new Error('The incoming JSON object does not contain a client_secret field'); - } - if (!json.refresh_token) { - throw new Error('The incoming JSON object does not contain a refresh_token field'); - } - this._clientId = json.client_id; - this._clientSecret = json.client_secret; - this._refreshToken = json.refresh_token; - this.credentials.refresh_token = json.refresh_token; - this.quotaProjectId = json.quota_project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(r => callback(), callback); - } - else { - return this.fromStreamAsync(inputStream); - } - } - async fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - return reject(new Error('Must pass in a stream containing the user refresh token.')); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - return resolve(); - } - catch (err) { - return reject(err); - } - }); - }); - } -} -exports.UserRefreshClient = UserRefreshClient; -//# sourceMappingURL=refreshclient.js.map - -/***/ }), -/* 847 */, -/* 848 */, -/* 849 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.websecurityscanner = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(167); -const v1alpha_1 = __webpack_require__(810); -const v1beta_1 = __webpack_require__(381); -exports.VERSIONS = { - v1: v1_1.websecurityscanner_v1.Websecurityscanner, - v1alpha: v1alpha_1.websecurityscanner_v1alpha.Websecurityscanner, - v1beta: v1beta_1.websecurityscanner_v1beta.Websecurityscanner, -}; -function websecurityscanner(versionOrOptions) { - return googleapis_common_1.getAPI('websecurityscanner', versionOrOptions, exports.VERSIONS, this); -} -exports.websecurityscanner = websecurityscanner; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 850 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = paginationMethodsPlugin - -function paginationMethodsPlugin (octokit) { - octokit.getFirstPage = __webpack_require__(777).bind(null, octokit) - octokit.getLastPage = __webpack_require__(649).bind(null, octokit) - octokit.getNextPage = __webpack_require__(550).bind(null, octokit) - octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit) - octokit.hasFirstPage = __webpack_require__(536) - octokit.hasLastPage = __webpack_require__(336) - octokit.hasNextPage = __webpack_require__(929) - octokit.hasPreviousPage = __webpack_require__(558) -} - - -/***/ }), -/* 851 */, -/* 852 */ -/***/ (function(module) { - -"use strict"; - - -var replace = String.prototype.replace; -var percentTwenties = /%20/g; - -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; - -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 -}; - - -/***/ }), -/* 853 */, -/* 854 */ -/***/ (function(module) { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Symbol = root.Symbol, - splice = arrayProto.splice; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create'); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ -function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path); - - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return (index && index == length) ? object : undefined; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value) { - return isArray(value) ? value : stringToPath(value); -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoize(function(string) { - string = toString(string); - - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result); - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Assign cache to `_.memoize`. -memoize.Cache = MapCache; - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -/** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ -function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; -} - -module.exports = get; - - -/***/ }), -/* 855 */, -/* 856 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = __webpack_require__(141); - - -/***/ }), -/* 857 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Support for concurrent task management and synchronization in web - * applications. - * - * @author Dave Longley - * @author David I. Lehn - * - * Copyright (c) 2009-2013 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(117); -__webpack_require__(798); -__webpack_require__(54); - -// logging category -var cat = 'forge.task'; - -// verbose level -// 0: off, 1: a little, 2: a whole lot -// Verbose debug logging is surrounded by a level check to avoid the -// performance issues with even calling the logging code regardless if it -// is actually logged. For performance reasons this should not be set to 2 -// for production use. -// ex: if(sVL >= 2) forge.log.verbose(....) -var sVL = 0; - -// track tasks for debugging -var sTasks = {}; -var sNextTaskId = 0; -// debug access -forge.debug.set(cat, 'tasks', sTasks); - -// a map of task type to task queue -var sTaskQueues = {}; -// debug access -forge.debug.set(cat, 'queues', sTaskQueues); - -// name for unnamed tasks -var sNoTaskName = '?'; - -// maximum number of doNext() recursions before a context swap occurs -// FIXME: might need to tweak this based on the browser -var sMaxRecursions = 30; - -// time slice for doing tasks before a context swap occurs -// FIXME: might need to tweak this based on the browser -var sTimeSlice = 20; - -/** - * Task states. - * - * READY: ready to start processing - * RUNNING: task or a subtask is running - * BLOCKED: task is waiting to acquire N permits to continue - * SLEEPING: task is sleeping for a period of time - * DONE: task is done - * ERROR: task has an error - */ -var READY = 'ready'; -var RUNNING = 'running'; -var BLOCKED = 'blocked'; -var SLEEPING = 'sleeping'; -var DONE = 'done'; -var ERROR = 'error'; - -/** - * Task actions. Used to control state transitions. - * - * STOP: stop processing - * START: start processing tasks - * BLOCK: block task from continuing until 1 or more permits are released - * UNBLOCK: release one or more permits - * SLEEP: sleep for a period of time - * WAKEUP: wakeup early from SLEEPING state - * CANCEL: cancel further tasks - * FAIL: a failure occured - */ -var STOP = 'stop'; -var START = 'start'; -var BLOCK = 'block'; -var UNBLOCK = 'unblock'; -var SLEEP = 'sleep'; -var WAKEUP = 'wakeup'; -var CANCEL = 'cancel'; -var FAIL = 'fail'; - -/** - * State transition table. - * - * nextState = sStateTable[currentState][action] - */ -var sStateTable = {}; - -sStateTable[READY] = {}; -sStateTable[READY][STOP] = READY; -sStateTable[READY][START] = RUNNING; -sStateTable[READY][CANCEL] = DONE; -sStateTable[READY][FAIL] = ERROR; - -sStateTable[RUNNING] = {}; -sStateTable[RUNNING][STOP] = READY; -sStateTable[RUNNING][START] = RUNNING; -sStateTable[RUNNING][BLOCK] = BLOCKED; -sStateTable[RUNNING][UNBLOCK] = RUNNING; -sStateTable[RUNNING][SLEEP] = SLEEPING; -sStateTable[RUNNING][WAKEUP] = RUNNING; -sStateTable[RUNNING][CANCEL] = DONE; -sStateTable[RUNNING][FAIL] = ERROR; - -sStateTable[BLOCKED] = {}; -sStateTable[BLOCKED][STOP] = BLOCKED; -sStateTable[BLOCKED][START] = BLOCKED; -sStateTable[BLOCKED][BLOCK] = BLOCKED; -sStateTable[BLOCKED][UNBLOCK] = BLOCKED; -sStateTable[BLOCKED][SLEEP] = BLOCKED; -sStateTable[BLOCKED][WAKEUP] = BLOCKED; -sStateTable[BLOCKED][CANCEL] = DONE; -sStateTable[BLOCKED][FAIL] = ERROR; - -sStateTable[SLEEPING] = {}; -sStateTable[SLEEPING][STOP] = SLEEPING; -sStateTable[SLEEPING][START] = SLEEPING; -sStateTable[SLEEPING][BLOCK] = SLEEPING; -sStateTable[SLEEPING][UNBLOCK] = SLEEPING; -sStateTable[SLEEPING][SLEEP] = SLEEPING; -sStateTable[SLEEPING][WAKEUP] = SLEEPING; -sStateTable[SLEEPING][CANCEL] = DONE; -sStateTable[SLEEPING][FAIL] = ERROR; - -sStateTable[DONE] = {}; -sStateTable[DONE][STOP] = DONE; -sStateTable[DONE][START] = DONE; -sStateTable[DONE][BLOCK] = DONE; -sStateTable[DONE][UNBLOCK] = DONE; -sStateTable[DONE][SLEEP] = DONE; -sStateTable[DONE][WAKEUP] = DONE; -sStateTable[DONE][CANCEL] = DONE; -sStateTable[DONE][FAIL] = ERROR; - -sStateTable[ERROR] = {}; -sStateTable[ERROR][STOP] = ERROR; -sStateTable[ERROR][START] = ERROR; -sStateTable[ERROR][BLOCK] = ERROR; -sStateTable[ERROR][UNBLOCK] = ERROR; -sStateTable[ERROR][SLEEP] = ERROR; -sStateTable[ERROR][WAKEUP] = ERROR; -sStateTable[ERROR][CANCEL] = ERROR; -sStateTable[ERROR][FAIL] = ERROR; - -/** - * Creates a new task. - * - * @param options options for this task - * run: the run function for the task (required) - * name: the run function for the task (optional) - * parent: parent of this task (optional) - * - * @return the empty task. - */ -var Task = function(options) { - // task id - this.id = -1; - - // task name - this.name = options.name || sNoTaskName; - - // task has no parent - this.parent = options.parent || null; - - // save run function - this.run = options.run; - - // create a queue of subtasks to run - this.subtasks = []; - - // error flag - this.error = false; - - // state of the task - this.state = READY; - - // number of times the task has been blocked (also the number - // of permits needed to be released to continue running) - this.blocks = 0; - - // timeout id when sleeping - this.timeoutId = null; - - // no swap time yet - this.swapTime = null; - - // no user data - this.userData = null; - - // initialize task - // FIXME: deal with overflow - this.id = sNextTaskId++; - sTasks[this.id] = this; - if(sVL >= 1) { - forge.log.verbose(cat, '[%s][%s] init', this.id, this.name, this); - } -}; - -/** - * Logs debug information on this task and the system state. - */ -Task.prototype.debug = function(msg) { - msg = msg || ''; - forge.log.debug(cat, msg, - '[%s][%s] task:', this.id, this.name, this, - 'subtasks:', this.subtasks.length, - 'queue:', sTaskQueues); -}; - -/** - * Adds a subtask to run after task.doNext() or task.fail() is called. - * - * @param name human readable name for this task (optional). - * @param subrun a function to run that takes the current task as - * its first parameter. - * - * @return the current task (useful for chaining next() calls). - */ -Task.prototype.next = function(name, subrun) { - // juggle parameters if it looks like no name is given - if(typeof(name) === 'function') { - subrun = name; - - // inherit parent's name - name = this.name; - } - // create subtask, set parent to this task, propagate callbacks - var subtask = new Task({ - run: subrun, - name: name, - parent: this - }); - // start subtasks running - subtask.state = RUNNING; - subtask.type = this.type; - subtask.successCallback = this.successCallback || null; - subtask.failureCallback = this.failureCallback || null; - - // queue a new subtask - this.subtasks.push(subtask); - - return this; -}; - -/** - * Adds subtasks to run in parallel after task.doNext() or task.fail() - * is called. - * - * @param name human readable name for this task (optional). - * @param subrun functions to run that take the current task as - * their first parameter. - * - * @return the current task (useful for chaining next() calls). - */ -Task.prototype.parallel = function(name, subrun) { - // juggle parameters if it looks like no name is given - if(forge.util.isArray(name)) { - subrun = name; - - // inherit parent's name - name = this.name; - } - // Wrap parallel tasks in a regular task so they are started at the - // proper time. - return this.next(name, function(task) { - // block waiting for subtasks - var ptask = task; - ptask.block(subrun.length); - - // we pass the iterator from the loop below as a parameter - // to a function because it is otherwise included in the - // closure and changes as the loop changes -- causing i - // to always be set to its highest value - var startParallelTask = function(pname, pi) { - forge.task.start({ - type: pname, - run: function(task) { - subrun[pi](task); - }, - success: function(task) { - ptask.unblock(); - }, - failure: function(task) { - ptask.unblock(); + compute_alpha.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + applyUpdatesToInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + createInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deleteInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + deletePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listErrors(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listManagedInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchPerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + recreateInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resizeAdvanced(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }); - }; - - for(var i = 0; i < subrun.length; i++) { - // Type must be unique so task starts in parallel: - // name + private string + task id + sub-task index - // start tasks in parallel and unblock when the finish - var pname = name + '__parallel-' + task.id + '-' + i; - var pi = i; - startParallelTask(pname, pi); - } - }); -}; - -/** - * Stops a running task. - */ -Task.prototype.stop = function() { - this.state = sStateTable[this.state][STOP]; -}; - -/** - * Starts running a task. - */ -Task.prototype.start = function() { - this.error = false; - this.state = sStateTable[this.state][START]; - - // try to restart - if(this.state === RUNNING) { - this.start = new Date(); - this.run(this); - runNext(this, 0); - } -}; - -/** - * Blocks a task until it one or more permits have been released. The - * task will not resume until the requested number of permits have - * been released with call(s) to unblock(). - * - * @param n number of permits to wait for(default: 1). - */ -Task.prototype.block = function(n) { - n = typeof(n) === 'undefined' ? 1 : n; - this.blocks += n; - if(this.blocks > 0) { - this.state = sStateTable[this.state][BLOCK]; - } -}; - -/** - * Releases a permit to unblock a task. If a task was blocked by - * requesting N permits via block(), then it will only continue - * running once enough permits have been released via unblock() calls. - * - * If multiple processes need to synchronize with a single task then - * use a condition variable (see forge.task.createCondition). It is - * an error to unblock a task more times than it has been blocked. - * - * @param n number of permits to release (default: 1). - * - * @return the current block count (task is unblocked when count is 0) - */ -Task.prototype.unblock = function(n) { - n = typeof(n) === 'undefined' ? 1 : n; - this.blocks -= n; - if(this.blocks === 0 && this.state !== DONE) { - this.state = RUNNING; - runNext(this, 0); - } - return this.blocks; -}; - -/** - * Sleep for a period of time before resuming tasks. - * - * @param n number of milliseconds to sleep (default: 0). - */ -Task.prototype.sleep = function(n) { - n = typeof(n) === 'undefined' ? 0 : n; - this.state = sStateTable[this.state][SLEEP]; - var self = this; - this.timeoutId = setTimeout(function() { - self.timeoutId = null; - self.state = RUNNING; - runNext(self, 0); - }, n); -}; - -/** - * Waits on a condition variable until notified. The next task will - * not be scheduled until notification. A condition variable can be - * created with forge.task.createCondition(). - * - * Once cond.notify() is called, the task will continue. - * - * @param cond the condition variable to wait on. - */ -Task.prototype.wait = function(cond) { - cond.wait(this); -}; - -/** - * If sleeping, wakeup and continue running tasks. - */ -Task.prototype.wakeup = function() { - if(this.state === SLEEPING) { - cancelTimeout(this.timeoutId); - this.timeoutId = null; - this.state = RUNNING; - runNext(this, 0); - } -}; - -/** - * Cancel all remaining subtasks of this task. - */ -Task.prototype.cancel = function() { - this.state = sStateTable[this.state][CANCEL]; - // remove permits needed - this.permitsNeeded = 0; - // cancel timeouts - if(this.timeoutId !== null) { - cancelTimeout(this.timeoutId); - this.timeoutId = null; - } - // remove subtasks - this.subtasks = []; -}; - -/** - * Finishes this task with failure and sets error flag. The entire - * task will be aborted unless the next task that should execute - * is passed as a parameter. This allows levels of subtasks to be - * skipped. For instance, to abort only this tasks's subtasks, then - * call fail(task.parent). To abort this task's subtasks and its - * parent's subtasks, call fail(task.parent.parent). To abort - * all tasks and simply call the task callback, call fail() or - * fail(null). - * - * The task callback (success or failure) will always, eventually, be - * called. - * - * @param next the task to continue at, or null to abort entirely. - */ -Task.prototype.fail = function(next) { - // set error flag - this.error = true; - - // finish task - finish(this, true); - - if(next) { - // propagate task info - next.error = this.error; - next.swapTime = this.swapTime; - next.userData = this.userData; - - // do next task as specified - runNext(next, 0); - } else { - if(this.parent !== null) { - // finish root task (ensures it is removed from task queue) - var parent = this.parent; - while(parent.parent !== null) { - // propagate task info - parent.error = this.error; - parent.swapTime = this.swapTime; - parent.userData = this.userData; - parent = parent.parent; - } - finish(parent, true); - } - - // call failure callback if one exists - if(this.failureCallback) { - this.failureCallback(this); - } - } -}; - -/** - * Asynchronously start a task. - * - * @param task the task to start. - */ -var start = function(task) { - task.error = false; - task.state = sStateTable[task.state][START]; - setTimeout(function() { - if(task.state === RUNNING) { - task.swapTime = +new Date(); - task.run(task); - runNext(task, 0); - } - }, 0); -}; - -/** - * Run the next subtask or finish this task. - * - * @param task the task to process. - * @param recurse the recursion count. - */ -var runNext = function(task, recurse) { - // get time since last context swap (ms), if enough time has passed set - // swap to true to indicate that doNext was performed asynchronously - // also, if recurse is too high do asynchronously - var swap = - (recurse > sMaxRecursions) || - (+new Date() - task.swapTime) > sTimeSlice; - - var doNext = function(recurse) { - recurse++; - if(task.state === RUNNING) { - if(swap) { - // update swap time - task.swapTime = +new Date(); - } - - if(task.subtasks.length > 0) { - // run next subtask - var subtask = task.subtasks.shift(); - subtask.error = task.error; - subtask.swapTime = task.swapTime; - subtask.userData = task.userData; - subtask.run(subtask); - if(!subtask.error) { - runNext(subtask, recurse); + resumeInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } else { - finish(task); - - if(!task.error) { - // chain back up and run parent - if(task.parent !== null) { - // propagate task info - task.parent.error = task.error; - task.parent.swapTime = task.swapTime; - task.parent.userData = task.userData; - - // no subtasks left, call run next subtask on parent - runNext(task.parent, recurse); - } + setAutoHealingPolicies(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setInstanceTemplate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setTargetPools(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + startInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + stopInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + suspendInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePerInstanceConfigs(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - } - }; - - if(swap) { - // we're swapping, so run asynchronously - setTimeout(doNext, 0); - } else { - // not swapping, so run synchronously - doNext(recurse); - } -}; - -/** - * Finishes a task and looks for the next task in the queue to start. - * - * @param task the task to finish. - * @param suppressCallbacks true to suppress callbacks. - */ -var finish = function(task, suppressCallbacks) { - // subtask is now done - task.state = DONE; - - delete sTasks[task.id]; - if(sVL >= 1) { - forge.log.verbose(cat, '[%s][%s] finish', - task.id, task.name, task); - } - - // only do queue processing for root tasks - if(task.parent === null) { - // report error if queue is missing - if(!(task.type in sTaskQueues)) { - forge.log.error(cat, - '[%s][%s] task queue missing [%s]', - task.id, task.name, task.type); - } else if(sTaskQueues[task.type].length === 0) { - // report error if queue is empty - forge.log.error(cat, - '[%s][%s] task queue empty [%s]', - task.id, task.name, task.type); - } else if(sTaskQueues[task.type][0] !== task) { - // report error if this task isn't the first in the queue - forge.log.error(cat, - '[%s][%s] task not first in queue [%s]', - task.id, task.name, task.type); - } else { - // remove ourselves from the queue - sTaskQueues[task.type].shift(); - // clean up queue if it is empty - if(sTaskQueues[task.type].length === 0) { - if(sVL >= 1) { - forge.log.verbose(cat, '[%s][%s] delete queue [%s]', - task.id, task.name, task.type); - } - /* Note: Only a task can delete a queue of its own type. This - is used as a way to synchronize tasks. If a queue for a certain - task type exists, then a task of that type is running. - */ - delete sTaskQueues[task.type]; - } else { - // dequeue the next task and start it - if(sVL >= 1) { - forge.log.verbose(cat, - '[%s][%s] queue start next [%s] remain:%s', - task.id, task.name, task.type, - sTaskQueues[task.type].length); - } - sTaskQueues[task.type][0].start(); - } } - - if(!suppressCallbacks) { - // call final callback if one exists - if(task.error && task.failureCallback) { - task.failureCallback(task); - } else if(!task.error && task.successCallback) { - task.successCallback(task); - } + compute_alpha.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listInstances(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setNamedPorts(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } -}; - -/* Tasks API */ -module.exports = forge.task = forge.task || {}; - -/** - * Starts a new task that will run the passed function asynchronously. - * - * In order to finish the task, either task.doNext() or task.fail() - * *must* be called. - * - * The task must have a type (a string identifier) that can be used to - * synchronize it with other tasks of the same type. That type can also - * be used to cancel tasks that haven't started yet. - * - * To start a task, the following object must be provided as a parameter - * (each function takes a task object as its first parameter): - * - * { - * type: the type of task. - * run: the function to run to execute the task. - * success: a callback to call when the task succeeds (optional). - * failure: a callback to call when the task fails (optional). - * } - * - * @param options the object as described above. - */ -forge.task.start = function(options) { - // create a new task - var task = new Task({ - run: options.run, - name: options.name || sNoTaskName - }); - task.type = options.type; - task.successCallback = options.success || null; - task.failureCallback = options.failure || null; - - // append the task onto the appropriate queue - if(!(task.type in sTaskQueues)) { - if(sVL >= 1) { - forge.log.verbose(cat, '[%s][%s] create queue [%s]', - task.id, task.name, task.type); - } - // create the queue with the new task - sTaskQueues[task.type] = [task]; - start(task); - } else { - // push the task onto the queue, it will be run after a task - // with the same type completes - sTaskQueues[options.type].push(task); - } -}; - -/** - * Cancels all tasks of the given type that haven't started yet. - * - * @param type the type of task to cancel. - */ -forge.task.cancel = function(type) { - // find the task queue - if(type in sTaskQueues) { - // empty all but the current task from the queue - sTaskQueues[type] = [sTaskQueues[type][0]]; - } -}; - -/** - * Creates a condition variable to synchronize tasks. To make a task wait - * on the condition variable, call task.wait(condition). To notify all - * tasks that are waiting, call condition.notify(). - * - * @return the condition variable. - */ -forge.task.createCondition = function() { - var cond = { - // all tasks that are blocked - tasks: {} - }; - - /** - * Causes the given task to block until notify is called. If the task - * is already waiting on this condition then this is a no-op. - * - * @param task the task to cause to wait. - */ - cond.wait = function(task) { - // only block once - if(!(task.id in cond.tasks)) { - task.block(); - cond.tasks[task.id] = task; + compute_alpha.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - }; - - /** - * Notifies all waiting tasks to wake up. - */ - cond.notify = function() { - // since unblock() will run the next task from here, make sure to - // clear the condition's blocked task list before unblocking - var tmp = cond.tasks; - cond.tasks = {}; - for(var id in tmp) { - tmp[id].unblock(); + compute_alpha.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regioninstancetemplates { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - }; - - return cond; -}; - - -/***/ }), -/* 858 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.webfonts_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 = __webpack_require__(927); -var webfonts_v1; -(function (webfonts_v1) { - /** - * Google Fonts Developer API - * - * Accesses the metadata for all families served by Google Fonts, providing a list of families currently available (including available styles and a list of supported script subsets). - * - * @example - * const {google} = require('googleapis'); - * const webfonts = google.webfonts('v1'); - * - * @namespace webfonts - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Webfonts - */ - class Webfonts { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + compute_alpha.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; + class Resource$Regioninstantsnapshots { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + export(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, }; - this.webfonts = new Resource$Webfonts(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - webfonts_v1.Webfonts = Webfonts; - class Resource$Webfonts { + compute_alpha.Resource$Regioninstantsnapshots = Resource$Regioninstantsnapshots; + class Resource$Regionnetworkendpointgroups { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webfonts/v1/webfonts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - webfonts_v1.Resource$Webfonts = Resource$Webfonts; -})(webfonts_v1 = exports.webfonts_v1 || (exports.webfonts_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 859 */, -/* 860 */, -/* 861 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = registerPlugin; - -const factory = __webpack_require__(513); - -function registerPlugin(plugins, pluginFunction) { - return factory( - plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction) - ); -} - - -/***/ }), -/* 862 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var osName = _interopDefault(__webpack_require__(2)); - -function getUserAgent() { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return "Windows "; - } - - throw error; - } -} - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 863 */, -/* 864 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.plus = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(288); -exports.VERSIONS = { - v1: v1_1.plus_v1.Plus, -}; -function plus(versionOrOptions) { - return googleapis_common_1.getAPI('plus', versionOrOptions, exports.VERSIONS, this); -} -exports.plus = plus; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 865 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.indexing = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_1 = __webpack_require__(641); -exports.VERSIONS = { - v3: v3_1.indexing_v3.Indexing, -}; -function indexing(versionOrOptions) { - return googleapis_common_1.getAPI('indexing', versionOrOptions, exports.VERSIONS, this); -} -exports.indexing = indexing; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 866 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -var shebangRegex = __webpack_require__(816); - -module.exports = function (str) { - var match = str.match(shebangRegex); - - if (!match) { - return null; - } - - var arr = match[0].replace(/#! ?/, '').split(' '); - var bin = arr[0].split('/').pop(); - var arg = arr[1]; - - return (bin === 'env' ? - arg : - bin + (arg ? ' ' + arg : '') - ); -}; - - -/***/ }), -/* 867 */ -/***/ (function(module) { - -module.exports = require("tty"); - -/***/ }), -/* 868 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.iap_v1beta1 = 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 = __webpack_require__(927); -var iap_v1beta1; -(function (iap_v1beta1) { - /** - * Cloud Identity-Aware Proxy API - * - * Controls access to cloud applications running on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const iap = google.iap('v1beta1'); - * - * @namespace iap - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Iap - */ - class Iap { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, }; - this.v1beta1 = new Resource$V1beta1(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - iap_v1beta1.Iap = Iap; - class Resource$V1beta1 { - constructor(context) { - this.context = context; + detachNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -283590,25 +547221,26 @@ var iap_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -283621,25 +547253,26 @@ var iap_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -283652,134 +547285,100 @@ var iap_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - iap_v1beta1.Resource$V1beta1 = Resource$V1beta1; -})(iap_v1beta1 = exports.iap_v1beta1 || (exports.iap_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 869 */, -/* 870 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.content = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1_1 = __webpack_require__(839); -const v2_1 = __webpack_require__(178); -exports.VERSIONS = { - 'v2.1': v2_1_1.content_v2_1.Content, - v2: v2_1.content_v2.Content, -}; -function content(versionOrOptions) { - return googleapis_common_1.getAPI('content', versionOrOptions, exports.VERSIONS, this); -} -exports.content = content; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 871 */, -/* 872 */, -/* 873 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.dns_v2beta1 = 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 = __webpack_require__(927); -var dns_v2beta1; -(function (dns_v2beta1) { - /** - * Google Cloud DNS API - * - * Configures and serves authoritative DNS records. - * - * @example - * const {google} = require('googleapis'); - * const dns = google.dns('v2beta1'); - * - * @namespace dns - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Dns - */ - class Dns { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + listNetworkEndpoints(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, }; - this.changes = new Resource$Changes(this.context); - this.dnsKeys = new Resource$Dnskeys(this.context); - this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); - this.managedZones = new Resource$Managedzones(this.context); - this.policies = new Resource$Policies(this.context); - this.projects = new Resource$Projects(this.context); - this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - dns_v2beta1.Dns = Dns; - class Resource$Changes { + compute_alpha.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnetworkfirewallpolicies { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -283790,27 +547389,92 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneRules(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -283821,64 +547485,127 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone', 'changeId'], - pathParams: ['changeId', 'managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Changes = Resource$Changes; - class Resource$Dnskeys { - constructor(context) { - this.context = context; + getEffectiveFirewalls(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -283889,27 +547616,60 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -283920,32 +547680,91 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Dnskeys = Resource$Dnskeys; - class Resource$Managedzoneoperations { - constructor(context) { - this.context = context; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { + patchAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -283958,26 +547777,59 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'operation'], - pathParams: ['managedZone', 'operation', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeAssociation(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -283990,49 +547842,117 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dns_v2beta1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; - class Resource$Managedzones { + compute_alpha.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['project'], @@ -284040,10 +547960,10 @@ var dns_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -284059,27 +547979,28 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284090,23 +548011,55 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -284122,25 +548075,65 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284153,26 +548146,26 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284185,32 +548178,126 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wait(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Managedzones = Resource$Managedzones; - class Resource$Policies { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -284222,11 +548309,11 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['project'], @@ -284234,14 +548321,21 @@ var dns_v2beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284252,26 +548346,28 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284282,26 +548378,28 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284312,26 +548410,28 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284342,26 +548442,28 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284372,32 +548474,28 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Policies = Resource$Policies; - class Resource$Projects { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -284408,31 +548506,26 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Resourcerecordsets { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284445,1511 +548538,1741 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - dns_v2beta1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; -})(dns_v2beta1 = exports.dns_v2beta1 || (exports.dns_v2beta1 = {})); -//# sourceMappingURL=v2beta1.js.map - -/***/ }), -/* 874 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.slides = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(759); -exports.VERSIONS = { - v1: v1_1.slides_v1.Slides, -}; -function slides(versionOrOptions) { - return googleapis_common_1.getAPI('slides', versionOrOptions, exports.VERSIONS, this); -} -exports.slides = slides; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 875 */, -/* 876 */, -/* 877 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const net_1 = __importDefault(__webpack_require__(631)); -const tls_1 = __importDefault(__webpack_require__(16)); -const url_1 = __importDefault(__webpack_require__(835)); -const assert_1 = __importDefault(__webpack_require__(357)); -const debug_1 = __importDefault(__webpack_require__(377)); -const agent_base_1 = __webpack_require__(687); -const parse_proxy_response_1 = __importDefault(__webpack_require__(767)); -const debug = debug_1.default('https-proxy-agent:agent'); -/** - * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to - * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. - * - * Outgoing HTTP requests are first tunneled through the proxy server using the - * `CONNECT` HTTP request method to establish a connection to the proxy server, - * and then the proxy server connects to the destination target and issues the - * HTTP request from the proxy server. - * - * `https:` requests have their socket connection upgraded to TLS once - * the connection to the proxy server has been established. - * - * @api public - */ -class HttpsProxyAgent extends agent_base_1.Agent { - constructor(_opts) { - let opts; - if (typeof _opts === 'string') { - opts = url_1.default.parse(_opts); - } - else { - opts = _opts; - } - if (!opts) { - throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); - } - debug('creating new HttpsProxyAgent instance: %o', opts); - super(opts); - const proxy = Object.assign({}, opts); - // If `true`, then connect to the proxy server over TLS. - // Defaults to `false`. - this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); - // Prefer `hostname` over `host`, and set the `port` if needed. - proxy.host = proxy.hostname || proxy.host; - if (typeof proxy.port === 'string') { - proxy.port = parseInt(proxy.port, 10); - } - if (!proxy.port && proxy.host) { - proxy.port = this.secureProxy ? 443 : 80; - } - // ALPN is supported by Node.js >= v5. - // attempt to negotiate http/1.1 for proxy servers that support http/2 - if (this.secureProxy && !('ALPNProtocols' in proxy)) { - proxy.ALPNProtocols = ['http 1.1']; - } - if (proxy.host && proxy.path) { - // If both a `host` and `path` are specified then it's most likely - // the result of a `url.parse()` call... we need to remove the - // `path` portion so that `net.connect()` doesn't attempt to open - // that as a Unix socket file. - delete proxy.path; - delete proxy.pathname; - } - this.proxy = proxy; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { proxy, secureProxy } = this; - // Create a socket connection to the proxy server. - let socket; - if (secureProxy) { - debug('Creating `tls.Socket`: %o', proxy); - socket = tls_1.default.connect(proxy); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - debug('Creating `net.Socket`: %o', proxy); - socket = net_1.default.connect(proxy); - } - const headers = Object.assign({}, proxy.headers); - const hostname = `${opts.host}:${opts.port}`; - let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.auth) { - headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; - } - // The `Host` header should only include the port - // number when it is not the default port. - let { host, port, secureEndpoint } = opts; - if (!isDefaultPort(port, secureEndpoint)) { - host += `:${port}`; - } - headers.Host = host; - headers.Connection = 'close'; - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r\n`; - } - const proxyResponsePromise = parse_proxy_response_1.default(socket); - socket.write(`${payload}\r\n`); - const { statusCode, buffered } = yield proxyResponsePromise; - if (statusCode === 200) { - req.once('socket', resume); - if (opts.secureEndpoint) { - const servername = opts.servername || opts.host; - if (!servername) { - throw new Error('Could not determine "servername"'); - } - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, - servername })); - } - return socket; - } - // Some other status code that's not 200... need to re-play the HTTP - // header "data" events onto the socket once the HTTP machinery is - // attached so that the node core `http` can parse and handle the - // error status code. - // Close the original socket, and a new "fake" socket is returned - // instead, so that the proxy doesn't get the HTTP request - // written to it (which may contain `Authorization` headers or other - // sensitive data). - // - // See: https://hackerone.com/reports/541502 - socket.destroy(); - const fakeSocket = new net_1.default.Socket(); - fakeSocket.readable = true; - // Need to wait for the "socket" event to re-play the "data" events. - req.once('socket', (s) => { - debug('replaying proxy buffer for failed request'); - assert_1.default(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at - // this point the HTTP module machinery has been hooked up for - // the user. - s.push(buffered); - s.push(null); - }); - return fakeSocket; - }); - } -} -exports.default = HttpsProxyAgent; -function resume(socket) { - socket.resume(); -} -function isDefaultPort(port, secure) { - return Boolean((!secure && port === 80) || (secure && port === 443)); -} -function isHTTPS(protocol) { - return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; -} -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=agent.js.map - -/***/ }), -/* 878 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.compute = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const alpha_1 = __webpack_require__(951); -const beta_1 = __webpack_require__(233); -const v1_1 = __webpack_require__(635); -exports.VERSIONS = { - alpha: alpha_1.compute_alpha.Compute, - beta: beta_1.compute_beta.Compute, - v1: v1_1.compute_v1.Compute, -}; -function compute(versionOrOptions) { - return googleapis_common_1.getAPI('compute', versionOrOptions, exports.VERSIONS, this); -} -exports.compute = compute; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 879 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.youtubereporting = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(222); -exports.VERSIONS = { - v1: v1_1.youtubereporting_v1.Youtubereporting, -}; -function youtubereporting(versionOrOptions) { - return googleapis_common_1.getAPI('youtubereporting', versionOrOptions, exports.VERSIONS, this); -} -exports.youtubereporting = youtubereporting; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 880 */, -/* 881 */ -/***/ (function(module) { - -"use strict"; - - -const isWin = process.platform === 'win32'; - -function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: 'ENOENT', - errno: 'ENOENT', - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args, - }); -} - -function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - - const originalEmit = cp.emit; - - cp.emit = function (name, arg1) { - // If emitting "exit" event and exit code is 1, we need to check if - // the command exists and emit an "error" instead - // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 - if (name === 'exit') { - const err = verifyENOENT(arg1, parsed, 'spawn'); - - if (err) { - return originalEmit.call(cp, 'error', err); + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patchRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - - return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params - }; -} - -function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, 'spawn'); - } - - return null; -} - -function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, 'spawnSync'); - } - - return null; -} - -module.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError, -}; - - -/***/ }), -/* 882 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -// Copyright 2017 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 }); -// Accepts an options object passed from the user to the API. In the -// previous version of the API, it referred to a `Request` options object. -// Now it refers to an Axiox Request Config object. This is here to help -// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. -// tslint:disable-next-line no-any -function validate(options) { - const vpairs = [ - { invalid: 'uri', expected: 'url' }, - { invalid: 'json', expected: 'data' }, - { invalid: 'qs', expected: 'params' }, - ]; - for (const pair of vpairs) { - if (options[pair.invalid]) { - const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; - throw new Error(e); - } - } -} -exports.validate = validate; -//# sourceMappingURL=options.js.map - -/***/ }), -/* 883 */ -/***/ (function(module) { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Symbol = root.Symbol, - splice = arrayProto.splice; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create'); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || - (value === undefined && !(key in object))) { - object[key] = value; - } -} - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.set`. - * - * @private - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @param {Function} [customizer] The function to customize path creation. - * @returns {Object} Returns `object`. - */ -function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = isKey(path, object) ? [path] : castPath(path); - - var index = -1, - length = path.length, - lastIndex = length - 1, - nested = object; - - while (nested != null && ++index < length) { - var key = toKey(path[index]), - newValue = value; - - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - if (newValue === undefined) { - newValue = isObject(objValue) - ? objValue - : (isIndex(path[index + 1]) ? [] : {}); - } } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; -} - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value) { - return isArray(value) ? value : stringToPath(value); -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && - (typeof value == 'number' || reIsUint.test(value)) && - (value > -1 && value % 1 == 0 && value < length); -} - -/** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoize(function(string) { - string = toString(string); - - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); + compute_alpha.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result); - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Assign cache to `_.memoize`. -memoize.Cache = MapCache; - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -/** - * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, - * it's created. Arrays are created for missing index properties while objects - * are created for all other missing properties. Use `_.setWith` to customize - * `path` creation. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @returns {Object} Returns `object`. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.set(object, 'a[0].b.c', 4); - * console.log(object.a[0].b.c); - * // => 4 - * - * _.set(object, ['x', '0', 'y', 'z'], 5); - * console.log(object.x[0].y.z); - * // => 5 - */ -function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); -} - -module.exports = set; - - -/***/ }), -/* 884 */, -/* 885 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.videointelligence_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 = __webpack_require__(927); -var videointelligence_v1; -(function (videointelligence_v1) { - /** - * Cloud Video Intelligence API - * - * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. - * - * @example - * const {google} = require('googleapis'); - * const videointelligence = google.videointelligence('v1'); - * - * @namespace videointelligence - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Videointelligence - */ - class Videointelligence { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + compute_alpha.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listAvailableFeatures(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, }; - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - this.videos = new Resource$Videos(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - videointelligence_v1.Videointelligence = Videointelligence; - class Resource$Operations { + compute_alpha.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { constructor(context) { this.context = context; - this.projects = new Resource$Operations$Projects(this.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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setSslCertificates(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setUrlMap(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - videointelligence_v1.Resource$Operations = Resource$Operations; - class Resource$Operations$Projects { + compute_alpha.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { constructor(context) { this.context = context; - this.locations = new Resource$Operations$Projects$Locations(this.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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - videointelligence_v1.Resource$Operations$Projects = Resource$Operations$Projects; - class Resource$Operations$Projects$Locations { + compute_alpha.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { constructor(context) { this.context = context; - this.operations = new Resource$Operations$Projects$Locations$Operations(this.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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + resize(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - videointelligence_v1.Resource$Operations$Projects$Locations = Resource$Operations$Projects$Locations; - class Resource$Operations$Projects$Locations$Operations { + compute_alpha.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -285962,22 +550285,23 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -285993,22 +550317,23 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -286024,45 +550349,224 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - videointelligence_v1.Resource$Operations$Projects$Locations$Operations = Resource$Operations$Projects$Locations$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - videointelligence_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - videointelligence_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + compute_alpha.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286075,27 +550579,26 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -286106,25 +550609,57 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286137,25 +550672,26 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286168,31 +550704,26 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - videointelligence_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Videos { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -286204,530 +550735,348 @@ var videointelligence_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - videointelligence_v1.Resource$Videos = Resource$Videos; -})(videointelligence_v1 = exports.videointelligence_v1 || (exports.videointelligence_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 886 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(567); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var defaults = { - allowDots: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: 'utf-8', - charsetSentinel: false, - comma: false, - decoder: utils.decode, - delimiter: '&', - depth: 5, - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictNullHandling: false -}; - -var interpretNumericEntities = function (str) { - return str.replace(/&#(\d+);/g, function ($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); -}; - -var parseArrayValue = function (val, options) { - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - return val.split(','); - } - - return val; -}; - -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') - -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') - -var parseValues = function parseQueryStringValues(str, options) { - var obj = {}; - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; - - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; - - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap( - parseArrayValue(part.slice(pos + 1), options), - function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - } - ); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); + preview(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - - return obj; -}; - -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); - - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; - - if (root === '[]' && options.parseArrays) { - obj = [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if (!options.parseArrays && cleanRoot === '') { - obj = { 0: leaf }; - } else if ( - !isNaN(index) - && root !== cleanRoot - && String(index) === cleanRoot - && index >= 0 - && (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = leaf; - } else { - obj[cleanRoot] = leaf; + compute_alpha.Resource$Routers = Resource$Routers; + class Resource$Routes { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - - leaf = obj; - } - - return leaf; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; - - // Stash the parent if it exists - - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - - keys.push(parent); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options, valuesParsed); -}; - -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; - - return { - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); - } - - if (options.allowSparse === true) { - return obj; - } - - return utils.compact(obj); -}; - - -/***/ }), -/* 887 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.sheets = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v4_1 = __webpack_require__(525); -exports.VERSIONS = { - v4: v4_1.sheets_v4.Sheets, -}; -function sheets(versionOrOptions) { - return googleapis_common_1.getAPI('sheets', versionOrOptions, exports.VERSIONS, this); -} -exports.sheets = sheets; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 888 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.managedidentities = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(94); -const v1alpha1_1 = __webpack_require__(531); -const v1beta1_1 = __webpack_require__(274); -exports.VERSIONS = { - v1: v1_1.managedidentities_v1.Managedidentities, - v1alpha1: v1alpha1_1.managedidentities_v1alpha1.Managedidentities, - v1beta1: v1beta1_1.managedidentities_v1beta1.Managedidentities, -}; -function managedidentities(versionOrOptions) { - return googleapis_common_1.getAPI('managedidentities', versionOrOptions, exports.VERSIONS, this); -} -exports.managedidentities = managedidentities; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 889 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var Mime = __webpack_require__(251); -module.exports = new Mime(__webpack_require__(672), __webpack_require__(351)); - - -/***/ }), -/* 890 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = authenticationPlugin; - -const { createTokenAuth } = __webpack_require__(813); -const { Deprecation } = __webpack_require__(692); -const once = __webpack_require__(969); - -const beforeRequest = __webpack_require__(414); -const requestError = __webpack_require__(446); -const validate = __webpack_require__(538); -const withAuthorizationPrefix = __webpack_require__(85); - -const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation)); -const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation)); - -function authenticationPlugin(octokit, options) { - // If `options.authStrategy` is set then use it and pass in `options.auth` - if (options.authStrategy) { - const auth = options.authStrategy(options.auth); - octokit.hook.wrap("request", auth.hook); - octokit.auth = auth; - return; - } - - // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance - // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred. - if (!options.auth) { - octokit.auth = () => - Promise.resolve({ - type: "unauthenticated" - }); - return; - } - - const isBasicAuthString = - typeof options.auth === "string" && - /^basic/.test(withAuthorizationPrefix(options.auth)); - - // If only `options.auth` is set to a string, use the default token authentication strategy. - if (typeof options.auth === "string" && !isBasicAuthString) { - const auth = createTokenAuth(options.auth); - octokit.hook.wrap("request", auth.hook); - octokit.auth = auth; - return; - } - - // Otherwise log a deprecation message - const [deprecationMethod, deprecationMessapge] = isBasicAuthString - ? [ - deprecateAuthBasic, - 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)' - ] - : [ - deprecateAuthObject, - 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)' - ]; - deprecationMethod( - octokit.log, - new Deprecation("[@octokit/rest] " + deprecationMessapge) - ); - - octokit.auth = () => - Promise.resolve({ - type: "deprecated", - message: deprecationMessapge - }); - - validate(options.auth); - - const state = { - octokit, - auth: options.auth - }; - - octokit.hook.before("request", beforeRequest.bind(null, state)); - octokit.hook.error("request", requestError.bind(null, state)); -} - - -/***/ }), -/* 891 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.fcm_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 = __webpack_require__(927); -var fcm_v1; -(function (fcm_v1) { - /** - * Firebase Cloud Messaging API - * - * FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost. - * - * @example - * const {google} = require('googleapis'); - * const fcm = google.fcm('v1'); - * - * @namespace fcm - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Fcm - */ - class Fcm { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - fcm_v1.Fcm = Fcm; - class Resource$Projects { - constructor(context) { - this.context = context; - this.messages = new Resource$Projects$Messages(this.context); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - fcm_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Messages { + compute_alpha.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { constructor(context) { this.context = context; } - send(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286740,158 +551089,60 @@ var fcm_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages:send').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - fcm_v1.Resource$Projects$Messages = Resource$Projects$Messages; -})(fcm_v1 = exports.fcm_v1 || (exports.fcm_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 892 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.gamesConfiguration = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1configuration_1 = __webpack_require__(505); -exports.VERSIONS = { - v1configuration: v1configuration_1.gamesConfiguration_v1configuration.Gamesconfiguration, -}; -function gamesConfiguration(versionOrOptions) { - return googleapis_common_1.getAPI('gamesConfiguration', versionOrOptions, exports.VERSIONS, this); -} -exports.gamesConfiguration = gamesConfiguration; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 893 */, -/* 894 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -/*global exports*/ -var SignStream = __webpack_require__(213); -var VerifyStream = __webpack_require__(287); - -var ALGORITHMS = [ - 'HS256', 'HS384', 'HS512', - 'RS256', 'RS384', 'RS512', - 'PS256', 'PS384', 'PS512', - 'ES256', 'ES384', 'ES512' -]; - -exports.ALGORITHMS = ALGORITHMS; -exports.sign = SignStream.sign; -exports.verify = VerifyStream.verify; -exports.decode = VerifyStream.decode; -exports.isValid = VerifyStream.isValid; -exports.createSign = function createSign(opts) { - return new SignStream(opts); -}; -exports.createVerify = function createVerify(opts) { - return new VerifyStream(opts); -}; - - -/***/ }), -/* 895 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.bigquery_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 = __webpack_require__(927); -var bigquery_v2; -(function (bigquery_v2) { - /** - * BigQuery API - * - * A data platform for customers to create, manage, share and query data. - * - * @example - * const {google} = require('googleapis'); - * const bigquery = google.bigquery('v2'); - * - * @namespace bigquery - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Bigquery - */ - class Bigquery { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.datasets = new Resource$Datasets(this.context); - this.jobs = new Resource$Jobs(this.context); - this.models = new Resource$Models(this.context); - this.projects = new Resource$Projects(this.context); - this.routines = new Resource$Routines(this.context); - this.tabledata = new Resource$Tabledata(this.context); - this.tables = new Resource$Tables(this.context); - } - } - bigquery_v2.Bigquery = Bigquery; - class Resource$Datasets { - constructor(context) { - this.context = context; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -286902,26 +551153,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -286932,26 +551185,60 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -286962,26 +551249,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -286992,26 +551281,61 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPreconfiguredExpressionSets(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287022,26 +551346,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287052,32 +551378,130 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + removeRule(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigquery_v2.Resource$Datasets = Resource$Datasets; - class Resource$Jobs { + compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287088,26 +551512,60 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287118,25 +551576,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getQueryResults(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287149,26 +551608,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287179,27 +551640,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287210,26 +551672,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287240,27 +551704,92 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigquery_v2.Resource$Jobs = Resource$Jobs; - class Resource$Models { + compute_alpha.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { constructor(context) { this.context = context; } @@ -287276,23 +551805,23 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'datasetId', 'modelId'], - pathParams: ['datasetId', 'modelId', 'projectId'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -287307,27 +551836,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'modelId'], - pathParams: ['datasetId', 'modelId', 'projectId'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287338,26 +551868,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -287369,32 +551899,55 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'modelId'], - pathParams: ['datasetId', 'modelId', 'projectId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Models = Resource$Models; - class Resource$Projects { - 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287407,26 +551960,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287437,32 +551992,98 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigquery_v2.Resource$Projects = Resource$Projects; - class Resource$Routines { + compute_alpha.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { constructor(context) { this.context = context; } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287473,27 +552094,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'datasetId', 'routineId'], - pathParams: ['datasetId', 'projectId', 'routineId'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287504,27 +552126,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'routineId'], - pathParams: ['datasetId', 'projectId', 'routineId'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287535,27 +552158,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287566,27 +552190,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287597,32 +552222,32 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'routineId'], - pathParams: ['datasetId', 'projectId', 'routineId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - bigquery_v2.Resource$Routines = Resource$Routines; - class Resource$Tabledata { + compute_alpha.Resource$Sslcertificates = Resource$Sslcertificates; + class Resource$Sslpolicies { constructor(context) { this.context = context; } - insertAll(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287635,26 +552260,58 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -287666,32 +552323,57 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Tabledata = Resource$Tabledata; - class Resource$Tables { - constructor(context) { - this.context = context; + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -287703,27 +552385,27 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287734,26 +552416,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287766,26 +552448,98 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + compute_alpha.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Storagepools { + constructor(context) { + this.context = context; + } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287796,26 +552550,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -287827,27 +552581,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287858,26 +552613,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287890,25 +552645,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287921,26 +552677,28 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -287951,220 +552709,26 @@ var bigquery_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Tables = Resource$Tables; -})(bigquery_v2 = exports.bigquery_v2 || (exports.bigquery_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 896 */, -/* 897 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _crypto = _interopRequireDefault(__webpack_require__(417)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('md5').update(bytes).digest(); -} - -var _default = md5; -exports.default = _default; - -/***/ }), -/* 898 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -var request = __webpack_require__(753); -var universalUserAgent = __webpack_require__(862); - -const VERSION = "4.3.1"; - -class GraphqlError extends Error { - constructor(request, response) { - const message = response.data.errors[0].message; - super(message); - Object.assign(this, response.data); - this.name = "GraphqlError"; - this.request = request; // Maintains proper stack trace (only available on V8) - - /* istanbul ignore next */ - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - } - -} - -const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"]; -function graphql(request, query, options) { - options = typeof query === "string" ? options = Object.assign({ - query - }, options) : options = query; - const requestOptions = Object.keys(options).reduce((result, key) => { - if (NON_VARIABLE_OPTIONS.includes(key)) { - result[key] = options[key]; - return result; - } - - if (!result.variables) { - result.variables = {}; - } - - result.variables[key] = options[key]; - return result; - }, {}); - return request(requestOptions).then(response => { - if (response.data.errors) { - throw new GraphqlError(requestOptions, { - data: response.data - }); - } - - return response.data.data; - }); -} - -function withDefaults(request$1, newDefaults) { - const newRequest = request$1.defaults(newDefaults); - - const newApi = (query, options) => { - return graphql(newRequest, query, options); - }; - - return Object.assign(newApi, { - defaults: withDefaults.bind(null, newRequest), - endpoint: request.request.endpoint - }); -} - -const graphql$1 = withDefaults(request.request, { - headers: { - "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}` - }, - method: "POST", - url: "/graphql" -}); -function withCustomRequest(customRequest) { - return withDefaults(customRequest, { - method: "POST", - url: "/graphql" - }); -} - -exports.graphql = graphql$1; -exports.withCustomRequest = withCustomRequest; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 899 */, -/* 900 */, -/* 901 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.androidmanagement_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 = __webpack_require__(927); -var androidmanagement_v1; -(function (androidmanagement_v1) { - /** - * Android Management API - * - * The Android Management API provides remote enterprise management of Android devices and apps. - * - * @example - * const {google} = require('googleapis'); - * const androidmanagement = google.androidmanagement('v1'); - * - * @namespace androidmanagement - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Androidmanagement - */ - class Androidmanagement { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.enterprises = new Resource$Enterprises(this.context); - this.signupUrls = new Resource$Signupurls(this.context); - } - } - androidmanagement_v1.Androidmanagement = Androidmanagement; - class Resource$Enterprises { - constructor(context) { - this.context = context; - this.applications = new Resource$Enterprises$Applications(this.context); - this.devices = new Resource$Enterprises$Devices(this.context); - this.enrollmentTokens = new Resource$Enterprises$Enrollmenttokens(this.context); - this.policies = new Resource$Enterprises$Policies(this.context); - this.webApps = new Resource$Enterprises$Webapps(this.context); - this.webTokens = new Resource$Enterprises$Webtokens(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288177,26 +552741,28 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -288207,25 +552773,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288238,31 +552805,32 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidmanagement_v1.Resource$Enterprises = Resource$Enterprises; - class Resource$Enterprises$Applications { + compute_alpha.Resource$Storagepools = Resource$Storagepools; + class Resource$Subnetworks { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288275,31 +552843,25 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Enterprises$Applications = Resource$Enterprises$Applications; - class Resource$Enterprises$Devices { - constructor(context) { - this.context = context; - this.operations = new Resource$Enterprises$Devices$Operations(this.context); - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -288313,25 +552875,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288344,27 +552907,27 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - issueCommand(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -288375,25 +552938,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:issueCommand').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288406,25 +552970,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288437,33 +553002,27 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Enterprises$Devices = Resource$Enterprises$Devices; - class Resource$Enterprises$Devices$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -288474,25 +553033,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listUsable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288505,25 +553065,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288536,25 +553097,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288567,31 +553129,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Enterprises$Devices$Operations = Resource$Enterprises$Devices$Operations; - class Resource$Enterprises$Enrollmenttokens { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288604,25 +553161,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288635,27 +553193,28 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - androidmanagement_v1.Resource$Enterprises$Enrollmenttokens = Resource$Enterprises$Enrollmenttokens; - class Resource$Enterprises$Policies { + compute_alpha.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targetgrpcproxies { constructor(context) { this.context = context; } @@ -288672,22 +553231,23 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -288703,25 +553263,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288734,25 +553295,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288765,31 +553327,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Enterprises$Policies = Resource$Enterprises$Policies; - class Resource$Enterprises$Webapps { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288802,25 +553359,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288833,25 +553391,32 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288864,25 +553429,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288895,25 +553461,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288926,31 +553493,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Enterprises$Webapps = Resource$Enterprises$Webapps; - class Resource$Enterprises$Webtokens { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288963,31 +553525,26 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/webTokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Enterprises$Webtokens = Resource$Enterprises$Webtokens; - class Resource$Signupurls { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289000,114 +553557,28 @@ var androidmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/signupUrls').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidmanagement_v1.Resource$Signupurls = Resource$Signupurls; -})(androidmanagement_v1 = exports.androidmanagement_v1 || (exports.androidmanagement_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 902 */, -/* 903 */, -/* 904 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Node.js module for all known Forge message digests. - * - * @author Dave Longley - * - * Copyright 2011-2017 Digital Bazaar, Inc. - */ -module.exports = __webpack_require__(220); - -__webpack_require__(237); -__webpack_require__(908); -__webpack_require__(12); -__webpack_require__(679); - - -/***/ }), -/* 905 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.ml_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 = __webpack_require__(927); -var ml_v1; -(function (ml_v1) { - /** - * AI Platform Training & Prediction API - * - * An API to enable creating and using machine learning models. - * - * @example - * const {google} = require('googleapis'); - * const ml = google.ml('v1'); - * - * @namespace ml - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Ml - */ - class Ml { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - ml_v1.Ml = Ml; - class Resource$Projects { - constructor(context) { - this.context = context; - this.jobs = new Resource$Projects$Jobs(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.models = new Resource$Projects$Models(this.context); - this.operations = new Resource$Projects$Operations(this.context); - } - explain(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -289118,25 +553589,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:explain').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289149,26 +553621,28 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - predict(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -289179,31 +553653,32 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - ml_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Jobs { + compute_alpha.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289216,25 +553691,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289247,22 +553723,23 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -289278,25 +553755,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289309,22 +553787,23 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -289340,22 +553819,23 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -289371,25 +553851,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289402,25 +553883,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289433,33 +553915,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Jobs = Resource$Projects$Jobs; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.studies = new Resource$Projects$Locations$Studies(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289472,25 +553947,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289503,31 +553979,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289540,25 +554011,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289571,32 +554043,32 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - ml_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Studies { + compute_alpha.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { constructor(context) { this.context = context; - this.trials = new Resource$Projects$Locations$Studies$Trials(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289609,22 +554081,23 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -289640,22 +554113,23 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -289671,22 +554145,55 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -289702,31 +554209,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Locations$Studies = Resource$Projects$Locations$Studies; - class Resource$Projects$Locations$Studies$Trials { - constructor(context) { - this.context = context; - } - addMeasurement(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289739,25 +554241,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:addMeasurement').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - checkEarlyStoppingState(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289770,25 +554273,32 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:checkEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - complete(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289801,25 +554311,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + addInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289832,25 +554343,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289863,25 +554375,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289894,27 +554407,27 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -289925,25 +554438,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289956,25 +554470,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggest(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -289987,34 +554502,27 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; - class Resource$Projects$Models { - constructor(context) { - this.context = context; - this.versions = new Resource$Projects$Models$Versions(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -290025,25 +554533,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290056,25 +554565,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290087,25 +554597,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setBackup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290118,25 +554629,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290149,25 +554661,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290180,25 +554693,32 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290211,25 +554731,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290242,31 +554763,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Models = Resource$Projects$Models; - class Resource$Projects$Models$Versions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290279,25 +554795,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290310,25 +554827,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290341,25 +554859,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290372,25 +554891,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290403,25 +554923,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefault(paramsOrCallback, optionsOrCallback, callback) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290434,31 +554955,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setDefault').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Models$Versions = Resource$Projects$Models$Versions; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290471,25 +554987,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290502,25 +555019,32 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290533,122 +555057,26 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - ml_v1.Resource$Projects$Operations = Resource$Projects$Operations; -})(ml_v1 = exports.ml_v1 || (exports.ml_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 906 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -// Copyright 2018 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.GaxiosError = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -class GaxiosError extends Error { - constructor(message, options, response) { - super(message); - this.response = response; - this.config = options; - this.code = response.status.toString(); - } -} -exports.GaxiosError = GaxiosError; -//# sourceMappingURL=common.js.map - -/***/ }), -/* 907 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.firebasedynamiclinks_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 = __webpack_require__(927); -var firebasedynamiclinks_v1; -(function (firebasedynamiclinks_v1) { - /** - * Firebase Dynamic Links API - * - * Programmatically creates and manages Firebase Dynamic Links. - * - * @example - * const {google} = require('googleapis'); - * const firebasedynamiclinks = google.firebasedynamiclinks('v1'); - * - * @namespace firebasedynamiclinks - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Firebasedynamiclinks - */ - class Firebasedynamiclinks { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.managedShortLinks = new Resource$Managedshortlinks(this.context); - this.shortLinks = new Resource$Shortlinks(this.context); - this.v1 = new Resource$V1(this.context); - } - } - firebasedynamiclinks_v1.Firebasedynamiclinks = Firebasedynamiclinks; - class Resource$Managedshortlinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290661,31 +555089,26 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/managedShortLinks:create').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebasedynamiclinks_v1.Resource$Managedshortlinks = Resource$Managedshortlinks; - class Resource$Shortlinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290698,32 +555121,28 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/shortLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebasedynamiclinks_v1.Resource$Shortlinks = Resource$Shortlinks; - class Resource$V1 { - constructor(context) { - this.context = context; - } - getLinkStats(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -290734,25 +555153,26 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{dynamicLink}/linkStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['dynamicLink'], - pathParams: ['dynamicLink'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - installAttribution(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290765,25 +555185,26 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/installAttribution').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reopenAttribution(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -290796,608 +555217,162 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/reopenAttribution').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebasedynamiclinks_v1.Resource$V1 = Resource$V1; -})(firebasedynamiclinks_v1 = exports.firebasedynamiclinks_v1 || (exports.firebasedynamiclinks_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 908 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(220); -__webpack_require__(54); - -var sha1 = module.exports = forge.sha1 = forge.sha1 || {}; -forge.md.sha1 = forge.md.algorithms.sha1 = sha1; - -/** - * Creates a SHA-1 message digest object. - * - * @return a message digest object. - */ -sha1.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } - - // SHA-1 state contains five 32-bit integers - var _state = null; - - // input buffer - var _input = forge.util.createBuffer(); - - // used for word storage - var _w = new Array(80); - - // message digest object - var md = { - algorithm: 'sha1', - blockLength: 64, - digestLength: 20, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; - - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x67452301, - h1: 0xEFCDAB89, - h2: 0x98BADCFE, - h3: 0x10325476, - h4: 0xC3D2E1F0 - }; - return md; - }; - // start digest automatically for first time - md.start(); - - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = ((len[1] / 0x100000000) >>> 0); - } - - // add bytes to input buffer - _input.putBytes(msg); - - // process bytes - _update(_state, _w, _input); - - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } - - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate SHA-1 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in big-endian order; since length - // is stored in bytes we multiply by 8 and add carry from next int - var next, carry; - var bits = md.fullMessageLength[0] * 8; - for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { - next = md.fullMessageLength[i + 1] * 8; - carry = (next / 0x100000000) >>> 0; - bits += carry; - finalBlock.putInt32(bits >>> 0); - bits = next >>> 0; - } - finalBlock.putInt32(bits); - - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3, - h4: _state.h4 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32(s2.h0); - rval.putInt32(s2.h1); - rval.putInt32(s2.h2); - rval.putInt32(s2.h3); - rval.putInt32(s2.h4); - return rval; - }; - - return md; -}; - -// sha-1 padding bytes not initialized yet -var _padding = null; -var _initialized = false; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); - - // now initialized - _initialized = true; -} - -/** - * Updates a SHA-1 state with the given byte buffer. - * - * @param s the SHA-1 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t, a, b, c, d, e, f, i; - var len = bytes.length(); - while(len >= 64) { - // the w array will be populated with sixteen 32-bit big-endian words - // and then extended into 80 32-bit words according to SHA-1 algorithm - // and for 32-79 using Max Locktyukhin's optimization - - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - e = s.h4; - - // round 1 - for(i = 0; i < 16; ++i) { - t = bytes.getInt32(); - w[i] = t; - f = d ^ (b & (c ^ d)); - t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - for(; i < 20; ++i) { - t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); - t = (t << 1) | (t >>> 31); - w[i] = t; - f = d ^ (b & (c ^ d)); - t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - // round 2 - for(; i < 32; ++i) { - t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); - t = (t << 1) | (t >>> 31); - w[i] = t; - f = b ^ c ^ d; - t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - for(; i < 40; ++i) { - t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); - t = (t << 2) | (t >>> 30); - w[i] = t; - f = b ^ c ^ d; - t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - // round 3 - for(; i < 60; ++i) { - t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); - t = (t << 2) | (t >>> 30); - w[i] = t; - f = (b & c) | (d & (b ^ c)); - t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - // round 4 - for(; i < 80; ++i) { - t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); - t = (t << 2) | (t >>> 30); - w[i] = t; - f = b ^ c ^ d; - t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; - s.h4 = (s.h4 + e) | 0; - - len -= 64; - } -} - - -/***/ }), -/* 909 */, -/* 910 */, -/* 911 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Copyright 2021 The Oppia Authors. All Rights Reserved. -// -// 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. - -/** - * @fileoverview File to handle checks when a draft or work in progress - * pull request is opened or reopened. - */ - -const core = __webpack_require__(470); -const { context, GitHub } = __webpack_require__(469); -const { commentAndAssignUsers } = __webpack_require__(256); - -/** - * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest - * @returns {Boolean} - */ -const isDraftPr = (pullRequest) => { - return pullRequest.draft; -}; - -/** - * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest - * @returns {Boolean} - */ -const isWIPPr = ({ title, body }) => { - return ( - title.toLowerCase().includes('wip') || body.toLowerCase().includes('wip') - ); -}; - -/** - * @param {import('@octokit/rest').Octokit} octokit - * @returns {Promise} - */ -const isSkipCICommit = async (octokit) => { - const pullRequest = context.payload.pull_request; - - const commitParams = { - commit_sha: pullRequest.head.sha, - ...context.repo - }; - const commitResponse = await octokit.git.getCommit(commitParams); - - return ( - commitResponse.data.message.startsWith('[ci skip]') || - commitResponse.data.message.startsWith('[skip ci]') - ); -}; - -module.exports.checkWIP = async () => { - const token = core.getInput('repo-token'); - const octokit = new GitHub(token); - const pullRequest = context.payload.pull_request; - const prAuthor = pullRequest.user.login; - - if (isDraftPr(pullRequest) || isWIPPr(pullRequest)) { - const hasSkipCIMessage = await isSkipCICommit(octokit); - if (!hasSkipCIMessage) { - // Ping and assign PR author. - const link = 'here'.link( - 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia' + - '#wip--draft-pull-requests' - ); - - const commentBody = - 'Hi @' + prAuthor + ', when creating WIP/Draft PRs, ensure that ' + - 'your commit messages are prefixed with **[ci skip]** or ' + - '**[skip ci]** to prevent CI checks from running. ' + - 'You can learn more about it ' + link + '.'; - - await commentAndAssignUsers( - octokit, pullRequest, [prAuthor], commentBody - ); - } - } -}; - - -/***/ }), -/* 912 */, -/* 913 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -/** - * Copyright (c) 2019 Digital Bazaar, Inc. - */ - -var forge = __webpack_require__(239); -__webpack_require__(784); -var asn1 = forge.asn1; - -exports.privateKeyValidator = { - // PrivateKeyInfo - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'PrivateKeyInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // privateKeyAlgorithm - name: 'PrivateKeyInfo.privateKeyAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'privateKeyOid' - }] - }, { - // PrivateKey - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'privateKey' - }] -}; - -exports.publicKeyValidator = { - name: 'SubjectPublicKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'subjectPublicKeyInfo', - value: [{ - name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'publicKeyOid' - }] - }, - // capture group for ed25519PublicKey - { - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - composed: true, - captureBitStringValue: 'ed25519PublicKey' - } - // FIXME: this is capture group for rsaPublicKey, use it in this API or - // discard? - /* { - // subjectPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - value: [{ - // RSAPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'rsaPublicKey' - }] - } */ - ] -}; - - -/***/ }), -/* 914 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.adexchangebuyer_v1_2 = 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 = __webpack_require__(927); -var adexchangebuyer_v1_2; -(function (adexchangebuyer_v1_2) { - /** - * Ad Exchange Buyer API - * - * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. - * - * @example - * const {google} = require('googleapis'); - * const adexchangebuyer = google.adexchangebuyer('v1.2'); - * - * @namespace adexchangebuyer - * @type {Function} - * @version v1.2 - * @variation v1.2 - * @param {object=} options Options for Adexchangebuyer - */ - class Adexchangebuyer { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + setProxyHeader(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, }; - this.accounts = new Resource$Accounts(this.context); - this.creatives = new Resource$Creatives(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - adexchangebuyer_v1_2.Adexchangebuyer = Adexchangebuyer; - class Resource$Accounts { + compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { constructor(context) { this.context = context; } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291408,26 +555383,60 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291438,26 +555447,28 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291468,26 +555479,28 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291498,30 +555511,93 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - adexchangebuyer_v1_2.Resource$Accounts = Resource$Accounts; - class Resource$Creatives { + compute_alpha.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { constructor(context) { this.context = context; } + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -291534,23 +555610,23 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { @@ -291565,22 +555641,54 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidateCache(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -291595,469 +555703,346 @@ var adexchangebuyer_v1_2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_2.Resource$Creatives = Resource$Creatives; -})(adexchangebuyer_v1_2 = exports.adexchangebuyer_v1_2 || (exports.adexchangebuyer_v1_2 = {})); -//# sourceMappingURL=v1.2.js.map - -/***/ }), -/* 915 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var undefined; - -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; - -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; - -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } -} - -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; - -var hasSymbols = __webpack_require__(559)(); - -var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto - -var needsEval = {}; - -var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); - -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; - -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen) { - value = getProto(gen.prototype); - } - } - - INTRINSICS[name] = value; - - return value; -}; - -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; - -var bind = __webpack_require__(739); -var hasOwn = __webpack_require__(174); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); - -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ - -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } - - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - - return { - alias: alias, - name: intrinsicName, - value: value - }; - } - - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; - -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; - - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } - - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; - - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; - - -/***/ }), -/* 916 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -const VERSION = "1.0.0"; - -/** - * @param octokit Octokit instance - * @param options Options passed to Octokit constructor - */ - -function requestLog(octokit) { - octokit.hook.wrap("request", (request, options) => { - octokit.log.debug("request", options); - const start = Date.now(); - const requestOptions = octokit.request.endpoint.parse(options); - const path = requestOptions.url.replace(options.baseUrl, ""); - return request(options).then(response => { - octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); - return response; - }).catch(error => { - octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); - throw error; - }); - }); -} -requestLog.VERSION = VERSION; - -exports.requestLog = requestLog; -//# sourceMappingURL=index.js.map - - -/***/ }), -/* 917 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudbuild_v1alpha2 = 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 = __webpack_require__(927); -var cloudbuild_v1alpha2; -(function (cloudbuild_v1alpha2) { - /** - * Cloud Build API - * - * Creates and manages builds on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const cloudbuild = google.cloudbuild('v1alpha2'); - * - * @namespace cloudbuild - * @type {Function} - * @version v1alpha2 - * @variation v1alpha2 - * @param {object=} options Options for Cloudbuild - */ - class Cloudbuild { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - cloudbuild_v1alpha2.Cloudbuild = Cloudbuild; - class Resource$Projects { - constructor(context) { - this.context = context; - this.workerPools = new Resource$Projects$Workerpools(this.context); + 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validate(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - cloudbuild_v1alpha2.Resource$Projects = Resource$Projects; - class Resource$Projects$Workerpools { + compute_alpha.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getStatus(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + insert(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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292070,25 +556055,26 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292101,25 +556087,32 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292132,25 +556125,26 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292163,27 +556157,27 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -292194,95 +556188,26 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudbuild_v1alpha2.Resource$Projects$Workerpools = Resource$Projects$Workerpools; -})(cloudbuild_v1alpha2 = exports.cloudbuild_v1alpha2 || (exports.cloudbuild_v1alpha2 = {})); -//# sourceMappingURL=v1alpha2.js.map - -/***/ }), -/* 918 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.monitoring_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 = __webpack_require__(927); -var monitoring_v1; -(function (monitoring_v1) { - /** - * Cloud Monitoring API - * - * Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Cloud Monitoring documentation. - * - * @example - * const {google} = require('googleapis'); - * const monitoring = google.monitoring('v1'); - * - * @namespace monitoring - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Monitoring - */ - class Monitoring { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - monitoring_v1.Monitoring = Monitoring; - class Resource$Projects { - constructor(context) { - this.context = context; - this.dashboards = new Resource$Projects$Dashboards(this.context); - } - } - monitoring_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Dashboards { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292295,27 +556220,27 @@ var monitoring_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -292326,25 +556251,26 @@ var monitoring_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292357,25 +556283,26 @@ var monitoring_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292388,25 +556315,32 @@ var monitoring_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292419,105 +556353,26 @@ var monitoring_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - monitoring_v1.Resource$Projects$Dashboards = Resource$Projects$Dashboards; -})(monitoring_v1 = exports.monitoring_v1 || (exports.monitoring_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 919 */ -/***/ (function(module) { - -module.exports = {"_args":[["@octokit/rest@16.43.1","/home/praneeth/opensource/oppiabot"]],"_from":"@octokit/rest@16.43.1","_id":"@octokit/rest@16.43.1","_inBundle":false,"_integrity":"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==","_location":"/@actions/github/@octokit/rest","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@octokit/rest@16.43.1","name":"@octokit/rest","escapedName":"@octokit%2frest","scope":"@octokit","rawSpec":"16.43.1","saveSpec":null,"fetchSpec":"16.43.1"},"_requiredBy":["/@actions/github"],"_resolved":"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz","_spec":"16.43.1","_where":"/home/praneeth/opensource/oppiabot","author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"bugs":{"url":"https://github.com/octokit/rest.js/issues"},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}],"contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"description":"GitHub REST API client for Node.js","devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"files":["index.js","index.d.ts","lib","plugins"],"homepage":"https://github.com/octokit/rest.js#readme","keywords":["octokit","github","rest","api-client"],"license":"MIT","name":"@octokit/rest","nyc":{"ignore":["test"]},"publishConfig":{"access":"public"},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"repository":{"type":"git","url":"git+https://github.com/octokit/rest.js.git"},"scripts":{"build":"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.1"}; - -/***/ }), -/* 920 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.firestore_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 = __webpack_require__(927); -var firestore_v1; -(function (firestore_v1) { - /** - * Cloud Firestore API - * - * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. - * - * @example - * const {google} = require('googleapis'); - * const firestore = google.firestore('v1'); - * - * @namespace firestore - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Firestore - */ - class Firestore { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - firestore_v1.Firestore = Firestore; - class Resource$Projects { - constructor(context) { - this.context = context; - this.databases = new Resource$Projects$Databases(this.context); - this.locations = new Resource$Projects$Locations(this.context); - } - } - firestore_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Databases { - constructor(context) { - this.context = context; - this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); - this.documents = new Resource$Projects$Databases$Documents(this.context); - this.operations = new Resource$Projects$Databases$Operations(this.context); - } - exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292530,25 +556385,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importDocuments(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292561,39 +556417,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1.Resource$Projects$Databases = Resource$Projects$Databases; - class Resource$Projects$Databases$Collectiongroups { - constructor(context) { - this.context = context; - this.fields = new Resource$Projects$Databases$Collectiongroups$Fields(this.context); - this.indexes = new Resource$Projects$Databases$Collectiongroups$Indexes(this.context); - } - } - firestore_v1.Resource$Projects$Databases$Collectiongroups = Resource$Projects$Databases$Collectiongroups; - class Resource$Projects$Databases$Collectiongroups$Fields { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292606,25 +556449,32 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zonequeuedresources { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292637,25 +556487,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/queuedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292668,31 +556519,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'queuedResource'], + pathParams: ['project', 'queuedResource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; - class Resource$Projects$Databases$Collectiongroups$Indexes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292705,25 +556551,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'queuedResource'], + pathParams: ['project', 'queuedResource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292736,25 +556583,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'queuedResource'], + pathParams: ['project', 'queuedResource', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292767,22 +556615,23 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -292798,33 +556647,33 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - firestore_v1.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; - class Resource$Projects$Databases$Documents { + compute_alpha.Resource$Zonequeuedresources = Resource$Zonequeuedresources; + class Resource$Zones { constructor(context) { this.context = context; } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -292835,27 +556684,26 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -292866,135 +556714,214 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Zones = Resource$Zones; +})(compute_alpha = exports.compute_alpha || (exports.compute_alpha = {})); + + +/***/ }), + +/***/ 8963: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.networksecurity_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var networksecurity_v1beta1; +(function (networksecurity_v1beta1) { + /** + * Network Security API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const networksecurity = google.networksecurity('v1beta1'); + * ``` + */ + class Networksecurity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + networksecurity_v1beta1.Networksecurity = Networksecurity; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + networksecurity_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.addressGroups = new Resource$Organizations$Locations$Addressgroups(this.context); + this.operations = new Resource$Organizations$Locations$Operations(this.context); + } + } + networksecurity_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Addressgroups { + constructor(context) { + this.context = context; + } + addItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+addressGroup}:addItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createDocument(paramsOrCallback, optionsOrCallback, callback) { + cloneItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+addressGroup}:cloneItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/addressGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -293002,61 +556929,63 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/addressGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -293064,41 +556993,42 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listen(paramsOrCallback, optionsOrCallback, callback) { + listReferences(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+addressGroup}:listReferences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -293107,17 +557037,18 @@ var firestore_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -293126,112 +557057,115 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + removeItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+addressGroup}:removeItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { + } + networksecurity_v1beta1.Resource$Organizations$Locations$Addressgroups = Resource$Organizations$Locations$Addressgroups; + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; - class Resource$Projects$Databases$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293244,11 +557178,11 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -293256,13 +557190,13 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293275,11 +557209,11 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -293287,12 +557221,38 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + networksecurity_v1beta1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networksecurity_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.addressGroups = new Resource$Projects$Locations$Addressgroups(this.context); + this.authorizationPolicies = + new Resource$Projects$Locations$Authorizationpolicies(this.context); + this.clientTlsPolicies = + new Resource$Projects$Locations$Clienttlspolicies(this.context); + this.gatewaySecurityPolicies = + new Resource$Projects$Locations$Gatewaysecuritypolicies(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.serverTlsPolicies = + new Resource$Projects$Locations$Servertlspolicies(this.context); + this.tlsInspectionPolicies = + new Resource$Projects$Locations$Tlsinspectionpolicies(this.context); + this.urlLists = new Resource$Projects$Locations$Urllists(this.context); + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -293306,10 +557266,10 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293318,10 +557278,10 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -293337,10 +557297,10 @@ var firestore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293349,176 +557309,114 @@ var firestore_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - firestore_v1.Resource$Projects$Databases$Operations = Resource$Projects$Databases$Operations; - class Resource$Projects$Locations { + networksecurity_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Addressgroups { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + addItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+addressGroup}:addItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cloneItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+addressGroup}:cloneItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1.Resource$Projects$Locations = Resource$Projects$Locations; -})(firestore_v1 = exports.firestore_v1 || (exports.firestore_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 921 */, -/* 922 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = '00000000-0000-0000-0000-000000000000'; -exports.default = _default; - -/***/ }), -/* 923 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.run_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 = __webpack_require__(927); -var run_v1; -(function (run_v1) { - /** - * Cloud Run API - * - * Deploy and manage user provided container images that scale automatically based on HTTP traffic. - * - * @example - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * @namespace run - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Run - */ - class Run { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/addressGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - this.api = new Resource$Api(this.context); - this.namespaces = new Resource$Namespaces(this.context); - this.projects = new Resource$Projects(this.context); - } - } - run_v1.Run = Run; - class Resource$Api { - constructor(context) { - this.context = context; - this.v1 = new Resource$Api$V1(this.context); - } - } - run_v1.Resource$Api = Resource$Api; - class Resource$Api$V1 { - constructor(context) { - this.context = context; - this.namespaces = new Resource$Api$V1$Namespaces(this.context); - } - } - run_v1.Resource$Api$V1 = Resource$Api$V1; - class Resource$Api$V1$Namespaces { - constructor(context) { - this.context = context; - this.secrets = new Resource$Api$V1$Namespaces$Secrets(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293531,11 +557429,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -293543,13 +557441,13 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293562,11 +557460,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -293574,19 +557472,45 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Api$V1$Namespaces = Resource$Api$V1$Namespaces; - class Resource$Api$V1$Namespaces$Secrets { - constructor(context) { - this.context = context; + 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293599,11 +557523,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/api/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/addressGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -293611,44 +557535,45 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listReferences(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+addressGroup}:listReferences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceSecret(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293661,11 +557586,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -293673,133 +557598,111 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Api$V1$Namespaces$Secrets = Resource$Api$V1$Namespaces$Secrets; - class Resource$Namespaces { - constructor(context) { - this.context = context; - this.authorizeddomains = new Resource$Namespaces$Authorizeddomains(this.context); - this.configurations = new Resource$Namespaces$Configurations(this.context); - this.domainmappings = new Resource$Namespaces$Domainmappings(this.context); - this.revisions = new Resource$Namespaces$Revisions(this.context); - this.routes = new Resource$Namespaces$Routes(this.context); - this.services = new Resource$Namespaces$Services(this.context); - } - } - run_v1.Resource$Namespaces = Resource$Namespaces; - class Resource$Namespaces$Authorizeddomains { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + removeItems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+addressGroup}:removeItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Namespaces$Authorizeddomains = Resource$Namespaces$Authorizeddomains; - class Resource$Namespaces$Configurations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Namespaces$Configurations = Resource$Namespaces$Configurations; - class Resource$Namespaces$Domainmappings { + networksecurity_v1beta1.Resource$Projects$Locations$Addressgroups = Resource$Projects$Locations$Addressgroups; + class Resource$Projects$Locations$Authorizationpolicies { constructor(context) { this.context = context; } @@ -293809,17 +557712,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/authorizationPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -293828,10 +557732,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -293840,17 +557744,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -293859,10 +557764,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -293871,17 +557776,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293890,10 +557796,42 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -293902,17 +557840,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/authorizationPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293921,35 +557860,164 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Namespaces$Domainmappings = Resource$Namespaces$Domainmappings; - class Resource$Namespaces$Revisions { + networksecurity_v1beta1.Resource$Projects$Locations$Authorizationpolicies = Resource$Projects$Locations$Authorizationpolicies; + class Resource$Projects$Locations$Clienttlspolicies { 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/clientTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -293958,10 +558026,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -293977,10 +558045,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293989,10 +558057,42 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -294001,17 +558101,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/clientTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294020,36 +558121,31 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Namespaces$Revisions = Resource$Namespaces$Revisions; - class Resource$Namespaces$Routes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -294057,48 +558153,83 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Namespaces$Routes = Resource$Namespaces$Routes; - class Resource$Namespaces$Services { + networksecurity_v1beta1.Resource$Projects$Locations$Clienttlspolicies = Resource$Projects$Locations$Clienttlspolicies; + class Resource$Projects$Locations$Gatewaysecuritypolicies { constructor(context) { this.context = context; + this.rules = + new Resource$Projects$Locations$Gatewaysecuritypolicies$Rules(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -294106,17 +558237,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/gatewaySecurityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -294125,10 +558257,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -294137,17 +558269,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -294156,10 +558289,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -294168,17 +558301,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294187,10 +558321,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -294199,17 +558333,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/gatewaySecurityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294218,30 +558353,31 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceService(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -294249,124 +558385,100 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Namespaces$Services = Resource$Namespaces$Services; - class Resource$Projects { + networksecurity_v1beta1.Resource$Projects$Locations$Gatewaysecuritypolicies = Resource$Projects$Locations$Gatewaysecuritypolicies; + class Resource$Projects$Locations$Gatewaysecuritypolicies$Rules { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); } - } - run_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains(this.context); - this.configurations = new Resource$Projects$Locations$Configurations(this.context); - this.domainmappings = new Resource$Projects$Locations$Domainmappings(this.context); - this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); - this.revisions = new Resource$Projects$Locations$Revisions(this.context); - this.routes = new Resource$Projects$Locations$Routes(this.context); - this.secrets = new Resource$Projects$Locations$Secrets(this.context); - this.services = new Resource$Projects$Locations$Services(this.context); - } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Authorizeddomains { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Authorizeddomains = Resource$Projects$Locations$Authorizeddomains; - class Resource$Projects$Locations$Configurations { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294375,10 +558487,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -294387,17 +558499,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/rules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294406,19 +558519,51 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Projects$Locations$Configurations = Resource$Projects$Locations$Configurations; - class Resource$Projects$Locations$Domainmappings { + networksecurity_v1beta1.Resource$Projects$Locations$Gatewaysecuritypolicies$Rules = Resource$Projects$Locations$Gatewaysecuritypolicies$Rules; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294431,22 +558576,22 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -294462,10 +558607,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -294474,10 +558619,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -294493,10 +558638,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294505,10 +558650,10 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -294524,79 +558669,81 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; - class Resource$Projects$Locations$Namespaces { + networksecurity_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Servertlspolicies { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/serverTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -294604,19 +558751,13 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; - class Resource$Projects$Locations$Revisions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294629,11 +558770,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -294641,41 +558782,42 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -294684,17 +558826,18 @@ var run_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/serverTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294703,36 +558846,31 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Revisions = Resource$Projects$Locations$Revisions; - class Resource$Projects$Locations$Routes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -294740,129 +558878,133 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Routes = Resource$Projects$Locations$Routes; - class Resource$Projects$Locations$Secrets { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + networksecurity_v1beta1.Resource$Projects$Locations$Servertlspolicies = Resource$Projects$Locations$Servertlspolicies; + class Resource$Projects$Locations$Tlsinspectionpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/tlsInspectionPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceSecret(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -294870,98 +559012,95 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Secrets = Resource$Projects$Locations$Secrets; - class Resource$Projects$Locations$Services { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/tlsInspectionPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -294969,13 +559108,19 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + networksecurity_v1beta1.Resource$Projects$Locations$Tlsinspectionpolicies = Resource$Projects$Locations$Tlsinspectionpolicies; + class Resource$Projects$Locations$Urllists { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294988,25 +559133,25 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/urlLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295019,25 +559164,25 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceService(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295050,11 +559195,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -295062,13 +559207,13 @@ var run_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295081,25 +559226,25 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/urlLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295112,31 +559257,105 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - run_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; -})(run_v1 = exports.run_v1 || (exports.run_v1 = {})); -//# sourceMappingURL=v1.js.map + networksecurity_v1beta1.Resource$Projects$Locations$Urllists = Resource$Projects$Locations$Urllists; +})(networksecurity_v1beta1 = exports.networksecurity_v1beta1 || (exports.networksecurity_v1beta1 = {})); + + +/***/ }), + +/***/ 8975: +/***/ (function(module, __unusedexports, __webpack_require__) { + +/*global module*/ +var Buffer = __webpack_require__(4293).Buffer; + +module.exports = function toString(obj) { + if (typeof obj === 'string') + return obj; + if (typeof obj === 'number' || Buffer.isBuffer(obj)) + return obj.toString(); + return JSON.stringify(obj); +}; + + +/***/ }), + +/***/ 8984: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2019 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. +/* global window */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fromArrayBufferToHex = exports.hasBrowserCrypto = exports.createCrypto = void 0; +const crypto_1 = __webpack_require__(378); +const crypto_2 = __webpack_require__(1386); +function createCrypto() { + if (hasBrowserCrypto()) { + return new crypto_1.BrowserCrypto(); + } + return new crypto_2.NodeCrypto(); +} +exports.createCrypto = createCrypto; +function hasBrowserCrypto() { + return (typeof window !== 'undefined' && + typeof window.crypto !== 'undefined' && + typeof window.crypto.subtle !== 'undefined'); +} +exports.hasBrowserCrypto = hasBrowserCrypto; +/** + * Converts an ArrayBuffer to a hexadecimal string. + * @param arrayBuffer The ArrayBuffer to convert to hexadecimal string. + * @return The hexadecimal encoding of the ArrayBuffer. + */ +function fromArrayBufferToHex(arrayBuffer) { + // Convert buffer to byte array. + const byteArray = Array.from(new Uint8Array(arrayBuffer)); + // Convert bytes to hex string. + return byteArray + .map(byte => { + return byte.toString(16).padStart(2, '0'); + }) + .join(''); +} +exports.fromArrayBufferToHex = fromArrayBufferToHex; +//# sourceMappingURL=crypto.js.map /***/ }), -/* 924 */ + +/***/ 8987: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -295154,49 +559373,49 @@ var run_v1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.jobs_v3 = void 0; +exports.cloudresourcemanager_v3 = 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 = __webpack_require__(927); -var jobs_v3; -(function (jobs_v3) { +var cloudresourcemanager_v3; +(function (cloudresourcemanager_v3) { /** - * Cloud Talent Solution API + * Cloud Resource Manager API * - * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. * * @example + * ```js * const {google} = require('googleapis'); - * const jobs = google.jobs('v3'); - * - * @namespace jobs - * @type {Function} - * @version v3 - * @variation v3 - * @param {object=} options Options for Jobs + * const cloudresourcemanager = google.cloudresourcemanager('v3'); + * ``` */ - class Jobs { + class Cloudresourcemanager { constructor(options, google) { this.context = { _options: options || {}, google, }; + this.effectiveTags = new Resource$Effectivetags(this.context); + this.folders = new Resource$Folders(this.context); + this.liens = new Resource$Liens(this.context); + this.operations = new Resource$Operations(this.context); + this.organizations = new Resource$Organizations(this.context); this.projects = new Resource$Projects(this.context); + this.tagBindings = new Resource$Tagbindings(this.context); + this.tagKeys = new Resource$Tagkeys(this.context); + this.tagValues = new Resource$Tagvalues(this.context); } } - jobs_v3.Jobs = Jobs; - class Resource$Projects { + cloudresourcemanager_v3.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Effectivetags { constructor(context) { this.context = context; - this.clientEvents = new Resource$Projects$Clientevents(this.context); - this.companies = new Resource$Projects$Companies(this.context); - this.jobs = new Resource$Projects$Jobs(this.context); } - complete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295209,70 +559428,32 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/effectiveTags').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); - } - } - } - jobs_v3.Resource$Projects = Resource$Projects; - class Resource$Projects$Clientevents { - 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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - jobs_v3.Resource$Projects$Clientevents = Resource$Projects$Clientevents; - class Resource$Projects$Companies { + cloudresourcemanager_v3.Resource$Effectivetags = Resource$Effectivetags; + class Resource$Folders { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295283,27 +559464,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295314,7 +559494,7 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -295326,15 +559506,14 @@ var jobs_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295345,7 +559524,7 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -295357,13 +559536,13 @@ var jobs_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295376,27 +559555,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295407,33 +559585,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v3.Resource$Projects$Companies = Resource$Projects$Companies; - class Resource$Projects$Jobs { - constructor(context) { - this.context = context; - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295444,27 +559615,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295475,27 +559645,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295506,25 +559675,25 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295537,25 +559706,25 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295568,27 +559737,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295599,11 +559767,11 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -295611,15 +559779,20 @@ var jobs_v3; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v3.Resource$Folders = Resource$Folders; + class Resource$Liens { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295630,27 +559803,26 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForAlert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295661,451 +559833,24 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v3.Resource$Projects$Jobs = Resource$Projects$Jobs; -})(jobs_v3 = exports.jobs_v3 || (exports.jobs_v3 = {})); -//# sourceMappingURL=v3.js.map - -/***/ }), -/* 925 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.sasportal = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1alpha1_1 = __webpack_require__(387); -exports.VERSIONS = { - v1alpha1: v1alpha1_1.sasportal_v1alpha1.Sasportal, -}; -function sasportal(versionOrOptions) { - return googleapis_common_1.getAPI('sasportal', versionOrOptions, exports.VERSIONS, this); -} -exports.sasportal = sasportal; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 926 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.manufacturers = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(21); -exports.VERSIONS = { - v1: v1_1.manufacturers_v1.Manufacturers, -}; -function manufacturers(versionOrOptions) { - return googleapis_common_1.getAPI('manufacturers', versionOrOptions, exports.VERSIONS, this); -} -exports.manufacturers = manufacturers; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 927 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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 }); -var google_auth_library_1 = __webpack_require__(668); -Object.defineProperty(exports, "OAuth2Client", { enumerable: true, get: function () { return google_auth_library_1.OAuth2Client; } }); -Object.defineProperty(exports, "JWT", { enumerable: true, get: function () { return google_auth_library_1.JWT; } }); -Object.defineProperty(exports, "Compute", { enumerable: true, get: function () { return google_auth_library_1.Compute; } }); -Object.defineProperty(exports, "UserRefreshClient", { enumerable: true, get: function () { return google_auth_library_1.UserRefreshClient; } }); -Object.defineProperty(exports, "DefaultTransporter", { enumerable: true, get: function () { return google_auth_library_1.DefaultTransporter; } }); -Object.defineProperty(exports, "GoogleAuth", { enumerable: true, get: function () { return google_auth_library_1.GoogleAuth; } }); -var apiIndex_1 = __webpack_require__(996); -Object.defineProperty(exports, "getAPI", { enumerable: true, get: function () { return apiIndex_1.getAPI; } }); -var apirequest_1 = __webpack_require__(276); -Object.defineProperty(exports, "createAPIRequest", { enumerable: true, get: function () { return apirequest_1.createAPIRequest; } }); -var authplus_1 = __webpack_require__(332); -Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return authplus_1.AuthPlus; } }); -var discovery_1 = __webpack_require__(537); -Object.defineProperty(exports, "Discovery", { enumerable: true, get: function () { return discovery_1.Discovery; } }); -var endpoint_1 = __webpack_require__(165); -Object.defineProperty(exports, "Endpoint", { enumerable: true, get: function () { return endpoint_1.Endpoint; } }); -//# sourceMappingURL=index.js.map - -/***/ }), -/* 928 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Functions to output keys in SSH-friendly formats. - * - * This is part of the Forge project which may be used under the terms of - * either the BSD License or the GNU General Public License (GPL) Version 2. - * - * See: https://github.com/digitalbazaar/forge/blob/cbebca3780658703d925b61b2caffb1d263a6c1d/LICENSE - * - * @author https://github.com/shellac - */ -var forge = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(0); -__webpack_require__(237); -__webpack_require__(908); -__webpack_require__(54); - -var ssh = module.exports = forge.ssh = forge.ssh || {}; - -/** - * Encodes (and optionally encrypts) a private RSA key as a Putty PPK file. - * - * @param privateKey the key. - * @param passphrase a passphrase to protect the key (falsy for no encryption). - * @param comment a comment to include in the key file. - * - * @return the PPK file as a string. - */ -ssh.privateKeyToPutty = function(privateKey, passphrase, comment) { - comment = comment || ''; - passphrase = passphrase || ''; - var algorithm = 'ssh-rsa'; - var encryptionAlgorithm = (passphrase === '') ? 'none' : 'aes256-cbc'; - - var ppk = 'PuTTY-User-Key-File-2: ' + algorithm + '\r\n'; - ppk += 'Encryption: ' + encryptionAlgorithm + '\r\n'; - ppk += 'Comment: ' + comment + '\r\n'; - - // public key into buffer for ppk - var pubbuffer = forge.util.createBuffer(); - _addStringToBuffer(pubbuffer, algorithm); - _addBigIntegerToBuffer(pubbuffer, privateKey.e); - _addBigIntegerToBuffer(pubbuffer, privateKey.n); - - // write public key - var pub = forge.util.encode64(pubbuffer.bytes(), 64); - var length = Math.floor(pub.length / 66) + 1; // 66 = 64 + \r\n - ppk += 'Public-Lines: ' + length + '\r\n'; - ppk += pub; - - // private key into a buffer - var privbuffer = forge.util.createBuffer(); - _addBigIntegerToBuffer(privbuffer, privateKey.d); - _addBigIntegerToBuffer(privbuffer, privateKey.p); - _addBigIntegerToBuffer(privbuffer, privateKey.q); - _addBigIntegerToBuffer(privbuffer, privateKey.qInv); - - // optionally encrypt the private key - var priv; - if(!passphrase) { - // use the unencrypted buffer - priv = forge.util.encode64(privbuffer.bytes(), 64); - } else { - // encrypt RSA key using passphrase - var encLen = privbuffer.length() + 16 - 1; - encLen -= encLen % 16; - - // pad private key with sha1-d data -- needs to be a multiple of 16 - var padding = _sha1(privbuffer.bytes()); - - padding.truncate(padding.length() - encLen + privbuffer.length()); - privbuffer.putBuffer(padding); - - var aeskey = forge.util.createBuffer(); - aeskey.putBuffer(_sha1('\x00\x00\x00\x00', passphrase)); - aeskey.putBuffer(_sha1('\x00\x00\x00\x01', passphrase)); - - // encrypt some bytes using CBC mode - // key is 40 bytes, so truncate *by* 8 bytes - var cipher = forge.aes.createEncryptionCipher(aeskey.truncate(8), 'CBC'); - cipher.start(forge.util.createBuffer().fillWithByte(0, 16)); - cipher.update(privbuffer.copy()); - cipher.finish(); - var encrypted = cipher.output; - - // Note: this appears to differ from Putty -- is forge wrong, or putty? - // due to padding we finish as an exact multiple of 16 - encrypted.truncate(16); // all padding - - priv = forge.util.encode64(encrypted.bytes(), 64); - } - - // output private key - length = Math.floor(priv.length / 66) + 1; // 64 + \r\n - ppk += '\r\nPrivate-Lines: ' + length + '\r\n'; - ppk += priv; - - // MAC - var mackey = _sha1('putty-private-key-file-mac-key', passphrase); - - var macbuffer = forge.util.createBuffer(); - _addStringToBuffer(macbuffer, algorithm); - _addStringToBuffer(macbuffer, encryptionAlgorithm); - _addStringToBuffer(macbuffer, comment); - macbuffer.putInt32(pubbuffer.length()); - macbuffer.putBuffer(pubbuffer); - macbuffer.putInt32(privbuffer.length()); - macbuffer.putBuffer(privbuffer); - - var hmac = forge.hmac.create(); - hmac.start('sha1', mackey); - hmac.update(macbuffer.bytes()); - - ppk += '\r\nPrivate-MAC: ' + hmac.digest().toHex() + '\r\n'; - - return ppk; -}; - -/** - * Encodes a public RSA key as an OpenSSH file. - * - * @param key the key. - * @param comment a comment. - * - * @return the public key in OpenSSH format. - */ -ssh.publicKeyToOpenSSH = function(key, comment) { - var type = 'ssh-rsa'; - comment = comment || ''; - - var buffer = forge.util.createBuffer(); - _addStringToBuffer(buffer, type); - _addBigIntegerToBuffer(buffer, key.e); - _addBigIntegerToBuffer(buffer, key.n); - - return type + ' ' + forge.util.encode64(buffer.bytes()) + ' ' + comment; -}; - -/** - * Encodes a private RSA key as an OpenSSH file. - * - * @param key the key. - * @param passphrase a passphrase to protect the key (falsy for no encryption). - * - * @return the public key in OpenSSH format. - */ -ssh.privateKeyToOpenSSH = function(privateKey, passphrase) { - if(!passphrase) { - return forge.pki.privateKeyToPem(privateKey); - } - // OpenSSH private key is just a legacy format, it seems - return forge.pki.encryptRsaPrivateKey(privateKey, passphrase, - {legacy: true, algorithm: 'aes128'}); -}; - -/** - * Gets the SSH fingerprint for the given public key. - * - * @param options the options to use. - * [md] the message digest object to use (defaults to forge.md.md5). - * [encoding] an alternative output encoding, such as 'hex' - * (defaults to none, outputs a byte buffer). - * [delimiter] the delimiter to use between bytes for 'hex' encoded - * output, eg: ':' (defaults to none). - * - * @return the fingerprint as a byte buffer or other encoding based on options. - */ -ssh.getPublicKeyFingerprint = function(key, options) { - options = options || {}; - var md = options.md || forge.md.md5.create(); - - var type = 'ssh-rsa'; - var buffer = forge.util.createBuffer(); - _addStringToBuffer(buffer, type); - _addBigIntegerToBuffer(buffer, key.e); - _addBigIntegerToBuffer(buffer, key.n); - - // hash public key bytes - md.start(); - md.update(buffer.getBytes()); - var digest = md.digest(); - if(options.encoding === 'hex') { - var hex = digest.toHex(); - if(options.delimiter) { - return hex.match(/.{2}/g).join(options.delimiter); - } - return hex; - } else if(options.encoding === 'binary') { - return digest.getBytes(); - } else if(options.encoding) { - throw new Error('Unknown encoding "' + options.encoding + '".'); - } - return digest; -}; - -/** - * Adds len(val) then val to a buffer. - * - * @param buffer the buffer to add to. - * @param val a big integer. - */ -function _addBigIntegerToBuffer(buffer, val) { - var hexVal = val.toString(16); - // ensure 2s complement +ve - if(hexVal[0] >= '8') { - hexVal = '00' + hexVal; - } - var bytes = forge.util.hexToBytes(hexVal); - buffer.putInt32(bytes.length); - buffer.putBytes(bytes); -} - -/** - * Adds len(val) then val to a buffer. - * - * @param buffer the buffer to add to. - * @param val a string. - */ -function _addStringToBuffer(buffer, val) { - buffer.putInt32(val.length); - buffer.putString(val); -} - -/** - * Hashes the arguments into one value using SHA-1. - * - * @return the sha1 hash of the provided arguments. - */ -function _sha1() { - var sha = forge.md.sha1.create(); - var num = arguments.length; - for (var i = 0; i < num; ++i) { - sha.update(arguments[i]); - } - return sha.digest(); -} - - -/***/ }), -/* 929 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = hasNextPage - -const deprecate = __webpack_require__(370) -const getPageLinks = __webpack_require__(577) - -function hasNextPage (link) { - deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).next -} - - -/***/ }), -/* 930 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.poly_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 = __webpack_require__(927); -var poly_v1; -(function (poly_v1) { - /** - * Poly API - * - * The Poly API provides read access to assets hosted on <a href="https://poly.google.com">poly.google.com</a> to all, and upload access to <a href="https://poly.google.com">poly.google.com</a> for whitelisted accounts. - * - * @example - * const {google} = require('googleapis'); - * const poly = google.poly('v1'); - * - * @namespace poly - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Poly - */ - class Poly { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.assets = new Resource$Assets(this.context); - this.users = new Resource$Users(this.context); - } - } - poly_v1.Poly = Poly; - class Resource$Assets { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296118,10 +559863,10 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -296130,10 +559875,10 @@ var poly_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -296148,10 +559893,10 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -296160,29 +559905,20 @@ var poly_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - poly_v1.Resource$Assets = Resource$Assets; - class Resource$Users { - constructor(context) { - this.context = context; - this.assets = new Resource$Users$Assets(this.context); - this.likedassets = new Resource$Users$Likedassets(this.context); - } - } - poly_v1.Resource$Users = Resource$Users; - class Resource$Users$Assets { + cloudresourcemanager_v3.Resource$Liens = Resource$Liens; + class Resource$Operations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296193,10 +559929,10 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -296205,19 +559941,19 @@ var poly_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - poly_v1.Resource$Users$Assets = Resource$Users$Assets; - class Resource$Users$Likedassets { + cloudresourcemanager_v3.Resource$Operations = Resource$Operations; + class Resource$Organizations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296230,10 +559966,10 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/likedassets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -296242,82 +559978,15 @@ var poly_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - poly_v1.Resource$Users$Likedassets = Resource$Users$Likedassets; -})(poly_v1 = exports.poly_v1 || (exports.poly_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 931 */, -/* 932 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.vision_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 = __webpack_require__(927); -var vision_v1; -(function (vision_v1) { - /** - * Cloud Vision API - * - * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. - * - * @example - * const {google} = require('googleapis'); - * const vision = google.vision('v1'); - * - * @namespace vision - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Vision - */ - class Vision { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.files = new Resource$Files(this.context); - this.images = new Resource$Images(this.context); - this.locations = new Resource$Locations(this.context); - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - } - } - vision_v1.Vision = Vision; - class Resource$Files { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296328,25 +559997,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296359,11 +560028,11 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/organizations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -296371,20 +560040,15 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Files = Resource$Files; - class Resource$Images { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296395,25 +560059,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296426,40 +560090,32 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1.Resource$Images = Resource$Images; - class Resource$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Locations$Operations(this.context); - } - } - vision_v1.Resource$Locations = Resource$Locations; - class Resource$Locations$Operations { + cloudresourcemanager_v3.Resource$Organizations = Resource$Organizations; + class Resource$Projects { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296470,33 +560126,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Locations$Operations = Resource$Locations$Operations; - class Resource$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296507,11 +560156,11 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -296519,15 +560168,14 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296538,11 +560186,11 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -296550,14 +560198,15 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296568,22 +560217,22 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -296598,43 +560247,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Operations = Resource$Operations; - class Resource$Projects { - constructor(context) { - this.context = context; - this.files = new Resource$Projects$Files(this.context); - this.images = new Resource$Projects$Images(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.operations = new Resource$Projects$Operations(this.context); - } - } - vision_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Files { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296645,27 +560277,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296676,33 +560307,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - vision_v1.Resource$Projects$Files = Resource$Projects$Files; - class Resource$Projects$Images { - constructor(context) { - this.context = context; + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296713,25 +560337,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/projects:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296744,42 +560368,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Projects$Images = Resource$Projects$Images; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.files = new Resource$Projects$Locations$Files(this.context); - this.images = new Resource$Projects$Locations$Images(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.products = new Resource$Projects$Locations$Products(this.context); - this.productSets = new Resource$Projects$Locations$Productsets(this.context); - } - } - vision_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Files { - constructor(context) { - this.context = context; - } - annotate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296792,25 +560399,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296823,31 +560430,31 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; - class Resource$Projects$Locations$Images { + cloudresourcemanager_v3.Resource$Projects = Resource$Projects; + class Resource$Tagbindings { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296860,25 +560467,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/tagBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296891,33 +560498,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296928,34 +560528,32 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/tagBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Products { + cloudresourcemanager_v3.Resource$Tagbindings = Resource$Tagbindings; + class Resource$Tagkeys { constructor(context) { this.context = context; - this.referenceImages = new Resource$Projects$Locations$Products$Referenceimages(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296966,27 +560564,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/tagKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -296997,10 +560594,10 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -297009,15 +560606,14 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297028,10 +560624,10 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -297040,13 +560636,13 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297059,25 +560655,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getNamespaced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297090,27 +560686,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/tagKeys/namespaced').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297121,33 +560716,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/tagKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Projects$Locations$Products = Resource$Projects$Locations$Products; - class Resource$Projects$Locations$Products$Referenceimages { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297158,25 +560746,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297189,25 +560777,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297220,27 +560808,33 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v3.Resource$Tagkeys = Resource$Tagkeys; + class Resource$Tagvalues { + constructor(context) { + this.context = context; + this.tagHolds = new Resource$Tagvalues$Tagholds(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297251,34 +560845,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/tagValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Projects$Locations$Products$Referenceimages = Resource$Projects$Locations$Products$Referenceimages; - class Resource$Projects$Locations$Productsets { - constructor(context) { - this.context = context; - this.products = new Resource$Projects$Locations$Productsets$Products(this.context); - } - addProduct(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297289,11 +560875,11 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:addProduct').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -297301,15 +560887,14 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297320,25 +560905,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297351,25 +560936,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getNamespaced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297382,27 +560967,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/tagValues/namespaced').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297413,27 +560997,26 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/productSets:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/tagValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -297444,25 +561027,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297475,25 +561058,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeProduct(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297506,31 +561089,31 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:removeProduct').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - vision_v1.Resource$Projects$Locations$Productsets = Resource$Projects$Locations$Productsets; - class Resource$Projects$Locations$Productsets$Products { + cloudresourcemanager_v3.Resource$Tagvalues = Resource$Tagvalues; + class Resource$Tagvalues$Tagholds { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297543,31 +561126,25 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/tagHolds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Projects$Locations$Productsets$Products = Resource$Projects$Locations$Productsets$Products; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297580,11 +561157,11 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -297592,473 +561169,51 @@ var vision_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vision_v1.Resource$Projects$Operations = Resource$Projects$Operations; -})(vision_v1 = exports.vision_v1 || (exports.vision_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 933 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.alertcenter = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1beta1_1 = __webpack_require__(359); -exports.VERSIONS = { - v1beta1: v1beta1_1.alertcenter_v1beta1.Alertcenter, -}; -function alertcenter(versionOrOptions) { - return googleapis_common_1.getAPI('alertcenter', versionOrOptions, exports.VERSIONS, this); -} -exports.alertcenter = alertcenter; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 934 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var getSideChannel = __webpack_require__(701); -var utils = __webpack_require__(567); -var formats = __webpack_require__(852); -var has = Object.prototype.hasOwnProperty; - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; - -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; - -var toISO = Date.prototype.toISOString; - -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' - || typeof v === 'number' - || typeof v === 'boolean' - || typeof v === 'symbol' - || typeof v === 'bigint'; -}; - -var stringify = function stringify( - object, - prefix, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - sideChannel -) { - var obj = object; - - if (sideChannel.has(object)) { - throw new RangeError('Cyclic object value'); - } - - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); + 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://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/tagHolds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - return value; - }); - } - - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - - obj = ''; - } - - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key]; - - if (skipNulls && value === null) { - continue; - } - - var keyPrefix = isArray(obj) - ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix - : prefix + (allowDots ? '.' + key : '[' + key + ']'); - - sideChannel.set(object, true); - var valueSideChannel = getSideChannel(); - pushToArray(values, stringify( - value, - keyPrefix, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - valueSideChannel - )); - } - - return values; -}; - -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } - - if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); - } - format = opts.format; - } - var formatter = formats.formatters[format]; - - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; - } - - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var arrayFormat; - if (opts && opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if (opts && 'indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (options.sort) { - objKeys.sort(options.sort); - } - - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify( - obj[key], - key, - generateArrayPrefix, - options.strictNullHandling, - options.skipNulls, - options.encode ? options.encoder : null, - options.filter, - options.sort, - options.allowDots, - options.serializeDate, - options.format, - options.formatter, - options.encodeValuesOnly, - options.charset, - sideChannel - )); - } - - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; - - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; } } + cloudresourcemanager_v3.Resource$Tagvalues$Tagholds = Resource$Tagvalues$Tagholds; +})(cloudresourcemanager_v3 = exports.cloudresourcemanager_v3 || (exports.cloudresourcemanager_v3 = {})); - return joined.length > 0 ? prefix + joined : ''; -}; - - -/***/ }), -/* 935 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.gmail = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(579); -exports.VERSIONS = { - v1: v1_1.gmail_v1.Gmail, -}; -function gmail(versionOrOptions) { - return googleapis_common_1.getAPI('gmail', versionOrOptions, exports.VERSIONS, this); -} -exports.gmail = gmail; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 936 */, -/* 937 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.dlp = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(772); -exports.VERSIONS = { - v2: v2_1.dlp_v2.Dlp, -}; -function dlp(versionOrOptions) { - return googleapis_common_1.getAPI('dlp', versionOrOptions, exports.VERSIONS, this); -} -exports.dlp = dlp; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 938 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -/** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const fs = __webpack_require__(747); -const forge = __webpack_require__(285); -const util_1 = __webpack_require__(669); -const readFile = util_1.promisify(fs.readFile); -function getPem(filename, callback) { - if (callback) { - getPemAsync(filename) - .then(pem => callback(null, pem)) - .catch(err => callback(err, null)); - } - else { - return getPemAsync(filename); - } -} -exports.getPem = getPem; -function getPemAsync(filename) { - return readFile(filename, { encoding: 'base64' }).then(keyp12 => { - return convertToPem(keyp12); - }); -} -/** - * Converts a P12 in base64 encoding to a pem. - * @param p12base64 String containing base64 encoded p12. - * @returns a string containing the pem. - */ -function convertToPem(p12base64) { - const p12Der = forge.util.decode64(p12base64); - const p12Asn1 = forge.asn1.fromDer(p12Der); - const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret'); - const bags = p12.getBags({ friendlyName: 'privatekey' }); - if (bags.friendlyName) { - const privateKey = bags.friendlyName[0].key; - const pem = forge.pki.privateKeyToPem(privateKey); - return pem.replace(/\r\n/g, '\n'); - } - else { - throw new Error('Unable to get friendly name.'); - } -} -//# sourceMappingURL=index.js.map -/***/ }), -/* 939 */ +/***/ 8991: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -298076,112 +561231,49 @@ function convertToPem(p12base64) { // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.chat_v1 = void 0; +exports.servicedirectory_v1beta1 = 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 = __webpack_require__(927); -var chat_v1; -(function (chat_v1) { +var servicedirectory_v1beta1; +(function (servicedirectory_v1beta1) { /** - * Hangouts Chat API + * Service Directory API * - * Enables bots to fetch information and perform actions in Hangouts Chat. + * Service Directory is a platform for discovering, publishing, and connecting services. * * @example + * ```js * const {google} = require('googleapis'); - * const chat = google.chat('v1'); - * - * @namespace chat - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Chat + * const servicedirectory = google.servicedirectory('v1beta1'); + * ``` */ - class Chat { + class Servicedirectory { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.spaces = new Resource$Spaces(this.context); + this.projects = new Resource$Projects(this.context); } } - chat_v1.Chat = Chat; - class Resource$Spaces { + servicedirectory_v1beta1.Servicedirectory = Servicedirectory; + class Resource$Projects { constructor(context) { this.context = context; - this.members = new Resource$Spaces$Members(this.context); - this.messages = new Resource$Spaces$Messages(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://chat.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://chat.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/spaces').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); - } + this.locations = new Resource$Projects$Locations(this.context); } } - chat_v1.Resource$Spaces = Resource$Spaces; - class Resource$Spaces$Members { + servicedirectory_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); + this.registrationPolicies = + new Resource$Projects$Locations$Registrationpolicies(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -298196,10 +561288,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298208,10 +561300,10 @@ var chat_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -298227,29 +561319,33 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - chat_v1.Resource$Spaces$Members = Resource$Spaces$Members; - class Resource$Spaces$Messages { + servicedirectory_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Namespaces { constructor(context) { this.context = context; + this.services = new Resource$Projects$Locations$Namespaces$Services(this.context); + this.serviceWorkloads = + new Resource$Projects$Locations$Namespaces$Serviceworkloads(this.context); + this.workloads = new Resource$Projects$Locations$Namespaces$Workloads(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -298264,10 +561360,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -298276,10 +561372,10 @@ var chat_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -298295,10 +561391,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -298307,10 +561403,10 @@ var chat_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -298326,10 +561422,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298338,122 +561434,44 @@ var chat_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - chat_v1.Resource$Spaces$Messages = Resource$Spaces$Messages; -})(chat_v1 = exports.chat_v1 || (exports.chat_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 940 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.container_v1beta1 = 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 = __webpack_require__(927); -var container_v1beta1; -(function (container_v1beta1) { - /** - * Kubernetes Engine API - * - * Builds and manages container-based applications, powered by the open source Kubernetes technology. - * - * @example - * const {google} = require('googleapis'); - * const container = google.container('v1beta1'); - * - * @namespace container - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Container - */ - class Container { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - container_v1beta1.Container = Container; - class Resource$Projects { - constructor(context) { - this.context = context; - this.aggregated = new Resource$Projects$Aggregated(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.zones = new Resource$Projects$Zones(this.context); - } - } - container_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Aggregated { - constructor(context) { - this.context = context; - this.usableSubnetworks = new Resource$Projects$Aggregated$Usablesubnetworks(this.context); - } - } - container_v1beta1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; - class Resource$Projects$Aggregated$Usablesubnetworks { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -298467,10 +561485,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298479,21 +561497,13 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1beta1.Resource$Projects$Aggregated$Usablesubnetworks = Resource$Projects$Aggregated$Usablesubnetworks; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.clusters = new Resource$Projects$Locations$Clusters(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); - } - getServerConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -298506,11 +561516,11 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -298518,99 +561528,102 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Clusters { - constructor(context) { - this.context = context; - this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(this.context); - this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(this.context); - } - completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Services { + constructor(context) { + this.context = context; + this.endpoints = + new Resource$Projects$Locations$Namespaces$Services$Endpoints(this.context); + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -298619,10 +561632,10 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -298631,14 +561644,15 @@ var container_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -298650,10 +561664,10 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -298662,14 +561676,15 @@ var container_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -298681,41 +561696,42 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getJwks(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -298724,17 +561740,18 @@ var container_v1beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298743,30 +561760,31 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAddons(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -298774,29 +561792,30 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLegacyAbac(paramsOrCallback, optionsOrCallback, callback) { + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -298805,123 +561824,133 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLocations(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLogging(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services = Resource$Projects$Locations$Namespaces$Services; + class Resource$Projects$Locations$Namespaces$Services$Endpoints { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -298929,30 +561958,31 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMonitoring(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -298960,61 +561990,63 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setResourceLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -299022,329 +562054,383 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services$Endpoints = Resource$Projects$Locations$Namespaces$Services$Endpoints; + class Resource$Projects$Locations$Namespaces$Serviceworkloads { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMaster(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1beta1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; - class Resource$Projects$Locations$Clusters$Nodepools { + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Serviceworkloads = Resource$Projects$Locations$Namespaces$Serviceworkloads; + class Resource$Projects$Locations$Namespaces$Workloads { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://container.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/nodePools').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); - } + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Workloads = Resource$Projects$Locations$Namespaces$Workloads; + class Resource$Projects$Locations$Registrationpolicies { + constructor(context) { + this.context = context; } - rollback(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoscaling(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(paramsOrCallback, optionsOrCallback, callback) { + } + servicedirectory_v1beta1.Resource$Projects$Locations$Registrationpolicies = Resource$Projects$Locations$Registrationpolicies; +})(servicedirectory_v1beta1 = exports.servicedirectory_v1beta1 || (exports.servicedirectory_v1beta1 = {})); + + +/***/ }), + +/***/ 8992: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.iam_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var iam_v1; +(function (iam_v1) { + /** + * Identity and Access Management (IAM) API + * + * Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const iam = google.iam('v1'); + * ``` + */ + class Iam { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iamPolicies = new Resource$Iampolicies(this.context); + this.locations = new Resource$Locations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.permissions = new Resource$Permissions(this.context); + this.projects = new Resource$Projects(this.context); + this.roles = new Resource$Roles(this.context); + } + } + iam_v1.Iam = Iam; + class Resource$Iampolicies { + constructor(context) { + this.context = context; + } + lintPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299357,25 +562443,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/iamPolicies:lintPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + queryAuditableServices(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299388,31 +562474,41 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/iamPolicies:queryAuditableServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1beta1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; - class Resource$Projects$Locations$Clusters$WellKnown { + iam_v1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Locations { constructor(context) { this.context = context; + this.workforcePools = new Resource$Locations$Workforcepools(this.context); } - getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Workforcepools { + constructor(context) { + this.context = context; + this.operations = new Resource$Locations$Workforcepools$Operations(this.context); + this.providers = new Resource$Locations$Workforcepools$Providers(this.context); + this.subjects = new Resource$Locations$Workforcepools$Subjects(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299425,31 +562521,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+location}/workforcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1beta1.Resource$Projects$Locations$Clusters$WellKnown = Resource$Projects$Locations$Clusters$WellKnown; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299462,11 +562552,11 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -299474,10 +562564,10 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -299493,10 +562583,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -299505,13 +562595,13 @@ var container_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299524,33 +562614,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Zones { - constructor(context) { - this.context = context; - this.clusters = new Resource$Projects$Zones$Clusters(this.context); - this.operations = new Resource$Projects$Zones$Operations(this.context); - } - getServerconfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299563,33 +562645,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}/workforcePools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1beta1.Resource$Projects$Zones = Resource$Projects$Zones; - class Resource$Projects$Zones$Clusters { - constructor(context) { - this.context = context; - this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(this.context); - } - addons(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299602,26 +562676,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299634,57 +562707,57 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299697,25 +562770,30 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + iam_v1.Resource$Locations$Workforcepools = Resource$Locations$Workforcepools; + class Resource$Locations$Workforcepools$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -299729,89 +562807,98 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - legacyAbac(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Locations$Workforcepools$Operations = Resource$Locations$Workforcepools$Operations; + class Resource$Locations$Workforcepools$Providers { + constructor(context) { + this.context = context; + this.keys = new Resource$Locations$Workforcepools$Providers$Keys(this.context); + this.operations = + new Resource$Locations$Workforcepools$Providers$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - locations(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299824,26 +562911,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - logging(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299856,26 +562942,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - master(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299888,318 +562973,307 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - monitoring(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resourceLabels(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Locations$Workforcepools$Providers = Resource$Locations$Workforcepools$Providers; + class Resource$Locations$Workforcepools$Providers$Keys { + constructor(context) { + this.context = context; + this.operations = + new Resource$Locations$Workforcepools$Providers$Keys$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Locations$Workforcepools$Providers$Keys = Resource$Locations$Workforcepools$Providers$Keys; + class Resource$Locations$Workforcepools$Providers$Keys$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1beta1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; - class Resource$Projects$Zones$Clusters$Nodepools { + iam_v1.Resource$Locations$Workforcepools$Providers$Keys$Operations = Resource$Locations$Workforcepools$Providers$Keys$Operations; + class Resource$Locations$Workforcepools$Providers$Operations { constructor(context) { this.context = context; } - autoscaling(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + iam_v1.Resource$Locations$Workforcepools$Providers$Operations = Resource$Locations$Workforcepools$Providers$Operations; + class Resource$Locations$Workforcepools$Subjects { + constructor(context) { + this.context = context; + this.operations = + new Resource$Locations$Workforcepools$Subjects$Operations(this.context); } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -300214,90 +563288,108 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Locations$Workforcepools$Subjects = Resource$Locations$Workforcepools$Subjects; + class Resource$Locations$Workforcepools$Subjects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Locations$Workforcepools$Subjects$Operations = Resource$Locations$Workforcepools$Subjects$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.roles = new Resource$Organizations$Roles(this.context); + } + } + iam_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Roles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300310,26 +563402,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300342,26 +563433,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300374,26 +563464,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300406,32 +563495,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - container_v1beta1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; - class Resource$Projects$Zones$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300444,26 +563526,25 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300476,26 +563557,31 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Organizations$Roles = Resource$Organizations$Roles; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + queryTestablePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300508,151 +563594,102 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/permissions:queryTestablePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - container_v1beta1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; -})(container_v1beta1 = exports.container_v1beta1 || (exports.container_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 941 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.genomics_v2alpha1 = 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 = __webpack_require__(927); -var genomics_v2alpha1; -(function (genomics_v2alpha1) { - /** - * Genomics API - * - * Uploads, processes, queries, and searches Genomics data in the cloud. - * - * @example - * const {google} = require('googleapis'); - * const genomics = google.genomics('v2alpha1'); - * - * @namespace genomics - * @type {Function} - * @version v2alpha1 - * @variation v2alpha1 - * @param {object=} options Options for Genomics - */ - class Genomics { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.pipelines = new Resource$Pipelines(this.context); - this.projects = new Resource$Projects(this.context); - this.workers = new Resource$Workers(this.context); + iam_v1.Resource$Permissions = Resource$Permissions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.roles = new Resource$Projects$Roles(this.context); + this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); } } - genomics_v2alpha1.Genomics = Genomics; - class Resource$Pipelines { + iam_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.workloadIdentityPools = + new Resource$Projects$Locations$Workloadidentitypools(this.context); } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + iam_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Workloadidentitypools { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Workloadidentitypools$Operations(this.context); + this.providers = + new Resource$Projects$Locations$Workloadidentitypools$Providers(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workloadIdentityPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - genomics_v2alpha1.Resource$Pipelines = Resource$Pipelines; - class Resource$Projects { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Operations(this.context); - this.workers = new Resource$Projects$Workers(this.context); - } - } - genomics_v2alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -300660,10 +563697,10 @@ var genomics_v2alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -300672,17 +563709,18 @@ var genomics_v2alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -300691,10 +563729,10 @@ var genomics_v2alpha1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -300703,1395 +563741,587 @@ var genomics_v2alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workloadIdentityPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - genomics_v2alpha1.Resource$Projects$Operations = Resource$Projects$Operations; - class Resource$Projects$Workers { - constructor(context) { - this.context = context; - } - checkIn(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - } - genomics_v2alpha1.Resource$Projects$Workers = Resource$Projects$Workers; - class Resource$Workers { - constructor(context) { - this.context = context; } - checkIn(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/workers/{id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - genomics_v2alpha1.Resource$Workers = Resource$Workers; -})(genomics_v2alpha1 = exports.genomics_v2alpha1 || (exports.genomics_v2alpha1 = {})); -//# sourceMappingURL=v2alpha1.js.map - -/***/ }), -/* 942 */, -/* 943 */, -/* 944 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.servicecontrol_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 = __webpack_require__(927); -var servicecontrol_v1; -(function (servicecontrol_v1) { - /** - * Service Control API - * - * Provides control plane functionality to managed services, such as logging, monitoring, and status checks. - * - * @example - * const {google} = require('googleapis'); - * const servicecontrol = google.servicecontrol('v1'); - * - * @namespace servicecontrol - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Servicecontrol - */ - class Servicecontrol { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.services = new Resource$Services(this.context); - } - } - servicecontrol_v1.Servicecontrol = Servicecontrol; - class Resource$Services { + iam_v1.Resource$Projects$Locations$Workloadidentitypools = Resource$Projects$Locations$Workloadidentitypools; + class Resource$Projects$Locations$Workloadidentitypools$Operations { constructor(context) { this.context = context; } - allocateQuota(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:allocateQuota').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - check(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + iam_v1.Resource$Projects$Locations$Workloadidentitypools$Operations = Resource$Projects$Locations$Workloadidentitypools$Operations; + class Resource$Projects$Locations$Workloadidentitypools$Providers { + constructor(context) { + this.context = context; + this.keys = + new Resource$Projects$Locations$Workloadidentitypools$Providers$Keys(this.context); + this.operations = + new Resource$Projects$Locations$Workloadidentitypools$Providers$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:check').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - report(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:report').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicecontrol_v1.Resource$Services = Resource$Services; -})(servicecontrol_v1 = exports.servicecontrol_v1 || (exports.servicecontrol_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 945 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.androidpublisher_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 = __webpack_require__(927); -var androidpublisher_v2; -(function (androidpublisher_v2) { - /** - * Google Play Developer API - * - * Accesses Android application developers' Google Play accounts. - * - * @example - * const {google} = require('googleapis'); - * const androidpublisher = google.androidpublisher('v2'); - * - * @namespace androidpublisher - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Androidpublisher - */ - class Androidpublisher { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.purchases = new Resource$Purchases(this.context); - } - } - androidpublisher_v2.Androidpublisher = Androidpublisher; - class Resource$Purchases { - constructor(context) { - this.context = context; - this.products = new Resource$Purchases$Products(this.context); - this.voidedpurchases = new Resource$Purchases$Voidedpurchases(this.context); - } - } - androidpublisher_v2.Resource$Purchases = Resource$Purchases; - class Resource$Purchases$Products { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v2/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v2.Resource$Purchases$Products = Resource$Purchases$Products; - class Resource$Purchases$Voidedpurchases { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v2/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v2.Resource$Purchases$Voidedpurchases = Resource$Purchases$Voidedpurchases; -})(androidpublisher_v2 = exports.androidpublisher_v2 || (exports.androidpublisher_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 946 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -module.exports = Yallist - -Yallist.Node = Node -Yallist.create = Yallist - -function Yallist (list) { - var self = this - if (!(self instanceof Yallist)) { - self = new Yallist() - } - - self.tail = null - self.head = null - self.length = 0 - - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item) - }) - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]) - } - } - - return self -} - -Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } - - var next = node.next - var prev = node.prev - - if (next) { - next.prev = prev - } - - if (prev) { - prev.next = next - } - - if (node === this.head) { - this.head = next - } - if (node === this.tail) { - this.tail = prev - } - - node.list.length-- - node.next = null - node.prev = null - node.list = null - - return next -} - -Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var head = this.head - node.list = this - node.next = head - if (head) { - head.prev = node - } - - this.head = node - if (!this.tail) { - this.tail = node - } - this.length++ -} - -Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var tail = this.tail - node.list = this - node.prev = tail - if (tail) { - tail.next = node - } - - this.tail = node - if (!this.head) { - this.head = node - } - this.length++ -} - -Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } - - var res = this.tail.value - this.tail = this.tail.prev - if (this.tail) { - this.tail.next = null - } else { - this.head = null - } - this.length-- - return res -} - -Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } - - var res = this.head.value - this.head = this.head.next - if (this.head) { - this.head.prev = null - } else { - this.tail = null - } - this.length-- - return res -} - -Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this) - walker = walker.next - } -} - -Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this) - walker = walker.prev - } -} - -Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.next - } - return res -} - -Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.prev - } - return res -} - -Yallist.prototype.reduce = function (fn, initial) { - var acc - var walker = this.head - if (arguments.length > 1) { - acc = initial - } else if (this.head) { - walker = this.head.next - acc = this.head.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i) - walker = walker.next - } - - return acc -} - -Yallist.prototype.reduceReverse = function (fn, initial) { - var acc - var walker = this.tail - if (arguments.length > 1) { - acc = initial - } else if (this.tail) { - walker = this.tail.prev - acc = this.tail.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i) - walker = walker.prev - } - - return acc -} - -Yallist.prototype.toArray = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value - walker = walker.next - } - return arr -} - -Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value - walker = walker.prev - } - return arr -} - -Yallist.prototype.slice = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) { - if (start > this.length) { - start = this.length - 1 - } - if (start < 0) { - start = this.length + start; - } - - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next - } - - var ret = [] - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value) - walker = this.removeNode(walker) - } - if (walker === null) { - walker = this.tail - } - - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev - } - - for (var i = 2; i < arguments.length; i++) { - walker = insert(this, walker, arguments[i]) - } - return ret; -} - -Yallist.prototype.reverse = function () { - var head = this.head - var tail = this.tail - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev - walker.prev = walker.next - walker.next = p - } - this.head = tail - this.tail = head - return this -} - -function insert (self, node, value) { - var inserted = node === self.head ? - new Node(value, null, node, self) : - new Node(value, node, node.next, self) - - if (inserted.next === null) { - self.tail = inserted - } - if (inserted.prev === null) { - self.head = inserted - } - - self.length++ - - return inserted -} - -function push (self, item) { - self.tail = new Node(item, self.tail, null, self) - if (!self.head) { - self.head = self.tail - } - self.length++ -} - -function unshift (self, item) { - self.head = new Node(item, null, self.head, self) - if (!self.tail) { - self.tail = self.head - } - self.length++ -} - -function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } - - this.list = list - this.value = value - - if (prev) { - prev.next = this - this.prev = prev - } else { - this.prev = null - } - - if (next) { - next.prev = this - this.next = next - } else { - this.next = null - } -} - -try { - // add if support for Symbol.iterator is present - __webpack_require__(803)(Yallist) -} catch (er) {} - - -/***/ }), -/* 947 */ -/***/ (function(module) { - -module.exports = {"_args":[["google-auth-library@6.0.0","/home/praneeth/opensource/oppiabot"]],"_from":"google-auth-library@6.0.0","_id":"google-auth-library@6.0.0","_inBundle":false,"_integrity":"sha512-uLydy1t6SHN/EvYUJrtN3GCHFrnJ0c8HJjOxXiGjoTuYHIoCUT3jVxnzmjHwVnSdkfE9Akasm2rM6qG1COTXfQ==","_location":"/google-auth-library","_phantomChildren":{"buffer-equal-constant-time":"1.0.1","ecdsa-sig-formatter":"1.0.11","safe-buffer":"5.2.0"},"_requested":{"type":"version","registry":true,"raw":"google-auth-library@6.0.0","name":"google-auth-library","escapedName":"google-auth-library","rawSpec":"6.0.0","saveSpec":null,"fetchSpec":"6.0.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.0.0.tgz","_spec":"6.0.0","_where":"/home/praneeth/opensource/oppiabot","author":{"name":"Google Inc."},"bugs":{"url":"https://github.com/googleapis/google-auth-library-nodejs/issues"},"dependencies":{"arrify":"^2.0.0","base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11","fast-text-encoding":"^1.0.0","gaxios":"^3.0.0","gcp-metadata":"^4.0.0","gtoken":"^5.0.0","jws":"^4.0.0","lru-cache":"^5.0.0"},"description":"Google APIs Authentication Client Library for Node.js","devDependencies":{"@compodoc/compodoc":"^1.1.7","@types/base64-js":"^1.2.5","@types/chai":"^4.1.7","@types/jws":"^3.1.0","@types/lru-cache":"^5.0.0","@types/mocha":"^7.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^10.5.1","@types/sinon":"^7.0.0","@types/tmp":"^0.1.0","assert-rejects":"^1.0.0","c8":"^7.0.0","chai":"^4.2.0","codecov":"^3.0.2","execa":"^4.0.0","gts":"^2.0.0-alpha.8","is-docker":"^2.0.0","karma":"^4.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.0","keypair":"^1.0.1","linkinator":"^2.0.0","mocha":"^7.0.0","mv":"^2.1.1","ncp":"^2.0.0","nock":"^12.0.0","null-loader":"^3.0.0","puppeteer":"^2.0.0","sinon":"^9.0.0","tmp":"^0.1.0","ts-loader":"^6.0.0","typescript":"^3.8.3","webpack":"^4.20.2","webpack-cli":"^3.1.1"},"engines":{"node":">=10"},"files":["build/src","!build/src/**/*.map"],"homepage":"https://github.com/googleapis/google-auth-library-nodejs#readme","keywords":["google","api","google apis","client","client library"],"license":"Apache-2.0","main":"./build/src/index.js","name":"google-auth-library","repository":{"type":"git","url":"git+https://github.com/googleapis/google-auth-library-nodejs.git"},"scripts":{"browser-test":"karma start","clean":"gts clean","compile":"tsc -p .","docs":"compodoc src/","docs-test":"linkinator docs","fix":"gts fix && eslint --fix '**/*.js'","lint":"gts check","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm i","prepare":"npm run compile","presystem-test":"npm run compile","pretest":"npm run compile","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","test":"c8 mocha build/test","webpack":"webpack"},"types":"./build/src/index.d.ts","version":"6.0.0"}; - -/***/ }), -/* 948 */ -/***/ (function(module) { - -"use strict"; - - -/** - * Tries to execute a function and discards any error that occurs. - * @param {Function} fn - Function that might or might not throw an error. - * @returns {?*} Return-value of the function when no error occurred. - */ -module.exports = function(fn) { - - try { return fn() } catch (e) {} - -} - -/***/ }), -/* 949 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.tagmanager = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(97); -const v2_1 = __webpack_require__(543); -exports.VERSIONS = { - v1: v1_1.tagmanager_v1.Tagmanager, - v2: v2_1.tagmanager_v2.Tagmanager, -}; -function tagmanager(versionOrOptions) { - return googleapis_common_1.getAPI('tagmanager', versionOrOptions, exports.VERSIONS, this); -} -exports.tagmanager = tagmanager; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 950 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const url = __webpack_require__(835); -function getProxyUrl(reqUrl) { - let usingSsl = reqUrl.protocol === 'https:'; - let proxyUrl; - if (checkBypass(reqUrl)) { - return proxyUrl; - } - let proxyVar; - if (usingSsl) { - proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; - } - else { - proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; - } - if (proxyVar) { - proxyUrl = url.parse(proxyVar); - } - return proxyUrl; -} -exports.getProxyUrl = getProxyUrl; -function checkBypass(reqUrl) { - if (!reqUrl.hostname) { - return false; - } - let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; - if (!noProxy) { - return false; - } - // Determine the request port - let reqPort; - if (reqUrl.port) { - reqPort = Number(reqUrl.port); - } - else if (reqUrl.protocol === 'http:') { - reqPort = 80; - } - else if (reqUrl.protocol === 'https:') { - reqPort = 443; - } - // Format the request hostname and hostname with port - let upperReqHosts = [reqUrl.hostname.toUpperCase()]; - if (typeof reqPort === 'number') { - upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); - } - // Compare request host against noproxy - for (let upperNoProxyItem of noProxy - .split(',') - .map(x => x.trim().toUpperCase()) - .filter(x => x)) { - if (upperReqHosts.some(x => x === upperNoProxyItem)) { - return true; - } - } - return false; -} -exports.checkBypass = checkBypass; - - -/***/ }), -/* 951 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.compute_alpha = 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 = __webpack_require__(927); -var compute_alpha; -(function (compute_alpha) { - /** - * Compute Engine API - * - * Creates and runs virtual machines on Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const compute = google.compute('alpha'); - * - * @namespace compute - * @type {Function} - * @version alpha - * @variation alpha - * @param {object=} options Options for Compute - */ - class Compute { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.acceleratorTypes = new Resource$Acceleratortypes(this.context); - this.addresses = new Resource$Addresses(this.context); - this.autoscalers = new Resource$Autoscalers(this.context); - this.backendBuckets = new Resource$Backendbuckets(this.context); - this.backendServices = new Resource$Backendservices(this.context); - this.disks = new Resource$Disks(this.context); - this.diskTypes = new Resource$Disktypes(this.context); - this.externalVpnGateways = new Resource$Externalvpngateways(this.context); - this.firewalls = new Resource$Firewalls(this.context); - this.forwardingRules = new Resource$Forwardingrules(this.context); - this.globalAddresses = new Resource$Globaladdresses(this.context); - this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); - this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); - this.globalOperations = new Resource$Globaloperations(this.context); - this.globalOrganizationOperations = new Resource$Globalorganizationoperations(this.context); - this.globalPublicDelegatedPrefixes = new Resource$Globalpublicdelegatedprefixes(this.context); - this.healthChecks = new Resource$Healthchecks(this.context); - this.httpHealthChecks = new Resource$Httphealthchecks(this.context); - this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); - this.images = new Resource$Images(this.context); - this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); - this.instanceGroups = new Resource$Instancegroups(this.context); - this.instances = new Resource$Instances(this.context); - this.instanceTemplates = new Resource$Instancetemplates(this.context); - this.interconnectAttachments = new Resource$Interconnectattachments(this.context); - this.interconnectLocations = new Resource$Interconnectlocations(this.context); - this.interconnects = new Resource$Interconnects(this.context); - this.licenseCodes = new Resource$Licensecodes(this.context); - this.licenses = new Resource$Licenses(this.context); - this.machineImages = new Resource$Machineimages(this.context); - this.machineTypes = new Resource$Machinetypes(this.context); - this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); - this.networks = new Resource$Networks(this.context); - this.nodeGroups = new Resource$Nodegroups(this.context); - this.nodeTemplates = new Resource$Nodetemplates(this.context); - this.nodeTypes = new Resource$Nodetypes(this.context); - this.organizationSecurityPolicies = new Resource$Organizationsecuritypolicies(this.context); - this.packetMirrorings = new Resource$Packetmirrorings(this.context); - this.projects = new Resource$Projects(this.context); - this.publicAdvertisedPrefixes = new Resource$Publicadvertisedprefixes(this.context); - this.publicDelegatedPrefixes = new Resource$Publicdelegatedprefixes(this.context); - this.regionAutoscalers = new Resource$Regionautoscalers(this.context); - this.regionBackendServices = new Resource$Regionbackendservices(this.context); - this.regionCommitments = new Resource$Regioncommitments(this.context); - this.regionDisks = new Resource$Regiondisks(this.context); - this.regionDiskTypes = new Resource$Regiondisktypes(this.context); - this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); - this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); - this.regionInPlaceSnapshots = new Resource$Regioninplacesnapshots(this.context); - this.regionInstanceGroupManagers = new Resource$Regioninstancegroupmanagers(this.context); - this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); - this.regionInstances = new Resource$Regioninstances(this.context); - this.regionNetworkEndpointGroups = new Resource$Regionnetworkendpointgroups(this.context); - this.regionNotificationEndpoints = new Resource$Regionnotificationendpoints(this.context); - this.regionOperations = new Resource$Regionoperations(this.context); - this.regions = new Resource$Regions(this.context); - this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); - this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); - this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); - this.regionUrlMaps = new Resource$Regionurlmaps(this.context); - this.reservations = new Resource$Reservations(this.context); - this.resourcePolicies = new Resource$Resourcepolicies(this.context); - this.routers = new Resource$Routers(this.context); - this.routes = new Resource$Routes(this.context); - this.securityPolicies = new Resource$Securitypolicies(this.context); - this.serviceAttachments = new Resource$Serviceattachments(this.context); - this.snapshots = new Resource$Snapshots(this.context); - this.sslCertificates = new Resource$Sslcertificates(this.context); - this.sslPolicies = new Resource$Sslpolicies(this.context); - this.subnetworks = new Resource$Subnetworks(this.context); - this.targetGrpcProxies = new Resource$Targetgrpcproxies(this.context); - this.targetHttpProxies = new Resource$Targethttpproxies(this.context); - this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); - this.targetInstances = new Resource$Targetinstances(this.context); - this.targetPools = new Resource$Targetpools(this.context); - this.targetSslProxies = new Resource$Targetsslproxies(this.context); - this.targetTcpProxies = new Resource$Targettcpproxies(this.context); - this.targetVpnGateways = new Resource$Targetvpngateways(this.context); - this.urlMaps = new Resource$Urlmaps(this.context); - this.vpnGateways = new Resource$Vpngateways(this.context); - this.vpnTunnels = new Resource$Vpntunnels(this.context); - this.zoneInPlaceSnapshots = new Resource$Zoneinplacesnapshots(this.context); - this.zoneOperations = new Resource$Zoneoperations(this.context); - this.zones = new Resource$Zones(this.context); - } - } - compute_alpha.Compute = Compute; - class Resource$Acceleratortypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'acceleratorType'], - pathParams: ['acceleratorType', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Projects$Locations$Workloadidentitypools$Providers = Resource$Projects$Locations$Workloadidentitypools$Providers; + class Resource$Projects$Locations$Workloadidentitypools$Providers$Keys { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Workloadidentitypools$Providers$Keys$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Acceleratortypes = Resource$Acceleratortypes; - class Resource$Addresses { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + iam_v1.Resource$Projects$Locations$Workloadidentitypools$Providers$Keys = Resource$Projects$Locations$Workloadidentitypools$Providers$Keys; + class Resource$Projects$Locations$Workloadidentitypools$Providers$Keys$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Projects$Locations$Workloadidentitypools$Providers$Keys$Operations = Resource$Projects$Locations$Workloadidentitypools$Providers$Keys$Operations; + class Resource$Projects$Locations$Workloadidentitypools$Providers$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Projects$Locations$Workloadidentitypools$Providers$Operations = Resource$Projects$Locations$Workloadidentitypools$Providers$Operations; + class Resource$Projects$Roles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302104,32 +564334,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Addresses = Resource$Addresses; - class Resource$Autoscalers { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302142,26 +564365,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302174,27 +564396,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -302205,26 +564427,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302237,27 +564458,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -302268,26 +564489,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Projects$Roles = Resource$Projects$Roles; + class Resource$Projects$Serviceaccounts { + constructor(context) { + this.context = context; + this.keys = new Resource$Projects$Serviceaccounts$Keys(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302300,26 +564527,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302332,26 +564558,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302364,32 +564589,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Autoscalers = Resource$Autoscalers; - class Resource$Backendbuckets { - constructor(context) { - this.context = context; - } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302402,26 +564620,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302434,26 +564651,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302466,26 +564682,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket', 'keyName'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302498,26 +564713,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302530,26 +564744,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302562,26 +564775,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + signBlob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302594,26 +564806,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + signJwt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302626,58 +564837,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302690,23 +564900,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { @@ -302722,32 +564931,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Backendbuckets = Resource$Backendbuckets; - class Resource$Backendservices { + iam_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; + class Resource$Projects$Serviceaccounts$Keys { constructor(context) { this.context = context; } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302760,26 +564968,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302792,26 +564999,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302824,26 +565030,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302856,23 +565061,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService', 'keyName'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -302888,26 +565092,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302920,26 +565123,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302952,28 +565154,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/keys:upload').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + iam_v1.Resource$Projects$Serviceaccounts$Keys = Resource$Projects$Serviceaccounts$Keys; + class Resource$Roles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -302984,28 +565190,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303016,26 +565220,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + queryGrantableRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303048,58 +565251,140 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/roles:queryGrantableRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Roles = Resource$Roles; +})(iam_v1 = exports.iam_v1 || (exports.iam_v1 = {})); + + +/***/ }), + +/***/ 9002: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.ideahub_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var ideahub_v1beta; +(function (ideahub_v1beta) { + /** + * Idea Hub API + * + * This is an invitation-only API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const ideahub = google.ideahub('v1beta'); + * ``` + */ + class Ideahub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.platforms = new Resource$Platforms(this.context); + } + } + ideahub_v1beta.Ideahub = Ideahub; + class Resource$Platforms { + constructor(context) { + this.context = context; + this.properties = new Resource$Platforms$Properties(this.context); + } + } + ideahub_v1beta.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Properties { + constructor(context) { + this.context = context; + this.ideaActivities = new Resource$Platforms$Properties$Ideaactivities(this.context); + this.ideas = new Resource$Platforms$Properties$Ideas(this.context); + this.ideaStates = new Resource$Platforms$Properties$Ideastates(this.context); + this.locales = new Resource$Platforms$Properties$Locales(this.context); + this.topicStates = new Resource$Platforms$Properties$Topicstates(this.context); + } + } + ideahub_v1beta.Resource$Platforms$Properties = Resource$Platforms$Properties; + class Resource$Platforms$Properties$Ideaactivities { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/ideaActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + ideahub_v1beta.Resource$Platforms$Properties$Ideaactivities = Resource$Platforms$Properties$Ideaactivities; + class Resource$Platforms$Properties$Ideas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303112,32 +565397,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+parent}/ideas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Backendservices = Resource$Backendservices; - class Resource$Disks { + ideahub_v1beta.Resource$Platforms$Properties$Ideas = Resource$Platforms$Properties$Ideas; + class Resource$Platforms$Properties$Ideastates { constructor(context) { this.context = context; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303150,26 +565434,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + ideahub_v1beta.Resource$Platforms$Properties$Ideastates = Resource$Platforms$Properties$Ideastates; + class Resource$Platforms$Properties$Locales { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303182,25 +565471,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/locales').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + } + ideahub_v1beta.Resource$Platforms$Properties$Locales = Resource$Platforms$Properties$Locales; + class Resource$Platforms$Properties$Topicstates { + constructor(context) { + this.context = context; + } + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303213,151 +565508,339 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + ideahub_v1beta.Resource$Platforms$Properties$Topicstates = Resource$Platforms$Properties$Topicstates; +})(ideahub_v1beta = exports.ideahub_v1beta || (exports.ideahub_v1beta = {})); + + +/***/ }), + +/***/ 9007: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = rng; + +var _crypto = _interopRequireDefault(__webpack_require__(6417)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; + +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} + +/***/ }), + +/***/ 9010: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.storage_v1beta2 = exports.storage_v1 = exports.auth = exports.storage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9511); +Object.defineProperty(exports, "storage_v1", { enumerable: true, get: function () { return v1_1.storage_v1; } }); +const v1beta2_1 = __webpack_require__(1111); +Object.defineProperty(exports, "storage_v1beta2", { enumerable: true, get: function () { return v1beta2_1.storage_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.storage_v1.Storage, + v1beta2: v1beta2_1.storage_v1beta2.Storage, +}; +function storage(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('storage', versionOrOptions, exports.VERSIONS, this); +} +exports.storage = storage; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9013: +/***/ (function(module) { + +"use strict"; + + +var replace = String.prototype.replace; +var percentTwenties = /%20/g; + +var Format = { + RFC1738: 'RFC1738', + RFC3986: 'RFC3986' +}; + +module.exports = { + 'default': Format.RFC3986, + formatters: { + RFC1738: function (value) { + return replace.call(value, percentTwenties, '+'); + }, + RFC3986: function (value) { + return String(value); + } + }, + RFC1738: Format.RFC1738, + RFC3986: Format.RFC3986 +}; + + +/***/ }), + +/***/ 9021: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.manufacturers_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var manufacturers_v1; +(function (manufacturers_v1) { + /** + * Manufacturer Center API + * + * Public API for managing Manufacturer Center related data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const manufacturers = google.manufacturers('v1'); + * ``` + */ + class Manufacturers { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + manufacturers_v1.Manufacturers = Manufacturers; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.languages = new Resource$Accounts$Languages(this.context); + this.products = new Resource$Accounts$Products(this.context); + } + } + manufacturers_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Languages { + constructor(context) { + this.context = context; + this.productCertifications = + new Resource$Accounts$Languages$Productcertifications(this.context); + } + } + manufacturers_v1.Resource$Accounts$Languages = Resource$Accounts$Languages; + class Resource$Accounts$Languages$Productcertifications { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/productCertifications').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + manufacturers_v1.Resource$Accounts$Languages$Productcertifications = Resource$Accounts$Languages$Productcertifications; + class Resource$Accounts$Products { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303368,25 +565851,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303399,27 +565882,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303430,26 +565913,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303462,26 +565944,84 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + manufacturers_v1.Resource$Accounts$Products = Resource$Accounts$Products; +})(manufacturers_v1 = exports.manufacturers_v1 || (exports.manufacturers_v1 = {})); + + +/***/ }), + +/***/ 9038: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.kgsearch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var kgsearch_v1; +(function (kgsearch_v1) { + /** + * Knowledge Graph Search API + * + * Searches the Google Knowledge Graph for entities. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const kgsearch = google.kgsearch('v1'); + * ``` + */ + class Kgsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.entities = new Resource$Entities(this.context); + } + } + kgsearch_v1.Kgsearch = Kgsearch; + class Resource$Entities { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -303493,64 +566033,181 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://kgsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/entities:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], - context: this.context, + } + kgsearch_v1.Resource$Entities = Resource$Entities; +})(kgsearch_v1 = exports.kgsearch_v1 || (exports.kgsearch_v1 = {})); + + +/***/ }), + +/***/ 9044: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === 'https:'; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (let upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperReqHosts.some(x => x === upperNoProxyItem)) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; + + +/***/ }), + +/***/ 9047: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = factory; + +const Octokit = __webpack_require__(5402); +const registerPlugin = __webpack_require__(1855); + +function factory(plugins) { + const Api = Octokit.bind(null, plugins || []); + Api.plugin = registerPlugin.bind(null, plugins || []); + return Api; +} + + +/***/ }), + +/***/ 9062: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkehub_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkehub_v1alpha; +(function (gkehub_v1alpha) { + /** + * GKE Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkehub = google.gkehub('v1alpha'); + * ``` + */ + class Gkehub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + gkehub_v1alpha.Gkehub = Gkehub; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + gkehub_v1alpha.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.fleets = new Resource$Organizations$Locations$Fleets(this.context); } } - compute_alpha.Resource$Disks = Resource$Disks; - class Resource$Disktypes { + gkehub_v1alpha.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Fleets { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303563,26 +566220,46 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + gkehub_v1alpha.Resource$Organizations$Locations$Fleets = Resource$Organizations$Locations$Fleets; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gkehub_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.features = new Resource$Projects$Locations$Features(this.context); + this.fleets = new Resource$Projects$Locations$Fleets(this.context); + this.memberships = new Resource$Projects$Locations$Memberships(this.context); + this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.scopes = new Resource$Projects$Locations$Scopes(this.context); + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303593,27 +566270,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'diskType'], - pathParams: ['diskType', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303624,32 +566301,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Disktypes = Resource$Disktypes; - class Resource$Externalvpngateways { + gkehub_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Features { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303662,26 +566338,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303694,26 +566369,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303726,26 +566400,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303758,26 +566431,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303790,26 +566462,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303822,33 +566493,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways; - class Resource$Firewalls { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303859,58 +566524,65 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gkehub_v1alpha.Resource$Projects$Locations$Features = Resource$Projects$Locations$Features; + class Resource$Projects$Locations$Fleets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303921,26 +566593,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303951,26 +566624,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -303981,26 +566655,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304013,27 +566686,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -304044,32 +566717,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Firewalls = Resource$Firewalls; - class Resource$Forwardingrules { + gkehub_v1alpha.Resource$Projects$Locations$Fleets = Resource$Projects$Locations$Fleets; + class Resource$Projects$Locations$Memberships { constructor(context) { this.context = context; + this.bindings = new Resource$Projects$Locations$Memberships$Bindings(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304082,23 +566755,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -304114,58 +566786,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateConnectManifest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304178,58 +566849,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304242,26 +566912,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + listAdmin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304274,26 +566943,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/memberships:listAdmin').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304306,292 +566974,295 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Forwardingrules = Resource$Forwardingrules; - class Resource$Globaladdresses { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + validateCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/memberships:validateCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1alpha.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; + class Resource$Projects$Locations$Memberships$Bindings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Globaladdresses = Resource$Globaladdresses; - class Resource$Globalforwardingrules { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1alpha.Resource$Projects$Locations$Memberships$Bindings = Resource$Projects$Locations$Memberships$Bindings; + class Resource$Projects$Locations$Namespaces { + constructor(context) { + this.context = context; + this.rbacrolebindings = + new Resource$Projects$Locations$Namespaces$Rbacrolebindings(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304604,26 +567275,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304636,26 +567306,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304668,26 +567337,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304700,26 +567368,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304732,192 +567399,197 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1alpha.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Rbacrolebindings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Globalforwardingrules = Resource$Globalforwardingrules; - class Resource$Globalnetworkendpointgroups { - constructor(context) { - this.context = context; - } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1alpha.Resource$Projects$Locations$Namespaces$Rbacrolebindings = Resource$Projects$Locations$Namespaces$Rbacrolebindings; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304930,26 +567602,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304962,26 +567633,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304994,26 +567664,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305026,32 +567695,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; - class Resource$Globaloperations { + gkehub_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scopes { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305064,23 +567732,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -305096,23 +567763,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -305128,23 +567794,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -305160,25 +567825,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305191,96 +567856,252 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Globaloperations = Resource$Globaloperations; - class Resource$Globalorganizationoperations { + gkehub_v1alpha.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; +})(gkehub_v1alpha = exports.gkehub_v1alpha || (exports.gkehub_v1alpha = {})); + + +/***/ }), + +/***/ 9065: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.analyticsadmin_v1beta = exports.analyticsadmin_v1alpha = exports.auth = exports.analyticsadmin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha_1 = __webpack_require__(1222); +Object.defineProperty(exports, "analyticsadmin_v1alpha", { enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } }); +const v1beta_1 = __webpack_require__(5912); +Object.defineProperty(exports, "analyticsadmin_v1beta", { enumerable: true, get: function () { return v1beta_1.analyticsadmin_v1beta; } }); +exports.VERSIONS = { + v1alpha: v1alpha_1.analyticsadmin_v1alpha.Analyticsadmin, + v1beta: v1beta_1.analyticsadmin_v1beta.Analyticsadmin, +}; +function analyticsadmin(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('analyticsadmin', versionOrOptions, exports.VERSIONS, this); +} +exports.analyticsadmin = analyticsadmin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9082: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dataproc_v1beta2 = exports.dataproc_v1 = exports.auth = exports.dataproc = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9388); +Object.defineProperty(exports, "dataproc_v1", { enumerable: true, get: function () { return v1_1.dataproc_v1; } }); +const v1beta2_1 = __webpack_require__(1377); +Object.defineProperty(exports, "dataproc_v1beta2", { enumerable: true, get: function () { return v1beta2_1.dataproc_v1beta2; } }); +exports.VERSIONS = { + v1: v1_1.dataproc_v1.Dataproc, + v1beta2: v1beta2_1.dataproc_v1beta2.Dataproc, +}; +function dataproc(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dataproc', versionOrOptions, exports.VERSIONS, this); +} +exports.dataproc = dataproc; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9090: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.dlp_v2 = exports.auth = exports.dlp = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(2772); +Object.defineProperty(exports, "dlp_v2", { enumerable: true, get: function () { return v2_1.dlp_v2; } }); +exports.VERSIONS = { + v2: v2_1.dlp_v2.Dlp, +}; +function dlp(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dlp', versionOrOptions, exports.VERSIONS, this); +} +exports.dlp = dlp; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9091: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.gameservices_v1beta = exports.gameservices_v1 = exports.auth = exports.gameservices = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3453); +Object.defineProperty(exports, "gameservices_v1", { enumerable: true, get: function () { return v1_1.gameservices_v1; } }); +const v1beta_1 = __webpack_require__(2364); +Object.defineProperty(exports, "gameservices_v1beta", { enumerable: true, get: function () { return v1beta_1.gameservices_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.gameservices_v1.Gameservices, + v1beta: v1beta_1.gameservices_v1beta.Gameservices, +}; +function gameservices(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gameservices', versionOrOptions, exports.VERSIONS, this); +} +exports.gameservices = gameservices; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9131: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudtrace_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudtrace_v2beta1; +(function (cloudtrace_v2beta1) { + /** + * Cloud Trace API + * + * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudtrace = google.cloudtrace('v2beta1'); + * ``` + */ + class Cloudtrace { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtrace_v2beta1.Cloudtrace = Cloudtrace; + class Resource$Projects { constructor(context) { this.context = context; + this.traceSinks = new Resource$Projects$Tracesinks(this.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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['operation'], - pathParams: ['operation'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['operation'], - pathParams: ['operation'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + cloudtrace_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Tracesinks { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305293,30 +568114,24 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; - class Resource$Globalpublicdelegatedprefixes { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -305330,23 +568145,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -305362,55 +568176,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -305426,23 +568207,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -305458,32 +568238,93 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; - class Resource$Healthchecks { + cloudtrace_v2beta1.Resource$Projects$Tracesinks = Resource$Projects$Tracesinks; +})(cloudtrace_v2beta1 = exports.cloudtrace_v2beta1 || (exports.cloudtrace_v2beta1 = {})); + + +/***/ }), + +/***/ 9134: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.memcache_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var memcache_v1beta2; +(function (memcache_v1beta2) { + /** + * Cloud Memorystore for Memcached API + * + * Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const memcache = google.memcache('v1beta2'); + * ``` + */ + class Memcache { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + memcache_v1beta2.Memcache = Memcache; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + memcache_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305496,26 +568337,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305528,88 +568368,95 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + memcache_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + applyParameters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + applySoftwareUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+instance}:applySoftwareUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305622,25 +568469,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305653,26 +568500,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305685,26 +568531,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305717,32 +568562,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Healthchecks = Resource$Healthchecks; - class Resource$Httphealthchecks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305755,90 +568593,95 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+instance}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateParameters(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + memcache_v1beta2.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 || {}); @@ -305851,26 +568694,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305883,26 +568725,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305915,26 +568756,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305947,64 +568787,93 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Httphealthchecks = Resource$Httphealthchecks; - class Resource$Httpshealthchecks { + memcache_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(memcache_v1beta2 = exports.memcache_v1beta2 || (exports.memcache_v1beta2 = {})); + + +/***/ }), + +/***/ 9170: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vpcaccess_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vpcaccess_v1beta1; +(function (vpcaccess_v1beta1) { + /** + * Serverless VPC Access API + * + * API for managing VPC access connectors. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vpcaccess = google.vpcaccess('v1beta1'); + * ``` + */ + class Vpcaccess { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + vpcaccess_v1beta1.Vpcaccess = Vpcaccess; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + vpcaccess_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connectors = new Resource$Projects$Locations$Connectors(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306017,26 +568886,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + vpcaccess_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306049,26 +568923,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306081,26 +568954,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306113,26 +568985,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306145,26 +569016,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306177,33 +569047,33 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Httpshealthchecks = Resource$Httpshealthchecks; - class Resource$Images { + vpcaccess_v1beta1.Resource$Projects$Locations$Connectors = Resource$Projects$Locations$Connectors; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306214,27 +569084,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deprecate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306245,27 +569115,88 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + vpcaccess_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(vpcaccess_v1beta1 = exports.vpcaccess_v1beta1 || (exports.vpcaccess_v1beta1 = {})); + + +/***/ }), + +/***/ 9172: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firebase_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firebase_v1beta1; +(function (firebase_v1beta1) { + /** + * Firebase Management API + * + * The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebase = google.firebase('v1beta1'); + * ``` + */ + class Firebase { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.availableProjects = new Resource$Availableprojects(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + firebase_v1beta1.Firebase = Firebase; + class Resource$Availableprojects { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306276,28 +569207,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/availableProjects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFromFamily(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + firebase_v1beta1.Resource$Availableprojects = Resource$Availableprojects; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306308,26 +569243,36 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'family'], - pathParams: ['family', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.androidApps = new Resource$Projects$Androidapps(this.context); + this.availableLocations = new Resource$Projects$Availablelocations(this.context); + this.defaultLocation = new Resource$Projects$Defaultlocation(this.context); + this.iosApps = new Resource$Projects$Iosapps(this.context); + this.webApps = new Resource$Projects$Webapps(this.context); + } + addFirebase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306340,27 +569285,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+project}:addFirebase').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addGoogleAnalytics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306371,25 +569316,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:addGoogleAnalytics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -306401,26 +569346,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAdminSdkConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306431,26 +569377,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getAnalyticsDetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306463,26 +569408,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -306494,28 +569438,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -306526,32 +569468,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Images = Resource$Images; - class Resource$Instancegroupmanagers { - constructor(context) { - this.context = context; - } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + removeAnalytics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306564,26 +569499,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:removeAnalytics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + searchApps(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306596,26 +569530,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:searchApps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Androidapps { + constructor(context) { + this.context = context; + this.sha = new Resource$Projects$Androidapps$Sha(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306628,26 +569568,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/androidApps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306660,26 +569599,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306692,26 +569630,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306724,26 +569661,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/androidApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306756,26 +569692,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306788,26 +569723,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306820,26 +569754,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects$Androidapps = Resource$Projects$Androidapps; + class Resource$Projects$Androidapps$Sha { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306852,26 +569791,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/sha').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306884,26 +569822,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306916,26 +569853,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/sha').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects$Androidapps$Sha = Resource$Projects$Androidapps$Sha; + class Resource$Projects$Availablelocations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306948,26 +569890,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/availableLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects$Availablelocations = Resource$Projects$Availablelocations; + class Resource$Projects$Defaultlocation { + constructor(context) { + this.context = context; + } + finalize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306980,26 +569927,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/defaultLocation:finalize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects$Defaultlocation = Resource$Projects$Defaultlocation; + class Resource$Projects$Iosapps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307012,26 +569964,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/iosApps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307044,26 +569995,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307076,26 +570026,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307108,26 +570057,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/iosApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307140,26 +570088,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307172,26 +570119,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307204,26 +570150,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects$Iosapps = Resource$Projects$Iosapps; + class Resource$Projects$Webapps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307236,26 +570187,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307268,26 +570218,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307300,32 +570249,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; - class Resource$Instancegroups { - constructor(context) { - this.context = context; - } - addInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307338,26 +570280,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307370,26 +570311,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307402,26 +570342,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307434,58 +570373,125 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + firebase_v1beta1.Resource$Projects$Webapps = Resource$Projects$Webapps; +})(firebase_v1beta1 = exports.firebase_v1beta1 || (exports.firebase_v1beta1 = {})); + + +/***/ }), + +/***/ 9191: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.datalineage_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var datalineage_v1; +(function (datalineage_v1) { + /** + * Data Lineage API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const datalineage = google.datalineage('v1'); + * ``` + */ + class Datalineage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datalineage_v1.Datalineage = Datalineage; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datalineage_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.processes = new Resource$Projects$Locations$Processes(this.context); + } + batchSearchLinkProcesses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:batchSearchLinkProcesses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + searchLinks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307498,26 +570504,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:searchLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { + } + datalineage_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307530,26 +570541,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307562,26 +570572,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307594,26 +570603,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307626,32 +570634,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Instancegroups = Resource$Instancegroups; - class Resource$Instances { + datalineage_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Processes { constructor(context) { this.context = context; + this.runs = new Resource$Projects$Locations$Processes$Runs(this.context); } - addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307664,26 +570672,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/processes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307696,26 +570703,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307728,25 +570734,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachDisk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307759,26 +570765,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/processes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307791,27 +570796,35 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datalineage_v1.Resource$Projects$Locations$Processes = Resource$Projects$Locations$Processes; + class Resource$Projects$Locations$Processes$Runs { + constructor(context) { + this.context = context; + this.lineageEvents = + new Resource$Projects$Locations$Processes$Runs$Lineageevents(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -307822,26 +570835,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307854,32 +570866,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'accessConfig', - 'networkInterface', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachDisk(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307892,27 +570897,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'deviceName'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -307923,26 +570928,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307955,154 +570959,356 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + } + datalineage_v1.Resource$Projects$Locations$Processes$Runs = Resource$Projects$Locations$Processes$Runs; + class Resource$Projects$Locations$Processes$Runs$Lineageevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/lineageEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/lineageEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + } + datalineage_v1.Resource$Projects$Locations$Processes$Runs$Lineageevents = Resource$Projects$Locations$Processes$Runs$Lineageevents; +})(datalineage_v1 = exports.datalineage_v1 || (exports.datalineage_v1 = {})); + + +/***/ }), + +/***/ 9197: +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = isexe +isexe.sync = sync + +var fs = __webpack_require__(5747) + +function isexe (path, options, cb) { + fs.stat(path, function (er, stat) { + cb(er, er ? false : checkStat(stat, options)) + }) +} + +function sync (path, options) { + return checkStat(fs.statSync(path), options) +} + +function checkStat (stat, options) { + return stat.isFile() && checkMode(stat, options) +} + +function checkMode (stat, options) { + var mod = stat.mode + var uid = stat.uid + var gid = stat.gid + + var myUid = options.uid !== undefined ? + options.uid : process.getuid && process.getuid() + var myGid = options.gid !== undefined ? + options.gid : process.getgid && process.getgid() + + var u = parseInt('100', 8) + var g = parseInt('010', 8) + var o = parseInt('001', 8) + var ug = u | g + + var ret = (mod & o) || + (mod & g) && gid === myGid || + (mod & u) && uid === myUid || + (mod & ug) && myUid === 0 + + return ret +} + + +/***/ }), + +/***/ 9213: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.cloudchannel_v1 = exports.auth = exports.cloudchannel = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7055); +Object.defineProperty(exports, "cloudchannel_v1", { enumerable: true, get: function () { return v1_1.cloudchannel_v1; } }); +exports.VERSIONS = { + v1: v1_1.cloudchannel_v1.Cloudchannel, +}; +function cloudchannel(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudchannel', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudchannel = cloudchannel; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9218: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.analyticshub_v1beta1 = exports.analyticshub_v1 = exports.auth = exports.analyticshub = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5358); +Object.defineProperty(exports, "analyticshub_v1", { enumerable: true, get: function () { return v1_1.analyticshub_v1; } }); +const v1beta1_1 = __webpack_require__(9862); +Object.defineProperty(exports, "analyticshub_v1beta1", { enumerable: true, get: function () { return v1beta1_1.analyticshub_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.analyticshub_v1.Analyticshub, + v1beta1: v1beta1_1.analyticshub_v1beta1.Analyticshub, +}; +function analyticshub(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('analyticshub', versionOrOptions, exports.VERSIONS, this); +} +exports.analyticshub = analyticshub; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9225: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vmmigration_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var vmmigration_v1alpha1; +(function (vmmigration_v1alpha1) { + /** + * VM Migration API + * + * Use the Migrate to Virtual Machines API to programmatically migrate workloads. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vmmigration = google.vmmigration('v1alpha1'); + * ``` + */ + class Vmmigration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + vmmigration_v1alpha1.Vmmigration = Vmmigration; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + vmmigration_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.groups = new Resource$Projects$Locations$Groups(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.sources = new Resource$Projects$Locations$Sources(this.context); + this.targetProjects = new Resource$Projects$Locations$Targetprojects(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308115,26 +571321,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308147,58 +571352,65 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + vmmigration_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Groups { + constructor(context) { + this.context = context; + } + addGroupMigration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+group}:addGroupMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -308209,26 +571421,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listReferrers(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308241,26 +571452,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308273,27 +571483,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -308304,27 +571514,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -308335,58 +571545,63 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + removeGroupMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+group}:removeGroupMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Groups = Resource$Projects$Locations$Groups; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308399,32 +571614,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'autoDelete', - 'deviceName', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308437,26 +571645,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308469,26 +571676,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308501,26 +571707,36 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Sources { + constructor(context) { + this.context = context; + this.datacenterConnectors = + new Resource$Projects$Locations$Sources$Datacenterconnectors(this.context); + this.migratingVms = new Resource$Projects$Locations$Sources$Migratingvms(this.context); + this.utilizationReports = + new Resource$Projects$Locations$Sources$Utilizationreports(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308533,26 +571749,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMetadata(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308565,58 +571780,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + fetchInventory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+source}:fetchInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['source'], + pathParams: ['source'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setName(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308629,26 +571843,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setScheduling(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308661,26 +571874,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308693,538 +571905,558 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Sources = Resource$Projects$Locations$Sources; + class Resource$Projects$Locations$Sources$Datacenterconnectors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTags(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + upgradeAppliance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+datacenterConnector}:upgradeAppliance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['datacenterConnector'], + pathParams: ['datacenterConnector'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Datacenterconnectors = Resource$Projects$Locations$Sources$Datacenterconnectors; + class Resource$Projects$Locations$Sources$Migratingvms { + constructor(context) { + this.context = context; + this.cloneJobs = + new Resource$Projects$Locations$Sources$Migratingvms$Clonejobs(this.context); + this.cutoverJobs = + new Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs(this.context); + this.replicationCycles = + new Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { + finalizeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+migratingVm}:finalizeMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + pauseMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+migratingVm}:pauseMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + resumeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+migratingVm}:resumeMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + startMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+migratingVm}:startMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Migratingvms = Resource$Projects$Locations$Sources$Migratingvms; + class Resource$Projects$Locations$Sources$Migratingvms$Clonejobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Instances = Resource$Instances; - class Resource$Instancetemplates { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -309233,356 +572465,368 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Migratingvms$Clonejobs = Resource$Projects$Locations$Sources$Migratingvms$Clonejobs; + class Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Instancetemplates = Resource$Instancetemplates; - class Resource$Interconnectattachments { + vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs = Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs; + class Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/replicationCycles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles = Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles; + class Resource$Projects$Locations$Sources$Utilizationreports { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -309591,33 +572835,39 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Utilizationreports = Resource$Projects$Locations$Sources$Utilizationreports; + class Resource$Projects$Locations$Targetprojects { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309630,26 +572880,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309662,26 +572911,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309694,26 +572942,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309726,32 +572973,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Interconnectattachments = Resource$Interconnectattachments; - class Resource$Interconnectlocations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309764,26 +573004,269 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1alpha1.Resource$Projects$Locations$Targetprojects = Resource$Projects$Locations$Targetprojects; +})(vmmigration_v1alpha1 = exports.vmmigration_v1alpha1 || (exports.vmmigration_v1alpha1 = {})); + + +/***/ }), + +/***/ 9234: +/***/ (function(module) { + +"use strict"; + + +// See http://www.robvanderwoude.com/escapechars.php +const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; + +function escapeCommand(arg) { + // Escape meta chars + arg = arg.replace(metaCharsRegExp, '^$1'); + + return arg; +} + +function escapeArgument(arg, doubleEscapeMetaChars) { + // Convert to string + arg = `${arg}`; + + // Algorithm below is based on https://qntm.org/cmd + + // Sequence of backslashes followed by a double quote: + // double up all the backslashes and escape the double quote + arg = arg.replace(/(\\*)"/g, '$1$1\\"'); + + // Sequence of backslashes followed by the end of the string + // (which will become a double quote later): + // double up all the backslashes + arg = arg.replace(/(\\*)$/, '$1$1'); + + // All other backslashes occur literally + + // Quote the whole thing: + arg = `"${arg}"`; + + // Escape meta chars + arg = arg.replace(metaCharsRegExp, '^$1'); + + // Double escape meta chars if necessary + if (doubleEscapeMetaChars) { + arg = arg.replace(metaCharsRegExp, '^$1'); + } + + return arg; +} + +module.exports.command = escapeCommand; +module.exports.argument = escapeArgument; + + +/***/ }), + +/***/ 9247: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.drive_v3 = exports.drive_v2 = exports.auth = exports.drive = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(9583); +Object.defineProperty(exports, "drive_v2", { enumerable: true, get: function () { return v2_1.drive_v2; } }); +const v3_1 = __webpack_require__(4959); +Object.defineProperty(exports, "drive_v3", { enumerable: true, get: function () { return v3_1.drive_v3; } }); +exports.VERSIONS = { + v2: v2_1.drive_v2.Drive, + v3: v3_1.drive_v3.Drive, +}; +function drive(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('drive', versionOrOptions, exports.VERSIONS, this); +} +exports.drive = drive; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9248: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.vision_v1p2beta1 = exports.vision_v1p1beta1 = exports.vision_v1 = exports.auth = exports.vision = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1833); +Object.defineProperty(exports, "vision_v1", { enumerable: true, get: function () { return v1_1.vision_v1; } }); +const v1p1beta1_1 = __webpack_require__(8493); +Object.defineProperty(exports, "vision_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.vision_v1p1beta1; } }); +const v1p2beta1_1 = __webpack_require__(4666); +Object.defineProperty(exports, "vision_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_1.vision_v1p2beta1; } }); +exports.VERSIONS = { + v1: v1_1.vision_v1.Vision, + v1p1beta1: v1p1beta1_1.vision_v1p1beta1.Vision, + v1p2beta1: v1p2beta1_1.vision_v1p2beta1.Vision, +}; +function vision(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('vision', versionOrOptions, exports.VERSIONS, this); +} +exports.vision = vision; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9252: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.compute_v1 = exports.compute_beta = exports.compute_alpha = exports.auth = exports.compute = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const alpha_1 = __webpack_require__(8951); +Object.defineProperty(exports, "compute_alpha", { enumerable: true, get: function () { return alpha_1.compute_alpha; } }); +const beta_1 = __webpack_require__(4233); +Object.defineProperty(exports, "compute_beta", { enumerable: true, get: function () { return beta_1.compute_beta; } }); +const v1_1 = __webpack_require__(1635); +Object.defineProperty(exports, "compute_v1", { enumerable: true, get: function () { return v1_1.compute_v1; } }); +exports.VERSIONS = { + alpha: alpha_1.compute_alpha.Compute, + beta: beta_1.compute_beta.Compute, + v1: v1_1.compute_v1.Compute, +}; +function compute(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('compute', versionOrOptions, exports.VERSIONS, this); +} +exports.compute = compute; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9258: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.people_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var people_v1; +(function (people_v1) { + /** + * People API + * + * Provides access to information about profiles and contacts. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const people = google.people('v1'); + * ``` + */ + class People { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.contactGroups = new Resource$Contactgroups(this.context); + this.otherContacts = new Resource$Othercontacts(this.context); + this.people = new Resource$People(this.context); + } + } + people_v1.People = People; + class Resource$Contactgroups { + constructor(context) { + this.context = context; + this.members = new Resource$Contactgroups$Members(this.context); + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309796,26 +573279,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/contactGroups:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309828,31 +573310,24 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Interconnectlocations = Resource$Interconnectlocations; - class Resource$Interconnects { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -309866,23 +573341,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -309898,26 +573372,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309930,26 +573403,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309962,26 +573434,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + people_v1.Resource$Contactgroups = Resource$Contactgroups; + class Resource$Contactgroups$Members { + constructor(context) { + this.context = context; + } + modify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309994,56 +573471,63 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resourceName}/members:modify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + people_v1.Resource$Contactgroups$Members = Resource$Contactgroups$Members; + class Resource$Othercontacts { + constructor(context) { + this.context = context; + } + copyOtherContactToMyContactsGroup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}:copyOtherContactToMyContactsGroup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310056,26 +573540,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/otherContacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310088,26 +573571,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/otherContacts:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + people_v1.Resource$Othercontacts = Resource$Othercontacts; + class Resource$People { + constructor(context) { + this.context = context; + this.connections = new Resource$People$Connections(this.context); + } + batchCreateContacts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310120,26 +573609,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:batchCreateContacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + batchDeleteContacts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310152,33 +573640,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:batchDeleteContacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Interconnects = Resource$Interconnects; - class Resource$Licensecodes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchUpdateContacts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310189,26 +573671,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/people:batchUpdateContacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + createContact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310221,26 +573702,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/people:createContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + deleteContact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310253,26 +573733,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}:deleteContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + deleteContactPhoto(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310285,32 +573764,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}:deleteContactPhoto').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Licensecodes = Resource$Licensecodes; - class Resource$Licenses { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -310322,27 +573794,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getBatchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310353,26 +573825,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listDirectoryPeople(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310385,27 +573856,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:listDirectoryPeople').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchContacts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310416,26 +573887,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/people:searchContacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchDirectoryPeople(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310446,25 +573918,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:searchDirectoryPeople').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateContact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310477,26 +573949,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}:updateContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateContactPhoto(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310509,32 +573980,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}:updateContactPhoto').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Licenses = Resource$Licenses; - class Resource$Machineimages { + people_v1.Resource$People = Resource$People; + class Resource$People$Connections { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310547,60 +574017,512 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resourceName}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + people_v1.Resource$People$Connections = Resource$People$Connections; +})(people_v1 = exports.people_v1 || (exports.people_v1 = {})); + + +/***/ }), + +/***/ 9278: +/***/ (function(module, __unusedexports, __webpack_require__) { + +var BigNumber = __webpack_require__(421); + +/* + json2.js + 2013-05-26 + + Public Domain. + + NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + + See http://www.JSON.org/js.html + + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. + + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the value + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, prototype, push, replace, slice, stringify, + test, toJSON, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +var JSON = module.exports; + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' + ? c + : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key], + isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + if (isBigNumber) { + return value; + } else { + return quote(value); + } + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + case 'bigint': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 + ? '[]' + : gap + ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' + : '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + if (typeof rep[i] === 'string') { + k = rep[i]; + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + Object.keys(value).forEach(function(k) { + var v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + }); + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 + ? '{}' + : gap + ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' + : '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } +}()); + + +/***/ }), + +/***/ 9280: +/***/ (function(module) { + +module.exports = register; + +function register(state, name, method, options) { + if (typeof method !== "function") { + throw new Error("method for before hook must be a function"); + } + + if (!options) { + options = {}; + } + + if (Array.isArray(name)) { + return name.reverse().reduce(function (callback, name) { + return register.bind(null, state, name, callback, options); + }, method)(); + } + + return Promise.resolve().then(function () { + if (!state.registry[name]) { + return method(options); + } + + return state.registry[name].reduce(function (method, registered) { + return registered.hook.bind(null, method, options); + }, method)(); + }); +} + + +/***/ }), + +/***/ 9303: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.vectortile_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 = __webpack_require__(927); +var vectortile_v1; +(function (vectortile_v1) { + /** + * Semantic Tile API + * + * Serves vector tiles containing geospatial data. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vectortile = google.vectortile('v1'); + * ``` + */ + class Vectortile { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.featuretiles = new Resource$Featuretiles(this.context); + this.terraintiles = new Resource$Terraintiles(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + vectortile_v1.Vectortile = Vectortile; + class Resource$Featuretiles { + constructor(context) { + this.context = context; } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310611,59 +574533,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vectortile.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + vectortile_v1.Resource$Featuretiles = Resource$Featuretiles; + class Resource$Terraintiles { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310674,97 +574569,185 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vectortile.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); + } + vectortile_v1.Resource$Terraintiles = Resource$Terraintiles; +})(vectortile_v1 = exports.vectortile_v1 || (exports.vectortile_v1 = {})); + + +/***/ }), + +/***/ 9325: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.mybusinessqanda_v1 = exports.auth = exports.mybusinessqanda = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(7732); +Object.defineProperty(exports, "mybusinessqanda_v1", { enumerable: true, get: function () { return v1_1.mybusinessqanda_v1; } }); +exports.VERSIONS = { + v1: v1_1.mybusinessqanda_v1.Mybusinessqanda, +}; +function mybusinessqanda(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessqanda', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessqanda = mybusinessqanda; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9353: +/***/ (function(module) { + +"use strict"; + + +/* eslint no-invalid-this: 1 */ + +var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; +var slice = Array.prototype.slice; +var toStr = Object.prototype.toString; +var funcType = '[object Function]'; + +module.exports = function bind(that) { + var target = this; + if (typeof target !== 'function' || toStr.call(target) !== funcType) { + throw new TypeError(ERROR_MESSAGE + target); + } + var args = slice.call(arguments, 1); + + var bound; + var binder = function () { + if (this instanceof bound) { + var result = target.apply( + this, + args.concat(slice.call(arguments)) + ); + if (Object(result) === result) { + return result; } + return this; + } else { + return target.apply( + that, + args.concat(slice.call(arguments)) + ); } - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], - context: this.context, + }; + + var boundLength = Math.max(0, target.length - args.length); + var boundArgs = []; + for (var i = 0; i < boundLength; i++) { + boundArgs.push('$' + i); + } + + bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); + + if (target.prototype) { + var Empty = function Empty() {}; + Empty.prototype = target.prototype; + bound.prototype = new Empty(); + Empty.prototype = null; + } + + return bound; +}; + + +/***/ }), + +/***/ 9354: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.tagmanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var tagmanager_v2; +(function (tagmanager_v2) { + /** + * Tag Manager API + * + * This API allows clients to access and modify container and tag configuration. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tagmanager = google.tagmanager('v2'); + * ``` + */ + class Tagmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.accounts = new Resource$Accounts(this.context); } } - compute_alpha.Resource$Machineimages = Resource$Machineimages; - class Resource$Machinetypes { + tagmanager_v2.Tagmanager = Tagmanager; + class Resource$Accounts { constructor(context) { this.context = context; + this.containers = new Resource$Accounts$Containers(this.context); + this.user_permissions = new Resource$Accounts$User_permissions(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310775,26 +574758,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -310806,28 +574788,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310838,32 +574818,36 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Machinetypes = Resource$Machinetypes; - class Resource$Networkendpointgroups { + tagmanager_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Containers { constructor(context) { this.context = context; + this.destinations = new Resource$Accounts$Containers$Destinations(this.context); + this.environments = new Resource$Accounts$Containers$Environments(this.context); + this.versions = new Resource$Accounts$Containers$Versions(this.context); + this.version_headers = new Resource$Accounts$Containers$Version_headers(this.context); + this.workspaces = new Resource$Accounts$Containers$Workspaces(this.context); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + combine(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310876,26 +574860,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:combine').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310908,23 +574891,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -310940,26 +574922,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310972,26 +574953,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311004,26 +574984,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311036,26 +575015,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/accounts/containers:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + move_tag_id(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311068,26 +575046,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:move_tag_id').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + snippet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311100,26 +575077,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}:snippet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311132,32 +575108,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Networkendpointgroups = Resource$Networkendpointgroups; - class Resource$Networks { + tagmanager_v2.Resource$Accounts$Containers = Resource$Accounts$Containers; + class Resource$Accounts$Containers$Destinations { constructor(context) { this.context = context; } - addPeering(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311170,88 +575145,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + link(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311264,86 +575176,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - insert(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/destinations:link').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - listIpAddresses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311356,26 +575207,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/destinations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listIpOwners(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Destinations = Resource$Accounts$Containers$Destinations; + class Resource$Accounts$Containers$Environments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311388,26 +575244,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311420,57 +575275,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePeering(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311483,26 +575306,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311515,58 +575337,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + reauthorize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:reauthorize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePeering(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311579,32 +575400,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Networks = Resource$Networks; - class Resource$Nodegroups { + tagmanager_v2.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; + class Resource$Accounts$Containers$Versions { constructor(context) { this.context = context; } - addNodes(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311617,26 +575437,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311649,26 +575468,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + live(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311681,26 +575499,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/versions:live').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311713,57 +575530,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + set_latest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311776,26 +575561,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:set_latest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311808,57 +575592,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'initialNodeCount'], - pathParams: ['project', 'zone'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNodes(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311871,57 +575623,63 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + tagmanager_v2.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; + class Resource$Accounts$Containers$Version_headers { + constructor(context) { + this.context = context; + } + latest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers:latest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311934,26 +575692,42 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Version_headers = Resource$Accounts$Containers$Version_headers; + class Resource$Accounts$Containers$Workspaces { + constructor(context) { + this.context = context; + this.built_in_variables = + new Resource$Accounts$Containers$Workspaces$Built_in_variables(this.context); + this.clients = new Resource$Accounts$Containers$Workspaces$Clients(this.context); + this.folders = new Resource$Accounts$Containers$Workspaces$Folders(this.context); + this.gtag_config = + new Resource$Accounts$Containers$Workspaces$Gtag_config(this.context); + this.tags = new Resource$Accounts$Containers$Workspaces$Tags(this.context); + this.templates = new Resource$Accounts$Containers$Workspaces$Templates(this.context); + this.triggers = new Resource$Accounts$Containers$Workspaces$Triggers(this.context); + this.variables = new Resource$Accounts$Containers$Workspaces$Variables(this.context); + this.zones = new Resource$Accounts$Containers$Workspaces$Zones(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311966,64 +575740,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create_version(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:create_version').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Nodegroups = Resource$Nodegroups; - class Resource$Nodetemplates { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312036,26 +575803,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312068,26 +575834,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312100,26 +575865,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}/status').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312132,90 +575896,89 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + quick_preview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:quick_preview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + resolve_conflict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:resolve_conflict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + sync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312228,26 +575991,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:sync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312260,224 +576022,194 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Nodetemplates = Resource$Nodetemplates; - class Resource$Nodetypes { + tagmanager_v2.Resource$Accounts$Containers$Workspaces = Resource$Accounts$Containers$Workspaces; + class Resource$Accounts$Containers$Workspaces$Built_in_variables { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Nodetypes = Resource$Nodetypes; - class Resource$Organizationsecuritypolicies { - constructor(context) { - this.context = context; - } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}/built_in_variables:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copyRules(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Built_in_variables = Resource$Accounts$Containers$Workspaces$Built_in_variables; + class Resource$Accounts$Containers$Workspaces$Clients { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -312486,30 +576218,30 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -312518,484 +576250,490 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Clients = Resource$Accounts$Containers$Workspaces$Clients; + class Resource$Accounts$Containers$Workspaces$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + entities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:entities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + move_entities_to_folder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:move_entities_to_folder').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; - class Resource$Packetmirrorings { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Folders = Resource$Accounts$Containers$Workspaces$Folders; + class Resource$Accounts$Containers$Workspaces$Gtag_config { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/gtag_config').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -313004,134 +576742,135 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/gtag_config').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Gtag_config = Resource$Accounts$Containers$Workspaces$Gtag_config; + class Resource$Accounts$Containers$Workspaces$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Packetmirrorings = Resource$Packetmirrorings; - class Resource$Projects { - constructor(context) { - this.context = context; - } - disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313144,25 +576883,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313175,738 +576914,753 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Tags = Resource$Accounts$Containers$Workspaces$Tags; + class Resource$Accounts$Containers$Workspaces$Templates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDisk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveInstance(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Templates = Resource$Accounts$Containers$Workspaces$Templates; + class Resource$Accounts$Containers$Workspaces$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/setDefaultServiceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Projects = Resource$Projects; - class Resource$Publicadvertisedprefixes { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Triggers = Resource$Accounts$Containers$Workspaces$Triggers; + class Resource$Accounts$Containers$Workspaces$Variables { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; - class Resource$Publicdelegatedprefixes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Variables = Resource$Accounts$Containers$Workspaces$Variables; + class Resource$Accounts$Containers$Workspaces$Zones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; - class Resource$Regionautoscalers { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313919,122 +577673,127 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Zones = Resource$Accounts$Containers$Workspaces$Zones; + class Resource$Accounts$User_permissions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314047,26 +577806,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314079,26 +577837,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314111,32 +577868,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionautoscalers = Resource$Regionautoscalers; - class Resource$Regionbackendservices { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314149,26 +577899,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314181,26 +577930,340 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$User_permissions = Resource$Accounts$User_permissions; +})(tagmanager_v2 = exports.tagmanager_v2 || (exports.tagmanager_v2 = {})); + + +/***/ }), + +/***/ 9360: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.domains_v1beta1 = exports.domains_v1alpha2 = exports.domains_v1 = exports.auth = exports.domains = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1271); +Object.defineProperty(exports, "domains_v1", { enumerable: true, get: function () { return v1_1.domains_v1; } }); +const v1alpha2_1 = __webpack_require__(1691); +Object.defineProperty(exports, "domains_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.domains_v1alpha2; } }); +const v1beta1_1 = __webpack_require__(5516); +Object.defineProperty(exports, "domains_v1beta1", { enumerable: true, get: function () { return v1beta1_1.domains_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.domains_v1.Domains, + v1alpha2: v1alpha2_1.domains_v1alpha2.Domains, + v1beta1: v1beta1_1.domains_v1beta1.Domains, +}; +function domains(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('domains', versionOrOptions, exports.VERSIONS, this); +} +exports.domains = domains; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9369: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.discoveryengine_v1beta = exports.discoveryengine_v1alpha = exports.auth = exports.discoveryengine = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1alpha_1 = __webpack_require__(5678); +Object.defineProperty(exports, "discoveryengine_v1alpha", { enumerable: true, get: function () { return v1alpha_1.discoveryengine_v1alpha; } }); +const v1beta_1 = __webpack_require__(8516); +Object.defineProperty(exports, "discoveryengine_v1beta", { enumerable: true, get: function () { return v1beta_1.discoveryengine_v1beta; } }); +exports.VERSIONS = { + v1alpha: v1alpha_1.discoveryengine_v1alpha.Discoveryengine, + v1beta: v1beta_1.discoveryengine_v1beta.Discoveryengine, +}; +function discoveryengine(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('discoveryengine', versionOrOptions, exports.VERSIONS, this); +} +exports.discoveryengine = discoveryengine; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9374: +/***/ (function(module) { + +"use strict"; + + +var hasOwn = Object.prototype.hasOwnProperty; +var toStr = Object.prototype.toString; +var defineProperty = Object.defineProperty; +var gOPD = Object.getOwnPropertyDescriptor; + +var isArray = function isArray(arr) { + if (typeof Array.isArray === 'function') { + return Array.isArray(arr); + } + + return toStr.call(arr) === '[object Array]'; +}; + +var isPlainObject = function isPlainObject(obj) { + if (!obj || toStr.call(obj) !== '[object Object]') { + return false; + } + + var hasOwnConstructor = hasOwn.call(obj, 'constructor'); + var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); + // Not own constructor property must be Object + if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + var key; + for (key in obj) { /**/ } + + return typeof key === 'undefined' || hasOwn.call(obj, key); +}; + +// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target +var setProperty = function setProperty(target, options) { + if (defineProperty && options.name === '__proto__') { + defineProperty(target, options.name, { + enumerable: true, + configurable: true, + value: options.newValue, + writable: true + }); + } else { + target[options.name] = options.newValue; + } +}; + +// Return undefined instead of __proto__ if '__proto__' is not an own property +var getProperty = function getProperty(obj, name) { + if (name === '__proto__') { + if (!hasOwn.call(obj, name)) { + return void 0; + } else if (gOPD) { + // In early versions of node, obj['__proto__'] is buggy when obj has + // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. + return gOPD(obj, name).value; + } + } + + return obj[name]; +}; + +module.exports = function extend() { + var options, name, src, copy, copyIsArray, clone; + var target = arguments[0]; + var i = 1; + var length = arguments.length; + var deep = false; + + // Handle a deep copy situation + if (typeof target === 'boolean') { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + if (target == null || (typeof target !== 'object' && typeof target !== 'function')) { + target = {}; + } + + for (; i < length; ++i) { + options = arguments[i]; + // Only deal with non-null/undefined values + if (options != null) { + // Extend the base object + for (name in options) { + src = getProperty(target, name); + copy = getProperty(options, name); + + // Prevent never-ending loop + if (target !== copy) { + // Recurse if we're merging plain objects or arrays + if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { + if (copyIsArray) { + copyIsArray = false; + clone = src && isArray(src) ? src : []; + } else { + clone = src && isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); + + // Don't bring in undefined values + } else if (typeof copy !== 'undefined') { + setProperty(target, { name: name, newValue: copy }); + } + } + } + } + } + + // Return the modified object + return target; +}; + + +/***/ }), + +/***/ 9376: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.tagmanager_v2 = exports.tagmanager_v1 = exports.auth = exports.tagmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(6097); +Object.defineProperty(exports, "tagmanager_v1", { enumerable: true, get: function () { return v1_1.tagmanager_v1; } }); +const v2_1 = __webpack_require__(9354); +Object.defineProperty(exports, "tagmanager_v2", { enumerable: true, get: function () { return v2_1.tagmanager_v2; } }); +exports.VERSIONS = { + v1: v1_1.tagmanager_v1.Tagmanager, + v2: v2_1.tagmanager_v2.Tagmanager, +}; +function tagmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('tagmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.tagmanager = tagmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9383: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.identitytoolkit_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var identitytoolkit_v2; +(function (identitytoolkit_v2) { + /** + * Identity Toolkit API + * + * The Google Identity Toolkit API lets you use open standards to verify a user's identity. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const identitytoolkit = google.identitytoolkit('v2'); + * ``` + */ + class Identitytoolkit { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.defaultSupportedIdps = new Resource$Defaultsupportedidps(this.context); + this.projects = new Resource$Projects(this.context); + this.v2 = new Resource$V2(this.context); + } + } + identitytoolkit_v2.Identitytoolkit = Identitytoolkit; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.mfaEnrollment = new Resource$Accounts$Mfaenrollment(this.context); + this.mfaSignIn = new Resource$Accounts$Mfasignin(this.context); + } + revokeToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314213,26 +578276,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts:revokeToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Mfaenrollment { + constructor(context) { + this.context = context; + } + finalize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314245,26 +578313,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts/mfaEnrollment:finalize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314277,26 +578344,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/accounts/mfaEnrollment:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + withdraw(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314309,26 +578375,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/accounts/mfaEnrollment:withdraw').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Accounts$Mfaenrollment = Resource$Accounts$Mfaenrollment; + class Resource$Accounts$Mfasignin { + constructor(context) { + this.context = context; + } + finalize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314341,26 +578412,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts/mfaSignIn:finalize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314373,32 +578443,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/accounts/mfaSignIn:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices; - class Resource$Regioncommitments { + identitytoolkit_v2.Resource$Accounts$Mfasignin = Resource$Accounts$Mfasignin; + class Resource$Defaultsupportedidps { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314411,26 +578480,37 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/defaultSupportedIdps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Defaultsupportedidps = Resource$Defaultsupportedidps; + class Resource$Projects { + constructor(context) { + this.context = context; + this.defaultSupportedIdpConfigs = + new Resource$Projects$Defaultsupportedidpconfigs(this.context); + this.identityPlatform = new Resource$Projects$Identityplatform(this.context); + this.inboundSamlConfigs = new Resource$Projects$Inboundsamlconfigs(this.context); + this.oauthIdpConfigs = new Resource$Projects$Oauthidpconfigs(this.context); + this.tenants = new Resource$Projects$Tenants(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314443,26 +578523,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314475,90 +578554,95 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Defaultsupportedidpconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateReservations(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314571,32 +578655,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regioncommitments = Resource$Regioncommitments; - class Resource$Regiondisks { - constructor(context) { - this.context = context; - } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314609,58 +578686,63 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects$Defaultsupportedidpconfigs = Resource$Projects$Defaultsupportedidpconfigs; + class Resource$Projects$Identityplatform { + constructor(context) { + this.context = context; + } + initializeAuth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314673,27 +578755,33 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+project}/identityPlatform:initializeAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + identitytoolkit_v2.Resource$Projects$Identityplatform = Resource$Projects$Identityplatform; + class Resource$Projects$Inboundsamlconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314704,26 +578792,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314736,26 +578823,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314768,27 +578854,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314799,26 +578885,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314831,26 +578916,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects$Inboundsamlconfigs = Resource$Projects$Inboundsamlconfigs; + class Resource$Projects$Oauthidpconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314863,26 +578953,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314895,26 +578984,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314927,26 +579015,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314959,32 +579046,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regiondisks = Resource$Regiondisks; - class Resource$Regiondisktypes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314997,26 +579077,36 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects$Oauthidpconfigs = Resource$Projects$Oauthidpconfigs; + class Resource$Projects$Tenants { + constructor(context) { + this.context = context; + this.defaultSupportedIdpConfigs = + new Resource$Projects$Tenants$Defaultsupportedidpconfigs(this.context); + this.inboundSamlConfigs = + new Resource$Projects$Tenants$Inboundsamlconfigs(this.context); + this.oauthIdpConfigs = new Resource$Projects$Tenants$Oauthidpconfigs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315029,31 +579119,24 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regiondisktypes = Resource$Regiondisktypes; - class Resource$Regionhealthchecks { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -315067,23 +579150,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -315099,26 +579181,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315131,23 +579212,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -315163,23 +579243,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -315195,26 +579274,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315227,26 +579305,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315259,125 +579336,124 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Regionhealthchecks = Resource$Regionhealthchecks; - class Resource$Regionhealthcheckservices { + identitytoolkit_v2.Resource$Projects$Tenants = Resource$Projects$Tenants; + class Resource$Projects$Tenants$Defaultsupportedidpconfigs { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -315386,30 +579462,30 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -315418,100 +579494,100 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects$Tenants$Defaultsupportedidpconfigs = Resource$Projects$Tenants$Defaultsupportedidpconfigs; + class Resource$Projects$Tenants$Inboundsamlconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; - class Resource$Regioninplacesnapshots { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'inPlaceSnapshot'], - pathParams: ['inPlaceSnapshot', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -315527,26 +579603,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'inPlaceSnapshot'], - pathParams: ['inPlaceSnapshot', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315559,58 +579634,63 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects$Tenants$Inboundsamlconfigs = Resource$Projects$Tenants$Inboundsamlconfigs; + class Resource$Projects$Tenants$Oauthidpconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315623,26 +579703,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315655,26 +579734,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315687,26 +579765,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315719,32 +579796,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regioninplacesnapshots = Resource$Regioninplacesnapshots; - class Resource$Regioninstancegroupmanagers { - constructor(context) { - this.context = context; - } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315757,26 +579827,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Projects$Tenants$Oauthidpconfigs = Resource$Projects$Tenants$Oauthidpconfigs; + class Resource$V2 { + constructor(context) { + this.context = context; + } + getRecaptchaConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315789,151 +579864,563 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/recaptchaConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + identitytoolkit_v2.Resource$V2 = Resource$V2; +})(identitytoolkit_v2 = exports.identitytoolkit_v2 || (exports.identitytoolkit_v2 = {})); + + +/***/ }), + +/***/ 9385: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, '__esModule', { value: true }); + +var isPlainObject = __webpack_require__(5356); +var universalUserAgent = __webpack_require__(6796); + +function lowercaseKeys(object) { + if (!object) { + return {}; + } + + return Object.keys(object).reduce((newObj, key) => { + newObj[key.toLowerCase()] = object[key]; + return newObj; + }, {}); +} + +function mergeDeep(defaults, options) { + const result = Object.assign({}, defaults); + Object.keys(options).forEach(key => { + if (isPlainObject.isPlainObject(options[key])) { + if (!(key in defaults)) Object.assign(result, { + [key]: options[key] + });else result[key] = mergeDeep(defaults[key], options[key]); + } else { + Object.assign(result, { + [key]: options[key] + }); + } + }); + return result; +} + +function removeUndefinedProperties(obj) { + for (const key in obj) { + if (obj[key] === undefined) { + delete obj[key]; + } + } + + return obj; +} + +function merge(defaults, route, options) { + if (typeof route === "string") { + let [method, url] = route.split(" "); + options = Object.assign(url ? { + method, + url + } : { + url: method + }, options); + } else { + options = Object.assign({}, route); + } // lowercase header names before merging with defaults to avoid duplicates + + + options.headers = lowercaseKeys(options.headers); // remove properties with undefined values before merging + + removeUndefinedProperties(options); + removeUndefinedProperties(options.headers); + const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten + + if (defaults && defaults.mediaType.previews.length) { + mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews); + } + + mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, "")); + return mergedOptions; +} + +function addQueryParameters(url, parameters) { + const separator = /\?/.test(url) ? "&" : "?"; + const names = Object.keys(parameters); + + if (names.length === 0) { + return url; + } + + return url + separator + names.map(name => { + if (name === "q") { + return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+"); + } + + return `${name}=${encodeURIComponent(parameters[name])}`; + }).join("&"); +} + +const urlVariableRegex = /\{[^}]+\}/g; + +function removeNonChars(variableName) { + return variableName.replace(/^\W+|\W+$/g, "").split(/,/); +} + +function extractUrlVariableNames(url) { + const matches = url.match(urlVariableRegex); + + if (!matches) { + return []; + } + + return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); +} + +function omit(object, keysToOmit) { + return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => { + obj[key] = object[key]; + return obj; + }, {}); +} + +// Based on https://github.com/bramstein/url-template, licensed under BSD +// TODO: create separate package. +// +// Copyright (c) 2012-2014, Bram Stein +// All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. The name of the author may not be used to endorse or promote products +// derived from this software without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/* istanbul ignore file */ +function encodeReserved(str) { + return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { + if (!/%[0-9A-Fa-f]/.test(part)) { + part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]"); + } + + return part; + }).join(""); +} + +function encodeUnreserved(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); +} + +function encodeValue(operator, value, key) { + value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value); + + if (key) { + return encodeUnreserved(key) + "=" + value; + } else { + return value; + } +} + +function isDefined(value) { + return value !== undefined && value !== null; +} + +function isKeyOperator(operator) { + return operator === ";" || operator === "&" || operator === "?"; +} + +function getValues(context, operator, key, modifier) { + var value = context[key], + result = []; + + if (isDefined(value) && value !== "") { + if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") { + value = value.toString(); + + if (modifier && modifier !== "*") { + value = value.substring(0, parseInt(modifier, 10)); + } + + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + } else { + if (modifier === "*") { + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + }); + } else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + result.push(encodeValue(operator, value[k], k)); + } + }); + } + } else { + const tmp = []; + + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + tmp.push(encodeValue(operator, value)); + }); + } else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + tmp.push(encodeUnreserved(k)); + tmp.push(encodeValue(operator, value[k].toString())); + } + }); + } + + if (isKeyOperator(operator)) { + result.push(encodeUnreserved(key) + "=" + tmp.join(",")); + } else if (tmp.length !== 0) { + result.push(tmp.join(",")); + } + } + } + } else { + if (operator === ";") { + if (isDefined(value)) { + result.push(encodeUnreserved(key)); + } + } else if (value === "" && (operator === "&" || operator === "?")) { + result.push(encodeUnreserved(key) + "="); + } else if (value === "") { + result.push(""); + } + } + + return result; +} + +function parseUrl(template) { + return { + expand: expand.bind(null, template) + }; +} + +function expand(template, context) { + var operators = ["+", "#", ".", "/", ";", "?", "&"]; + return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { + if (expression) { + let operator = ""; + const values = []; + + if (operators.indexOf(expression.charAt(0)) !== -1) { + operator = expression.charAt(0); + expression = expression.substr(1); + } + + expression.split(/,/g).forEach(function (variable) { + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); + values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + }); + + if (operator && operator !== "+") { + var separator = ","; + + if (operator === "?") { + separator = "&"; + } else if (operator !== "#") { + separator = operator; + } + + return (values.length !== 0 ? operator : "") + values.join(separator); + } else { + return values.join(","); + } + } else { + return encodeReserved(literal); + } + }); +} + +function parse(options) { + // https://fetch.spec.whatwg.org/#methods + let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible + + let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}"); + let headers = Object.assign({}, options.headers); + let body; + let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later + + const urlVariableNames = extractUrlVariableNames(url); + url = parseUrl(url).expand(parameters); + + if (!/^http/.test(url)) { + url = options.baseUrl + url; + } + + const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl"); + const remainingParameters = omit(parameters, omittedParameters); + const isBinaryRequest = /application\/octet-stream/i.test(headers.accept); + + if (!isBinaryRequest) { + if (options.mediaType.format) { + // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw + headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(","); + } + + if (options.mediaType.previews.length) { + const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || []; + headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => { + const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json"; + return `application/vnd.github.${preview}-preview${format}`; + }).join(","); + } + } // for GET/HEAD requests, set URL query parameters from remaining parameters + // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters + + + if (["GET", "HEAD"].includes(method)) { + url = addQueryParameters(url, remainingParameters); + } else { + if ("data" in remainingParameters) { + body = remainingParameters.data; + } else { + if (Object.keys(remainingParameters).length) { + body = remainingParameters; + } else { + headers["content-length"] = 0; + } + } + } // default content-type for JSON if body is set + + + if (!headers["content-type"] && typeof body !== "undefined") { + headers["content-type"] = "application/json; charset=utf-8"; + } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body. + // fetch does not allow to set `content-length` header, but we can set body to an empty string + + + if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") { + body = ""; + } // Only return body/request keys if present + + + return Object.assign({ + method, + url, + headers + }, typeof body !== "undefined" ? { + body + } : null, options.request ? { + request: options.request + } : null); +} + +function endpointWithDefaults(defaults, route, options) { + return parse(merge(defaults, route, options)); +} + +function withDefaults(oldDefaults, newDefaults) { + const DEFAULTS = merge(oldDefaults, newDefaults); + const endpoint = endpointWithDefaults.bind(null, DEFAULTS); + return Object.assign(endpoint, { + DEFAULTS, + defaults: withDefaults.bind(null, DEFAULTS), + merge: merge.bind(null, DEFAULTS), + parse + }); +} + +const VERSION = "6.0.12"; + +const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url. +// So we use RequestParameters and add method as additional required property. + +const DEFAULTS = { + method: "GET", + baseUrl: "https://api.github.com", + headers: { + accept: "application/vnd.github.v3+json", + "user-agent": userAgent + }, + mediaType: { + format: "", + previews: [] + } +}; + +const endpoint = withDefaults(null, DEFAULTS); + +exports.endpoint = endpoint; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 9388: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.dataproc_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var dataproc_v1; +(function (dataproc_v1) { + /** + * Cloud Dataproc API + * + * Manages Hadoop-based clusters and jobs on Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dataproc = google.dataproc('v1'); + * ``` + */ + class Dataproc { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); } - createInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + dataproc_v1.Dataproc = Dataproc; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.regions = new Resource$Projects$Regions(this.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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + dataproc_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.autoscalingPolicies = + new Resource$Projects$Locations$Autoscalingpolicies(this.context); + this.batches = new Resource$Projects$Locations$Batches(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.workflowTemplates = + new Resource$Projects$Locations$Workflowtemplates(this.context); } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + } + dataproc_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -315942,62 +580429,62 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -316006,193 +580493,135 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - listErrors(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + dataproc_v1.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; + class Resource$Projects$Locations$Batches { + constructor(context) { + this.context = context; } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316205,26 +580634,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/batches').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316237,26 +580665,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316269,26 +580696,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316301,58 +580727,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/batches').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + } + dataproc_v1.Resource$Projects$Locations$Batches = Resource$Projects$Locations$Batches; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316365,58 +580764,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316429,31 +580795,24 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; - class Resource$Regioninstancegroups { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -316467,23 +580826,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -316499,195 +580857,92 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - listInstances(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - setNamedPorts(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], - 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Regioninstancegroups = Resource$Regioninstancegroups; - class Resource$Regioninstances { + dataproc_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workflowtemplates { constructor(context) { this.context = context; } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regioninstances = Resource$Regioninstances; - class Resource$Regionnetworkendpointgroups { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -316703,326 +580958,331 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + instantiate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; - class Resource$Regionnotificationendpoints { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; - class Resource$Regionoperations { + dataproc_v1.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; + class Resource$Projects$Regions { constructor(context) { this.context = context; + this.autoscalingPolicies = + new Resource$Projects$Regions$Autoscalingpolicies(this.context); + this.clusters = new Resource$Projects$Regions$Clusters(this.context); + this.jobs = new Resource$Projects$Regions$Jobs(this.context); + this.operations = new Resource$Projects$Regions$Operations(this.context); + this.workflowTemplates = new Resource$Projects$Regions$Workflowtemplates(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + dataproc_v1.Resource$Projects$Regions = Resource$Projects$Regions; + class Resource$Projects$Regions$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317035,194 +581295,192 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionoperations = Resource$Regionoperations; - class Resource$Regions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regions = Resource$Regions; - class Resource$Regionsslcertificates { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dataproc_v1.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; + class Resource$Projects$Regions$Clusters { + constructor(context) { + this.context = context; + this.nodeGroups = new Resource$Projects$Regions$Clusters$Nodegroups(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317235,26 +581493,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317267,26 +581524,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + diagnose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317299,32 +581556,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionsslcertificates = Resource$Regionsslcertificates; - class Resource$Regiontargethttpproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317337,26 +581588,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317369,55 +581620,54 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + injectCredentials(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+project}/{+region}/{+cluster}:injectCredentials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'cluster'], + pathParams: ['cluster', 'project', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -317433,26 +581683,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317465,26 +581714,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + repair(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317497,32 +581746,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; - class Resource$Regiontargethttpsproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317535,26 +581778,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317567,26 +581809,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317599,90 +581841,96 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + } + dataproc_v1.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; + class Resource$Projects$Regions$Clusters$Nodegroups { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317695,96 +581943,63 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; - class Resource$Regionurlmaps { + dataproc_v1.Resource$Projects$Regions$Clusters$Nodegroups = Resource$Projects$Regions$Clusters$Nodegroups; + class Resource$Projects$Regions$Jobs { 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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317797,26 +582012,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317829,26 +582044,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317861,26 +582075,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317893,26 +582106,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317925,26 +582137,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317957,26 +582168,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317989,26 +582199,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + submit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318021,32 +582230,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps; - class Resource$Reservations { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318059,26 +582261,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318091,27 +582293,33 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dataproc_v1.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; + class Resource$Projects$Regions$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -318122,26 +582330,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318154,26 +582361,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318186,26 +582392,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318218,26 +582423,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318250,23 +582454,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -318282,23 +582485,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -318307,68 +582509,68 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Reservations = Resource$Reservations; - class Resource$Resourcepolicies { + dataproc_v1.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; + class Resource$Projects$Regions$Workflowtemplates { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -318377,30 +582579,30 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -318416,23 +582618,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { @@ -318441,97 +582642,97 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + instantiate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318544,253 +582745,378 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Resourcepolicies = Resource$Resourcepolicies; - class Resource$Routers { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dataproc_v1.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; +})(dataproc_v1 = exports.dataproc_v1 || (exports.dataproc_v1 = {})); + + +/***/ }), + +/***/ 9402: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.analyticsreporting_v4 = exports.auth = exports.analyticsreporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v4_1 = __webpack_require__(2554); +Object.defineProperty(exports, "analyticsreporting_v4", { enumerable: true, get: function () { return v4_1.analyticsreporting_v4; } }); +exports.VERSIONS = { + v4: v4_1.analyticsreporting_v4.Analyticsreporting, +}; +function analyticsreporting(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('analyticsreporting', versionOrOptions, exports.VERSIONS, this); +} +exports.analyticsreporting = analyticsreporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9414: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.retail_v2alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var retail_v2alpha; +(function (retail_v2alpha) { + /** + * Retail API + * + * Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const retail = google.retail('v2alpha'); + * ``` + */ + class Retail { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + retail_v2alpha.Retail = Retail; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + retail_v2alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + retail_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Catalogs { + constructor(context) { + this.context = context; + this.attributesConfig = + new Resource$Projects$Locations$Catalogs$Attributesconfig(this.context); + this.branches = new Resource$Projects$Locations$Catalogs$Branches(this.context); + this.completionData = + new Resource$Projects$Locations$Catalogs$Completiondata(this.context); + this.controls = new Resource$Projects$Locations$Catalogs$Controls(this.context); + this.merchantCenterAccountLinks = + new Resource$Projects$Locations$Catalogs$Merchantcenteraccountlinks(this.context); + this.models = new Resource$Projects$Locations$Catalogs$Models(this.context); + this.operations = new Resource$Projects$Locations$Catalogs$Operations(this.context); + this.placements = new Resource$Projects$Locations$Catalogs$Placements(this.context); + this.servingConfigs = + new Resource$Projects$Locations$Catalogs$Servingconfigs(this.context); + this.userEvents = new Resource$Projects$Locations$Catalogs$Userevents(this.context); + } + completeQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + getAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + getCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -318801,27 +583127,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -318832,804 +583158,849 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - preview(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Routers = Resource$Routers; - class Resource$Routes { + retail_v2alpha.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; + class Resource$Projects$Locations$Catalogs$Attributesconfig { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchRemoveCatalogAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v2alpha/{+attributesConfig}:batchRemoveCatalogAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + replaceCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Attributesconfig = Resource$Projects$Locations$Catalogs$Attributesconfig; + class Resource$Projects$Locations$Catalogs$Branches { + constructor(context) { + this.context = context; + this.operations = + new Resource$Projects$Locations$Catalogs$Branches$Operations(this.context); + this.places = new Resource$Projects$Locations$Catalogs$Branches$Places(this.context); + this.products = + new Resource$Projects$Locations$Catalogs$Branches$Products(this.context); + } + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Branches = Resource$Projects$Locations$Catalogs$Branches; + class Resource$Projects$Locations$Catalogs$Branches$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Routes = Resource$Routes; - class Resource$Securitypolicies { + retail_v2alpha.Resource$Projects$Locations$Catalogs$Branches$Operations = Resource$Projects$Locations$Catalogs$Branches$Operations; + class Resource$Projects$Locations$Catalogs$Branches$Places { constructor(context) { this.context = context; + this.operations = + new Resource$Projects$Locations$Catalogs$Branches$Places$Operations(this.context); } - addRule(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Branches$Places = Resource$Projects$Locations$Catalogs$Branches$Places; + class Resource$Projects$Locations$Catalogs$Branches$Places$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Branches$Places$Operations = Resource$Projects$Locations$Catalogs$Branches$Places$Operations; + class Resource$Projects$Locations$Catalogs$Branches$Products { + constructor(context) { + this.context = context; + } + addFulfillmentPlaces(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + addLocalInventories(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/products:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + removeFulfillmentPlaces(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + removeLocalInventories(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies; - class Resource$Serviceattachments { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setInventory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Branches$Products = Resource$Projects$Locations$Catalogs$Branches$Products; + class Resource$Projects$Locations$Catalogs$Completiondata { + constructor(context) { + this.context = context; + } + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Completiondata = Resource$Projects$Locations$Catalogs$Completiondata; + class Resource$Projects$Locations$Catalogs$Controls { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319642,252 +584013,261 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Serviceattachments = Resource$Serviceattachments; - class Resource$Snapshots { + retail_v2alpha.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; + class Resource$Projects$Locations$Catalogs$Merchantcenteraccountlinks { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createMerchantCenterAccountLink(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/merchantCenterAccountLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Merchantcenteraccountlinks = Resource$Projects$Locations$Catalogs$Merchantcenteraccountlinks; + class Resource$Projects$Locations$Catalogs$Models { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319900,26 +584280,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319932,32 +584311,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Snapshots = Resource$Snapshots; - class Resource$Sslcertificates { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319970,26 +584342,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320002,58 +584373,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + tune(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320066,640 +584436,631 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Models = Resource$Projects$Locations$Catalogs$Models; + class Resource$Projects$Locations$Catalogs$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Sslcertificates = Resource$Sslcertificates; - class Resource$Sslpolicies { + retail_v2alpha.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; + class Resource$Projects$Locations$Catalogs$Placements { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + predict(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], - 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Placements = Resource$Projects$Locations$Catalogs$Placements; + class Resource$Projects$Locations$Catalogs$Servingconfigs { + constructor(context) { + this.context = context; + } + addControl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Sslpolicies = Resource$Sslpolicies; - class Resource$Subnetworks { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + predict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeControl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Servingconfigs = Resource$Projects$Locations$Catalogs$Servingconfigs; + class Resource$Projects$Locations$Catalogs$Userevents { + constructor(context) { + this.context = context; + } + collect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(paramsOrCallback, optionsOrCallback, callback) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + rejoin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + write(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320712,26 +585073,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320744,32 +585104,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Subnetworks = Resource$Subnetworks; - class Resource$Targetgrpcproxies { + retail_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320782,26 +585141,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320814,28 +585172,133 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + retail_v2alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(retail_v2alpha = exports.retail_v2alpha || (exports.retail_v2alpha = {})); + + +/***/ }), + +/***/ 9418: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + +// Older verions of Node.js might not have `util.getSystemErrorName()`. +// In that case, fall back to a deprecated internal. +const util = __webpack_require__(1669); + +let uv; + +if (typeof util.getSystemErrorName === 'function') { + module.exports = util.getSystemErrorName; +} else { + try { + uv = process.binding('uv'); + + if (typeof uv.errname !== 'function') { + throw new TypeError('uv.errname is not a function'); + } + } catch (err) { + console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err); + uv = null; + } + + module.exports = code => errname(uv, code); +} + +// Used for testing the fallback behavior +module.exports.__test__ = errname; + +function errname(uv, code) { + if (uv) { + return uv.errname(code); + } + + if (!(code < 0)) { + throw new Error('err >= 0'); + } + + return `Unknown system error ${code}`; +} + + + +/***/ }), + +/***/ 9423: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudresourcemanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudresourcemanager_v2; +(function (cloudresourcemanager_v2) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v2'); + * ``` + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.operations = new Resource$Operations(this.context); + } + } + cloudresourcemanager_v2.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -320846,28 +585309,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -320878,28 +585339,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -320910,32 +585369,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; - class Resource$Targethttpproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320948,28 +585400,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -320980,28 +585430,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321012,28 +585460,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321044,28 +585490,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321076,26 +585520,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321108,23 +585551,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { @@ -321140,34 +585582,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Targethttpproxies = Resource$Targethttpproxies; - class Resource$Targethttpsproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321178,28 +585612,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v2.Resource$Folders = Resource$Folders; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321210,28 +585648,85 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v2.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2 = exports.cloudresourcemanager_v2 || (exports.cloudresourcemanager_v2 = {})); + + +/***/ }), + +/***/ 9425: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.sts_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var sts_v1beta; +(function (sts_v1beta) { + /** + * Security Token Service API + * + * The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const sts = google.sts('v1beta'); + * ``` + */ + class Sts { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1beta = new Resource$V1beta(this.context); + } + } + sts_v1beta.Sts = Sts; + class Resource$V1beta { + constructor(context) { + this.context = context; + } + token(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321242,122 +585737,246 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + sts_v1beta.Resource$V1beta = Resource$V1beta; +})(sts_v1beta = exports.sts_v1beta || (exports.sts_v1beta = {})); + + +/***/ }), + +/***/ 9434: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(__webpack_require__(4976)); + +var _md = _interopRequireDefault(__webpack_require__(2442)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports.default = _default; + +/***/ }), + +/***/ 9463: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.videointelligence_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var videointelligence_v1; +(function (videointelligence_v1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1'); + * ``` + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1.Videointelligence = Videointelligence; + class Resource$Operations { + constructor(context) { + this.context = context; + this.projects = new Resource$Operations$Projects(this.context); + } + } + videointelligence_v1.Resource$Operations = Resource$Operations; + class Resource$Operations$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Operations$Projects$Locations(this.context); + } + } + videointelligence_v1.Resource$Operations$Projects = Resource$Operations$Projects; + class Resource$Operations$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Operations$Projects$Locations$Operations(this.context); + } + } + videointelligence_v1.Resource$Operations$Projects$Locations = Resource$Operations$Projects$Locations; + class Resource$Operations$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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/operations/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + } + videointelligence_v1.Resource$Operations$Projects$Locations$Operations = Resource$Operations$Projects$Locations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + videointelligence_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + videointelligence_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321370,26 +585989,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321402,26 +586020,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321434,26 +586051,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321466,34 +586082,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Targethttpsproxies = Resource$Targethttpsproxies; - class Resource$Targetinstances { + videointelligence_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Videos { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321504,26 +586118,93 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + videointelligence_v1.Resource$Videos = Resource$Videos; +})(videointelligence_v1 = exports.videointelligence_v1 || (exports.videointelligence_v1 = {})); + + +/***/ }), + +/***/ 9473: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.redis_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var redis_v1; +(function (redis_v1) { + /** + * Google Cloud Memorystore for Redis API + * + * Creates and manages Redis instances on the Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const redis = google.redis('v1'); + * ``` + */ + class Redis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + redis_v1.Redis = Redis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + redis_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = 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 || {}); @@ -321536,26 +586217,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321568,26 +586248,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + redis_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321600,26 +586285,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321632,26 +586316,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321664,32 +586347,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Targetinstances = Resource$Targetinstances; - class Resource$Targetpools { - constructor(context) { - this.context = context; - } - addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + failover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321702,26 +586378,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addInstance(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321734,58 +586409,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + getAuthString(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/authString').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321798,27 +586472,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321829,26 +586503,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321861,59 +586534,59 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + upgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321924,26 +586597,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + } + redis_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 || {}); @@ -321956,26 +586634,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstance(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -321988,26 +586665,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackup(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322020,26 +586696,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322052,32 +586727,131 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Targetpools = Resource$Targetpools; - class Resource$Targetsslproxies { + redis_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(redis_v1 = exports.redis_v1 || (exports.redis_v1 = {})); + + +/***/ }), + +/***/ 9495: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.tasks_v1 = exports.auth = exports.tasks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(3727); +Object.defineProperty(exports, "tasks_v1", { enumerable: true, get: function () { return v1_1.tasks_v1; } }); +exports.VERSIONS = { + v1: v1_1.tasks_v1.Tasks, +}; +function tasks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('tasks', versionOrOptions, exports.VERSIONS, this); +} +exports.tasks = tasks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9496: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.artifactregistry_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var artifactregistry_v1beta1; +(function (artifactregistry_v1beta1) { + /** + * Artifact Registry API + * + * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const artifactregistry = google.artifactregistry('v1beta1'); + * ``` + */ + class Artifactregistry { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + artifactregistry_v1beta1.Artifactregistry = Artifactregistry; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + artifactregistry_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.repositories = new Resource$Projects$Locations$Repositories(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322090,26 +586864,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322122,26 +586895,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + artifactregistry_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322154,26 +586932,33 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + artifactregistry_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Repositories { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Repositories$Files(this.context); + this.packages = new Resource$Projects$Locations$Repositories$Packages(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322186,26 +586971,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322218,26 +587002,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322250,58 +587033,57 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322314,26 +587096,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322346,125 +587127,124 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Targetsslproxies = Resource$Targetsslproxies; - class Resource$Targettcpproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + artifactregistry_v1beta1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -322473,164 +587253,173 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + } + artifactregistry_v1beta1.Resource$Projects$Locations$Repositories$Files = Resource$Projects$Locations$Repositories$Files; + class Resource$Projects$Locations$Repositories$Packages { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Repositories$Packages$Tags(this.context); + this.versions = + new Resource$Projects$Locations$Repositories$Packages$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies; - class Resource$Targetvpngateways { + artifactregistry_v1beta1.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; + class Resource$Projects$Locations$Repositories$Packages$Tags { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -322639,30 +587428,30 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -322671,199 +587460,260 @@ var compute_alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + artifactregistry_v1beta1.Resource$Projects$Locations$Repositories$Packages$Tags = Resource$Projects$Locations$Repositories$Packages$Tags; + class Resource$Projects$Locations$Repositories$Packages$Versions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Targetvpngateways = Resource$Targetvpngateways; - class Resource$Urlmaps { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + artifactregistry_v1beta1.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; +})(artifactregistry_v1beta1 = exports.artifactregistry_v1beta1 || (exports.artifactregistry_v1beta1 = {})); + + +/***/ }), + +/***/ 9498: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.trafficdirector_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var trafficdirector_v2; +(function (trafficdirector_v2) { + /** + * Traffic Director API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const trafficdirector = google.trafficdirector('v2'); + * ``` + */ + class Trafficdirector { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.discovery = new Resource$Discovery(this.context); + } + } + trafficdirector_v2.Trafficdirector = Trafficdirector; + class Resource$Discovery { + constructor(context) { + this.context = context; + } + client_status(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -322874,26 +587724,84 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://trafficdirector.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/discovery:client_status').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + trafficdirector_v2.Resource$Discovery = Resource$Discovery; +})(trafficdirector_v2 = exports.trafficdirector_v2 || (exports.trafficdirector_v2 = {})); + + +/***/ }), + +/***/ 9502: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.servicecontrol_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var servicecontrol_v2; +(function (servicecontrol_v2) { + /** + * Service Control API + * + * Provides admission control and telemetry reporting for services integrated with Service Infrastructure. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicecontrol = google.servicecontrol('v2'); + * ``` + */ + class Servicecontrol { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.services = new Resource$Services(this.context); + } + } + servicecontrol_v2.Servicecontrol = Servicecontrol; + class Resource$Services { + constructor(context) { + this.context = context; + } + check(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -322905,26 +587813,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/services/{serviceName}:check').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + report(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -322936,25 +587843,92 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/services/{serviceName}:report').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + } + servicecontrol_v2.Resource$Services = Resource$Services; +})(servicecontrol_v2 = exports.servicecontrol_v2 || (exports.servicecontrol_v2 = {})); + + +/***/ }), + +/***/ 9511: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.storage_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var storage_v1; +(function (storage_v1) { + /** + * Cloud Storage JSON API + * + * Stores and retrieves potentially large, immutable data objects. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const storage = google.storage('v1'); + * ``` + */ + class Storage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context); + this.buckets = new Resource$Buckets(this.context); + this.channels = new Resource$Channels(this.context); + this.defaultObjectAccessControls = + new Resource$Defaultobjectaccesscontrols(this.context); + this.notifications = new Resource$Notifications(this.context); + this.objectAccessControls = new Resource$Objectaccesscontrols(this.context); + this.objects = new Resource$Objects(this.context); + this.projects = new Resource$Projects(this.context); + } + } + storage_v1.Storage = Storage; + class Resource$Bucketaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322967,27 +587941,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -322998,26 +587972,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323028,26 +588003,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323060,27 +588034,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323091,27 +588065,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323122,66 +588096,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - compute_alpha.Resource$Urlmaps = Resource$Urlmaps; - class Resource$Vpngateways { + storage_v1.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; + class Resource$Buckets { constructor(context) { this.context = context; } - aggregatedList(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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], - 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323192,23 +588132,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -323223,26 +588162,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323255,28 +588193,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323287,23 +588223,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -323318,26 +588253,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + lockRetentionPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323350,28 +588284,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/lockRetentionPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['bucket', 'ifMetagenerationMatch'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323382,32 +588314,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Vpngateways = Resource$Vpngateways; - class Resource$Vpntunnels { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323420,26 +588345,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323452,26 +588376,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['bucket', 'permissions'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -323483,28 +588406,32 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + storage_v1.Resource$Buckets = Resource$Buckets; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323515,27 +588442,33 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + storage_v1.Resource$Channels = Resource$Channels; + class Resource$Defaultobjectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323546,26 +588479,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323578,26 +588510,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323610,32 +588541,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Vpntunnels = Resource$Vpntunnels; - class Resource$Zoneinplacesnapshots { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323648,26 +588572,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'inPlaceSnapshot'], - pathParams: ['inPlaceSnapshot', 'project', 'zone'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323680,26 +588603,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'inPlaceSnapshot'], - pathParams: ['inPlaceSnapshot', 'project', 'zone'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323712,26 +588634,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; + class Resource$Notifications { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323744,26 +588671,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'notification'], + pathParams: ['bucket', 'notification'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323776,26 +588703,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), + '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'notification'], + pathParams: ['bucket', 'notification'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323808,26 +588735,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323840,26 +588766,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1.Resource$Notifications = Resource$Notifications; + class Resource$Objectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323872,32 +588803,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Zoneinplacesnapshots = Resource$Zoneinplacesnapshots; - class Resource$Zoneoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323910,26 +588834,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323942,23 +588865,22 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -323974,26 +588896,25 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324006,33 +588927,27 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Zoneoperations = Resource$Zoneoperations; - class Resource$Zones { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324043,25 +588958,31 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; + class Resource$Objects { + constructor(context) { + this.context = context; + } + compose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -324073,89 +588994,26 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/storage/v1/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['destinationBucket', 'destinationObject'], + pathParams: ['destinationBucket', 'destinationObject'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Zones = Resource$Zones; -})(compute_alpha = exports.compute_alpha || (exports.compute_alpha = {})); -//# sourceMappingURL=alpha.js.map - -/***/ }), -/* 952 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.serviceusage_v1beta1 = 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 = __webpack_require__(927); -var serviceusage_v1beta1; -(function (serviceusage_v1beta1) { - /** - * Service Usage API - * - * Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. - * - * @example - * const {google} = require('googleapis'); - * const serviceusage = google.serviceusage('v1beta1'); - * - * @namespace serviceusage - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Serviceusage - */ - class Serviceusage { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.operations = new Resource$Operations(this.context); - this.services = new Resource$Services(this.context); - } - } - serviceusage_v1beta1.Serviceusage = Serviceusage; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + copy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -324167,25 +589025,36 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -324197,34 +589066,26 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceusage_v1beta1.Resource$Operations = Resource$Operations; - class Resource$Services { - constructor(context) { - this.context = context; - this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); - } - batchEnable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324235,26 +589096,27 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324265,25 +589127,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -324295,25 +589157,26 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -324325,25 +589188,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -324355,34 +589218,26 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceusage_v1beta1.Resource$Services = Resource$Services; - class Resource$Services$Consumerquotametrics { - constructor(context) { - this.context = context; - this.limits = new Resource$Services$Consumerquotametrics$Limits(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + rewrite(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324393,25 +589248,36 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324424,33 +589290,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceusage_v1beta1.Resource$Services$Consumerquotametrics = Resource$Services$Consumerquotametrics; - class Resource$Services$Consumerquotametrics$Limits { - constructor(context) { - this.context = context; - this.adminOverrides = new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(this.context); - this.consumerOverrides = new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324463,33 +589321,26 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object', 'permissions'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; - class Resource$Services$Consumerquotametrics$Limits$Adminoverrides { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324500,27 +589351,26 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324531,25 +589381,39 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1.Resource$Objects = Resource$Objects; + class Resource$Projects { + constructor(context) { + this.context = context; + this.hmacKeys = new Resource$Projects$Hmackeys(this.context); + this.serviceAccount = new Resource$Projects$Serviceaccount(this.context); + } + } + storage_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Hmackeys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324562,25 +589426,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'serviceAccountEmail'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324593,31 +589457,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Adminoverrides = Resource$Services$Consumerquotametrics$Limits$Adminoverrides; - class Resource$Services$Consumerquotametrics$Limits$Consumeroverrides { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324630,25 +589488,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324661,25 +589519,25 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324692,25 +589550,31 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1.Resource$Projects$Hmackeys = Resource$Projects$Hmackeys; + class Resource$Projects$Serviceaccount { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324723,578 +589587,92 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Consumeroverrides = Resource$Services$Consumerquotametrics$Limits$Consumeroverrides; -})(serviceusage_v1beta1 = exports.serviceusage_v1beta1 || (exports.serviceusage_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map - -/***/ }), -/* 953 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = authenticationPlugin; - -const { Deprecation } = __webpack_require__(692); -const once = __webpack_require__(969); - -const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation)); - -const authenticate = __webpack_require__(790); -const beforeRequest = __webpack_require__(140); -const requestError = __webpack_require__(240); - -function authenticationPlugin(octokit, options) { - if (options.auth) { - octokit.authenticate = () => { - deprecateAuthenticate( - octokit.log, - new Deprecation( - '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor' - ) - ); - }; - return; - } - const state = { - octokit, - auth: false - }; - octokit.authenticate = authenticate.bind(null, state); - octokit.hook.before("request", beforeRequest.bind(null, state)); - octokit.hook.error("request", requestError.bind(null, state)); -} + storage_v1.Resource$Projects$Serviceaccount = Resource$Projects$Serviceaccount; +})(storage_v1 = exports.storage_v1 || (exports.storage_v1 = {})); /***/ }), -/* 954 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of a basic Public Key Infrastructure, including - * support for RSA public and private keys. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); -__webpack_require__(784); -__webpack_require__(988); -__webpack_require__(131); -__webpack_require__(76); -__webpack_require__(575); -__webpack_require__(997); -__webpack_require__(705); -__webpack_require__(526); -__webpack_require__(54); -__webpack_require__(249); - -// shortcut for asn.1 API -var asn1 = forge.asn1; - -/* Public Key Infrastructure (PKI) implementation. */ -var pki = module.exports = forge.pki = forge.pki || {}; - -/** - * NOTE: THIS METHOD IS DEPRECATED. Use pem.decode() instead. - * - * Converts PEM-formatted data to DER. - * - * @param pem the PEM-formatted data. - * - * @return the DER-formatted data. - */ -pki.pemToDer = function(pem) { - var msg = forge.pem.decode(pem)[0]; - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert PEM to DER; PEM is encrypted.'); - } - return forge.util.createBuffer(msg.body); -}; - -/** - * Converts an RSA private key from PEM format. - * - * @param pem the PEM-formatted private key. - * - * @return the private key. - */ -pki.privateKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'PRIVATE KEY' && msg.type !== 'RSA PRIVATE KEY') { - var error = new Error('Could not convert private key from PEM; PEM ' + - 'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert private key from PEM; PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body); - - return pki.privateKeyFromAsn1(obj); -}; - -/** - * Converts an RSA private key to PEM format. - * - * @param key the private key. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted private key. - */ -pki.privateKeyToPem = function(key, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'RSA PRIVATE KEY', - body: asn1.toDer(pki.privateKeyToAsn1(key)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/** - * Converts a PrivateKeyInfo to PEM format. - * - * @param pki the PrivateKeyInfo. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted private key. - */ -pki.privateKeyInfoToPem = function(pki, maxline) { - // convert to DER, then PEM-encode - var msg = { - type: 'PRIVATE KEY', - body: asn1.toDer(pki).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; - -/***/ }), -/* 955 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 9526: +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; -const path = __webpack_require__(622); -const childProcess = __webpack_require__(129); -const crossSpawn = __webpack_require__(20); -const stripEof = __webpack_require__(768); -const npmRunPath = __webpack_require__(621); -const isStream = __webpack_require__(323); -const _getStream = __webpack_require__(145); -const pFinally = __webpack_require__(697); -const onExit = __webpack_require__(260); -const errname = __webpack_require__(427); -const stdio = __webpack_require__(168); - -const TEN_MEGABYTES = 1000 * 1000 * 10; - -function handleArgs(cmd, args, opts) { - let parsed; - - opts = Object.assign({ - extendEnv: true, - env: {} - }, opts); - - if (opts.extendEnv) { - opts.env = Object.assign({}, process.env, opts.env); - } - - if (opts.__winShell === true) { - delete opts.__winShell; - parsed = { - command: cmd, - args, - options: opts, - file: cmd, - original: { - cmd, - args - } - }; - } else { - parsed = crossSpawn._parse(cmd, args, opts); - } - - opts = Object.assign({ - maxBuffer: TEN_MEGABYTES, - buffer: true, - stripEof: true, - preferLocal: true, - localDir: parsed.options.cwd || process.cwd(), - encoding: 'utf8', - reject: true, - cleanup: true - }, parsed.options); - - opts.stdio = stdio(opts); - - if (opts.preferLocal) { - opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir})); - } - - if (opts.detached) { - // #115 - opts.cleanup = false; - } - - if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') { - // #116 - parsed.args.unshift('/q'); - } - - return { - cmd: parsed.command, - args: parsed.args, - opts, - parsed - }; -} - -function handleInput(spawned, input) { - if (input === null || input === undefined) { - return; - } - - if (isStream(input)) { - input.pipe(spawned.stdin); - } else { - spawned.stdin.end(input); - } -} - -function handleOutput(opts, val) { - if (val && opts.stripEof) { - val = stripEof(val); - } - - return val; -} - -function handleShell(fn, cmd, opts) { - let file = '/bin/sh'; - let args = ['-c', cmd]; - - opts = Object.assign({}, opts); - - if (process.platform === 'win32') { - opts.__winShell = true; - file = process.env.comspec || 'cmd.exe'; - args = ['/s', '/c', `"${cmd}"`]; - opts.windowsVerbatimArguments = true; - } - - if (opts.shell) { - file = opts.shell; - delete opts.shell; - } - - return fn(file, args, opts); -} - -function getStream(process, stream, {encoding, buffer, maxBuffer}) { - if (!process[stream]) { - return null; - } - - let ret; - - if (!buffer) { - // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10 - ret = new Promise((resolve, reject) => { - process[stream] - .once('end', resolve) - .once('error', reject); - }); - } else if (encoding) { - ret = _getStream(process[stream], { - encoding, - maxBuffer - }); - } else { - ret = _getStream.buffer(process[stream], {maxBuffer}); - } - - return ret.catch(err => { - err.stream = stream; - err.message = `${stream} ${err.message}`; - throw err; - }); -} - -function makeError(result, options) { - const {stdout, stderr} = result; - - let err = result.error; - const {code, signal} = result; - - const {parsed, joinedCmd} = options; - const timedOut = options.timedOut || false; - - if (!err) { - let output = ''; - - if (Array.isArray(parsed.opts.stdio)) { - if (parsed.opts.stdio[2] !== 'inherit') { - output += output.length > 0 ? stderr : `\n${stderr}`; - } - - if (parsed.opts.stdio[1] !== 'inherit') { - output += `\n${stdout}`; - } - } else if (parsed.opts.stdio !== 'inherit') { - output = `\n${stderr}${stdout}`; - } - - err = new Error(`Command failed: ${joinedCmd}${output}`); - err.code = code < 0 ? errname(code) : code; - } - - err.stdout = stdout; - err.stderr = stderr; - err.failed = true; - err.signal = signal || null; - err.cmd = joinedCmd; - err.timedOut = timedOut; - - return err; -} - -function joinCmd(cmd, args) { - let joinedCmd = cmd; - - if (Array.isArray(args) && args.length > 0) { - joinedCmd += ' ' + args.join(' '); - } - - return joinedCmd; -} - -module.exports = (cmd, args, opts) => { - const parsed = handleArgs(cmd, args, opts); - const {encoding, buffer, maxBuffer} = parsed.opts; - const joinedCmd = joinCmd(cmd, args); - - let spawned; - try { - spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts); - } catch (err) { - return Promise.reject(err); - } - - let removeExitHandler; - if (parsed.opts.cleanup) { - removeExitHandler = onExit(() => { - spawned.kill(); - }); - } - - let timeoutId = null; - let timedOut = false; - - const cleanup = () => { - if (timeoutId) { - clearTimeout(timeoutId); - timeoutId = null; - } - - if (removeExitHandler) { - removeExitHandler(); - } - }; - - if (parsed.opts.timeout > 0) { - timeoutId = setTimeout(() => { - timeoutId = null; - timedOut = true; - spawned.kill(parsed.opts.killSignal); - }, parsed.opts.timeout); - } - - const processDone = new Promise(resolve => { - spawned.on('exit', (code, signal) => { - cleanup(); - resolve({code, signal}); - }); - - spawned.on('error', err => { - cleanup(); - resolve({error: err}); - }); - - if (spawned.stdin) { - spawned.stdin.on('error', err => { - cleanup(); - resolve({error: err}); - }); - } - }); - - function destroy() { - if (spawned.stdout) { - spawned.stdout.destroy(); - } - - if (spawned.stderr) { - spawned.stderr.destroy(); - } - } - - const handlePromise = () => pFinally(Promise.all([ - processDone, - getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}), - getStream(spawned, 'stderr', {encoding, buffer, maxBuffer}) - ]).then(arr => { - const result = arr[0]; - result.stdout = arr[1]; - result.stderr = arr[2]; - - if (result.error || result.code !== 0 || result.signal !== null) { - const err = makeError(result, { - joinedCmd, - parsed, - timedOut - }); - - // TODO: missing some timeout logic for killed - // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203 - // err.killed = spawned.killed || killed; - err.killed = err.killed || spawned.killed; - - if (!parsed.opts.reject) { - return err; - } - - throw err; - } - - return { - stdout: handleOutput(parsed.opts, result.stdout), - stderr: handleOutput(parsed.opts, result.stderr), - code: 0, - failed: false, - killed: false, - signal: null, - cmd: joinedCmd, - timedOut: false - }; - }), destroy); - - crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed); - - handleInput(spawned, parsed.opts.input); - - spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected); - spawned.catch = onrejected => handlePromise().catch(onrejected); - - return spawned; -}; - -// TODO: set `stderr: 'ignore'` when that option is implemented -module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout); - -// TODO: set `stdout: 'ignore'` when that option is implemented -module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr); - -module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts); - -module.exports.sync = (cmd, args, opts) => { - const parsed = handleArgs(cmd, args, opts); - const joinedCmd = joinCmd(cmd, args); - if (isStream(parsed.opts.input)) { - throw new TypeError('The `input` option cannot be a stream in sync mode'); - } +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; - const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts); - result.code = result.status; +var _native = _interopRequireDefault(__webpack_require__(1903)); - if (result.error || result.status !== 0 || result.signal !== null) { - const err = makeError(result, { - joinedCmd, - parsed - }); +var _rng = _interopRequireDefault(__webpack_require__(9007)); - if (!parsed.opts.reject) { - return err; - } +var _stringify = __webpack_require__(4106); - throw err; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - return { - stdout: handleOutput(parsed.opts, result.stdout), - stderr: handleOutput(parsed.opts, result.stderr), - code: 0, - failed: false, - signal: null, - cmd: joinedCmd, - timedOut: false - }; -}; +function v4(options, buf, offset) { + if (_native.default.randomUUID && !buf && !options) { + return _native.default.randomUUID(); + } -module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts); + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` -/***/ }), -/* 956 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided -// 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.auth = exports.playcustomapp = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(241); -exports.VERSIONS = { - v1: v1_1.playcustomapp_v1.Playcustomapp, -}; -function playcustomapp(versionOrOptions) { - return googleapis_common_1.getAPI('playcustomapp', versionOrOptions, exports.VERSIONS, this); + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return (0, _stringify.unsafeStringify)(rnds); } -exports.playcustomapp = playcustomapp; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map + +var _default = v4; +exports.default = _default; + +/***/ }), + +/***/ 9529: +/***/ (function(module, __unusedexports, __webpack_require__) { + +const factory = __webpack_require__(9047); + +module.exports = factory(); + /***/ }), -/* 957 */ + +/***/ 9531: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -325312,32 +589690,27 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.firebaseml_v1beta2 = void 0; +exports.managedidentities_v1alpha1 = 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 = __webpack_require__(927); -var firebaseml_v1beta2; -(function (firebaseml_v1beta2) { +var managedidentities_v1alpha1; +(function (managedidentities_v1alpha1) { /** - * Firebase ML API + * Managed Service for Microsoft Active Directory API * - * Access custom machine learning models hosted via Firebase ML. + * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). * * @example + * ```js * const {google} = require('googleapis'); - * const firebaseml = google.firebaseml('v1beta2'); - * - * @namespace firebaseml - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Firebaseml + * const managedidentities = google.managedidentities('v1alpha1'); + * ``` */ - class Firebaseml { + class Managedidentities { constructor(options, google) { this.context = { _options: options || {}, @@ -325346,20 +589719,20 @@ var firebaseml_v1beta2; this.projects = new Resource$Projects(this.context); } } - firebaseml_v1beta2.Firebaseml = Firebaseml; + managedidentities_v1alpha1.Managedidentities = Managedidentities; class Resource$Projects { constructor(context) { this.context = context; - this.models = new Resource$Projects$Models(this.context); - this.operations = new Resource$Projects$Operations(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - firebaseml_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Models { + managedidentities_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325372,25 +589745,25 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325403,11 +589776,11 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -325415,30 +589788,49 @@ var firebaseml_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + managedidentities_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.domains = new Resource$Projects$Locations$Global$Domains(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + this.peerings = new Resource$Projects$Locations$Global$Peerings(this.context); + } + } + managedidentities_v1alpha1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Domains { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Locations$Global$Domains$Backups(this.context); + this.sqlIntegrations = + new Resource$Projects$Locations$Global$Domains$Sqlintegrations(this.context); + } + attachTrust(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -325446,13 +589838,45 @@ var firebaseml_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + checkMigrationPermission(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+domain}:checkMigrationPermission').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325465,11 +589889,11 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -325477,13 +589901,13 @@ var firebaseml_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325496,11 +589920,11 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -325508,36 +589932,31 @@ var firebaseml_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebaseml_v1beta2.Resource$Projects$Models = Resource$Projects$Models; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + detachTrust(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -325545,172 +589964,139 @@ var firebaseml_v1beta2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebaseml_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations; -})(firebaseml_v1beta2 = exports.firebaseml_v1beta2 || (exports.firebaseml_v1beta2 = {})); -//# sourceMappingURL=v1beta2.js.map - -/***/ }), -/* 958 */, -/* 959 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.dfareporting_v3_3 = 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 = __webpack_require__(927); -var dfareporting_v3_3; -(function (dfareporting_v3_3) { - /** - * DCM/DFA Reporting And Trafficking API - * - * Manages your DoubleClick Campaign Manager ad campaigns and reports. - * - * @example - * const {google} = require('googleapis'); - * const dfareporting = google.dfareporting('v3.3'); - * - * @namespace dfareporting - * @type {Function} - * @version v3.3 - * @variation v3.3 - * @param {object=} options Options for Dfareporting - */ - class Dfareporting { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + disableMigration(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+domain}:disableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, }; - this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); - this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); - this.accountPermissions = new Resource$Accountpermissions(this.context); - this.accounts = new Resource$Accounts(this.context); - this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); - this.ads = new Resource$Ads(this.context); - this.advertiserGroups = new Resource$Advertisergroups(this.context); - this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); - this.advertisers = new Resource$Advertisers(this.context); - this.browsers = new Resource$Browsers(this.context); - this.campaignCreativeAssociations = new Resource$Campaigncreativeassociations(this.context); - this.campaigns = new Resource$Campaigns(this.context); - this.changeLogs = new Resource$Changelogs(this.context); - this.cities = new Resource$Cities(this.context); - this.connectionTypes = new Resource$Connectiontypes(this.context); - this.contentCategories = new Resource$Contentcategories(this.context); - this.conversions = new Resource$Conversions(this.context); - this.countries = new Resource$Countries(this.context); - this.creativeAssets = new Resource$Creativeassets(this.context); - this.creativeFields = new Resource$Creativefields(this.context); - this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); - this.creativeGroups = new Resource$Creativegroups(this.context); - this.creatives = new Resource$Creatives(this.context); - this.dimensionValues = new Resource$Dimensionvalues(this.context); - this.directorySites = new Resource$Directorysites(this.context); - this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); - this.eventTags = new Resource$Eventtags(this.context); - this.files = new Resource$Files(this.context); - this.floodlightActivities = new Resource$Floodlightactivities(this.context); - this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); - this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); - this.inventoryItems = new Resource$Inventoryitems(this.context); - this.languages = new Resource$Languages(this.context); - this.metros = new Resource$Metros(this.context); - this.mobileApps = new Resource$Mobileapps(this.context); - this.mobileCarriers = new Resource$Mobilecarriers(this.context); - this.operatingSystems = new Resource$Operatingsystems(this.context); - this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); - this.orderDocuments = new Resource$Orderdocuments(this.context); - this.orders = new Resource$Orders(this.context); - this.placementGroups = new Resource$Placementgroups(this.context); - this.placements = new Resource$Placements(this.context); - this.placementStrategies = new Resource$Placementstrategies(this.context); - this.platformTypes = new Resource$Platformtypes(this.context); - this.postalCodes = new Resource$Postalcodes(this.context); - this.projects = new Resource$Projects(this.context); - this.regions = new Resource$Regions(this.context); - this.remarketingLists = new Resource$Remarketinglists(this.context); - this.remarketingListShares = new Resource$Remarketinglistshares(this.context); - this.reports = new Resource$Reports(this.context); - this.sites = new Resource$Sites(this.context); - this.sizes = new Resource$Sizes(this.context); - this.subaccounts = new Resource$Subaccounts(this.context); - this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); - this.targetingTemplates = new Resource$Targetingtemplates(this.context); - this.userProfiles = new Resource$Userprofiles(this.context); - this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); - this.userRolePermissions = new Resource$Userrolepermissions(this.context); - this.userRoles = new Resource$Userroles(this.context); - this.videoFormats = new Resource$Videoformats(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - dfareporting_v3_3.Dfareporting = Dfareporting; - class Resource$Accountactiveadsummaries { - constructor(context) { - this.context = context; + domainJoinMachine(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+domain}:domainJoinMachine').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { + enableMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+domain}:enableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'summaryAccountId'], - pathParams: ['profileId', 'summaryAccountId'], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; - class Resource$Accountpermissiongroups { - constructor(context) { - this.context = context; + extendSchema(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+domain}:extendSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -325725,93 +590111,86 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; - class Resource$Accountpermissions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getLdapssettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -325827,33 +590206,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Accountpermissions = Resource$Accountpermissions; - class Resource$Accounts { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -325864,183 +590237,380 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + restore(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateLdapssettings(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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + validateTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Accounts = Resource$Accounts; - class Resource$Accountuserprofiles { + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Domains$Backups { 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -326049,30 +590619,30 @@ var dfareporting_v3_3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -326081,162 +590651,239 @@ var dfareporting_v3_3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Accountuserprofiles = Resource$Accountuserprofiles; - class Resource$Ads { + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Domains$Backups = Resource$Projects$Locations$Global$Domains$Backups; + class Resource$Projects$Locations$Global$Domains$Sqlintegrations { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Domains$Sqlintegrations = Resource$Projects$Locations$Global$Domains$Sqlintegrations; + class Resource$Projects$Locations$Global$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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -326247,90 +590894,124 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Ads = Resource$Ads; - class Resource$Advertisergroups { + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; + class Resource$Projects$Locations$Global$Peerings { 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -326346,55 +591027,54 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -326410,26 +591090,187 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; +})(managedidentities_v1alpha1 = exports.managedidentities_v1alpha1 || (exports.managedidentities_v1alpha1 = {})); + + +/***/ }), + +/***/ 9538: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.gkehub_v2alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var gkehub_v2alpha; +(function (gkehub_v2alpha) { + /** + * GKE Hub API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const gkehub = google.gkehub('v2alpha'); + * ``` + */ + class Gkehub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gkehub_v2alpha.Gkehub = Gkehub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gkehub_v2alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326442,26 +591283,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326474,32 +591314,31 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Advertisergroups = Resource$Advertisergroups; - class Resource$Advertiserlandingpages { + gkehub_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326512,26 +591351,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326544,23 +591382,22 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -326576,26 +591413,87 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gkehub_v2alpha = exports.gkehub_v2alpha || (exports.gkehub_v2alpha = {})); + + +/***/ }), + +/***/ 9542: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.binaryauthorization_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var binaryauthorization_v1beta1; +(function (binaryauthorization_v1beta1) { + /** + * Binary Authorization API + * + * The management interface for Binary Authorization, a service that provides policy-based deployment validation and control for images deployed to Google Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const binaryauthorization = google.binaryauthorization('v1beta1'); + * ``` + */ + class Binaryauthorization { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.systempolicy = new Resource$Systempolicy(this.context); + } + } + binaryauthorization_v1beta1.Binaryauthorization = Binaryauthorization; + class Resource$Projects { + constructor(context) { + this.context = context; + this.attestors = new Resource$Projects$Attestors(this.context); + this.policy = new Resource$Projects$Policy(this.context); + } + getPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326608,26 +591506,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updatePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326640,33 +591537,33 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; - class Resource$Advertisers { + binaryauthorization_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Attestors { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -326677,26 +591574,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326709,27 +591605,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -326740,26 +591636,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326772,26 +591667,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326804,33 +591698,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Advertisers = Resource$Advertisers; - class Resource$Browsers { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -326841,31 +591729,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Browsers = Resource$Browsers; - class Resource$Campaigncreativeassociations { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326878,26 +591760,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326910,64 +591791,65 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; - class Resource$Campaigns { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + validateAttestationOccurrence(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+attestor}:validateAttestationOccurrence').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['attestor'], + pathParams: ['attestor'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + binaryauthorization_v1beta1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -326978,26 +591860,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327008,26 +591891,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327038,26 +591922,33 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + binaryauthorization_v1beta1.Resource$Projects$Policy = Resource$Projects$Policy; + class Resource$Systempolicy { + constructor(context) { + this.context = context; + } + getPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327068,31 +591959,89 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Campaigns = Resource$Campaigns; - class Resource$Changelogs { + binaryauthorization_v1beta1.Resource$Systempolicy = Resource$Systempolicy; +})(binaryauthorization_v1beta1 = exports.binaryauthorization_v1beta1 || (exports.binaryauthorization_v1beta1 = {})); + + +/***/ }), + +/***/ 9556: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.appsactivity_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 = __webpack_require__(927); +var appsactivity_v1; +(function (appsactivity_v1) { + /** + * Drive Activity API + * + * Provides a historical view of activity. + * + * @example + * const {google} = require('googleapis'); + * const appsactivity = google.appsactivity('v1'); + * + * @namespace appsactivity + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Appsactivity + */ + class Appsactivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + } + } + appsactivity_v1.Appsactivity = Appsactivity; + class Resource$Activities { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -327107,23 +592056,156 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + appsactivity_v1.Resource$Activities = Resource$Activities; +})(appsactivity_v1 = exports.appsactivity_v1 || (exports.appsactivity_v1 = {})); + + +/***/ }), + +/***/ 9559: +/***/ (function(module, __unusedexports, __webpack_require__) { + +"use strict"; + + +var origSymbol = typeof Symbol !== 'undefined' && Symbol; +var hasSymbolSham = __webpack_require__(7826); + +module.exports = function hasNativeSymbols() { + if (typeof origSymbol !== 'function') { return false; } + if (typeof Symbol !== 'function') { return false; } + if (typeof origSymbol('foo') !== 'symbol') { return false; } + if (typeof Symbol('bar') !== 'symbol') { return false; } + + return hasSymbolSham(); +}; + + +/***/ }), + +/***/ 9571: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.networkmanagement_v1beta1 = exports.networkmanagement_v1 = exports.auth = exports.networkmanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1527); +Object.defineProperty(exports, "networkmanagement_v1", { enumerable: true, get: function () { return v1_1.networkmanagement_v1; } }); +const v1beta1_1 = __webpack_require__(6480); +Object.defineProperty(exports, "networkmanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_1.networkmanagement_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.networkmanagement_v1.Networkmanagement, + v1beta1: v1beta1_1.networkmanagement_v1beta1.Networkmanagement, +}; +function networkmanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('networkmanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.networkmanagement = networkmanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9583: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.drive_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var drive_v2; +(function (drive_v2) { + /** + * Drive API + * + * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const drive = google.drive('v2'); + * ``` + */ + class Drive { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.about = new Resource$About(this.context); + this.apps = new Resource$Apps(this.context); + this.changes = new Resource$Changes(this.context); + this.channels = new Resource$Channels(this.context); + this.children = new Resource$Children(this.context); + this.comments = new Resource$Comments(this.context); + this.drives = new Resource$Drives(this.context); + this.files = new Resource$Files(this.context); + this.parents = new Resource$Parents(this.context); + this.permissions = new Resource$Permissions(this.context); + this.properties = new Resource$Properties(this.context); + this.replies = new Resource$Replies(this.context); + this.revisions = new Resource$Revisions(this.context); + this.teamdrives = new Resource$Teamdrives(this.context); + } + } + drive_v2.Drive = Drive; + class Resource$About { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -327138,28 +592220,28 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/about').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Changelogs = Resource$Changelogs; - class Resource$Cities { + drive_v2.Resource$About = Resource$About; + class Resource$Apps { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -327174,30 +592256,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/apps/{appId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appId'], + pathParams: ['appId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Cities = Resource$Cities; - class Resource$Connectiontypes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327211,25 +592286,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/apps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Apps = Resource$Apps; + class Resource$Changes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327243,29 +592322,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['changeId'], + pathParams: ['changeId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Connectiontypes = Resource$Connectiontypes; - class Resource$Contentcategories { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getStartPageToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327281,25 +592353,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/drive/v2/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327313,25 +592383,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327345,25 +592413,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/changes/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Changes = Resource$Changes; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327377,25 +592449,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Channels = Resource$Channels; + class Resource$Children { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327409,25 +592485,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['folderId', 'childId'], + pathParams: ['childId', 'folderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327441,31 +592515,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['folderId', 'childId'], + pathParams: ['childId', 'folderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Contentcategories = Resource$Contentcategories; - class Resource$Conversions { - constructor(context) { - this.context = context; - } - batchinsert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327479,25 +592545,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['folderId'], + pathParams: ['folderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchupdate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327511,29 +592575,28 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['folderId'], + pathParams: ['folderId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Conversions = Resource$Conversions; - class Resource$Countries { + drive_v2.Resource$Children = Resource$Children; + class Resource$Comments { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -327548,23 +592611,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -327579,30 +592641,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Countries = Resource$Countries; - class Resource$Creativeassets { - constructor(context) { - this.context = context; - } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327616,33 +592671,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Creativeassets = Resource$Creativeassets; - class Resource$Creativefields { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327656,25 +592701,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327688,25 +592731,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327720,25 +592761,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Comments = Resource$Comments; + class Resource$Drives { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327752,25 +592797,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327784,25 +592827,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + hide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327816,31 +592857,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v2/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Creativefields = Resource$Creativefields; - class Resource$Creativefieldvalues { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327854,25 +592887,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['requestId'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327886,25 +592917,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327918,25 +592947,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327950,25 +592977,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Drives = Resource$Drives; + class Resource$Files { + constructor(context) { + this.context = context; + } + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -327982,25 +593013,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/drive/v2/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328014,31 +593043,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Creativefieldvalues = Resource$Creativefieldvalues; - class Resource$Creativegroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + emptyTrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328052,25 +593073,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328084,23 +593103,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'mimeType'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generateIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328116,25 +593134,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328148,25 +593164,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328178,31 +593192,25 @@ var dfareporting_v3_3; options = {}; } const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Creativegroups = Resource$Creativegroups; - class Resource$Creatives { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -328217,23 +593225,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + listLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -328248,23 +593255,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/listLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + modifyLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328278,19 +593286,19 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/modifyLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -328308,22 +593316,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + touch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -328338,30 +593346,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v2/files/{fileId}/touch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Creatives = Resource$Creatives; - class Resource$Dimensionvalues { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + trash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328375,31 +593376,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/trash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Dimensionvalues = Resource$Dimensionvalues; - class Resource$Directorysites { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + untrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328413,25 +593406,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/untrash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328445,25 +593436,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328477,31 +593467,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Directorysites = Resource$Directorysites; - class Resource$Dynamictargetingkeys { + drive_v2.Resource$Files = Resource$Files; + class Resource$Parents { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328515,25 +593503,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'objectId', 'name', 'objectType'], - pathParams: ['objectId', 'profileId'], + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328547,25 +593533,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328579,29 +593563,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; - class Resource$Eventtags { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -328616,24 +593593,30 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + drive_v2.Resource$Parents = Resource$Parents; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328647,23 +593630,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -328678,23 +593660,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIdForEmail(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328708,23 +593691,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/permissionIds/{email}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['email'], + pathParams: ['email'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328738,22 +593722,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -328768,29 +593752,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Eventtags = Resource$Eventtags; - class Resource$Files { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328804,23 +593783,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['reportId', 'fileId'], - pathParams: ['fileId', 'reportId'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328834,24 +593814,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Files = Resource$Files; - class Resource$Floodlightactivities { + drive_v2.Resource$Permissions = Resource$Permissions; + class Resource$Properties { constructor(context) { this.context = context; } @@ -328871,25 +593851,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatetag(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328903,23 +593881,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328935,25 +593912,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328967,25 +593942,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -328999,23 +593972,22 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329031,25 +594003,29 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Properties = Resource$Properties; + class Resource$Replies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329064,30 +594040,23 @@ var dfareporting_v3_3; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Floodlightactivities = Resource$Floodlightactivities; - class Resource$Floodlightactivitygroups { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329102,24 +594071,23 @@ var dfareporting_v3_3; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329133,25 +594101,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329165,25 +594131,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329198,24 +594162,23 @@ var dfareporting_v3_3; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329230,30 +594193,59 @@ var dfareporting_v3_3; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; - class Resource$Floodlightconfigurations { + drive_v2.Resource$Replies = Resource$Replies; + class Resource$Revisions { 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329267,25 +594259,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329299,25 +594289,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329331,25 +594319,23 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329363,29 +594349,28 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; - class Resource$Inventoryitems { + drive_v2.Resource$Revisions = Resource$Revisions; + class Resource$Teamdrives { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329401,23 +594386,52 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329433,28 +594447,21 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['requestId'], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Inventoryitems = Resource$Inventoryitems; - class Resource$Languages { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329470,29 +594477,24 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Languages = Resource$Languages; - class Resource$Metros { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329506,28 +594508,590 @@ var dfareporting_v3_3; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Metros = Resource$Metros; - class Resource$Mobileapps { + drive_v2.Resource$Teamdrives = Resource$Teamdrives; +})(drive_v2 = exports.drive_v2 || (exports.drive_v2 = {})); + + +/***/ }), + +/***/ 9610: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.servicenetworking_v1beta = exports.servicenetworking_v1 = exports.auth = exports.servicenetworking = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(1081); +Object.defineProperty(exports, "servicenetworking_v1", { enumerable: true, get: function () { return v1_1.servicenetworking_v1; } }); +const v1beta_1 = __webpack_require__(6908); +Object.defineProperty(exports, "servicenetworking_v1beta", { enumerable: true, get: function () { return v1beta_1.servicenetworking_v1beta; } }); +exports.VERSIONS = { + v1: v1_1.servicenetworking_v1.Servicenetworking, + v1beta: v1beta_1.servicenetworking_v1beta.Servicenetworking, +}; +function servicenetworking(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('servicenetworking', versionOrOptions, exports.VERSIONS, this); +} +exports.servicenetworking = servicenetworking; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9640: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2021 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.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0; +const stream = __webpack_require__(2413); +const authclient_1 = __webpack_require__(5616); +const sts = __webpack_require__(5732); +/** + * The required token exchange grant_type: rfc8693#section-2.1 + */ +const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +/** + * The requested token exchange requested_token_type: rfc8693#section-2.1 + */ +const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** + * The requested token exchange subject_token_type: rfc8693#section-2.1 + */ +const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +/** The STS access token exchange end point. */ +const STS_ACCESS_TOKEN_URL = 'https://sts.googleapis.com/v1/token'; +/** + * The maximum number of access boundary rules a Credential Access Boundary + * can contain. + */ +exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; +/** + * Offset to take into account network delays and server clock skews. + */ +exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +/** + * Defines a set of Google credentials that are downscoped from an existing set + * of Google OAuth2 credentials. This is useful to restrict the Identity and + * Access Management (IAM) permissions that a short-lived credential can use. + * The common pattern of usage is to have a token broker with elevated access + * generate these downscoped credentials from higher access source credentials + * and pass the downscoped short-lived access tokens to a token consumer via + * some secure authenticated channel for limited access to Google Cloud Storage + * resources. + */ +class DownscopedClient extends authclient_1.AuthClient { + /** + * Instantiates a downscoped client object using the provided source + * AuthClient and credential access boundary rules. + * To downscope permissions of a source AuthClient, a Credential Access + * Boundary that specifies which resources the new credential can access, as + * well as an upper bound on the permissions that are available on each + * resource, has to be defined. A downscoped client can then be instantiated + * using the source AuthClient and the Credential Access Boundary. + * @param authClient The source AuthClient to be downscoped based on the + * provided Credential Access Boundary rules. + * @param credentialAccessBoundary The Credential Access Boundary which + * contains a list of access boundary rules. Each rule contains information + * on the resource that the rule applies to, the upper bound of the + * permissions that are available on that resource and an optional + * condition to further restrict permissions. + * @param additionalOptions Optional additional behavior customization + * options. These currently customize expiration threshold time and + * whether to retry on 401/403 API request errors. + * @param quotaProjectId Optional quota project id for setting up in the + * x-goog-user-project header. + */ + constructor(authClient, credentialAccessBoundary, additionalOptions, quotaProjectId) { + super(); + this.authClient = authClient; + this.credentialAccessBoundary = credentialAccessBoundary; + // Check 1-10 Access Boundary Rules are defined within Credential Access + // Boundary. + if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length === 0) { + throw new Error('At least one access boundary rule needs to be defined.'); + } + else if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length > + exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) { + throw new Error('The provided access boundary has more than ' + + `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`); + } + // Check at least one permission should be defined in each Access Boundary + // Rule. + for (const rule of credentialAccessBoundary.accessBoundary + .accessBoundaryRules) { + if (rule.availablePermissions.length === 0) { + throw new Error('At least one permission should be defined in access boundary rules.'); + } + } + this.stsCredential = new sts.StsCredentials(STS_ACCESS_TOKEN_URL); + this.cachedDownscopedAccessToken = null; + // As threshold could be zero, + // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the + // zero value. + if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { + this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; + } + else { + this.eagerRefreshThresholdMillis = additionalOptions + .eagerRefreshThresholdMillis; + } + this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); + this.quotaProjectId = quotaProjectId; + } + /** + * Provides a mechanism to inject Downscoped access tokens directly. + * The expiry_date field is required to facilitate determination of the token + * expiration which would make it easier for the token consumer to handle. + * @param credentials The Credentials object to set on the current client. + */ + setCredentials(credentials) { + if (!credentials.expiry_date) { + throw new Error('The access token expiry_date field is missing in the provided ' + + 'credentials.'); + } + super.setCredentials(credentials); + this.cachedDownscopedAccessToken = credentials; + } + async getAccessToken() { + // If the cached access token is unavailable or expired, force refresh. + // The Downscoped access token will be returned in + // DownscopedAccessTokenResponse format. + if (!this.cachedDownscopedAccessToken || + this.isExpired(this.cachedDownscopedAccessToken)) { + await this.refreshAccessTokenAsync(); + } + // Return Downscoped access token in DownscopedAccessTokenResponse format. + return { + token: this.cachedDownscopedAccessToken.access_token, + expirationTime: this.cachedDownscopedAccessToken.expiry_date, + res: this.cachedDownscopedAccessToken.res, + }; + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * The result has the form: + * { Authorization: 'Bearer ' } + */ + async getRequestHeaders() { + const accessTokenResponse = await this.getAccessToken(); + const headers = { + Authorization: `Bearer ${accessTokenResponse.token}`, + }; + return this.addSharedMetadataHeaders(headers); + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + /** + * Authenticates the provided HTTP request, processes it and resolves with the + * returned response. + * @param opts The HTTP request options. + * @param retry Whether the current attempt is a retry after a failed attempt. + * @return A promise that resolves with the successful response. + */ + async requestAsync(opts, retry = false) { + let response; + try { + const requestHeaders = await this.getRequestHeaders(); + opts.headers = opts.headers || {}; + if (requestHeaders && requestHeaders['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = + requestHeaders['x-goog-user-project']; + } + if (requestHeaders && requestHeaders.Authorization) { + opts.headers.Authorization = requestHeaders.Authorization; + } + response = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - forceRefreshOnFailure is true + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && + isAuthErr && + !isReadableStream && + this.forceRefreshOnFailure) { + await this.refreshAccessTokenAsync(); + return await this.requestAsync(opts, true); + } + } + throw e; + } + return response; + } + /** + * Forces token refresh, even if unexpired tokens are currently cached. + * GCP access tokens are retrieved from authclient object/source credential. + * Then GCP access tokens are exchanged for downscoped access tokens via the + * token exchange endpoint. + * @return A promise that resolves with the fresh downscoped access token. + */ + async refreshAccessTokenAsync() { + var _a; + // Retrieve GCP access token from source credential. + const subjectToken = (await this.authClient.getAccessToken()).token; + // Construct the STS credentials options. + const stsCredentialsOptions = { + grantType: STS_GRANT_TYPE, + requestedTokenType: STS_REQUEST_TOKEN_TYPE, + subjectToken: subjectToken, + subjectTokenType: STS_SUBJECT_TOKEN_TYPE, + }; + // Exchange the source AuthClient access token for a Downscoped access + // token. + const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary); + /** + * The STS endpoint will only return the expiration time for the downscoped + * access token if the original access token represents a service account. + * The downscoped token's expiration time will always match the source + * credential expiration. When no expires_in is returned, we can copy the + * source credential's expiration time. + */ + const sourceCredExpireDate = ((_a = this.authClient.credentials) === null || _a === void 0 ? void 0 : _a.expiry_date) || null; + const expiryDate = stsResponse.expires_in + ? new Date().getTime() + stsResponse.expires_in * 1000 + : sourceCredExpireDate; + // Save response in cached access token. + this.cachedDownscopedAccessToken = { + access_token: stsResponse.access_token, + expiry_date: expiryDate, + res: stsResponse.res, + }; + // Save credentials. + this.credentials = {}; + Object.assign(this.credentials, this.cachedDownscopedAccessToken); + delete this.credentials.res; + // Trigger tokens event to notify external listeners. + this.emit('tokens', { + refresh_token: null, + expiry_date: this.cachedDownscopedAccessToken.expiry_date, + access_token: this.cachedDownscopedAccessToken.access_token, + token_type: 'Bearer', + id_token: null, + }); + // Return the cached access token. + return this.cachedDownscopedAccessToken; + } + /** + * Returns whether the provided credentials are expired or not. + * If there is no expiry time, assumes the token is not expired or expiring. + * @param downscopedAccessToken The credentials to check for expiration. + * @return Whether the credentials are expired or not. + */ + isExpired(downscopedAccessToken) { + const now = new Date().getTime(); + return downscopedAccessToken.expiry_date + ? now >= + downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis + : false; + } +} +exports.DownscopedClient = DownscopedClient; +//# sourceMappingURL=downscopedclient.js.map + +/***/ }), + +/***/ 9642: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// Copyright 2018 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.getRetryConfig = void 0; +async function getRetryConfig(err) { + var _a; + let config = getConfig(err); + if (!err || !err.config || (!config && !err.config.retry)) { + return { shouldRetry: false }; + } + config = config || {}; + config.currentRetryAttempt = config.currentRetryAttempt || 0; + config.retry = + config.retry === undefined || config.retry === null ? 3 : config.retry; + config.httpMethodsToRetry = config.httpMethodsToRetry || [ + 'GET', + 'HEAD', + 'PUT', + 'OPTIONS', + 'DELETE', + ]; + config.noResponseRetries = + config.noResponseRetries === undefined || config.noResponseRetries === null + ? 2 + : config.noResponseRetries; + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + const retryRanges = [ + // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes + // 1xx - Retry (Informational, request still processing) + // 2xx - Do not retry (Success) + // 3xx - Do not retry (Redirect) + // 4xx - Do not retry (Client errors) + // 429 - Retry ("Too Many Requests") + // 5xx - Retry (Server errors) + [100, 199], + [429, 429], + [500, 599], + ]; + config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; + // Put the config back into the err + err.config.retryConfig = config; + // Determine if we should retry the request + const shouldRetryFn = config.shouldRetry || shouldRetryRequest; + if (!(await shouldRetryFn(err))) { + return { shouldRetry: false, config: err.config }; + } + // Calculate time to wait with exponential backoff. + // If this is the first retry, look for a configured retryDelay. + const retryDelay = config.currentRetryAttempt ? 0 : (_a = config.retryDelay) !== null && _a !== void 0 ? _a : 100; + // Formula: retryDelay + ((2^c - 1 / 2) * 1000) + const delay = retryDelay + ((Math.pow(2, config.currentRetryAttempt) - 1) / 2) * 1000; + // We're going to retry! Incremenent the counter. + err.config.retryConfig.currentRetryAttempt += 1; + // Create a promise that invokes the retry after the backOffDelay + const backoff = config.retryBackoff + ? config.retryBackoff(err, delay) + : new Promise(resolve => { + setTimeout(resolve, delay); + }); + // Notify the user if they added an `onRetryAttempt` handler + if (config.onRetryAttempt) { + config.onRetryAttempt(err); + } + // Return the promise in which recalls Gaxios to retry the request + await backoff; + return { shouldRetry: true, config: err.config }; +} +exports.getRetryConfig = getRetryConfig; +/** + * Determine based on config if we should retry the request. + * @param err The GaxiosError passed to the interceptor. + */ +function shouldRetryRequest(err) { + const config = getConfig(err); + // node-fetch raises an AbortError if signaled: + // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal + if (err.name === 'AbortError') { + return false; + } + // If there's no config, or retries are disabled, return. + if (!config || config.retry === 0) { + return false; + } + // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) + if (!err.response && + (config.currentRetryAttempt || 0) >= config.noResponseRetries) { + return false; + } + // Only retry with configured HttpMethods. + if (!err.config.method || + config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { + return false; + } + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + if (err.response && err.response.status) { + let isInRange = false; + for (const [min, max] of config.statusCodesToRetry) { + const status = err.response.status; + if (status >= min && status <= max) { + isInRange = true; + break; + } + } + if (!isInRange) { + return false; + } + } + // If we are out of retry attempts, return + config.currentRetryAttempt = config.currentRetryAttempt || 0; + if (config.currentRetryAttempt >= config.retry) { + return false; + } + return true; +} +/** + * Acquire the raxConfig object from an GaxiosError if available. + * @param err The Gaxios error with a config object. + */ +function getConfig(err) { + if (err && err.config && err.config.retryConfig) { + return err.config.retryConfig; + } + return; +} +//# sourceMappingURL=retry.js.map + +/***/ }), + +/***/ 9650: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.logging_v2 = exports.auth = exports.logging = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v2_1 = __webpack_require__(8914); +Object.defineProperty(exports, "logging_v2", { enumerable: true, get: function () { return v2_1.logging_v2; } }); +exports.VERSIONS = { + v2: v2_1.logging_v2.Logging, +}; +function logging(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('logging', versionOrOptions, exports.VERSIONS, this); +} +exports.logging = logging; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9656: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.groupsmigration_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var groupsmigration_v1; +(function (groupsmigration_v1) { + /** + * Groups Migration API + * + * The Groups Migration API allows domain administrators to archive emails into Google groups. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const groupsmigration = google.groupsmigration('v1'); + * ``` + */ + class Groupsmigration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.archive = new Resource$Archive(this.context); + } + } + groupsmigration_v1.Groupsmigration = Groupsmigration; + class Resource$Archive { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -329539,26 +595103,86 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://groupsmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + mediaUrl: (rootUrl + '/upload/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['groupId'], + pathParams: ['groupId'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + groupsmigration_v1.Resource$Archive = Resource$Archive; +})(groupsmigration_v1 = exports.groupsmigration_v1 || (exports.groupsmigration_v1 = {})); + + +/***/ }), + +/***/ 9668: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.cloudresourcemanager_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var cloudresourcemanager_v2beta1; +(function (cloudresourcemanager_v2beta1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v2beta1'); + * ``` + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.operations = new Resource$Operations(this.context); + } + } + cloudresourcemanager_v2beta1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -329570,33 +595194,26 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Mobileapps = Resource$Mobileapps; - class Resource$Mobilecarriers { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329607,28 +595224,26 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329639,32 +595254,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Mobilecarriers = Resource$Mobilecarriers; - class Resource$Operatingsystems { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329677,28 +595285,26 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329709,34 +595315,26 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Operatingsystems = Resource$Operatingsystems; - class Resource$Operatingsystemversions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329747,28 +595345,26 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329779,34 +595375,26 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Operatingsystemversions = Resource$Operatingsystemversions; - class Resource$Orderdocuments { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329817,26 +595405,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329849,33 +595436,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Orderdocuments = Resource$Orderdocuments; - class Resource$Orders { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329886,26 +595467,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -329917,34 +595497,32 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Orders = Resource$Orders; - class Resource$Placementgroups { + cloudresourcemanager_v2beta1.Resource$Folders = Resource$Folders; + class Resource$Operations { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -329955,26 +595533,141 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + cloudresourcemanager_v2beta1.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2beta1 || (exports.cloudresourcemanager_v2beta1 = {})); + + +/***/ }), + +/***/ 9671: +/***/ (function() { + +(function(scope) {'use strict'; +function B(r,e){var f;return r instanceof Buffer?f=r:f=Buffer.from(r.buffer,r.byteOffset,r.byteLength),f.toString(e)}var w=function(r){return Buffer.from(r)};function h(r){for(var e=0,f=Math.min(256*256,r.length+1),n=new Uint16Array(f),i=[],o=0;;){var t=e=f-1){var s=n.subarray(0,o),m=s;if(i.push(String.fromCharCode.apply(null,m)),!t)return i.join("");r=r.subarray(e),e=0,o=0}var a=r[e++];if((a&128)===0)n[o++]=a;else if((a&224)===192){var d=r[e++]&63;n[o++]=(a&31)<<6|d}else if((a&240)===224){var d=r[e++]&63,l=r[e++]&63;n[o++]=(a&31)<<12|d<<6|l}else if((a&248)===240){var d=r[e++]&63,l=r[e++]&63,R=r[e++]&63,c=(a&7)<<18|d<<12|l<<6|R;c>65535&&(c-=65536,n[o++]=c>>>10&1023|55296,c=56320|c&1023),n[o++]=c}}}function F(r){for(var e=0,f=r.length,n=0,i=Math.max(32,f+(f>>>1)+7),o=new Uint8Array(i>>>3<<3);e=55296&&t<=56319){if(e=55296&&t<=56319)continue}if(n+4>o.length){i+=8,i*=1+e/r.length*2,i=i>>>3<<3;var m=new Uint8Array(i);m.set(o),o=m}if((t&4294967168)===0){o[n++]=t;continue}else if((t&4294965248)===0)o[n++]=t>>>6&31|192;else if((t&4294901760)===0)o[n++]=t>>>12&15|224,o[n++]=t>>>6&63|128;else if((t&4292870144)===0)o[n++]=t>>>18&7|240,o[n++]=t>>>12&63|128,o[n++]=t>>>6&63|128;else continue;o[n++]=t&63|128}return o.slice?o.slice(0,n):o.subarray(0,n)}var u="Failed to ",p=function(r,e,f){if(r)throw new Error("".concat(u).concat(e,": the '").concat(f,"' option is unsupported."))};var x=typeof Buffer=="function"&&Buffer.from;var A=x?w:F;function v(){this.encoding="utf-8"}v.prototype.encode=function(r,e){return p(e&&e.stream,"encode","stream"),A(r)};function U(r){var e;try{var f=new Blob([r],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(f);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e)}}var O=!x&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",S=["utf-8","utf8","unicode-1-1-utf-8"],T=h;x?T=B:O&&(T=function(r){try{return U(r)}catch(e){return h(r)}});var y="construct 'TextDecoder'",E="".concat(u," ").concat(y,": the ");function g(r,e){p(e&&e.fatal,y,"fatal"),r=r||"utf-8";var f;if(x?f=Buffer.isEncoding(r):f=S.indexOf(r.toLowerCase())!==-1,!f)throw new RangeError("".concat(E," encoding label provided ('").concat(r,"') is invalid."));this.encoding=r,this.fatal=!1,this.ignoreBOM=!1}g.prototype.decode=function(r,e){p(e&&e.stream,"decode","stream");var f;return r instanceof Uint8Array?f=r:r.buffer instanceof ArrayBuffer?f=new Uint8Array(r.buffer):f=new Uint8Array(r),T(f,this.encoding)};scope.TextEncoder=scope.TextEncoder||v;scope.TextDecoder=scope.TextDecoder||g; +}(typeof window !== 'undefined' ? window : (typeof global !== 'undefined' ? global : this))); + + +/***/ }), + +/***/ 9682: +/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) { + +// Copyright 2020 The Oppia Authors. All Rights Reserved. +// +// 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. + +/** + * @fileoverview Entry point of oppiabot github actions. + */ + +const core = __webpack_require__(6470); +const { context } = __webpack_require__(1469); +const dispatcher = __webpack_require__(7760); + +core.info( + `About to dispatch:${context.eventName} and ${context.payload.action}.` +); +dispatcher.dispatch(context.eventName, context.payload.action); + + +/***/ }), + +/***/ 9685: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.speech_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var speech_v2beta1; +(function (speech_v2beta1) { + /** + * Cloud Speech-to-Text API + * + * Converts audio to text by applying powerful neural network models. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const speech = google.speech('v2beta1'); + * ``` + */ + class Speech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + speech_v2beta1.Speech = Speech; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + speech_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + speech_v2beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329987,23 +595680,22 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -330019,58 +595711,199 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + speech_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(speech_v2beta1 = exports.speech_v2beta1 || (exports.speech_v2beta1 = {})); + + +/***/ }), + +/***/ 9695: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(__webpack_require__(8078)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +var _default = version; +exports.default = _default; + +/***/ }), + +/***/ 9707: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.redis_v1beta1 = exports.redis_v1 = exports.auth = exports.redis = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9473); +Object.defineProperty(exports, "redis_v1", { enumerable: true, get: function () { return v1_1.redis_v1; } }); +const v1beta1_1 = __webpack_require__(7175); +Object.defineProperty(exports, "redis_v1beta1", { enumerable: true, get: function () { return v1beta1_1.redis_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.redis_v1.Redis, + v1beta1: v1beta1_1.redis_v1beta1.Redis, +}; +function redis(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('redis', versionOrOptions, exports.VERSIONS, this); +} +exports.redis = redis; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9718: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.securitycenter_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var securitycenter_v1beta2; +(function (securitycenter_v1beta2) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1beta2'); + * ``` + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + securitycenter_v1beta2.Securitycenter = Securitycenter; + class Resource$Folders { + constructor(context) { + this.context = context; + this.containerThreatDetectionSettings = + new Resource$Folders$Containerthreatdetectionsettings(this.context); + this.eventThreatDetectionSettings = + new Resource$Folders$Eventthreatdetectionsettings(this.context); + this.rapidVulnerabilityDetectionSettings = + new Resource$Folders$Rapidvulnerabilitydetectionsettings(this.context); + this.securityHealthAnalyticsSettings = + new Resource$Folders$Securityhealthanalyticssettings(this.context); + this.virtualMachineThreatDetectionSettings = + new Resource$Folders$Virtualmachinethreatdetectionsettings(this.context); + this.webSecurityScannerSettings = + new Resource$Folders$Websecurityscannersettings(this.context); + } + getContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330083,32 +595916,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Placementgroups = Resource$Placementgroups; - class Resource$Placements { - constructor(context) { - this.context = context; - } - generatetags(paramsOrCallback, optionsOrCallback, callback) { + getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330121,57 +595947,57 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330184,85 +596010,89 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330275,191 +596105,185 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Placements = Resource$Placements; - class Resource$Placementstrategies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330472,337 +596296,335 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Placementstrategies = Resource$Placementstrategies; - class Resource$Platformtypes { + securitycenter_v1beta2.Resource$Folders = Resource$Folders; + class Resource$Folders$Containerthreatdetectionsettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Folders$Containerthreatdetectionsettings = Resource$Folders$Containerthreatdetectionsettings; + class Resource$Folders$Eventthreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Platformtypes = Resource$Platformtypes; - class Resource$Postalcodes { + securitycenter_v1beta2.Resource$Folders$Eventthreatdetectionsettings = Resource$Folders$Eventthreatdetectionsettings; + class Resource$Folders$Rapidvulnerabilitydetectionsettings { 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['profileId', 'code'], - pathParams: ['code', 'profileId'], - 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 || {}); + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Postalcodes = Resource$Postalcodes; - class Resource$Projects { + securitycenter_v1beta2.Resource$Folders$Rapidvulnerabilitydetectionsettings = Resource$Folders$Rapidvulnerabilitydetectionsettings; + class Resource$Folders$Securityhealthanalyticssettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + securitycenter_v1beta2.Resource$Folders$Securityhealthanalyticssettings = Resource$Folders$Securityhealthanalyticssettings; + class Resource$Folders$Virtualmachinethreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Projects = Resource$Projects; - class Resource$Regions { + securitycenter_v1beta2.Resource$Folders$Virtualmachinethreatdetectionsettings = Resource$Folders$Virtualmachinethreatdetectionsettings; + class Resource$Folders$Websecurityscannersettings { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Regions = Resource$Regions; - class Resource$Remarketinglists { + securitycenter_v1beta2.Resource$Folders$Websecurityscannersettings = Resource$Folders$Websecurityscannersettings; + class Resource$Organizations { constructor(context) { this.context = context; + this.containerThreatDetectionSettings = + new Resource$Organizations$Containerthreatdetectionsettings(this.context); + this.eventThreatDetectionSettings = + new Resource$Organizations$Eventthreatdetectionsettings(this.context); + this.rapidVulnerabilityDetectionSettings = + new Resource$Organizations$Rapidvulnerabilitydetectionsettings(this.context); + this.securityHealthAnalyticsSettings = + new Resource$Organizations$Securityhealthanalyticssettings(this.context); + this.virtualMachineThreatDetectionSettings = + new Resource$Organizations$Virtualmachinethreatdetectionsettings(this.context); + this.webSecurityScannerSettings = + new Resource$Organizations$Websecurityscannersettings(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + getContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330815,58 +596637,57 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330879,64 +596700,57 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Remarketinglists = Resource$Remarketinglists; - class Resource$Remarketinglistshares { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId', 'remarketingListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getSubscription(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330949,516 +596763,562 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Remarketinglistshares = Resource$Remarketinglistshares; - class Resource$Reports { - constructor(context) { - this.context = context; - this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); - this.files = new Resource$Reports$Files(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Reports = Resource$Reports; - class Resource$Reports$Compatiblefields { + securitycenter_v1beta2.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Containerthreatdetectionsettings { constructor(context) { this.context = context; } - query(paramsOrCallback, optionsOrCallback, callback) { + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; - class Resource$Reports$Files { + securitycenter_v1beta2.Resource$Organizations$Containerthreatdetectionsettings = Resource$Organizations$Containerthreatdetectionsettings; + class Resource$Organizations$Eventthreatdetectionsettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId', 'fileId'], - pathParams: ['fileId', 'profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Organizations$Eventthreatdetectionsettings = Resource$Organizations$Eventthreatdetectionsettings; + class Resource$Organizations$Rapidvulnerabilitydetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Reports$Files = Resource$Reports$Files; - class Resource$Sites { + securitycenter_v1beta2.Resource$Organizations$Rapidvulnerabilitydetectionsettings = Resource$Organizations$Rapidvulnerabilitydetectionsettings; + class Resource$Organizations$Securityhealthanalyticssettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + securitycenter_v1beta2.Resource$Organizations$Securityhealthanalyticssettings = Resource$Organizations$Securityhealthanalyticssettings; + class Resource$Organizations$Virtualmachinethreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { - options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + securitycenter_v1beta2.Resource$Organizations$Virtualmachinethreatdetectionsettings = Resource$Organizations$Virtualmachinethreatdetectionsettings; + class Resource$Organizations$Websecurityscannersettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + securitycenter_v1beta2.Resource$Organizations$Websecurityscannersettings = Resource$Organizations$Websecurityscannersettings; + class Resource$Projects { + constructor(context) { + this.context = context; + this.containerThreatDetectionSettings = + new Resource$Projects$Containerthreatdetectionsettings(this.context); + this.eventThreatDetectionSettings = + new Resource$Projects$Eventthreatdetectionsettings(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.rapidVulnerabilityDetectionSettings = + new Resource$Projects$Rapidvulnerabilitydetectionsettings(this.context); + this.securityHealthAnalyticsSettings = + new Resource$Projects$Securityhealthanalyticssettings(this.context); + this.virtualMachineThreatDetectionSettings = + new Resource$Projects$Virtualmachinethreatdetectionsettings(this.context); + this.webSecurityScannerSettings = + new Resource$Projects$Websecurityscannersettings(this.context); + } + getContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331469,32 +597329,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Sites = Resource$Sites; - class Resource$Sizes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331505,56 +597360,59 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331565,95 +597423,91 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Sizes = Resource$Sizes; - class Resource$Subaccounts { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331664,540 +597518,665 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Subaccounts = Resource$Subaccounts; - class Resource$Targetableremarketinglists { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; - class Resource$Targetingtemplates { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Containerthreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Containerthreatdetectionsettings = Resource$Projects$Containerthreatdetectionsettings; + class Resource$Projects$Eventthreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Eventthreatdetectionsettings = Resource$Projects$Eventthreatdetectionsettings; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + } + } + securitycenter_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.containerThreatDetectionSettings = + new Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings(this.context); + } + getContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Targetingtemplates = Resource$Targetingtemplates; - class Resource$Userprofiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userrolepermissiongroups { + securitycenter_v1beta2.Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings = Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings; + class Resource$Projects$Rapidvulnerabilitydetectionsettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Rapidvulnerabilitydetectionsettings = Resource$Projects$Rapidvulnerabilitydetectionsettings; + class Resource$Projects$Securityhealthanalyticssettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; - class Resource$Userrolepermissions { + securitycenter_v1beta2.Resource$Projects$Securityhealthanalyticssettings = Resource$Projects$Securityhealthanalyticssettings; + class Resource$Projects$Virtualmachinethreatdetectionsettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Virtualmachinethreatdetectionsettings = Resource$Projects$Virtualmachinethreatdetectionsettings; + class Resource$Projects$Websecurityscannersettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dfareporting_v3_3.Resource$Userrolepermissions = Resource$Userrolepermissions; - class Resource$Userroles { + securitycenter_v1beta2.Resource$Projects$Websecurityscannersettings = Resource$Projects$Websecurityscannersettings; +})(securitycenter_v1beta2 = exports.securitycenter_v1beta2 || (exports.securitycenter_v1beta2 = {})); + + +/***/ }), + +/***/ 9720: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.servicecontrol_v2 = exports.servicecontrol_v1 = exports.auth = exports.servicecontrol = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(8944); +Object.defineProperty(exports, "servicecontrol_v1", { enumerable: true, get: function () { return v1_1.servicecontrol_v1; } }); +const v2_1 = __webpack_require__(9502); +Object.defineProperty(exports, "servicecontrol_v2", { enumerable: true, get: function () { return v2_1.servicecontrol_v2; } }); +exports.VERSIONS = { + v1: v1_1.servicecontrol_v1.Servicecontrol, + v2: v2_1.servicecontrol_v2.Servicecontrol, +}; +function servicecontrol(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('servicecontrol', versionOrOptions, exports.VERSIONS, this); +} +exports.servicecontrol = servicecontrol; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9730: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.translate_v3beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var translate_v3beta1; +(function (translate_v3beta1) { + /** + * Cloud Translation API + * + * Integrates text translation into your website or application. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const translate = google.translate('v3beta1'); + * ``` + */ + class Translate { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + translate_v3beta1.Translate = Translate; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332208,27 +598187,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332239,27 +598218,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + translateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332270,56 +598249,67 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + translate_v3beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.glossaries = new Resource$Projects$Locations$Glossaries(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + batchTranslateDocument(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}:batchTranslateDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332330,26 +598320,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332360,32 +598351,27 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Userroles = Resource$Userroles; - class Resource$Videoformats { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332396,26 +598382,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332428,131 +598413,25 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_3.Resource$Videoformats = Resource$Videoformats; -})(dfareporting_v3_3 = exports.dfareporting_v3_3 || (exports.dfareporting_v3_3 = {})); -//# sourceMappingURL=v3.3.js.map - -/***/ }), -/* 960 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.siteVerification = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(477); -exports.VERSIONS = { - v1: v1_1.siteVerification_v1.Siteverification, -}; -function siteVerification(versionOrOptions) { - return googleapis_common_1.getAPI('siteVerification', versionOrOptions, exports.VERSIONS, this); -} -exports.siteVerification = siteVerification; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 961 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.healthcare_v1beta1 = 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 = __webpack_require__(927); -var healthcare_v1beta1; -(function (healthcare_v1beta1) { - /** - * Cloud Healthcare API - * - * Manage, store, and access healthcare data in Google Cloud Platform. - * - * @example - * const {google} = require('googleapis'); - * const healthcare = google.healthcare('v1beta1'); - * - * @namespace healthcare - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Healthcare - */ - class Healthcare { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - healthcare_v1beta1.Healthcare = Healthcare; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - healthcare_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.datasets = new Resource$Projects$Locations$Datasets(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332565,10 +598444,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -332577,13 +598456,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + translateDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332596,36 +598475,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}:translateDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Datasets { - constructor(context) { - this.context = context; - this.annotationStores = new Resource$Projects$Locations$Datasets$Annotationstores(this.context); - this.dicomStores = new Resource$Projects$Locations$Datasets$Dicomstores(this.context); - this.fhirStores = new Resource$Projects$Locations$Datasets$Fhirstores(this.context); - this.hl7V2Stores = new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context); - this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + translateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332638,10 +598506,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -332650,13 +598518,19 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Glossaries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332669,22 +598543,22 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['sourceDataset'], - pathParams: ['sourceDataset'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -332700,10 +598574,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -332712,10 +598586,10 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -332731,10 +598605,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -332743,13 +598617,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332762,25 +598636,31 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3beta1.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332793,25 +598673,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332824,11 +598704,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -332836,13 +598716,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332855,25 +598735,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332886,31 +598766,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; - class Resource$Projects$Locations$Datasets$Annotationstores { - constructor(context) { - this.context = context; - } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332923,27 +598797,168 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + translate_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(translate_v3beta1 = exports.translate_v3beta1 || (exports.translate_v3beta1 = {})); + + +/***/ }), + +/***/ 9740: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.playcustomapp_v1 = exports.auth = exports.playcustomapp = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(241); +Object.defineProperty(exports, "playcustomapp_v1", { enumerable: true, get: function () { return v1_1.playcustomapp_v1; } }); +exports.VERSIONS = { + v1: v1_1.playcustomapp_v1.Playcustomapp, +}; +function playcustomapp(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('playcustomapp', versionOrOptions, exports.VERSIONS, this); +} +exports.playcustomapp = playcustomapp; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9742: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.gamesManagement_v1management = exports.auth = exports.gamesManagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1management_1 = __webpack_require__(226); +Object.defineProperty(exports, "gamesManagement_v1management", { enumerable: true, get: function () { return v1management_1.gamesManagement_v1management; } }); +exports.VERSIONS = { + v1management: v1management_1.gamesManagement_v1management.Gamesmanagement, +}; +function gamesManagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('gamesManagement', versionOrOptions, exports.VERSIONS, this); +} +exports.gamesManagement = gamesManagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9743: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.prod_tt_sasportal_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var prod_tt_sasportal_v1alpha1; +(function (prod_tt_sasportal_v1alpha1) { + /** + * SAS Portal API (Testing) + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const prod_tt_sasportal = google.prod_tt_sasportal('v1alpha1'); + * ``` + */ + class Prod_tt_sasportal { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.deployments = new Resource$Deployments(this.context); + this.installer = new Resource$Installer(this.context); + this.nodes = new Resource$Nodes(this.context); + this.policies = new Resource$Policies(this.context); + } + } + prod_tt_sasportal_v1alpha1.Prod_tt_sasportal = Prod_tt_sasportal; + class Resource$Customers { + constructor(context) { + this.context = context; + this.deployments = new Resource$Customers$Deployments(this.context); + this.devices = new Resource$Customers$Devices(this.context); + this.nodes = new Resource$Customers$Nodes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332954,27 +598969,26 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332985,34 +598999,26 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Annotationstores = Resource$Projects$Locations$Datasets$Annotationstores; - class Resource$Projects$Locations$Datasets$Dicomstores { - constructor(context) { - this.context = context; - this.studies = new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -333023,25 +599029,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + provisionDeployment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333054,25 +599060,32 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/customers:provisionDeployment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Customers = Resource$Customers; + class Resource$Customers$Deployments { + constructor(context) { + this.context = context; + this.devices = new Resource$Customers$Deployments$Devices(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333085,25 +599098,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333116,11 +599129,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -333128,10 +599141,10 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -333147,10 +599160,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -333159,13 +599172,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333178,25 +599191,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333209,10 +599222,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -333221,13 +599234,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333240,25 +599253,31 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Deployments = Resource$Customers$Deployments; + class Resource$Customers$Deployments$Devices { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333271,56 +599290,57 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333333,25 +599353,31 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForStudies(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Deployments$Devices = Resource$Customers$Deployments$Devices; + class Resource$Customers$Devices { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333364,25 +599390,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333395,25 +599421,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - storeInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333426,25 +599452,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333457,32 +599483,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores = Resource$Projects$Locations$Datasets$Dicomstores; - class Resource$Projects$Locations$Datasets$Dicomstores$Studies { - constructor(context) { - this.context = context; - this.series = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333495,25 +599514,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333526,25 +599545,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333557,25 +599576,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333588,25 +599607,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333619,25 +599638,34 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - storeInstances(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Nodes { + constructor(context) { + this.context = context; + this.deployments = new Resource$Customers$Nodes$Deployments(this.context); + this.devices = new Resource$Customers$Nodes$Devices(this.context); + this.nodes = new Resource$Customers$Nodes$Nodes(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333650,31 +599678,24 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; - class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context); - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -333688,25 +599709,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333719,25 +599740,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333750,25 +599771,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333781,32 +599802,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series; - class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances { - constructor(context) { - this.context = context; - this.frames = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context); - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333819,25 +599833,31 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveInstance(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; + class Resource$Customers$Nodes$Deployments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333850,25 +599870,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333881,25 +599901,31 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes$Deployments = Resource$Customers$Nodes$Deployments; + class Resource$Customers$Nodes$Devices { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333912,31 +599938,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances; - class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames { - constructor(context) { - this.context = context; - } - retrieveFrames(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333949,25 +599969,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -333980,30 +600000,29 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames; - class Resource$Projects$Locations$Datasets$Fhirstores { + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes$Devices = Resource$Customers$Nodes$Devices; + class Resource$Customers$Nodes$Nodes { constructor(context) { this.context = context; - this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -334018,10 +600037,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -334030,13 +600049,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334049,27 +600068,33 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes$Nodes = Resource$Customers$Nodes$Nodes; + class Resource$Deployments { + constructor(context) { + this.context = context; + this.devices = new Resource$Deployments$Devices(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334080,11 +600105,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -334092,13 +600117,19 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Deployments = Resource$Deployments; + class Resource$Deployments$Devices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334111,11 +600142,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -334123,10 +600154,10 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -334142,10 +600173,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -334154,13 +600185,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334173,25 +600204,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334204,11 +600235,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -334216,13 +600247,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334235,25 +600266,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334266,10 +600297,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -334278,13 +600309,19 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Deployments$Devices = Resource$Deployments$Devices; + class Resource$Installer { + constructor(context) { + this.context = context; + } + generateSecret(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334297,25 +600334,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334328,33 +600365,35 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Fhirstores = Resource$Projects$Locations$Datasets$Fhirstores; - class Resource$Projects$Locations$Datasets$Fhirstores$Fhir { + prod_tt_sasportal_v1alpha1.Resource$Installer = Resource$Installer; + class Resource$Nodes { constructor(context) { this.context = context; + this.deployments = new Resource$Nodes$Deployments(this.context); + this.devices = new Resource$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes(this.context); } - capabilities(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334365,10 +600404,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -334377,13 +600416,20 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ConceptMapSearchTranslate(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Nodes = Resource$Nodes; + class Resource$Nodes$Deployments { + constructor(context) { + this.context = context; + this.devices = new Resource$Nodes$Deployments$Devices(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334396,25 +600442,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/ConceptMap/$translate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ConceptMapTranslate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334427,10 +600473,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/$translate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -334439,13 +600485,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - conditionalDelete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334458,25 +600504,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - conditionalPatch(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334489,25 +600535,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - conditionalUpdate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334520,24 +600566,30 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Deployments = Resource$Nodes$Deployments; + class Resource$Nodes$Deployments$Devices { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -334551,25 +600603,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334582,25 +600634,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeBundle(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334613,11 +600665,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -334625,13 +600677,19 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - history(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Deployments$Devices = Resource$Nodes$Deployments$Devices; + class Resource$Nodes$Devices { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334644,25 +600702,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ObservationLastn(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334675,11 +600733,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/Observation/$lastn').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -334687,13 +600745,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334706,11 +600764,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -334718,13 +600776,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - PatientEverything(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334737,10 +600795,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -334749,13 +600807,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - read(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334768,25 +600826,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourcePurge(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334799,11 +600857,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -334811,13 +600869,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334830,25 +600888,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334861,11 +600919,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -334873,13 +600931,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - vread(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334892,11 +600950,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -334904,18 +600962,20 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Fhirstores$Fhir = Resource$Projects$Locations$Datasets$Fhirstores$Fhir; - class Resource$Projects$Locations$Datasets$Hl7v2stores { + prod_tt_sasportal_v1alpha1.Resource$Nodes$Devices = Resource$Nodes$Devices; + class Resource$Nodes$Nodes { constructor(context) { this.context = context; - this.messages = new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context); + this.deployments = new Resource$Nodes$Nodes$Deployments(this.context); + this.devices = new Resource$Nodes$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes$Nodes(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -334930,10 +600990,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -334942,10 +601002,10 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -334961,10 +601021,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -334973,15 +601033,14 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334992,10 +601051,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -335004,15 +601063,14 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335023,27 +601081,26 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335054,22 +601111,22 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -335085,10 +601142,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -335097,13 +601154,19 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes = Resource$Nodes$Nodes; + class Resource$Nodes$Nodes$Deployments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335116,25 +601179,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335147,27 +601210,27 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; - class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Deployments = Resource$Nodes$Nodes$Deployments; + class Resource$Nodes$Nodes$Devices { constructor(context) { this.context = context; } @@ -335184,10 +601247,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -335196,13 +601259,13 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335215,25 +601278,25 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335246,25 +601309,31 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ingest(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; + class Resource$Nodes$Nodes$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335277,10 +601346,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -335289,10 +601358,10 @@ var healthcare_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -335308,10 +601377,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -335320,52 +601389,20 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages = Resource$Projects$Locations$Datasets$Hl7v2stores$Messages; - class Resource$Projects$Locations$Datasets$Operations { + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; + class Resource$Policies { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335376,27 +601413,26 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335407,27 +601443,26 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/policies:set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335438,31 +601473,32 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; -})(healthcare_v1beta1 = exports.healthcare_v1beta1 || (exports.healthcare_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + prod_tt_sasportal_v1alpha1.Resource$Policies = Resource$Policies; +})(prod_tt_sasportal_v1alpha1 = exports.prod_tt_sasportal_v1alpha1 || (exports.prod_tt_sasportal_v1alpha1 = {})); + /***/ }), -/* 962 */ + +/***/ 9789: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -335480,137 +601516,56 @@ var healthcare_v1beta1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudresourcemanager_v2 = void 0; +exports.transcoder_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 = __webpack_require__(927); -var cloudresourcemanager_v2; -(function (cloudresourcemanager_v2) { - /** - * Cloud Resource Manager API - * - * Creates, reads, and updates metadata for Google Cloud Platform resource containers. - * - * @example - * const {google} = require('googleapis'); - * const cloudresourcemanager = google.cloudresourcemanager('v2'); - * - * @namespace cloudresourcemanager - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Cloudresourcemanager - */ - class Cloudresourcemanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.folders = new Resource$Folders(this.context); - this.operations = new Resource$Operations(this.context); - } - } - cloudresourcemanager_v2.Cloudresourcemanager = Cloudresourcemanager; - class Resource$Folders { - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/folders').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); - } - } - 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://cloudresourcemanager.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://cloudresourcemanager.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, +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __webpack_require__(927); +var transcoder_v1; +(function (transcoder_v1) { + /** + * Transcoder API + * + * This API converts video files into formats suitable for consumer distribution. For more information, see the Transcoder API overview. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const transcoder = google.transcoder('v1'); + * ``` + */ + class Transcoder { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.projects = new Resource$Projects(this.context); } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + transcoder_v1.Transcoder = Transcoder; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + transcoder_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.jobTemplates = new Resource$Projects$Locations$Jobtemplates(this.context); + } + } + transcoder_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335623,56 +601578,27 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobs').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); - } - } - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335683,11 +601609,11 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -335695,14 +601621,15 @@ var cloudresourcemanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335713,11 +601640,11 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -335725,14 +601652,15 @@ var cloudresourcemanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335743,25 +601671,31 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + transcoder_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobtemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335774,25 +601708,25 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335805,26 +601739,27 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335835,11 +601770,11 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -335847,20 +601782,15 @@ var cloudresourcemanager_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudresourcemanager_v2.Resource$Folders = Resource$Folders; - class Resource$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335871,1423 +601801,1033 @@ var cloudresourcemanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudresourcemanager_v2.Resource$Operations = Resource$Operations; -})(cloudresourcemanager_v2 = exports.cloudresourcemanager_v2 || (exports.cloudresourcemanager_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 963 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of PKCS#7 v1.5. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2012-2015 Digital Bazaar, Inc. - * - * Currently this implementation only supports ContentType of EnvelopedData, - * EncryptedData, or SignedData at the root level. The top level elements may - * contain only a ContentInfo of ContentType Data, i.e. plain data. Further - * nesting is not (yet) supported. - * - * The Forge validators for PKCS #7's ASN.1 structures are available from - * a separate file pkcs7asn1.js, since those are referenced from other - * PKCS standards like PKCS #12. - */ -var forge = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(784); -__webpack_require__(794); -__webpack_require__(988); -__webpack_require__(76); -__webpack_require__(638); -__webpack_require__(707); -__webpack_require__(54); -__webpack_require__(249); + transcoder_v1.Resource$Projects$Locations$Jobtemplates = Resource$Projects$Locations$Jobtemplates; +})(transcoder_v1 = exports.transcoder_v1 || (exports.transcoder_v1 = {})); -// shortcut for ASN.1 API -var asn1 = forge.asn1; -// shortcut for PKCS#7 API -var p7 = module.exports = forge.pkcs7 = forge.pkcs7 || {}; +/***/ }), -/** - * Converts a PKCS#7 message from PEM format. - * - * @param pem the PEM-formatted PKCS#7 message. - * - * @return the PKCS#7 message. - */ -p7.messageFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; +/***/ 9813: +/***/ (function(__unusedmodule, exports) { - if(msg.type !== 'PKCS7') { - var error = new Error('Could not convert PKCS#7 message from PEM; PEM ' + - 'header type is not "PKCS#7".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert PKCS#7 message from PEM; PEM is encrypted.'); - } +"use strict"; - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body); - return p7.messageFromAsn1(obj); -}; +Object.defineProperty(exports, '__esModule', { value: true }); -/** - * Converts a PKCS#7 message to PEM format. - * - * @param msg The PKCS#7 message object - * @param maxline The maximum characters per line, defaults to 64. - * - * @return The PEM-formatted PKCS#7 message. - */ -p7.messageToPem = function(msg, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var pemObj = { - type: 'PKCS7', - body: asn1.toDer(msg.toAsn1()).getBytes() +const REGEX_IS_INSTALLATION_LEGACY = /^v1\./; +const REGEX_IS_INSTALLATION = /^ghs_/; +const REGEX_IS_USER_TO_SERVER = /^ghu_/; +async function auth(token) { + const isApp = token.split(/\./).length === 3; + const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token); + const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token); + const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth"; + return { + type: "token", + token: token, + tokenType }; - return forge.pem.encode(pemObj, {maxline: maxline}); -}; +} /** - * Converts a PKCS#7 message from an ASN.1 object. - * - * @param obj the ASN.1 representation of a ContentInfo. + * Prefix token for usage in the Authorization header * - * @return the PKCS#7 message. + * @param token OAuth token or JSON Web Token */ -p7.messageFromAsn1 = function(obj) { - // validate root level ContentInfo and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, p7.asn1.contentInfoValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 message. ' + - 'ASN.1 object is not an PKCS#7 ContentInfo.'); - error.errors = errors; - throw error; +function withAuthorizationPrefix(token) { + if (token.split(/\./).length === 3) { + return `bearer ${token}`; } - var contentType = asn1.derToOid(capture.contentType); - var msg; - - switch(contentType) { - case forge.pki.oids.envelopedData: - msg = p7.createEnvelopedData(); - break; + return `token ${token}`; +} - case forge.pki.oids.encryptedData: - msg = p7.createEncryptedData(); - break; +async function hook(token, request, route, parameters) { + const endpoint = request.endpoint.merge(route, parameters); + endpoint.headers.authorization = withAuthorizationPrefix(token); + return request(endpoint); +} - case forge.pki.oids.signedData: - msg = p7.createSignedData(); - break; +const createTokenAuth = function createTokenAuth(token) { + if (!token) { + throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); + } - default: - throw new Error('Cannot read PKCS#7 message. ContentType with OID ' + - contentType + ' is not (yet) supported.'); + if (typeof token !== "string") { + throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); } - msg.fromAsn1(capture.content.value[0]); - return msg; + token = token.replace(/^(token|bearer) +/i, ""); + return Object.assign(auth.bind(null, token), { + hook: hook.bind(null, token) + }); }; -p7.createSignedData = function() { - var msg = null; - msg = { - type: forge.pki.oids.signedData, - version: 1, - certificates: [], - crls: [], - // TODO: add json-formatted signer stuff here? - signers: [], - // populated during sign() - digestAlgorithmIdentifiers: [], - contentInfo: null, - signerInfos: [], - - fromAsn1: function(obj) { - // validate SignedData content block and capture data. - _fromAsn1(msg, obj, p7.asn1.signedDataValidator); - msg.certificates = []; - msg.crls = []; - msg.digestAlgorithmIdentifiers = []; - msg.contentInfo = null; - msg.signerInfos = []; - - if(msg.rawCapture.certificates) { - var certs = msg.rawCapture.certificates.value; - for(var i = 0; i < certs.length; ++i) { - msg.certificates.push(forge.pki.certificateFromAsn1(certs[i])); - } - } - - // TODO: parse crls - }, - - toAsn1: function() { - // degenerate case with no content - if(!msg.contentInfo) { - msg.sign(); - } - - var certs = []; - for(var i = 0; i < msg.certificates.length; ++i) { - certs.push(forge.pki.certificateToAsn1(msg.certificates[i])); - } - - var crls = []; - // TODO: implement CRLs - - // [0] SignedData - var signedData = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(msg.version).getBytes()), - // DigestAlgorithmIdentifiers - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SET, true, - msg.digestAlgorithmIdentifiers), - // ContentInfo - msg.contentInfo - ]) - ]); - if(certs.length > 0) { - // [0] IMPLICIT ExtendedCertificatesAndCertificates OPTIONAL - signedData.value[0].value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, certs)); - } - if(crls.length > 0) { - // [1] IMPLICIT CertificateRevocationLists OPTIONAL - signedData.value[0].value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, crls)); - } - // SignerInfos - signedData.value[0].value.push( - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, - msg.signerInfos)); - - // ContentInfo - return asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // ContentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(msg.type).getBytes()), - // [0] SignedData - signedData - ]); - }, - - /** - * Add (another) entity to list of signers. - * - * Note: If authenticatedAttributes are provided, then, per RFC 2315, - * they must include at least two attributes: content type and - * message digest. The message digest attribute value will be - * auto-calculated during signing and will be ignored if provided. - * - * Here's an example of providing these two attributes: - * - * forge.pkcs7.createSignedData(); - * p7.addSigner({ - * issuer: cert.issuer.attributes, - * serialNumber: cert.serialNumber, - * key: privateKey, - * digestAlgorithm: forge.pki.oids.sha1, - * authenticatedAttributes: [{ - * type: forge.pki.oids.contentType, - * value: forge.pki.oids.data - * }, { - * type: forge.pki.oids.messageDigest - * }] - * }); - * - * TODO: Support [subjectKeyIdentifier] as signer's ID. - * - * @param signer the signer information: - * key the signer's private key. - * [certificate] a certificate containing the public key - * associated with the signer's private key; use this option as - * an alternative to specifying signer.issuer and - * signer.serialNumber. - * [issuer] the issuer attributes (eg: cert.issuer.attributes). - * [serialNumber] the signer's certificate's serial number in - * hexadecimal (eg: cert.serialNumber). - * [digestAlgorithm] the message digest OID, as a string, to use - * (eg: forge.pki.oids.sha1). - * [authenticatedAttributes] an optional array of attributes - * to also sign along with the content. - */ - addSigner: function(signer) { - var issuer = signer.issuer; - var serialNumber = signer.serialNumber; - if(signer.certificate) { - var cert = signer.certificate; - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - issuer = cert.issuer.attributes; - serialNumber = cert.serialNumber; - } - var key = signer.key; - if(!key) { - throw new Error( - 'Could not add PKCS#7 signer; no private key specified.'); - } - if(typeof key === 'string') { - key = forge.pki.privateKeyFromPem(key); - } - - // ensure OID known for digest algorithm - var digestAlgorithm = signer.digestAlgorithm || forge.pki.oids.sha1; - switch(digestAlgorithm) { - case forge.pki.oids.sha1: - case forge.pki.oids.sha256: - case forge.pki.oids.sha384: - case forge.pki.oids.sha512: - case forge.pki.oids.md5: - break; - default: - throw new Error( - 'Could not add PKCS#7 signer; unknown message digest algorithm: ' + - digestAlgorithm); - } - - // if authenticatedAttributes is present, then the attributes - // must contain at least PKCS #9 content-type and message-digest - var authenticatedAttributes = signer.authenticatedAttributes || []; - if(authenticatedAttributes.length > 0) { - var contentType = false; - var messageDigest = false; - for(var i = 0; i < authenticatedAttributes.length; ++i) { - var attr = authenticatedAttributes[i]; - if(!contentType && attr.type === forge.pki.oids.contentType) { - contentType = true; - if(messageDigest) { - break; - } - continue; - } - if(!messageDigest && attr.type === forge.pki.oids.messageDigest) { - messageDigest = true; - if(contentType) { - break; - } - continue; - } - } - - if(!contentType || !messageDigest) { - throw new Error('Invalid signer.authenticatedAttributes. If ' + - 'signer.authenticatedAttributes is specified, then it must ' + - 'contain at least two attributes, PKCS #9 content-type and ' + - 'PKCS #9 message-digest.'); - } - } - - msg.signers.push({ - key: key, - version: 1, - issuer: issuer, - serialNumber: serialNumber, - digestAlgorithm: digestAlgorithm, - signatureAlgorithm: forge.pki.oids.rsaEncryption, - signature: null, - authenticatedAttributes: authenticatedAttributes, - unauthenticatedAttributes: [] - }); - }, - - /** - * Signs the content. - * @param options Options to apply when signing: - * [detached] boolean. If signing should be done in detached mode. Defaults to false. - */ - sign: function(options) { - options = options || {}; - // auto-generate content info - if(typeof msg.content !== 'object' || msg.contentInfo === null) { - // use Data ContentInfo - msg.contentInfo = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // ContentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(forge.pki.oids.data).getBytes()) - ]); - - // add actual content, if present - if('content' in msg) { - var content; - if(msg.content instanceof forge.util.ByteBuffer) { - content = msg.content.bytes(); - } else if(typeof msg.content === 'string') { - content = forge.util.encodeUtf8(msg.content); - } - - if (options.detached) { - msg.detachedContent = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, content); - } else { - msg.contentInfo.value.push( - // [0] EXPLICIT content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - content) - ])); - } - } - } - - // no signers, return early (degenerate case for certificate container) - if(msg.signers.length === 0) { - return; - } - - // generate digest algorithm identifiers - var mds = addDigestAlgorithmIds(); - - // generate signerInfos - addSignerInfos(mds); - }, - - verify: function() { - throw new Error('PKCS#7 signature verification not yet implemented.'); - }, - - /** - * Add a certificate. - * - * @param cert the certificate to add. - */ - addCertificate: function(cert) { - // convert from PEM - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - msg.certificates.push(cert); - }, - - /** - * Add a certificate revokation list. - * - * @param crl the certificate revokation list to add. - */ - addCertificateRevokationList: function(crl) { - throw new Error('PKCS#7 CRL support not yet implemented.'); - } - }; - return msg; - - function addDigestAlgorithmIds() { - var mds = {}; - - for(var i = 0; i < msg.signers.length; ++i) { - var signer = msg.signers[i]; - var oid = signer.digestAlgorithm; - if(!(oid in mds)) { - // content digest - mds[oid] = forge.md[forge.pki.oids[oid]].create(); - } - if(signer.authenticatedAttributes.length === 0) { - // no custom attributes to digest; use content message digest - signer.md = mds[oid]; - } else { - // custom attributes to be digested; use own message digest - // TODO: optimize to just copy message digest state if that - // feature is ever supported with message digests - signer.md = forge.md[forge.pki.oids[oid]].create(); - } - } - - // add unique digest algorithm identifiers - msg.digestAlgorithmIdentifiers = []; - for(var oid in mds) { - msg.digestAlgorithmIdentifiers.push( - // AlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oid).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ])); - } - - return mds; - } +exports.createTokenAuth = createTokenAuth; +//# sourceMappingURL=index.js.map - function addSignerInfos(mds) { - var content; - if (msg.detachedContent) { - // Signature has been made in detached mode. - content = msg.detachedContent; - } else { - // Note: ContentInfo is a SEQUENCE with 2 values, second value is - // the content field and is optional for a ContentInfo but required here - // since signers are present - // get ContentInfo content - content = msg.contentInfo.value[1]; - // skip [0] EXPLICIT content wrapper - content = content.value[0]; - } +/***/ }), - if(!content) { - throw new Error( - 'Could not sign PKCS#7 message; there is no content to sign.'); - } +/***/ 9854: +/***/ (function(module) { - // get ContentInfo content type - var contentType = asn1.derToOid(msg.contentInfo.value[0].value); +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ - // serialize content - var bytes = asn1.toDer(content); +/** Used as the `TypeError` message for "Functions" methods. */ +var FUNC_ERROR_TEXT = 'Expected a function'; - // skip identifier and length per RFC 2315 9.3 - // skip identifier (1 byte) - bytes.getByte(); - // read and discard length bytes - asn1.getBerValueLength(bytes); - bytes = bytes.getBytes(); +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; - // digest content DER value bytes - for(var oid in mds) { - mds[oid].start().update(bytes); - } +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; - // sign content - var signingTime = new Date(); - for(var i = 0; i < msg.signers.length; ++i) { - var signer = msg.signers[i]; +/** `Object#toString` result references. */ +var funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + symbolTag = '[object Symbol]'; - if(signer.authenticatedAttributes.length === 0) { - // if ContentInfo content type is not "Data", then - // authenticatedAttributes must be present per RFC 2315 - if(contentType !== forge.pki.oids.data) { - throw new Error( - 'Invalid signer; authenticatedAttributes must be present ' + - 'when the ContentInfo content type is not PKCS#7 Data.'); - } - } else { - // process authenticated attributes - // [0] IMPLICIT - signer.authenticatedAttributesAsn1 = asn1.create( - asn1.Class.CONTEXT_SPECIFIC, 0, true, []); +/** Used to match property names within property paths. */ +var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/, + reLeadingDot = /^\./, + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - // per RFC 2315, attributes are to be digested using a SET container - // not the above [0] IMPLICIT container - var attrsAsn1 = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SET, true, []); +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - for(var ai = 0; ai < signer.authenticatedAttributes.length; ++ai) { - var attr = signer.authenticatedAttributes[ai]; - if(attr.type === forge.pki.oids.messageDigest) { - // use content message digest as value - attr.value = mds[signer.digestAlgorithm].digest(); - } else if(attr.type === forge.pki.oids.signingTime) { - // auto-populate signing time if not already set - if(!attr.value) { - attr.value = signingTime; - } - } +/** Used to match backslashes in property paths. */ +var reEscapeChar = /\\(\\)?/g; - // convert to ASN.1 and push onto Attributes SET (for signing) and - // onto authenticatedAttributesAsn1 to complete SignedData ASN.1 - // TODO: optimize away duplication - attrsAsn1.value.push(_attributeToAsn1(attr)); - signer.authenticatedAttributesAsn1.value.push(_attributeToAsn1(attr)); - } +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; - // DER-serialize and digest SET OF attributes only - bytes = asn1.toDer(attrsAsn1).getBytes(); - signer.md.start().update(bytes); - } +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - // sign digest - signer.signature = signer.key.sign(signer.md, 'RSASSA-PKCS1-V1_5'); - } +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - // add signer info - msg.signerInfos = _signersToAsn1(msg.signers); - } -}; +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); /** - * Creates an empty PKCS#7 message of type EncryptedData. + * Gets the value at `key` of `object`. * - * @return the message. + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. */ -p7.createEncryptedData = function() { - var msg = null; - msg = { - type: forge.pki.oids.encryptedData, - version: 0, - encryptedContent: { - algorithm: forge.pki.oids['aes256-CBC'] - }, - - /** - * Reads an EncryptedData content block (in ASN.1 format) - * - * @param obj The ASN.1 representation of the EncryptedData content block - */ - fromAsn1: function(obj) { - // Validate EncryptedData content block and capture data. - _fromAsn1(msg, obj, p7.asn1.encryptedDataValidator); - }, - - /** - * Decrypt encrypted content - * - * @param key The (symmetric) key as a byte buffer - */ - decrypt: function(key) { - if(key !== undefined) { - msg.encryptedContent.key = key; - } - _decryptContent(msg); - } - }; - return msg; -}; +function getValue(object, key) { + return object == null ? undefined : object[key]; +} /** - * Creates an empty PKCS#7 message of type EnvelopedData. + * Checks if `value` is a host object in IE < 9. * - * @return the message. + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. */ -p7.createEnvelopedData = function() { - var msg = null; - msg = { - type: forge.pki.oids.envelopedData, - version: 0, - recipients: [], - encryptedContent: { - algorithm: forge.pki.oids['aes256-CBC'] - }, - - /** - * Reads an EnvelopedData content block (in ASN.1 format) - * - * @param obj the ASN.1 representation of the EnvelopedData content block. - */ - fromAsn1: function(obj) { - // validate EnvelopedData content block and capture data - var capture = _fromAsn1(msg, obj, p7.asn1.envelopedDataValidator); - msg.recipients = _recipientsFromAsn1(capture.recipientInfos.value); - }, - - toAsn1: function() { - // ContentInfo - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // ContentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(msg.type).getBytes()), - // [0] EnvelopedData - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(msg.version).getBytes()), - // RecipientInfos - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, - _recipientsToAsn1(msg.recipients)), - // EncryptedContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, - _encryptedContentToAsn1(msg.encryptedContent)) - ]) - ]) - ]); - }, - - /** - * Find recipient by X.509 certificate's issuer. - * - * @param cert the certificate with the issuer to look for. - * - * @return the recipient object. - */ - findRecipient: function(cert) { - var sAttr = cert.issuer.attributes; - - for(var i = 0; i < msg.recipients.length; ++i) { - var r = msg.recipients[i]; - var rAttr = r.issuer; - - if(r.serialNumber !== cert.serialNumber) { - continue; - } - - if(rAttr.length !== sAttr.length) { - continue; - } - - var match = true; - for(var j = 0; j < sAttr.length; ++j) { - if(rAttr[j].type !== sAttr[j].type || - rAttr[j].value !== sAttr[j].value) { - match = false; - break; - } - } - - if(match) { - return r; - } - } - - return null; - }, - - /** - * Decrypt enveloped content - * - * @param recipient The recipient object related to the private key - * @param privKey The (RSA) private key object - */ - decrypt: function(recipient, privKey) { - if(msg.encryptedContent.key === undefined && recipient !== undefined && - privKey !== undefined) { - switch(recipient.encryptedContent.algorithm) { - case forge.pki.oids.rsaEncryption: - case forge.pki.oids.desCBC: - var key = privKey.decrypt(recipient.encryptedContent.content); - msg.encryptedContent.key = forge.util.createBuffer(key); - break; - - default: - throw new Error('Unsupported asymmetric cipher, ' + - 'OID ' + recipient.encryptedContent.algorithm); - } - } - - _decryptContent(msg); - }, - - /** - * Add (another) entity to list of recipients. - * - * @param cert The certificate of the entity to add. - */ - addRecipient: function(cert) { - msg.recipients.push({ - version: 0, - issuer: cert.issuer.attributes, - serialNumber: cert.serialNumber, - encryptedContent: { - // We simply assume rsaEncryption here, since forge.pki only - // supports RSA so far. If the PKI module supports other - // ciphers one day, we need to modify this one as well. - algorithm: forge.pki.oids.rsaEncryption, - key: cert.publicKey - } - }); - }, - - /** - * Encrypt enveloped content. - * - * This function supports two optional arguments, cipher and key, which - * can be used to influence symmetric encryption. Unless cipher is - * provided, the cipher specified in encryptedContent.algorithm is used - * (defaults to AES-256-CBC). If no key is provided, encryptedContent.key - * is (re-)used. If that one's not set, a random key will be generated - * automatically. - * - * @param [key] The key to be used for symmetric encryption. - * @param [cipher] The OID of the symmetric cipher to use. - */ - encrypt: function(key, cipher) { - // Part 1: Symmetric encryption - if(msg.encryptedContent.content === undefined) { - cipher = cipher || msg.encryptedContent.algorithm; - key = key || msg.encryptedContent.key; - - var keyLen, ivLen, ciphFn; - switch(cipher) { - case forge.pki.oids['aes128-CBC']: - keyLen = 16; - ivLen = 16; - ciphFn = forge.aes.createEncryptionCipher; - break; - - case forge.pki.oids['aes192-CBC']: - keyLen = 24; - ivLen = 16; - ciphFn = forge.aes.createEncryptionCipher; - break; - - case forge.pki.oids['aes256-CBC']: - keyLen = 32; - ivLen = 16; - ciphFn = forge.aes.createEncryptionCipher; - break; - - case forge.pki.oids['des-EDE3-CBC']: - keyLen = 24; - ivLen = 8; - ciphFn = forge.des.createEncryptionCipher; - break; - - default: - throw new Error('Unsupported symmetric cipher, OID ' + cipher); - } +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} - if(key === undefined) { - key = forge.util.createBuffer(forge.random.getBytes(keyLen)); - } else if(key.length() != keyLen) { - throw new Error('Symmetric key has wrong length; ' + - 'got ' + key.length() + ' bytes, expected ' + keyLen + '.'); - } +/** Used for built-in method references. */ +var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; - // Keep a copy of the key & IV in the object, so the caller can - // use it for whatever reason. - msg.encryptedContent.algorithm = cipher; - msg.encryptedContent.key = key; - msg.encryptedContent.parameter = forge.util.createBuffer( - forge.random.getBytes(ivLen)); +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; - var ciph = ciphFn(key); - ciph.start(msg.encryptedContent.parameter.copy()); - ciph.update(msg.content); +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); - // The finish function does PKCS#7 padding by default, therefore - // no action required by us. - if(!ciph.finish()) { - throw new Error('Symmetric encryption failed.'); - } +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; - msg.encryptedContent.content = ciph.output; - } +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; - // Part 2: asymmetric encryption for each recipient - for(var i = 0; i < msg.recipients.length; ++i) { - var recipient = msg.recipients[i]; +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; - // Nothing to do, encryption already done. - if(recipient.encryptedContent.content !== undefined) { - continue; - } +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); - switch(recipient.encryptedContent.algorithm) { - case forge.pki.oids.rsaEncryption: - recipient.encryptedContent.content = - recipient.encryptedContent.key.encrypt( - msg.encryptedContent.key.data); - break; +/** Built-in value references. */ +var Symbol = root.Symbol, + splice = arrayProto.splice; - default: - throw new Error('Unsupported asymmetric cipher, OID ' + - recipient.encryptedContent.algorithm); - } - } - } - }; - return msg; -}; +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'), + nativeCreate = getNative(Object, 'create'); + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; /** - * Converts a single recipient from an ASN.1 object. - * - * @param obj the ASN.1 RecipientInfo. + * Creates a hash object. * - * @return the recipient object. + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. */ -function _recipientFromAsn1(obj) { - // validate EnvelopedData content block and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, p7.asn1.recipientInfoValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 RecipientInfo. ' + - 'ASN.1 object is not an PKCS#7 RecipientInfo.'); - error.errors = errors; - throw error; - } +function Hash(entries) { + var index = -1, + length = entries ? entries.length : 0; - return { - version: capture.version.charCodeAt(0), - issuer: forge.pki.RDNAttributesAsArray(capture.issuer), - serialNumber: forge.util.createBuffer(capture.serial).toHex(), - encryptedContent: { - algorithm: asn1.derToOid(capture.encAlgorithm), - parameter: capture.encParameter.value, - content: capture.encKey - } - }; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } /** - * Converts a single recipient object to an ASN.1 object. - * - * @param obj the recipient object. + * Removes all key-value entries from the hash. * - * @return the ASN.1 RecipientInfo. + * @private + * @name clear + * @memberOf Hash */ -function _recipientToAsn1(obj) { - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(obj.version).getBytes()), - // IssuerAndSerialNumber - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Name - forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), - // Serial - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(obj.serialNumber)) - ]), - // KeyEncryptionAlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(obj.encryptedContent.algorithm).getBytes()), - // Parameter, force NULL, only RSA supported for now. - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // EncryptedKey - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - obj.encryptedContent.content) - ]); +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; } /** - * Map a set of RecipientInfo ASN.1 objects to recipient objects. - * - * @param infos an array of ASN.1 representations RecipientInfo (i.e. SET OF). + * Removes `key` and its value from the hash. * - * @return an array of recipient objects. + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function _recipientsFromAsn1(infos) { - var ret = []; - for(var i = 0; i < infos.length; ++i) { - ret.push(_recipientFromAsn1(infos[i])); - } - return ret; +function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; } /** - * Map an array of recipient objects to ASN.1 RecipientInfo objects. - * - * @param recipients an array of recipientInfo objects. + * Gets the hash value for `key`. * - * @return an array of ASN.1 RecipientInfos. + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -function _recipientsToAsn1(recipients) { - var ret = []; - for(var i = 0; i < recipients.length; ++i) { - ret.push(_recipientToAsn1(recipients[i])); +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; } - return ret; + return hasOwnProperty.call(data, key) ? data[key] : undefined; } /** - * Converts a single signer from an ASN.1 object. + * Checks if a hash value for `key` exists. * - * @param obj the ASN.1 representation of a SignerInfo. + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); +} + +/** + * Sets the hash `key` to `value`. * - * @return the signer object. + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. */ -function _signerFromAsn1(obj) { - // validate EnvelopedData content block and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, p7.asn1.signerInfoValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 SignerInfo. ' + - 'ASN.1 object is not an PKCS#7 SignerInfo.'); - error.errors = errors; - throw error; - } +function hashSet(key, value) { + var data = this.__data__; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} - var rval = { - version: capture.version.charCodeAt(0), - issuer: forge.pki.RDNAttributesAsArray(capture.issuer), - serialNumber: forge.util.createBuffer(capture.serial).toHex(), - digestAlgorithm: asn1.derToOid(capture.digestAlgorithm), - signatureAlgorithm: asn1.derToOid(capture.signatureAlgorithm), - signature: capture.signature, - authenticatedAttributes: [], - unauthenticatedAttributes: [] - }; +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; - // TODO: convert attributes - var authenticatedAttributes = capture.authenticatedAttributes || []; - var unauthenticatedAttributes = capture.unauthenticatedAttributes || []; +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries ? entries.length : 0; - return rval; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } /** - * Converts a single signerInfo object to an ASN.1 object. + * Removes all key-value entries from the list cache. * - * @param obj the signerInfo object. + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; +} + +/** + * Removes `key` and its value from the list cache. * - * @return the ASN.1 representation of a SignerInfo. + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function _signerToAsn1(obj) { - // SignerInfo - var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(obj.version).getBytes()), - // issuerAndSerialNumber - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // name - forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), - // serial - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(obj.serialNumber)) - ]), - // digestAlgorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(obj.digestAlgorithm).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]) - ]); +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - // authenticatedAttributes (OPTIONAL) - if(obj.authenticatedAttributesAsn1) { - // add ASN.1 previously generated during signing - rval.value.push(obj.authenticatedAttributesAsn1); + if (index < 0) { + return false; } - - // digestEncryptionAlgorithm - rval.value.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(obj.signatureAlgorithm).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ])); - - // encryptedDigest - rval.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, obj.signature)); - - // unauthenticatedAttributes (OPTIONAL) - if(obj.unauthenticatedAttributes.length > 0) { - // [1] IMPLICIT - var attrsAsn1 = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, []); - for(var i = 0; i < obj.unauthenticatedAttributes.length; ++i) { - var attr = obj.unauthenticatedAttributes[i]; - attrsAsn1.values.push(_attributeToAsn1(attr)); - } - rval.value.push(attrsAsn1); + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); } - - return rval; + return true; } /** - * Map a set of SignerInfo ASN.1 objects to an array of signer objects. - * - * @param signerInfoAsn1s an array of ASN.1 SignerInfos (i.e. SET OF). + * Gets the list cache value for `key`. * - * @return an array of signers objects. + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -function _signersFromAsn1(signerInfoAsn1s) { - var ret = []; - for(var i = 0; i < signerInfoAsn1s.length; ++i) { - ret.push(_signerFromAsn1(signerInfoAsn1s[i])); - } - return ret; +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; } /** - * Map an array of signer objects to ASN.1 objects. + * Checks if a list cache value for `key` exists. * - * @param signers an array of signer objects. + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +/** + * Sets the list cache `key` to `value`. * - * @return an array of ASN.1 SignerInfos. + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. */ -function _signersToAsn1(signers) { - var ret = []; - for(var i = 0; i < signers.length; ++i) { - ret.push(_signerToAsn1(signers[i])); +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; } - return ret; + return this; } +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + /** - * Convert an attribute object to an ASN.1 Attribute. - * - * @param attr the attribute object. + * Creates a map cache object to store key-value pairs. * - * @return the ASN.1 Attribute. + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. */ -function _attributeToAsn1(attr) { - var value; - - // TODO: generalize to support more attributes - if(attr.type === forge.pki.oids.contentType) { - value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.value).getBytes()); - } else if(attr.type === forge.pki.oids.messageDigest) { - value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - attr.value.bytes()); - } else if(attr.type === forge.pki.oids.signingTime) { - /* Note per RFC 2985: Dates between 1 January 1950 and 31 December 2049 - (inclusive) MUST be encoded as UTCTime. Any dates with year values - before 1950 or after 2049 MUST be encoded as GeneralizedTime. [Further,] - UTCTime values MUST be expressed in Greenwich Mean Time (Zulu) and MUST - include seconds (i.e., times are YYMMDDHHMMSSZ), even where the - number of seconds is zero. Midnight (GMT) must be represented as - "YYMMDD000000Z". */ - // TODO: make these module-level constants - var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); - var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); - var date = attr.value; - if(typeof date === 'string') { - // try to parse date - var timestamp = Date.parse(date); - if(!isNaN(timestamp)) { - date = new Date(timestamp); - } else if(date.length === 13) { - // YYMMDDHHMMSSZ (13 chars for UTCTime) - date = asn1.utcTimeToDate(date); - } else { - // assume generalized time - date = asn1.generalizedTimeToDate(date); - } - } +function MapCache(entries) { + var index = -1, + length = entries ? entries.length : 0; - if(date >= jan_1_1950 && date < jan_1_2050) { - value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, - asn1.dateToUtcTime(date)); - } else { - value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, - asn1.dateToGeneralizedTime(date)); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); } - - // TODO: expose as common API call - // create a RelativeDistinguishedName set - // each value in the set is an AttributeTypeAndValue first - // containing the type (an OID) and second the value - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AttributeType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.type).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - // AttributeValue - value - ]) - ]); } /** - * Map messages encrypted content to ASN.1 objects. - * - * @param ec The encryptedContent object of the message. + * Removes all key-value entries from the map. * - * @return ASN.1 representation of the encryptedContent object (SEQUENCE). + * @private + * @name clear + * @memberOf MapCache */ -function _encryptedContentToAsn1(ec) { - return [ - // ContentType, always Data for the moment - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(forge.pki.oids.data).getBytes()), - // ContentEncryptionAlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(ec.algorithm).getBytes()), - // Parameters (IV) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - ec.parameter.getBytes()) - ]), - // [0] EncryptedContent - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - ec.content.getBytes()) - ]) - ]; +function mapCacheClear() { + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; } /** - * Reads the "common part" of an PKCS#7 content block (in ASN.1 format) + * Removes `key` and its value from the map. * - * This function reads the "common part" of the PKCS#7 content blocks - * EncryptedData and EnvelopedData, i.e. version number and symmetrically - * encrypted content block. + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + return getMapData(this, key)['delete'](key); +} + +/** + * Gets the map value for `key`. * - * The result of the ASN.1 validate and capture process is returned - * to allow the caller to extract further data, e.g. the list of recipients - * in case of a EnvelopedData object. + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +/** + * Checks if a map value for `key` exists. * - * @param msg the PKCS#7 object to read the data to. - * @param obj the ASN.1 representation of the content block. - * @param validator the ASN.1 structure validator object to use. + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +/** + * Sets the map `key` to `value`. * - * @return the value map captured by validator object. + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. */ -function _fromAsn1(msg, obj, validator) { - var capture = {}; - var errors = []; - if(!asn1.validate(obj, validator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 message. ' + - 'ASN.1 object is not a supported PKCS#7 message.'); - error.errors = error; - throw error; - } +function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; +} - // Check contentType, so far we only support (raw) Data. - var contentType = asn1.derToOid(capture.contentType); - if(contentType !== forge.pki.oids.data) { - throw new Error('Unsupported PKCS#7 message. ' + - 'Only wrapped ContentType Data supported.'); - } +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; - if(capture.encryptedContent) { - var content = ''; - if(forge.util.isArray(capture.encryptedContent)) { - for(var i = 0; i < capture.encryptedContent.length; ++i) { - if(capture.encryptedContent[i].type !== asn1.Type.OCTETSTRING) { - throw new Error('Malformed PKCS#7 message, expecting encrypted ' + - 'content constructed of only OCTET STRING objects.'); - } - content += capture.encryptedContent[i].value; - } - } else { - content = capture.encryptedContent; +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; } - msg.encryptedContent = { - algorithm: asn1.derToOid(capture.encAlgorithm), - parameter: forge.util.createBuffer(capture.encParameter.value), - content: forge.util.createBuffer(content) - }; } + return -1; +} - if(capture.content) { - var content = ''; - if(forge.util.isArray(capture.content)) { - for(var i = 0; i < capture.content.length; ++i) { - if(capture.content[i].type !== asn1.Type.OCTETSTRING) { - throw new Error('Malformed PKCS#7 message, expecting ' + - 'content constructed of only OCTET STRING objects.'); - } - content += capture.content[i].value; - } - } else { - content = capture.content; - } - msg.content = forge.util.createBuffer(content); - } +/** + * The base implementation of `_.get` without support for default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @returns {*} Returns the resolved value. + */ +function baseGet(object, path) { + path = isKey(path, object) ? [path] : castPath(path); - msg.version = capture.version.charCodeAt(0); - msg.rawCapture = capture; + var index = 0, + length = path.length; - return capture; + while (object != null && index < length) { + object = object[toKey(path[index++])]; + } + return (index && index == length) ? object : undefined; } /** - * Decrypt the symmetrically encrypted content block of the PKCS#7 message. - * - * Decryption is skipped in case the PKCS#7 message object already has a - * (decrypted) content attribute. The algorithm, key and cipher parameters - * (probably the iv) are taken from the encryptedContent attribute of the - * message object. + * The base implementation of `_.isNative` without bad shim checks. * - * @param The PKCS#7 message object. + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. */ -function _decryptContent(msg) { - if(msg.encryptedContent.key === undefined) { - throw new Error('Symmetric key not available.'); +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; } + var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} - if(msg.content === undefined) { - var ciph; - - switch(msg.encryptedContent.algorithm) { - case forge.pki.oids['aes128-CBC']: - case forge.pki.oids['aes192-CBC']: - case forge.pki.oids['aes256-CBC']: - ciph = forge.aes.createDecryptionCipher(msg.encryptedContent.key); - break; - - case forge.pki.oids['desCBC']: - case forge.pki.oids['des-EDE3-CBC']: - ciph = forge.des.createDecryptionCipher(msg.encryptedContent.key); - break; - - default: - throw new Error('Unsupported symmetric cipher, OID ' + - msg.encryptedContent.algorithm); - } - ciph.start(msg.encryptedContent.parameter); - ciph.update(msg.encryptedContent.content); - - if(!ciph.finish()) { - throw new Error('Symmetric decryption failed.'); - } - - msg.content = ciph.output; +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } +/** + * Casts `value` to a path array if it's not one. + * + * @private + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast property path array. + */ +function castPath(value) { + return isArray(value) ? value : stringToPath(value); +} -/***/ }), -/* 964 */, -/* 965 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} -"use strict"; +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} -// 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.auth = exports.webfonts = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(858); -exports.VERSIONS = { - v1: v1_1.webfonts_v1.Webfonts, -}; -function webfonts(versionOrOptions) { - return googleapis_common_1.getAPI('webfonts', versionOrOptions, exports.VERSIONS, this); +/** + * Checks if `value` is a property name and not a property path. + * + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + */ +function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == 'number' || type == 'symbol' || type == 'boolean' || + value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || + (object != null && value in Object(object)); } -exports.webfonts = webfonts; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 966 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} -"use strict"; +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} -const {PassThrough} = __webpack_require__(413); +/** + * Converts `string` to a property path array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the property path array. + */ +var stringToPath = memoize(function(string) { + string = toString(string); -module.exports = options => { - options = Object.assign({}, options); + var result = []; + if (reLeadingDot.test(string)) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, string) { + result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; +}); - const {array} = options; - let {encoding} = options; - const buffer = encoding === 'buffer'; - let objectMode = false; +/** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ +function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} - if (array) { - objectMode = !(encoding || buffer); - } else { - encoding = encoding || 'utf8'; - } +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to process. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} - if (buffer) { - encoding = null; - } +/** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */ +function memoize(func, resolver) { + if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; - let len = 0; - const ret = []; - const stream = new PassThrough({objectMode}); + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache); + return memoized; +} - if (encoding) { - stream.setEncoding(encoding); - } +// Assign cache to `_.memoize`. +memoize.Cache = MapCache; - stream.on('data', chunk => { - ret.push(chunk); +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} - if (objectMode) { - len = ret.length; - } else { - len += chunk.length; - } - }); +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; - stream.getBufferedValue = () => { - if (array) { - return ret; - } +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} - return buffer ? Buffer.concat(ret, len) : ret.join(''); - }; +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} - stream.getBufferedLength = () => len; +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} - return stream; -}; +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && objectToString.call(value) == symbolTag); +} +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {string} Returns the string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} -/***/ }), -/* 967 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */ +function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; +} -"use strict"; +module.exports = get; -// 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.auth = exports.serviceconsumermanagement = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(112); -const v1beta1_1 = __webpack_require__(716); -exports.VERSIONS = { - v1: v1_1.serviceconsumermanagement_v1.Serviceconsumermanagement, - v1beta1: v1beta1_1.serviceconsumermanagement_v1beta1.Serviceconsumermanagement, -}; -function serviceconsumermanagement(versionOrOptions) { - return googleapis_common_1.getAPI('serviceconsumermanagement', versionOrOptions, exports.VERSIONS, this); -} -exports.serviceconsumermanagement = serviceconsumermanagement; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map /***/ }), -/* 968 */ + +/***/ 9862: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -337305,728 +602845,54 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.dialogflow_v2 = void 0; +exports.analyticshub_v1beta1 = 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 = __webpack_require__(927); -var dialogflow_v2; -(function (dialogflow_v2) { +var analyticshub_v1beta1; +(function (analyticshub_v1beta1) { /** - * Dialogflow API + * Analytics Hub API * - * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * Exchange data and analytics assets securely and efficiently. * * @example + * ```js * const {google} = require('googleapis'); - * const dialogflow = google.dialogflow('v2'); - * - * @namespace dialogflow - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Dialogflow + * const analyticshub = google.analyticshub('v1beta1'); + * ``` */ - class Dialogflow { + class Analyticshub { constructor(options, google) { this.context = { _options: options || {}, google, }; + this.organizations = new Resource$Organizations(this.context); this.projects = new Resource$Projects(this.context); } } - dialogflow_v2.Dialogflow = Dialogflow; - class Resource$Projects { - constructor(context) { - this.context = context; - this.agent = new Resource$Projects$Agent(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.operations = new Resource$Projects$Operations(this.context); - } - deleteAgent(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - getAgent(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').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); - } - } - setAgent(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').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); - } - } - } - dialogflow_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Agent { - constructor(context) { - this.context = context; - this.entityTypes = new Resource$Projects$Agent$Entitytypes(this.context); - this.environments = new Resource$Projects$Agent$Environments(this.context); - this.intents = new Resource$Projects$Agent$Intents(this.context); - this.sessions = new Resource$Projects$Agent$Sessions(this.context); - } - export(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:export').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); - } - } - getFulfillment(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://dialogflow.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); - } - } - getValidationResult(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent/validationResult').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); - } - } - import(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:import').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); - } - } - restore(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:restore').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); - } - } - search(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:search').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); - } - } - train(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:train').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); - } - } - updateFulfillment(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://dialogflow.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); - } - } - } - dialogflow_v2.Resource$Projects$Agent = Resource$Projects$Agent; - class Resource$Projects$Agent$Entitytypes { + analyticshub_v1beta1.Analyticshub = Analyticshub; + class Resource$Organizations { constructor(context) { this.context = context; - this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); - } - batchDelete(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').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); - } - } - batchUpdate(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').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); - } - } - 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').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://dialogflow.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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').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://dialogflow.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); - } + this.locations = new Resource$Organizations$Locations(this.context); } } - dialogflow_v2.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; - class Resource$Projects$Agent$Entitytypes$Entities { + analyticshub_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { constructor(context) { this.context = context; - } - batchCreate(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchCreate').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); - } - } - batchDelete(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchDelete').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); - } - } - batchUpdate(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').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); - } + this.dataExchanges = new Resource$Organizations$Locations$Dataexchanges(this.context); } } - dialogflow_v2.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; - class Resource$Projects$Agent$Environments { + analyticshub_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Dataexchanges { constructor(context) { this.context = context; - this.users = new Resource$Projects$Agent$Environments$Users(this.context); } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -338034,274 +602900,52 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+organization}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['organization'], + pathParams: ['organization'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2.Resource$Projects$Agent$Environments = Resource$Projects$Agent$Environments; - class Resource$Projects$Agent$Environments$Users { - constructor(context) { - this.context = context; - this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(this.context); - } - } - dialogflow_v2.Resource$Projects$Agent$Environments$Users = Resource$Projects$Agent$Environments$Users; - class Resource$Projects$Agent$Environments$Users$Sessions { + analyticshub_v1beta1.Resource$Organizations$Locations$Dataexchanges = Resource$Organizations$Locations$Dataexchanges; + class Resource$Projects { constructor(context) { this.context = context; - this.contexts = new Resource$Projects$Agent$Environments$Users$Sessions$Contexts(this.context); - this.entityTypes = new Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes(this.context); - } - deleteContexts(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } - } - detectIntent(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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['session'], - pathParams: ['session'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + this.locations = new Resource$Projects$Locations(this.context); } } - dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; - class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { + analyticshub_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { 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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').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://dialogflow.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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').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://dialogflow.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); - } + this.dataExchanges = new Resource$Projects$Locations$Dataexchanges(this.context); } } - dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; - class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + analyticshub_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Dataexchanges { constructor(context) { this.context = context; + this.listings = new Resource$Projects$Locations$Dataexchanges$Listings(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -338316,10 +602960,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -338328,10 +602972,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -338347,10 +602991,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -338359,10 +603003,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -338378,10 +603022,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -338390,10 +603034,42 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -338409,10 +603085,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -338421,10 +603097,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -338440,10 +603116,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -338452,97 +603128,100 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; - class Resource$Projects$Agent$Intents { - constructor(context) { - this.context = context; - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + analyticshub_v1beta1.Resource$Projects$Locations$Dataexchanges = Resource$Projects$Locations$Dataexchanges; + class Resource$Projects$Locations$Dataexchanges$Listings { + constructor(context) { + this.context = context; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/listings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -338551,10 +603230,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -338563,17 +603242,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -338582,10 +603262,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -338594,17 +603274,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -338613,10 +603294,42 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -338625,17 +603338,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/listings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -338644,10 +603358,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -338656,17 +603370,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -338675,87 +603390,177 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; - class Resource$Projects$Agent$Sessions { - constructor(context) { - this.context = context; - this.contexts = new Resource$Projects$Agent$Sessions$Contexts(this.context); - this.entityTypes = new Resource$Projects$Agent$Sessions$Entitytypes(this.context); + 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://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + subscribe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; - class Resource$Projects$Agent$Sessions$Contexts { + analyticshub_v1beta1.Resource$Projects$Locations$Dataexchanges$Listings = Resource$Projects$Locations$Dataexchanges$Listings; +})(analyticshub_v1beta1 = exports.analyticshub_v1beta1 || (exports.analyticshub_v1beta1 = {})); + + +/***/ }), + +/***/ 9870: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.firestore_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var firestore_v1; +(function (firestore_v1) { + /** + * Cloud Firestore API + * + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firestore = google.firestore('v1'); + * ``` + */ + class Firestore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firestore_v1.Firestore = Firestore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Databases(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + firestore_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { constructor(context) { this.context = context; + this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); + this.documents = new Resource$Projects$Databases$Documents(this.context); + this.operations = new Resource$Projects$Databases$Operations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -338770,10 +603575,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -338782,10 +603587,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -338801,10 +603606,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -338813,13 +603618,13 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338832,11 +603637,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -338844,13 +603649,13 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338863,25 +603668,25 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + importDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338894,11 +603699,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -338906,19 +603711,13 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; - class Resource$Projects$Agent$Sessions$Entitytypes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338931,11 +603730,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -338943,13 +603742,13 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338962,11 +603761,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -338974,29 +603773,44 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + firestore_v1.Resource$Projects$Databases = Resource$Projects$Databases; + class Resource$Projects$Databases$Collectiongroups { + constructor(context) { + this.context = context; + this.fields = new Resource$Projects$Databases$Collectiongroups$Fields(this.context); + this.indexes = new Resource$Projects$Databases$Collectiongroups$Indexes(this.context); + } + } + firestore_v1.Resource$Projects$Databases$Collectiongroups = Resource$Projects$Databases$Collectiongroups; + class Resource$Projects$Databases$Collectiongroups$Fields { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -339005,10 +603819,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -339017,17 +603831,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -339036,10 +603851,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -339048,17 +603863,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -339067,43 +603883,69 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; - class Resource$Projects$Locations { + firestore_v1.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; + class Resource$Projects$Databases$Collectiongroups$Indexes { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); } - } - dialogflow_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - 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://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -339111,10 +603953,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -339123,17 +603965,18 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -339142,10 +603985,10 @@ var dialogflow_v2; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -339154,38 +603997,39 @@ var dialogflow_v2; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - dialogflow_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Operations { + firestore_v1.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; + class Resource$Projects$Databases$Documents { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339198,25 +604042,25 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchWrite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339229,252 +604073,57 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/documents:batchWrite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dialogflow_v2.Resource$Projects$Operations = Resource$Projects$Operations; -})(dialogflow_v2 = exports.dialogflow_v2 || (exports.dialogflow_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 969 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -var wrappy = __webpack_require__(11) -module.exports = wrappy(once) -module.exports.strict = wrappy(onceStrict) - -once.proto = once(function () { - Object.defineProperty(Function.prototype, 'once', { - value: function () { - return once(this) - }, - configurable: true - }) - - Object.defineProperty(Function.prototype, 'onceStrict', { - value: function () { - return onceStrict(this) - }, - configurable: true - }) -}) - -function once (fn) { - var f = function () { - if (f.called) return f.value - f.called = true - return f.value = fn.apply(this, arguments) - } - f.called = false - return f -} - -function onceStrict (fn) { - var f = function () { - if (f.called) - throw new Error(f.onceError) - f.called = true - return f.value = fn.apply(this, arguments) - } - var name = fn.name || 'Function wrapped with `once`' - f.onceError = name + " shouldn't be called more than once" - f.called = false - return f -} - - -/***/ }), -/* 970 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.bigqueryreservation = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(382); -const v1alpha2_1 = __webpack_require__(307); -const v1beta1_1 = __webpack_require__(756); -exports.VERSIONS = { - v1: v1_1.bigqueryreservation_v1.Bigqueryreservation, - v1alpha2: v1alpha2_1.bigqueryreservation_v1alpha2.Bigqueryreservation, - v1beta1: v1beta1_1.bigqueryreservation_v1beta1.Bigqueryreservation, -}; -function bigqueryreservation(versionOrOptions) { - return googleapis_common_1.getAPI('bigqueryreservation', versionOrOptions, exports.VERSIONS, this); -} -exports.bigqueryreservation = bigqueryreservation; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 971 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.translate = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(637); -const v3_1 = __webpack_require__(66); -const v3beta1_1 = __webpack_require__(757); -exports.VERSIONS = { - v2: v2_1.translate_v2.Translate, - v3: v3_1.translate_v3.Translate, - v3beta1: v3beta1_1.translate_v3beta1.Translate, -}; -function translate(versionOrOptions) { - return googleapis_common_1.getAPI('translate', versionOrOptions, exports.VERSIONS, this); -} -exports.translate = translate; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map - -/***/ }), -/* 972 */, -/* 973 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.cloudkms_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 = __webpack_require__(927); -var cloudkms_v1; -(function (cloudkms_v1) { - /** - * Cloud Key Management Service (KMS) API - * - * Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. - * - * @example - * const {google} = require('googleapis'); - * const cloudkms = google.cloudkms('v1'); - * - * @namespace cloudkms - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Cloudkms - */ - class Cloudkms { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudkms_v1.Cloudkms = Cloudkms; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - cloudkms_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.keyRings = new Resource$Projects$Locations$Keyrings(this.context); - } - get(paramsOrCallback, optionsOrCallback, callback) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339487,64 +604136,57 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudkms_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Keyrings { - constructor(context) { - this.context = context; - this.cryptoKeys = new Resource$Projects$Locations$Keyrings$Cryptokeys(this.context); - this.importJobs = new Resource$Projects$Locations$Keyrings$Importjobs(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339557,22 +604199,22 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -339588,7 +604230,7 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -339600,13 +604242,13 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339619,42 +604261,43 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -339662,44 +604305,45 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + listen(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339712,48 +604356,42 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudkms_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; - class Resource$Projects$Locations$Keyrings$Cryptokeys { - constructor(context) { - this.context = context; - this.cryptoKeyVersions = new Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions(this.context); - } - create(paramsOrCallback, optionsOrCallback, callback) { + partitionQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -339762,13 +604400,13 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - decrypt(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339781,11 +604419,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -339793,13 +604431,13 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - encrypt(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339812,56 +604450,57 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + runAggregationQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + runQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339874,25 +604513,25 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + write(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339905,25 +604544,31 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; + class Resource$Projects$Databases$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339936,11 +604581,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -339948,13 +604593,13 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339967,25 +604612,25 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339998,25 +604643,25 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePrimaryVersion(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340029,11 +604674,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updatePrimaryVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -340041,19 +604686,19 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; - class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { + firestore_v1.Resource$Projects$Databases$Operations = Resource$Projects$Databases$Operations; + class Resource$Projects$Locations { constructor(context) { this.context = context; } - asymmetricDecrypt(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340066,11 +604711,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:asymmetricDecrypt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -340078,13 +604723,13 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asymmetricSign(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340097,11 +604742,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:asymmetricSign').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -340109,13 +604754,159 @@ var cloudkms_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1.Resource$Projects$Locations = Resource$Projects$Locations; +})(firestore_v1 = exports.firestore_v1 || (exports.firestore_v1 = {})); + + +/***/ }), + +/***/ 9877: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.AuthPlus = exports.travelimpactmodel_v1 = exports.auth = exports.travelimpactmodel = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5383); +Object.defineProperty(exports, "travelimpactmodel_v1", { enumerable: true, get: function () { return v1_1.travelimpactmodel_v1; } }); +exports.VERSIONS = { + v1: v1_1.travelimpactmodel_v1.Travelimpactmodel, +}; +function travelimpactmodel(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('travelimpactmodel', versionOrOptions, exports.VERSIONS, this); +} +exports.travelimpactmodel = travelimpactmodel; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); + + +/***/ }), + +/***/ 9882: +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +// Copyright 2017 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.validate = void 0; +// Accepts an options object passed from the user to the API. In the +// previous version of the API, it referred to a `Request` options object. +// Now it refers to an Axiox Request Config object. This is here to help +// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function validate(options) { + const vpairs = [ + { invalid: 'uri', expected: 'url' }, + { invalid: 'json', expected: 'data' }, + { invalid: 'qs', expected: 'params' }, + ]; + for (const pair of vpairs) { + if (options[pair.invalid]) { + const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; + throw new Error(e); + } + } +} +exports.validate = validate; +//# sourceMappingURL=options.js.map + +/***/ }), + +/***/ 9883: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.deploymentmanager_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var deploymentmanager_v2beta; +(function (deploymentmanager_v2beta) { + /** + * Cloud Deployment Manager V2 API + * + * The Google Cloud Deployment Manager v2 API provides services for configuring, deploying, and viewing Google Cloud services and APIs via templates which specify deployments of Cloud resources. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const deploymentmanager = google.deploymentmanager('v2beta'); + * ``` + */ + class Deploymentmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.compositeTypes = new Resource$Compositetypes(this.context); + this.deployments = new Resource$Deployments(this.context); + this.manifests = new Resource$Manifests(this.context); + this.operations = new Resource$Operations(this.context); + this.resources = new Resource$Resources(this.context); + this.typeProviders = new Resource$Typeproviders(this.context); + this.types = new Resource$Types(this.context); + } + } + deploymentmanager_v2beta.Deploymentmanager = Deploymentmanager; + class Resource$Compositetypes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340128,25 +604919,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - destroy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340159,25 +604951,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340190,25 +604983,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPublicKey(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340221,25 +605015,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/publicKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340252,25 +605047,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340283,25 +605079,32 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + deploymentmanager_v2beta.Resource$Compositetypes = Resource$Compositetypes; + class Resource$Deployments { + constructor(context) { + this.context = context; + } + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340314,25 +605117,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340345,33 +605149,27 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions = Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions; - class Resource$Projects$Locations$Keyrings$Importjobs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340382,25 +605180,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340413,25 +605212,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340444,27 +605244,27 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340475,25 +605275,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340506,25 +605307,26 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340537,292 +605339,59 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudkms_v1.Resource$Projects$Locations$Keyrings$Importjobs = Resource$Projects$Locations$Keyrings$Importjobs; -})(cloudkms_v1 = exports.cloudkms_v1 || (exports.cloudkms_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 974 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2019 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 }); -const gaxios_1 = __webpack_require__(597); -const options_1 = __webpack_require__(882); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkg = __webpack_require__(947); -const PRODUCT_NAME = 'google-api-nodejs-client'; -class DefaultTransporter { - /** - * Configures request options before making a request. - * @param opts GaxiosOptions options. - * @return Configured options. - */ - configure(opts = {}) { - opts.headers = opts.headers || {}; - if (typeof window === 'undefined') { - // set transporter user agent if not in browser - const uaValue = opts.headers['User-Agent']; - if (!uaValue) { - opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; - } - else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { - opts.headers['User-Agent'] = `${uaValue} ${DefaultTransporter.USER_AGENT}`; - } - // track google-auth-library-nodejs version: - const authVersion = `auth/${pkg.version}`; - if (opts.headers['x-goog-api-client'] && - !opts.headers['x-goog-api-client'].includes(authVersion)) { - opts.headers['x-goog-api-client'] = `${opts.headers['x-goog-api-client']} ${authVersion}`; + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - else if (!opts.headers['x-goog-api-client']) { - const nodeVersion = process.version.replace(/^v/, ''); - opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion} ${authVersion}`; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - return opts; - } - request(opts, callback) { - // ensure the user isn't passing in request-style options - opts = this.configure(opts); - try { - options_1.validate(opts); - } - catch (e) { + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; if (callback) { - return callback(e); - } - else { - throw e; - } - } - if (callback) { - gaxios_1.request(opts).then(r => { - callback(null, r); - }, e => { - callback(this.processError(e)); - }); - } - else { - return gaxios_1.request(opts).catch(e => { - throw this.processError(e); - }); - } - } - /** - * Changes the error to include details from the body. - */ - processError(e) { - const res = e.response; - const err = e; - const body = res ? res.data : null; - if (res && body && body.error && res.status !== 200) { - if (typeof body.error === 'string') { - err.message = body.error; - err.code = res.status.toString(); - } - else if (Array.isArray(body.error.errors)) { - err.message = body.error.errors - .map((err2) => err2.message) - .join('\n'); - err.code = body.error.code; - err.errors = body.error.errors; - } - else { - err.message = body.error.message; - err.code = body.error.code || res.status; + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - else if (res && res.status >= 400) { - // Consider all 4xx and 5xx responses errors. - err.message = body; - err.code = res.status.toString(); - } - return err; - } -} -exports.DefaultTransporter = DefaultTransporter; -/** - * Default user agent. - */ -DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; -//# sourceMappingURL=transporters.js.map - -/***/ }), -/* 975 */, -/* 976 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -exports.URL = exports.DNS = void 0; - -var _stringify = _interopRequireDefault(__webpack_require__(106)); - -var _parse = _interopRequireDefault(__webpack_require__(205)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - - return bytes; -} - -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; - -function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === 'string') { - value = stringToBytes(value); - } - - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } - - if (namespace.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - - - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - - return buf; - } - - return (0, _stringify.default)(bytes); - } // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} - -/***/ }), -/* 977 */, -/* 978 */, -/* 979 */, -/* 980 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.oauth2_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 = __webpack_require__(927); -var oauth2_v2; -(function (oauth2_v2) { - /** - * Google OAuth2 API - * - * Obtains end-user authorization grants for use with other Google APIs. - * - * @example - * const {google} = require('googleapis'); - * const oauth2 = google.oauth2('v2'); - * - * @namespace oauth2 - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Oauth2 - */ - class Oauth2 { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.userinfo = new Resource$Userinfo(this.context); - } - tokeninfo(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340833,30 +605402,62 @@ var oauth2_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - oauth2_v2.Oauth2 = Oauth2; - class Resource$Userinfo { + deploymentmanager_v2beta.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { constructor(context) { this.context = context; - this.v2 = new Resource$Userinfo$V2(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -340870,40 +605471,64 @@ var oauth2_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oauth2_v2.Resource$Userinfo = Resource$Userinfo; - class Resource$Userinfo$V2 { - constructor(context) { - this.context = context; - this.me = new Resource$Userinfo$V2$Me(this.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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - oauth2_v2.Resource$Userinfo$V2 = Resource$Userinfo$V2; - class Resource$Userinfo$V2$Me { + deploymentmanager_v2beta.Resource$Manifests = Resource$Manifests; + class Resource$Operations { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340914,100 +605539,64 @@ var oauth2_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oauth2_v2.Resource$Userinfo$V2$Me = Resource$Userinfo$V2$Me; -})(oauth2_v2 = exports.oauth2_v2 || (exports.oauth2_v2 = {})); -//# sourceMappingURL=v2.js.map - -/***/ }), -/* 981 */, -/* 982 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.file_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 = __webpack_require__(927); -var file_v1; -(function (file_v1) { - /** - * Cloud Filestore API - * - * The Cloud Filestore API is used for creating and managing cloud file servers. - * - * @example - * const {google} = require('googleapis'); - * const file = google.file('v1'); - * - * @namespace file - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for File - */ - class File { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - this.projects = new Resource$Projects(this.context); - } - } - file_v1.File = File; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - file_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + deploymentmanager_v2beta.Resource$Operations = Resource$Operations; + class Resource$Resources { constructor(context) { this.context = 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -341018,27 +605607,27 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -341049,31 +605638,32 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - file_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { + deploymentmanager_v2beta.Resource$Resources = Resource$Resources; + class Resource$Typeproviders { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341086,25 +605676,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341117,25 +605708,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341148,25 +605740,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider', 'type'], + pathParams: ['project', 'type', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341179,25 +605772,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341210,31 +605804,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - file_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + listTypes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341247,25 +605836,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341278,25 +605868,26 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341309,27 +605900,33 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + deploymentmanager_v2beta.Resource$Typeproviders = Resource$Typeproviders; + class Resource$Types { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -341340,284 +605937,33 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - file_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(file_v1 = exports.file_v1 || (exports.file_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 983 */, -/* 984 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2019 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. -/* global window */ -Object.defineProperty(exports, "__esModule", { value: true }); -const crypto_1 = __webpack_require__(378); -const crypto_2 = __webpack_require__(386); -function createCrypto() { - if (hasBrowserCrypto()) { - return new crypto_1.BrowserCrypto(); - } - return new crypto_2.NodeCrypto(); -} -exports.createCrypto = createCrypto; -function hasBrowserCrypto() { - return (typeof window !== 'undefined' && - typeof window.crypto !== 'undefined' && - typeof window.crypto.subtle !== 'undefined'); -} -exports.hasBrowserCrypto = hasBrowserCrypto; -//# sourceMappingURL=crypto.js.map - -/***/ }), -/* 985 */, -/* 986 */, -/* 987 */, -/* 988 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Object IDs for ASN.1. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - */ -var forge = __webpack_require__(239); - -forge.pki = forge.pki || {}; -var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {}; - -// set id to name mapping and name to id mapping -function _IN(id, name) { - oids[id] = name; - oids[name] = id; -} -// set id to name mapping only -function _I_(id, name) { - oids[id] = name; -} - -// algorithm OIDs -_IN('1.2.840.113549.1.1.1', 'rsaEncryption'); -// Note: md2 & md4 not implemented -//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption'); -//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption'); -_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption'); -_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption'); -_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP'); -_IN('1.2.840.113549.1.1.8', 'mgf1'); -_IN('1.2.840.113549.1.1.9', 'pSpecified'); -_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS'); -_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption'); -_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption'); -_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption'); -// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519 -_IN('1.3.101.112', 'EdDSA25519'); - -_IN('1.2.840.10040.4.3', 'dsa-with-sha1'); - -_IN('1.3.14.3.2.7', 'desCBC'); - -_IN('1.3.14.3.2.26', 'sha1'); -_IN('2.16.840.1.101.3.4.2.1', 'sha256'); -_IN('2.16.840.1.101.3.4.2.2', 'sha384'); -_IN('2.16.840.1.101.3.4.2.3', 'sha512'); -_IN('1.2.840.113549.2.5', 'md5'); - -// pkcs#7 content types -_IN('1.2.840.113549.1.7.1', 'data'); -_IN('1.2.840.113549.1.7.2', 'signedData'); -_IN('1.2.840.113549.1.7.3', 'envelopedData'); -_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData'); -_IN('1.2.840.113549.1.7.5', 'digestedData'); -_IN('1.2.840.113549.1.7.6', 'encryptedData'); - -// pkcs#9 oids -_IN('1.2.840.113549.1.9.1', 'emailAddress'); -_IN('1.2.840.113549.1.9.2', 'unstructuredName'); -_IN('1.2.840.113549.1.9.3', 'contentType'); -_IN('1.2.840.113549.1.9.4', 'messageDigest'); -_IN('1.2.840.113549.1.9.5', 'signingTime'); -_IN('1.2.840.113549.1.9.6', 'counterSignature'); -_IN('1.2.840.113549.1.9.7', 'challengePassword'); -_IN('1.2.840.113549.1.9.8', 'unstructuredAddress'); -_IN('1.2.840.113549.1.9.14', 'extensionRequest'); - -_IN('1.2.840.113549.1.9.20', 'friendlyName'); -_IN('1.2.840.113549.1.9.21', 'localKeyId'); -_IN('1.2.840.113549.1.9.22.1', 'x509Certificate'); - -// pkcs#12 safe bags -_IN('1.2.840.113549.1.12.10.1.1', 'keyBag'); -_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag'); -_IN('1.2.840.113549.1.12.10.1.3', 'certBag'); -_IN('1.2.840.113549.1.12.10.1.4', 'crlBag'); -_IN('1.2.840.113549.1.12.10.1.5', 'secretBag'); -_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag'); - -// password-based-encryption for pkcs#12 -_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2'); -_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2'); - -_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4'); -_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4'); -_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC'); -_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC'); -_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC'); -_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC'); - -// hmac OIDs -_IN('1.2.840.113549.2.7', 'hmacWithSHA1'); -_IN('1.2.840.113549.2.8', 'hmacWithSHA224'); -_IN('1.2.840.113549.2.9', 'hmacWithSHA256'); -_IN('1.2.840.113549.2.10', 'hmacWithSHA384'); -_IN('1.2.840.113549.2.11', 'hmacWithSHA512'); - -// symmetric key algorithm oids -_IN('1.2.840.113549.3.7', 'des-EDE3-CBC'); -_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC'); -_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC'); -_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC'); - -// certificate issuer/subject OIDs -_IN('2.5.4.3', 'commonName'); -_IN('2.5.4.5', 'serialName'); -_IN('2.5.4.6', 'countryName'); -_IN('2.5.4.7', 'localityName'); -_IN('2.5.4.8', 'stateOrProvinceName'); -_IN('2.5.4.9', 'streetAddress'); -_IN('2.5.4.10', 'organizationName'); -_IN('2.5.4.11', 'organizationalUnitName'); -_IN('2.5.4.13', 'description'); -_IN('2.5.4.15', 'businessCategory'); -_IN('2.5.4.17', 'postalCode'); -_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName'); -_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName'); - -// X.509 extension OIDs -_IN('2.16.840.1.113730.1.1', 'nsCertType'); -_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used -_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35 -_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15 -_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32 -_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15 -_I_('2.5.29.5', 'policyMapping'); // deprecated use .33 -_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30 -_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17 -_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18 -_I_('2.5.29.9', 'subjectDirectoryAttributes'); -_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19 -_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30 -_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36 -_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19 -_IN('2.5.29.14', 'subjectKeyIdentifier'); -_IN('2.5.29.15', 'keyUsage'); -_I_('2.5.29.16', 'privateKeyUsagePeriod'); -_IN('2.5.29.17', 'subjectAltName'); -_IN('2.5.29.18', 'issuerAltName'); -_IN('2.5.29.19', 'basicConstraints'); -_I_('2.5.29.20', 'cRLNumber'); -_I_('2.5.29.21', 'cRLReason'); -_I_('2.5.29.22', 'expirationDate'); -_I_('2.5.29.23', 'instructionCode'); -_I_('2.5.29.24', 'invalidityDate'); -_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31 -_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28 -_I_('2.5.29.27', 'deltaCRLIndicator'); -_I_('2.5.29.28', 'issuingDistributionPoint'); -_I_('2.5.29.29', 'certificateIssuer'); -_I_('2.5.29.30', 'nameConstraints'); -_IN('2.5.29.31', 'cRLDistributionPoints'); -_IN('2.5.29.32', 'certificatePolicies'); -_I_('2.5.29.33', 'policyMappings'); -_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36 -_IN('2.5.29.35', 'authorityKeyIdentifier'); -_I_('2.5.29.36', 'policyConstraints'); -_IN('2.5.29.37', 'extKeyUsage'); -_I_('2.5.29.46', 'freshestCRL'); -_I_('2.5.29.54', 'inhibitAnyPolicy'); - -// extKeyUsage purposes -_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList'); -_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess'); -_IN('1.3.6.1.5.5.7.3.1', 'serverAuth'); -_IN('1.3.6.1.5.5.7.3.2', 'clientAuth'); -_IN('1.3.6.1.5.5.7.3.3', 'codeSigning'); -_IN('1.3.6.1.5.5.7.3.4', 'emailProtection'); -_IN('1.3.6.1.5.5.7.3.8', 'timeStamping'); + deploymentmanager_v2beta.Resource$Types = Resource$Types; +})(deploymentmanager_v2beta = exports.deploymentmanager_v2beta || (exports.deploymentmanager_v2beta = {})); /***/ }), -/* 989 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"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.auth = exports.analytics = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v3_1 = __webpack_require__(5); -exports.VERSIONS = { - v3: v3_1.analytics_v3.Analytics, -}; -function analytics(versionOrOptions) { - return googleapis_common_1.getAPI('analytics', versionOrOptions, exports.VERSIONS, this); -} -exports.analytics = analytics; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map -/***/ }), -/* 990 */, -/* 991 */ +/***/ 9892: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -341635,54 +605981,112 @@ exports.auth = auth; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.servicedirectory_v1beta1 = void 0; +exports.admob_v1beta = 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 = __webpack_require__(927); -var servicedirectory_v1beta1; -(function (servicedirectory_v1beta1) { +var admob_v1beta; +(function (admob_v1beta) { /** - * Service Directory API + * AdMob API * - * Service Directory is a platform for discovering, publishing, and connecting services. + * The AdMob API allows publishers to programmatically get information about their AdMob account. * * @example + * ```js * const {google} = require('googleapis'); - * const servicedirectory = google.servicedirectory('v1beta1'); - * - * @namespace servicedirectory - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Servicedirectory + * const admob = google.admob('v1beta'); + * ``` */ - class Servicedirectory { + class Admob { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.accounts = new Resource$Accounts(this.context); } } - servicedirectory_v1beta1.Servicedirectory = Servicedirectory; - class Resource$Projects { + admob_v1beta.Admob = Admob; + class Resource$Accounts { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.adSources = new Resource$Accounts$Adsources(this.context); + this.adUnits = new Resource$Accounts$Adunits(this.context); + this.apps = new Resource$Accounts$Apps(this.context); + this.mediationReport = new Resource$Accounts$Mediationreport(this.context); + this.networkReport = new Resource$Accounts$Networkreport(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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - servicedirectory_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + admob_v1beta.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adsources { constructor(context) { this.context = context; - this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341695,24 +606099,30 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/adSources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + admob_v1beta.Resource$Accounts$Adsources = Resource$Accounts$Adsources; + class Resource$Accounts$Adunits { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -341726,32 +606136,31 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicedirectory_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Namespaces { + admob_v1beta.Resource$Accounts$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Apps { constructor(context) { this.context = context; - this.services = new Resource$Projects$Locations$Namespaces$Services(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341764,10 +606173,47 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admob_v1beta.Resource$Accounts$Apps = Resource$Accounts$Apps; + class Resource$Accounts$Mediationreport { + constructor(context) { + this.context = context; + } + generate(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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -341776,13 +606222,19 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + admob_v1beta.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport; + class Resource$Accounts$Networkreport { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341795,24 +606247,205 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + admob_v1beta.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; +})(admob_v1beta = exports.admob_v1beta || (exports.admob_v1beta = {})); + + +/***/ }), + +/***/ 9893: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _rng = _interopRequireDefault(__webpack_require__(3844)); + +var _stringify = _interopRequireDefault(__webpack_require__(3411)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _stringify.default)(b); +} + +var _default = v1; +exports.default = _default; + +/***/ }), + +/***/ 9912: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.jobs_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var jobs_v4; +(function (jobs_v4) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const jobs = google.jobs('v4'); + * ``` + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + jobs_v4.Jobs = Jobs; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + this.tenants = new Resource$Projects$Tenants(this.context); + } + } + jobs_v4.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -341826,10 +606459,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -341838,13 +606471,22 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + jobs_v4.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Tenants { + constructor(context) { + this.context = context; + this.clientEvents = new Resource$Projects$Tenants$Clientevents(this.context); + this.companies = new Resource$Projects$Tenants$Companies(this.context); + this.jobs = new Resource$Projects$Tenants$Jobs(this.context); + } + completeQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341857,25 +606499,25 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v4/{+tenant}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['tenant'], + pathParams: ['tenant'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341888,11 +606530,11 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -341900,13 +606542,13 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341919,11 +606561,11 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -341931,13 +606573,13 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341950,25 +606592,25 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341981,30 +606623,60 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v4/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; - class Resource$Projects$Locations$Namespaces$Services { + jobs_v4.Resource$Projects$Tenants = Resource$Projects$Tenants; + class Resource$Projects$Tenants$Clientevents { constructor(context) { this.context = context; - this.endpoints = new Resource$Projects$Locations$Namespaces$Services$Endpoints(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -342019,10 +606691,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -342031,13 +606703,19 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + jobs_v4.Resource$Projects$Tenants$Clientevents = Resource$Projects$Tenants$Clientevents; + class Resource$Projects$Tenants$Companies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342050,25 +606728,25 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v4/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342081,11 +606759,11 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -342093,13 +606771,13 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342112,22 +606790,22 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -342143,10 +606821,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -342155,10 +606833,10 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -342174,10 +606852,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -342186,13 +606864,19 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(paramsOrCallback, optionsOrCallback, callback) { + } + jobs_v4.Resource$Projects$Tenants$Companies = Resource$Projects$Tenants$Companies; + class Resource$Projects$Tenants$Jobs { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342205,25 +606889,25 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/jobs:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342236,25 +606920,25 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342267,30 +606951,24 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/jobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services = Resource$Projects$Locations$Namespaces$Services; - class Resource$Projects$Locations$Namespaces$Services$Endpoints { - constructor(context) { - this.context = context; - } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -342304,10 +606982,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -342316,10 +606994,10 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -342335,10 +607013,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -342347,10 +607025,10 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -342366,10 +607044,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -342378,10 +607056,10 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -342397,10 +607075,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -342409,10 +607087,10 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { @@ -342428,10 +607106,10 @@ var servicedirectory_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -342440,19 +607118,82 @@ var servicedirectory_v1beta1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + search(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchForAlert(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://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services$Endpoints = Resource$Projects$Locations$Namespaces$Services$Endpoints; -})(servicedirectory_v1beta1 = exports.servicedirectory_v1beta1 || (exports.servicedirectory_v1beta1 = {})); -//# sourceMappingURL=v1beta1.js.map + jobs_v4.Resource$Projects$Tenants$Jobs = Resource$Projects$Tenants$Jobs; +})(jobs_v4 = exports.jobs_v4 || (exports.jobs_v4 = {})); + /***/ }), -/* 992 */ + +/***/ 9918: /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; @@ -342470,50 +607211,58 @@ var servicedirectory_v1beta1; // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); -exports.iam_v1 = void 0; +exports.monitoring_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 = __webpack_require__(927); -var iam_v1; -(function (iam_v1) { +var monitoring_v1; +(function (monitoring_v1) { /** - * Identity and Access Management (IAM) API + * Cloud Monitoring API * - * Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. + * Manages your Cloud Monitoring data and configurations. * * @example + * ```js * const {google} = require('googleapis'); - * const iam = google.iam('v1'); - * - * @namespace iam - * @type {Function} - * @version v1 - * @variation v1 - * @param {object=} options Options for Iam + * const monitoring = google.monitoring('v1'); + * ``` */ - class Iam { + class Monitoring { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.iamPolicies = new Resource$Iampolicies(this.context); - this.organizations = new Resource$Organizations(this.context); - this.permissions = new Resource$Permissions(this.context); + this.locations = new Resource$Locations(this.context); + this.operations = new Resource$Operations(this.context); this.projects = new Resource$Projects(this.context); - this.roles = new Resource$Roles(this.context); } } - iam_v1.Iam = Iam; - class Resource$Iampolicies { + monitoring_v1.Monitoring = Monitoring; + class Resource$Locations { constructor(context) { this.context = context; + this.global = new Resource$Locations$Global(this.context); } - lintPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Global { + constructor(context) { + this.context = context; + this.metricsScopes = new Resource$Locations$Global$Metricsscopes(this.context); + } + } + monitoring_v1.Resource$Locations$Global = Resource$Locations$Global; + class Resource$Locations$Global$Metricsscopes { + constructor(context) { + this.context = context; + this.projects = new Resource$Locations$Global$Metricsscopes$Projects(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342526,42 +607275,44 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/iamPolicies:lintPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryAuditableServices(paramsOrCallback, optionsOrCallback, callback) { + listMetricsScopesByMonitoredProject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/iamPolicies:queryAuditableServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -342569,22 +607320,15 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - iam_v1.Resource$Iampolicies = Resource$Iampolicies; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.roles = new Resource$Organizations$Roles(this.context); - } - } - iam_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Roles { + monitoring_v1.Resource$Locations$Global$Metricsscopes = Resource$Locations$Global$Metricsscopes; + class Resource$Locations$Global$Metricsscopes$Projects { constructor(context) { this.context = context; } @@ -342594,17 +607338,18 @@ var iam_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -342613,10 +607358,10 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -342625,14 +607370,15 @@ var iam_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -342644,15 +607390,20 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + monitoring_v1.Resource$Locations$Global$Metricsscopes$Projects = Resource$Locations$Global$Metricsscopes$Projects; + class Resource$Operations { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -342663,7 +607414,7 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -342675,13 +607426,27 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.dashboards = new Resource$Projects$Dashboards(this.context); + this.location = new Resource$Projects$Location(this.context); + } + } + monitoring_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Dashboards { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342694,11 +607459,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -342706,13 +607471,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342725,11 +607490,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -342737,13 +607502,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342756,11 +607521,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -342768,19 +607533,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - iam_v1.Resource$Organizations$Roles = Resource$Organizations$Roles; - class Resource$Permissions { - constructor(context) { - this.context = context; - } - queryTestablePermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342793,39 +607552,25 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/permissions:queryTestablePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - iam_v1.Resource$Permissions = Resource$Permissions; - class Resource$Projects { - constructor(context) { - this.context = context; - this.roles = new Resource$Projects$Roles(this.context); - this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); - } - } - iam_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Roles { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342838,189 +607583,296 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Projects$Dashboards = Resource$Projects$Dashboards; + class Resource$Projects$Location { + constructor(context) { + this.context = context; + this.prometheus = new Resource$Projects$Location$Prometheus(this.context); + } + } + monitoring_v1.Resource$Projects$Location = Resource$Projects$Location; + class Resource$Projects$Location$Prometheus { + constructor(context) { + this.context = context; + this.api = new Resource$Projects$Location$Prometheus$Api(this.context); + } + } + monitoring_v1.Resource$Projects$Location$Prometheus = Resource$Projects$Location$Prometheus; + class Resource$Projects$Location$Prometheus$Api { + constructor(context) { + this.context = context; + this.v1 = new Resource$Projects$Location$Prometheus$Api$V1(this.context); + } + } + monitoring_v1.Resource$Projects$Location$Prometheus$Api = Resource$Projects$Location$Prometheus$Api; + class Resource$Projects$Location$Prometheus$Api$V1 { + constructor(context) { + this.context = context; + this.label = new Resource$Projects$Location$Prometheus$Api$V1$Label(this.context); + this.metadata = new Resource$Projects$Location$Prometheus$Api$V1$Metadata(this.context); + } + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + query_range(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/query_range').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + series(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/series').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Projects$Location$Prometheus$Api$V1 = Resource$Projects$Location$Prometheus$Api$V1; + class Resource$Projects$Location$Prometheus$Api$V1$Label { + constructor(context) { + this.context = context; + } + values(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/label/{label}/values').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['name', 'location', 'label'], + pathParams: ['label', 'location', 'name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Projects$Location$Prometheus$Api$V1$Label = Resource$Projects$Location$Prometheus$Api$V1$Label; + class Resource$Projects$Location$Prometheus$Api$V1$Metadata { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); - } - else { - return googleapis_common_1.createAPIRequest(parameters); - } + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + monitoring_v1.Resource$Projects$Location$Prometheus$Api$V1$Metadata = Resource$Projects$Location$Prometheus$Api$V1$Metadata; +})(monitoring_v1 = exports.monitoring_v1 || (exports.monitoring_v1 = {})); + + +/***/ }), + +/***/ 9928: +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"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.adsense_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var adsense_v2; +(function (adsense_v2) { + /** + * AdSense Management API + * + * The AdSense Management API allows publishers to access their inventory and run earnings and performance reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adsense = google.adsense('v2'); + * ``` + */ + class Adsense { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); } } - iam_v1.Resource$Projects$Roles = Resource$Projects$Roles; - class Resource$Projects$Serviceaccounts { + adsense_v2.Adsense = Adsense; + class Resource$Accounts { constructor(context) { this.context = context; - this.keys = new Resource$Projects$Serviceaccounts$Keys(this.context); + this.adclients = new Resource$Accounts$Adclients(this.context); + this.alerts = new Resource$Accounts$Alerts(this.context); + this.payments = new Resource$Accounts$Payments(this.context); + this.reports = new Resource$Accounts$Reports(this.context); + this.sites = new Resource$Accounts$Sites(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -343031,11 +607883,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -343043,13 +607895,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getAdBlockingRecoveryTag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343062,11 +607914,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}/adBlockingRecoveryTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -343074,15 +607926,14 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -343093,25 +607944,25 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { + listChildAccounts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343124,24 +607975,33 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}:listChildAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + adsense_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adclients { + constructor(context) { + this.context = context; + this.adunits = new Resource$Accounts$Adclients$Adunits(this.context); + this.customchannels = new Resource$Accounts$Adclients$Customchannels(this.context); + this.urlchannels = new Resource$Accounts$Adclients$Urlchannels(this.context); + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -343155,10 +608015,10 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -343167,44 +608027,13 @@ var iam_v1; 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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context: this.context, - }; - if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getAdcode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343217,10 +608046,10 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/adcode').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -343229,13 +608058,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343248,25 +608077,31 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + adsense_v2.Resource$Accounts$Adclients = Resource$Accounts$Adclients; + class Resource$Accounts$Adclients$Adunits { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343279,25 +608114,25 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/adunits').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signBlob(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343310,11 +608145,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -343322,13 +608157,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signJwt(paramsOrCallback, optionsOrCallback, callback) { + getAdcode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343341,11 +608176,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -343353,13 +608188,13 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343372,56 +608207,57 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + listLinkedCustomChannels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}:listLinkedCustomChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343434,11 +608270,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -343446,15 +608282,15 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } } - iam_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; - class Resource$Projects$Serviceaccounts$Keys { + adsense_v2.Resource$Accounts$Adclients$Adunits = Resource$Accounts$Adclients$Adunits; + class Resource$Accounts$Adclients$Customchannels { constructor(context) { this.context = context; } @@ -343471,22 +608307,22 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/customchannels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { @@ -343502,10 +608338,10 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -343514,10 +608350,10 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { @@ -343533,10 +608369,10 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -343545,10 +608381,10 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { @@ -343564,63 +608400,59 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/customchannels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + listLinkedAdUnits(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/keys:upload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}:listLinkedAdUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - iam_v1.Resource$Projects$Serviceaccounts$Keys = Resource$Projects$Serviceaccounts$Keys; - class Resource$Roles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -343631,11 +608463,11 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -343643,14 +608475,21 @@ var iam_v1; context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + adsense_v2.Resource$Accounts$Adclients$Customchannels = Resource$Accounts$Adclients$Customchannels; + class Resource$Accounts$Adclients$Urlchannels { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -343661,25 +608500,25 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/roles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - googleapis_common_1.createAPIRequest(parameters, callback); + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return googleapis_common_1.createAPIRequest(parameters); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryGrantableRoles(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343692,1862 +608531,1360 @@ var iam_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://adsense.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/roles:queryGrantableRoles').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); - } - } - } - iam_v1.Resource$Roles = Resource$Roles; -})(iam_v1 = exports.iam_v1 || (exports.iam_v1 = {})); -//# sourceMappingURL=v1.js.map - -/***/ }), -/* 993 */, -/* 994 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * A Javascript implementation of AES Cipher Suites for TLS. - * - * @author Dave Longley - * - * Copyright (c) 2009-2015 Digital Bazaar, Inc. - * - */ -var forge = __webpack_require__(239); -__webpack_require__(828); -__webpack_require__(171); - -var tls = module.exports = forge.tls; - -/** - * Supported cipher suites. - */ -tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = { - id: [0x00, 0x2f], - name: 'TLS_RSA_WITH_AES_128_CBC_SHA', - initSecurityParameters: function(sp) { - sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; - sp.cipher_type = tls.CipherType.block; - sp.enc_key_length = 16; - sp.block_length = 16; - sp.fixed_iv_length = 16; - sp.record_iv_length = 16; - sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; - sp.mac_length = 20; - sp.mac_key_length = 20; - }, - initConnectionState: initConnectionState -}; -tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = { - id: [0x00, 0x35], - name: 'TLS_RSA_WITH_AES_256_CBC_SHA', - initSecurityParameters: function(sp) { - sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; - sp.cipher_type = tls.CipherType.block; - sp.enc_key_length = 32; - sp.block_length = 16; - sp.fixed_iv_length = 16; - sp.record_iv_length = 16; - sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; - sp.mac_length = 20; - sp.mac_key_length = 20; - }, - initConnectionState: initConnectionState -}; - -function initConnectionState(state, c, sp) { - var client = (c.entity === forge.tls.ConnectionEnd.client); - - // cipher setup - state.read.cipherState = { - init: false, - cipher: forge.cipher.createDecipher('AES-CBC', client ? - sp.keys.server_write_key : sp.keys.client_write_key), - iv: client ? sp.keys.server_write_IV : sp.keys.client_write_IV - }; - state.write.cipherState = { - init: false, - cipher: forge.cipher.createCipher('AES-CBC', client ? - sp.keys.client_write_key : sp.keys.server_write_key), - iv: client ? sp.keys.client_write_IV : sp.keys.server_write_IV - }; - state.read.cipherFunction = decrypt_aes_cbc_sha1; - state.write.cipherFunction = encrypt_aes_cbc_sha1; - - // MAC setup - state.read.macLength = state.write.macLength = sp.mac_length; - state.read.macFunction = state.write.macFunction = tls.hmac_sha1; -} - -/** - * Encrypts the TLSCompressed record into a TLSCipherText record using AES - * in CBC mode. - * - * @param record the TLSCompressed record to encrypt. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. - */ -function encrypt_aes_cbc_sha1(record, s) { - var rval = false; - - // append MAC to fragment, update sequence number - var mac = s.macFunction(s.macKey, s.sequenceNumber, record); - record.fragment.putBytes(mac); - s.updateSequenceNumber(); - - // TLS 1.1+ use an explicit IV every time to protect against CBC attacks - var iv; - if(record.version.minor === tls.Versions.TLS_1_0.minor) { - // use the pre-generated IV when initializing for TLS 1.0, otherwise use - // the residue from the previous encryption - iv = s.cipherState.init ? null : s.cipherState.iv; - } else { - iv = forge.random.getBytesSync(16); - } - - s.cipherState.init = true; - - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); - - // TLS 1.1+ write IV into output - if(record.version.minor >= tls.Versions.TLS_1_1.minor) { - cipher.output.putBytes(iv); - } - - // do encryption (default padding is appropriate) - cipher.update(record.fragment); - if(cipher.finish(encrypt_aes_cbc_sha1_padding)) { - // set record fragment to encrypted output - record.fragment = cipher.output; - record.length = record.fragment.length(); - rval = true; - } - - return rval; -} - -/** - * Handles padding for aes_cbc_sha1 in encrypt mode. - * - * @param blockSize the block size. - * @param input the input buffer. - * @param decrypt true in decrypt mode, false in encrypt mode. - * - * @return true on success, false on failure. - */ -function encrypt_aes_cbc_sha1_padding(blockSize, input, decrypt) { - /* The encrypted data length (TLSCiphertext.length) is one more than the sum - of SecurityParameters.block_length, TLSCompressed.length, - SecurityParameters.mac_length, and padding_length. - - The padding may be any length up to 255 bytes long, as long as it results in - the TLSCiphertext.length being an integral multiple of the block length. - Lengths longer than necessary might be desirable to frustrate attacks on a - protocol based on analysis of the lengths of exchanged messages. Each uint8 - in the padding data vector must be filled with the padding length value. - - The padding length should be such that the total size of the - GenericBlockCipher structure is a multiple of the cipher's block length. - Legal values range from zero to 255, inclusive. This length specifies the - length of the padding field exclusive of the padding_length field itself. - - This is slightly different from PKCS#7 because the padding value is 1 - less than the actual number of padding bytes if you include the - padding_length uint8 itself as a padding byte. */ - if(!decrypt) { - // get the number of padding bytes required to reach the blockSize and - // subtract 1 for the padding value (to make room for the padding_length - // uint8) - var padding = blockSize - (input.length() % blockSize); - input.fillWithByte(padding - 1, padding); - } - return true; -} - -/** - * Handles padding for aes_cbc_sha1 in decrypt mode. - * - * @param blockSize the block size. - * @param output the output buffer. - * @param decrypt true in decrypt mode, false in encrypt mode. - * - * @return true on success, false on failure. - */ -function decrypt_aes_cbc_sha1_padding(blockSize, output, decrypt) { - var rval = true; - if(decrypt) { - /* The last byte in the output specifies the number of padding bytes not - including itself. Each of the padding bytes has the same value as that - last byte (known as the padding_length). Here we check all padding - bytes to ensure they have the value of padding_length even if one of - them is bad in order to ward-off timing attacks. */ - var len = output.length(); - var paddingLength = output.last(); - for(var i = len - 1 - paddingLength; i < len - 1; ++i) { - rval = rval && (output.at(i) == paddingLength); - } - if(rval) { - // trim off padding bytes and last padding length byte - output.truncate(paddingLength + 1); - } - } - return rval; -} - -/** - * Decrypts a TLSCipherText record into a TLSCompressed record using - * AES in CBC mode. - * - * @param record the TLSCipherText record to decrypt. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. - */ -function decrypt_aes_cbc_sha1(record, s) { - var rval = false; - - var iv; - if(record.version.minor === tls.Versions.TLS_1_0.minor) { - // use pre-generated IV when initializing for TLS 1.0, otherwise use the - // residue from the previous decryption - iv = s.cipherState.init ? null : s.cipherState.iv; - } else { - // TLS 1.1+ use an explicit IV every time to protect against CBC attacks - // that is appended to the record fragment - iv = record.fragment.getBytes(16); - } - - s.cipherState.init = true; - - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); - - // do decryption - cipher.update(record.fragment); - rval = cipher.finish(decrypt_aes_cbc_sha1_padding); - - // even if decryption fails, keep going to minimize timing attacks - - // decrypted data: - // first (len - 20) bytes = application data - // last 20 bytes = MAC - var macLen = s.macLength; - - // create a random MAC to check against should the mac length check fail - // Note: do this regardless of the failure to keep timing consistent - var mac = forge.random.getBytesSync(macLen); - - // get fragment and mac - var len = cipher.output.length(); - if(len >= macLen) { - record.fragment = cipher.output.getBytes(len - macLen); - mac = cipher.output.getBytes(macLen); - } else { - // bad data, but get bytes anyway to try to keep timing consistent - record.fragment = cipher.output.getBytes(); - } - record.fragment = forge.util.createBuffer(record.fragment); - record.length = record.fragment.length(); - - // see if data integrity checks out, update sequence number - var mac2 = s.macFunction(s.macKey, s.sequenceNumber, record); - s.updateSequenceNumber(); - rval = compareMacs(s.macKey, mac, mac2) && rval; - return rval; -} - -/** - * Safely compare two MACs. This function will compare two MACs in a way - * that protects against timing attacks. - * - * TODO: Expose elsewhere as a utility API. - * - * See: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ - * - * @param key the MAC key to use. - * @param mac1 as a binary-encoded string of bytes. - * @param mac2 as a binary-encoded string of bytes. - * - * @return true if the MACs are the same, false if not. - */ -function compareMacs(key, mac1, mac2) { - var hmac = forge.hmac.create(); - - hmac.start('SHA1', key); - hmac.update(mac1); - mac1 = hmac.digest().getBytes(); - - hmac.start(null, null); - hmac.update(mac2); - mac2 = hmac.digest().getBytes(); - - return mac1 === mac2; -} - - -/***/ }), -/* 995 */, -/* 996 */ -/***/ (function(__unusedmodule, exports) { - -"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.getAPI = void 0; -function getAPI(api, options, -// eslint-disable-next-line @typescript-eslint/no-explicit-any -versions, context) { - let version; - if (typeof options === 'string') { - version = options; - options = {}; - } - else if (typeof options === 'object') { - version = options.version; - delete options.version; - } - else { - throw new Error('Argument error: Accepts only string or object'); - } - try { - const ctr = versions[version]; - const ep = new ctr(options, context); - return Object.freeze(ep); - } - catch (e) { - throw new Error(`Unable to load endpoint ${api}("${version}"): ${e.message}`); - } -} -exports.getAPI = getAPI; -//# sourceMappingURL=apiIndex.js.map - -/***/ }), -/* 997 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * Javascript implementation of PKCS#12. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * The ASN.1 representation of PKCS#12 is as follows - * (see ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12-tc1.pdf for details) - * - * PFX ::= SEQUENCE { - * version INTEGER {v3(3)}(v3,...), - * authSafe ContentInfo, - * macData MacData OPTIONAL - * } - * - * MacData ::= SEQUENCE { - * mac DigestInfo, - * macSalt OCTET STRING, - * iterations INTEGER DEFAULT 1 - * } - * Note: The iterations default is for historical reasons and its use is - * deprecated. A higher value, like 1024, is recommended. - * - * DigestInfo is defined in PKCS#7 as follows: - * - * DigestInfo ::= SEQUENCE { - * digestAlgorithm DigestAlgorithmIdentifier, - * digest Digest - * } - * - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * - * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters - * for the algorithm, if any. In the case of SHA1 there is none. - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * Digest ::= OCTET STRING - * - * - * ContentInfo ::= SEQUENCE { - * contentType ContentType, - * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL - * } - * - * ContentType ::= OBJECT IDENTIFIER - * - * AuthenticatedSafe ::= SEQUENCE OF ContentInfo - * -- Data if unencrypted - * -- EncryptedData if password-encrypted - * -- EnvelopedData if public key-encrypted - * - * - * SafeContents ::= SEQUENCE OF SafeBag - * - * SafeBag ::= SEQUENCE { - * bagId BAG-TYPE.&id ({PKCS12BagSet}) - * bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}), - * bagAttributes SET OF PKCS12Attribute OPTIONAL - * } - * - * PKCS12Attribute ::= SEQUENCE { - * attrId ATTRIBUTE.&id ({PKCS12AttrSet}), - * attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId}) - * } -- This type is compatible with the X.500 type 'Attribute' - * - * PKCS12AttrSet ATTRIBUTE ::= { - * friendlyName | -- from PKCS #9 - * localKeyId, -- from PKCS #9 - * ... -- Other attributes are allowed - * } - * - * CertBag ::= SEQUENCE { - * certId BAG-TYPE.&id ({CertTypes}), - * certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId}) - * } - * - * x509Certificate BAG-TYPE ::= {OCTET STRING IDENTIFIED BY {certTypes 1}} - * -- DER-encoded X.509 certificate stored in OCTET STRING - * - * sdsiCertificate BAG-TYPE ::= {IA5String IDENTIFIED BY {certTypes 2}} - * -- Base64-encoded SDSI certificate stored in IA5String - * - * CertTypes BAG-TYPE ::= { - * x509Certificate | - * sdsiCertificate, - * ... -- For future extensions - * } - */ -var forge = __webpack_require__(239); -__webpack_require__(784); -__webpack_require__(0); -__webpack_require__(988); -__webpack_require__(638); -__webpack_require__(131); -__webpack_require__(707); -__webpack_require__(526); -__webpack_require__(908); -__webpack_require__(54); -__webpack_require__(249); - -// shortcut for asn.1 & PKI API -var asn1 = forge.asn1; -var pki = forge.pki; - -// shortcut for PKCS#12 API -var p12 = module.exports = forge.pkcs12 = forge.pkcs12 || {}; - -var contentInfoValidator = { - name: 'ContentInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, // a ContentInfo - constructed: true, - value: [{ - name: 'ContentInfo.contentType', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'contentType' - }, { - name: 'ContentInfo.content', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - constructed: true, - captureAsn1: 'content' - }] -}; - -var pfxValidator = { - name: 'PFX', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PFX.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, - contentInfoValidator, { - name: 'PFX.macData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'mac', - value: [{ - name: 'PFX.macData.mac', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, // DigestInfo - constructed: true, - value: [{ - name: 'PFX.macData.mac.digestAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, // DigestAlgorithmIdentifier - constructed: true, - value: [{ - name: 'PFX.macData.mac.digestAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'macAlgorithm' - }, { - name: 'PFX.macData.mac.digestAlgorithm.parameters', - tagClass: asn1.Class.UNIVERSAL, - captureAsn1: 'macAlgorithmParameters' - }] - }, { - name: 'PFX.macData.mac.digest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'macDigest' - }] - }, { - name: 'PFX.macData.macSalt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'macSalt' - }, { - name: 'PFX.macData.iterations', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - optional: true, - capture: 'macIterations' - }] - }] -}; - -var safeBagValidator = { - name: 'SafeBag', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SafeBag.bagId', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'bagId' - }, { - name: 'SafeBag.bagValue', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - constructed: true, - captureAsn1: 'bagValue' - }, { - name: 'SafeBag.bagAttributes', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - optional: true, - capture: 'bagAttributes' - }] -}; - -var attributeValidator = { - name: 'Attribute', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'Attribute.attrId', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'oid' - }, { - name: 'Attribute.attrValues', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - capture: 'values' - }] -}; - -var certBagValidator = { - name: 'CertBag', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'CertBag.certId', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'certId' - }, { - name: 'CertBag.certValue', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - constructed: true, - /* So far we only support X.509 certificates (which are wrapped in - an OCTET STRING, hence hard code that here). */ - value: [{ - name: 'CertBag.certValue[0]', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.OCTETSTRING, - constructed: false, - capture: 'cert' - }] - }] -}; - -/** - * Search SafeContents structure for bags with matching attributes. - * - * The search can optionally be narrowed by a certain bag type. - * - * @param safeContents the SafeContents structure to search in. - * @param attrName the name of the attribute to compare against. - * @param attrValue the attribute value to search for. - * @param [bagType] bag type to narrow search by. - * - * @return an array of matching bags. - */ -function _getBagsByAttribute(safeContents, attrName, attrValue, bagType) { - var result = []; - - for(var i = 0; i < safeContents.length; i++) { - for(var j = 0; j < safeContents[i].safeBags.length; j++) { - var bag = safeContents[i].safeBags[j]; - if(bagType !== undefined && bag.type !== bagType) { - continue; - } - // only filter by bag type, no attribute specified - if(attrName === null) { - result.push(bag); - continue; - } - if(bag.attributes[attrName] !== undefined && - bag.attributes[attrName].indexOf(attrValue) >= 0) { - result.push(bag); - } - } - } - - return result; -} - -/** - * Converts a PKCS#12 PFX in ASN.1 notation into a PFX object. - * - * @param obj The PKCS#12 PFX in ASN.1 notation. - * @param strict true to use strict DER decoding, false not to (default: true). - * @param {String} password Password to decrypt with (optional). - * - * @return PKCS#12 PFX object. - */ -p12.pkcs12FromAsn1 = function(obj, strict, password) { - // handle args - if(typeof strict === 'string') { - password = strict; - strict = true; - } else if(strict === undefined) { - strict = true; - } - - // validate PFX and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, pfxValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#12 PFX. ' + - 'ASN.1 object is not an PKCS#12 PFX.'); - error.errors = error; - throw error; - } - - var pfx = { - version: capture.version.charCodeAt(0), - safeContents: [], - - /** - * Gets bags with matching attributes. - * - * @param filter the attributes to filter by: - * [localKeyId] the localKeyId to search for. - * [localKeyIdHex] the localKeyId in hex to search for. - * [friendlyName] the friendly name to search for. - * [bagType] bag type to narrow each attribute search by. - * - * @return a map of attribute type to an array of matching bags or, if no - * attribute was given but a bag type, the map key will be the - * bag type. - */ - getBags: function(filter) { - var rval = {}; - - var localKeyId; - if('localKeyId' in filter) { - localKeyId = filter.localKeyId; - } else if('localKeyIdHex' in filter) { - localKeyId = forge.util.hexToBytes(filter.localKeyIdHex); - } - - // filter on bagType only - if(localKeyId === undefined && !('friendlyName' in filter) && - 'bagType' in filter) { - rval[filter.bagType] = _getBagsByAttribute( - pfx.safeContents, null, null, filter.bagType); - } - - if(localKeyId !== undefined) { - rval.localKeyId = _getBagsByAttribute( - pfx.safeContents, 'localKeyId', - localKeyId, filter.bagType); - } - if('friendlyName' in filter) { - rval.friendlyName = _getBagsByAttribute( - pfx.safeContents, 'friendlyName', - filter.friendlyName, filter.bagType); - } - - return rval; - }, - - /** - * DEPRECATED: use getBags() instead. - * - * Get bags with matching friendlyName attribute. - * - * @param friendlyName the friendly name to search for. - * @param [bagType] bag type to narrow search by. - * - * @return an array of bags with matching friendlyName attribute. - */ - getBagsByFriendlyName: function(friendlyName, bagType) { - return _getBagsByAttribute( - pfx.safeContents, 'friendlyName', friendlyName, bagType); - }, - - /** - * DEPRECATED: use getBags() instead. - * - * Get bags with matching localKeyId attribute. - * - * @param localKeyId the localKeyId to search for. - * @param [bagType] bag type to narrow search by. - * - * @return an array of bags with matching localKeyId attribute. - */ - getBagsByLocalKeyId: function(localKeyId, bagType) { - return _getBagsByAttribute( - pfx.safeContents, 'localKeyId', localKeyId, bagType); - } - }; - - if(capture.version.charCodeAt(0) !== 3) { - var error = new Error('PKCS#12 PFX of version other than 3 not supported.'); - error.version = capture.version.charCodeAt(0); - throw error; - } - - if(asn1.derToOid(capture.contentType) !== pki.oids.data) { - var error = new Error('Only PKCS#12 PFX in password integrity mode supported.'); - error.oid = asn1.derToOid(capture.contentType); - throw error; - } - - var data = capture.content.value[0]; - if(data.tagClass !== asn1.Class.UNIVERSAL || - data.type !== asn1.Type.OCTETSTRING) { - throw new Error('PKCS#12 authSafe content data is not an OCTET STRING.'); - } - data = _decodePkcs7Data(data); - - // check for MAC - if(capture.mac) { - var md = null; - var macKeyBytes = 0; - var macAlgorithm = asn1.derToOid(capture.macAlgorithm); - switch(macAlgorithm) { - case pki.oids.sha1: - md = forge.md.sha1.create(); - macKeyBytes = 20; - break; - case pki.oids.sha256: - md = forge.md.sha256.create(); - macKeyBytes = 32; - break; - case pki.oids.sha384: - md = forge.md.sha384.create(); - macKeyBytes = 48; - break; - case pki.oids.sha512: - md = forge.md.sha512.create(); - macKeyBytes = 64; - break; - case pki.oids.md5: - md = forge.md.md5.create(); - macKeyBytes = 16; - break; + url: (rootUrl + '/v2/{+parent}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - if(md === null) { - throw new Error('PKCS#12 uses unsupported MAC algorithm: ' + macAlgorithm); + adsense_v2.Resource$Accounts$Adclients$Urlchannels = Resource$Accounts$Adclients$Urlchannels; + class Resource$Accounts$Alerts { + 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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/alerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // verify MAC (iterations default to 1) - var macSalt = new forge.util.ByteBuffer(capture.macSalt); - var macIterations = (('macIterations' in capture) ? - parseInt(forge.util.bytesToHex(capture.macIterations), 16) : 1); - var macKey = p12.generateKey( - password, macSalt, 3, macIterations, macKeyBytes, md); - var mac = forge.hmac.create(); - mac.start(md, macKey); - mac.update(data.value); - var macValue = mac.getMac(); - if(macValue.getBytes() !== capture.macDigest) { - throw new Error('PKCS#12 MAC could not be verified. Invalid password?'); + adsense_v2.Resource$Accounts$Alerts = Resource$Accounts$Alerts; + class Resource$Accounts$Payments { + 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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/payments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - - _decodeAuthenticatedSafe(pfx, data.value, strict, password); - return pfx; -}; - -/** - * Decodes PKCS#7 Data. PKCS#7 (RFC 2315) defines "Data" as an OCTET STRING, - * but it is sometimes an OCTET STRING that is composed/constructed of chunks, - * each its own OCTET STRING. This is BER-encoding vs. DER-encoding. This - * function transforms this corner-case into the usual simple, - * non-composed/constructed OCTET STRING. - * - * This function may be moved to ASN.1 at some point to better deal with - * more BER-encoding issues, should they arise. - * - * @param data the ASN.1 Data object to transform. - */ -function _decodePkcs7Data(data) { - // handle special case of "chunked" data content: an octet string composed - // of other octet strings - if(data.composed || data.constructed) { - var value = forge.util.createBuffer(); - for(var i = 0; i < data.value.length; ++i) { - value.putBytes(data.value[i].value); + adsense_v2.Resource$Accounts$Payments = Resource$Accounts$Payments; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + this.saved = new Resource$Accounts$Reports$Saved(this.context); + } + generate(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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+account}/reports:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['account'], + pathParams: ['account'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateCsv(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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+account}/reports:generateCsv').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['account'], + pathParams: ['account'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getSaved(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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/saved').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - data.composed = data.constructed = false; - data.value = value.getBytes(); - } - return data; -} - -/** - * Decode PKCS#12 AuthenticatedSafe (BER encoded) into PFX object. - * - * The AuthenticatedSafe is a BER-encoded SEQUENCE OF ContentInfo. - * - * @param pfx The PKCS#12 PFX object to fill. - * @param {String} authSafe BER-encoded AuthenticatedSafe. - * @param strict true to use strict DER decoding, false not to. - * @param {String} password Password to decrypt with (optional). - */ -function _decodeAuthenticatedSafe(pfx, authSafe, strict, password) { - authSafe = asn1.fromDer(authSafe, strict); /* actually it's BER encoded */ - - if(authSafe.tagClass !== asn1.Class.UNIVERSAL || - authSafe.type !== asn1.Type.SEQUENCE || - authSafe.constructed !== true) { - throw new Error('PKCS#12 AuthenticatedSafe expected to be a ' + - 'SEQUENCE OF ContentInfo'); - } - - for(var i = 0; i < authSafe.value.length; i++) { - var contentInfo = authSafe.value[i]; - - // validate contentInfo and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(contentInfo, contentInfoValidator, capture, errors)) { - var error = new Error('Cannot read ContentInfo.'); - error.errors = errors; - throw error; + adsense_v2.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Accounts$Reports$Saved { + constructor(context) { + this.context = context; + } + generate(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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/saved:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + generateCsv(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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/saved:generateCsv').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/reports/saved').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - var obj = { - encrypted: false - }; - var safeContents = null; - var data = capture.content.value[0]; - switch(asn1.derToOid(capture.contentType)) { - case pki.oids.data: - if(data.tagClass !== asn1.Class.UNIVERSAL || - data.type !== asn1.Type.OCTETSTRING) { - throw new Error('PKCS#12 SafeContents Data is not an OCTET STRING.'); - } - safeContents = _decodePkcs7Data(data).value; - break; - case pki.oids.encryptedData: - safeContents = _decryptSafeContents(data, password); - obj.encrypted = true; - break; - default: - var error = new Error('Unsupported PKCS#12 contentType.'); - error.contentType = asn1.derToOid(capture.contentType); - throw error; + adsense_v2.Resource$Accounts$Reports$Saved = Resource$Accounts$Reports$Saved; + class Resource$Accounts$Sites { + 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://adsense.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } + adsense_v2.Resource$Accounts$Sites = Resource$Accounts$Sites; +})(adsense_v2 = exports.adsense_v2 || (exports.adsense_v2 = {})); - obj.safeBags = _decodeSafeContents(safeContents, strict, password); - pfx.safeContents.push(obj); - } -} - -/** - * Decrypt PKCS#7 EncryptedData structure. - * - * @param data ASN.1 encoded EncryptedContentInfo object. - * @param password The user-provided password. - * - * @return The decrypted SafeContents (ASN.1 object). - */ -function _decryptSafeContents(data, password) { - var capture = {}; - var errors = []; - if(!asn1.validate( - data, forge.pkcs7.asn1.encryptedDataValidator, capture, errors)) { - var error = new Error('Cannot read EncryptedContentInfo.'); - error.errors = errors; - throw error; - } - - var oid = asn1.derToOid(capture.contentType); - if(oid !== pki.oids.data) { - var error = new Error( - 'PKCS#12 EncryptedContentInfo ContentType is not Data.'); - error.oid = oid; - throw error; - } - // get cipher - oid = asn1.derToOid(capture.encAlgorithm); - var cipher = pki.pbe.getCipher(oid, capture.encParameter, password); +/***/ }), - // get encrypted data - var encryptedContentAsn1 = _decodePkcs7Data(capture.encryptedContentAsn1); - var encrypted = forge.util.createBuffer(encryptedContentAsn1.value); +/***/ 9960: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - cipher.update(encrypted); - if(!cipher.finish()) { - throw new Error('Failed to decrypt PKCS#12 SafeContents.'); - } +"use strict"; - return cipher.output.getBytes(); +// 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.AuthPlus = exports.siteVerification_v1 = exports.auth = exports.siteVerification = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5477); +Object.defineProperty(exports, "siteVerification_v1", { enumerable: true, get: function () { return v1_1.siteVerification_v1; } }); +exports.VERSIONS = { + v1: v1_1.siteVerification_v1.Siteverification, +}; +function siteVerification(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('siteVerification', versionOrOptions, exports.VERSIONS, this); } +exports.siteVerification = siteVerification; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); -/** - * Decode PKCS#12 SafeContents (BER-encoded) into array of Bag objects. - * - * The safeContents is a BER-encoded SEQUENCE OF SafeBag. - * - * @param {String} safeContents BER-encoded safeContents. - * @param strict true to use strict DER decoding, false not to. - * @param {String} password Password to decrypt with (optional). - * - * @return {Array} Array of Bag objects. - */ -function _decodeSafeContents(safeContents, strict, password) { - // if strict and no safe contents, return empty safes - if(!strict && safeContents.length === 0) { - return []; - } - // actually it's BER-encoded - safeContents = asn1.fromDer(safeContents, strict); +/***/ }), - if(safeContents.tagClass !== asn1.Class.UNIVERSAL || - safeContents.type !== asn1.Type.SEQUENCE || - safeContents.constructed !== true) { - throw new Error( - 'PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.'); - } +/***/ 9966: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - var res = []; - for(var i = 0; i < safeContents.value.length; i++) { - var safeBag = safeContents.value[i]; +"use strict"; - // validate SafeBag and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(safeBag, safeBagValidator, capture, errors)) { - var error = new Error('Cannot read SafeBag.'); - error.errors = errors; - throw error; +// 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.binaryauthorization_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* 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 = __webpack_require__(927); +var binaryauthorization_v1; +(function (binaryauthorization_v1) { + /** + * Binary Authorization API + * + * The management interface for Binary Authorization, a service that provides policy-based deployment validation and control for images deployed to Google Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const binaryauthorization = google.binaryauthorization('v1'); + * ``` + */ + class Binaryauthorization { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.systempolicy = new Resource$Systempolicy(this.context); + } } - - /* Create bag object and push to result array. */ - var bag = { - type: asn1.derToOid(capture.bagId), - attributes: _decodeBagAttributes(capture.bagAttributes) - }; - res.push(bag); - - var validator, decoder; - var bagAsn1 = capture.bagValue.value[0]; - switch(bag.type) { - case pki.oids.pkcs8ShroudedKeyBag: - /* bagAsn1 has a EncryptedPrivateKeyInfo, which we need to decrypt. - Afterwards we can handle it like a keyBag, - which is a PrivateKeyInfo. */ - bagAsn1 = pki.decryptPrivateKeyInfo(bagAsn1, password); - if(bagAsn1 === null) { - throw new Error( - 'Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?'); + binaryauthorization_v1.Binaryauthorization = Binaryauthorization; + class Resource$Projects { + constructor(context) { + this.context = context; + this.attestors = new Resource$Projects$Attestors(this.context); + this.policy = new Resource$Projects$Policy(this.context); } - - /* fall through */ - case pki.oids.keyBag: - /* A PKCS#12 keyBag is a simple PrivateKeyInfo as understood by our - PKI module, hence we don't have to do validation/capturing here, - just pass what we already got. */ - try { - bag.key = pki.privateKeyFromAsn1(bagAsn1); - } catch(e) { - // ignore unknown key type, pass asn1 value - bag.key = null; - bag.asn1 = bagAsn1; + getPolicy(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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updatePolicy(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://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - continue; /* Nothing more to do. */ - - case pki.oids.certBag: - /* A PKCS#12 certBag can wrap both X.509 and sdsi certificates. - Therefore put the SafeBag content through another validator to - capture the fields. Afterwards check & store the results. */ - validator = certBagValidator; - decoder = function() { - if(asn1.derToOid(capture.certId) !== pki.oids.x509Certificate) { - var error = new Error( - 'Unsupported certificate type, only X.509 supported.'); - error.oid = asn1.derToOid(capture.certId); - throw error; - } - - // true=produce cert hash - var certAsn1 = asn1.fromDer(capture.cert, strict); - try { - bag.cert = pki.certificateFromAsn1(certAsn1, true); - } catch(e) { - // ignore unknown cert type, pass asn1 value - bag.cert = null; - bag.asn1 = certAsn1; - } - }; - break; - - default: - var error = new Error('Unsupported PKCS#12 SafeBag type.'); - error.oid = bag.type; - throw error; } - - /* Validate SafeBag value (i.e. CertBag, etc.) and capture data if needed. */ - if(validator !== undefined && - !asn1.validate(bagAsn1, validator, capture, errors)) { - var error = new Error('Cannot read PKCS#12 ' + validator.name); - error.errors = errors; - throw error; + binaryauthorization_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Attestors { + 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://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + validateAttestationOccurrence(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://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+attestor}:validateAttestationOccurrence').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['attestor'], + pathParams: ['attestor'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = context; + } + 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - /* Call decoder function from above to store the results. */ - decoder(); - } - - return res; -} - -/** - * Decode PKCS#12 SET OF PKCS12Attribute into JavaScript object. - * - * @param attributes SET OF PKCS12Attribute (ASN.1 object). - * - * @return the decoded attributes. - */ -function _decodeBagAttributes(attributes) { - var decodedAttrs = {}; - - if(attributes !== undefined) { - for(var i = 0; i < attributes.length; ++i) { - var capture = {}; - var errors = []; - if(!asn1.validate(attributes[i], attributeValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#12 BagAttribute.'); - error.errors = errors; - throw error; - } - - var oid = asn1.derToOid(capture.oid); - if(pki.oids[oid] === undefined) { - // unsupported attribute type, ignore. - continue; - } - - decodedAttrs[pki.oids[oid]] = []; - for(var j = 0; j < capture.values.length; ++j) { - decodedAttrs[pki.oids[oid]].push(capture.values[j].value); - } + binaryauthorization_v1.Resource$Projects$Policy = Resource$Projects$Policy; + class Resource$Systempolicy { + constructor(context) { + this.context = context; + } + getPolicy(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://binaryauthorization.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - - return decodedAttrs; -} - -/** - * Wraps a private key and certificate in a PKCS#12 PFX wrapper. If a - * password is provided then the private key will be encrypted. - * - * An entire certificate chain may also be included. To do this, pass - * an array for the "cert" parameter where the first certificate is - * the one that is paired with the private key and each subsequent one - * verifies the previous one. The certificates may be in PEM format or - * have been already parsed by Forge. - * - * @todo implement password-based-encryption for the whole package - * - * @param key the private key. - * @param cert the certificate (may be an array of certificates in order - * to specify a certificate chain). - * @param password the password to use, null for none. - * @param options: - * algorithm the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. - * count the iteration count to use. - * saltSize the salt size to use. - * useMac true to include a MAC, false not to, defaults to true. - * localKeyId the local key ID to use, in hex. - * friendlyName the friendly name to use. - * generateLocalKeyId true to generate a random local key ID, - * false not to, defaults to true. - * - * @return the PKCS#12 PFX ASN.1 object. - */ -p12.toPkcs12Asn1 = function(key, cert, password, options) { - // set default options - options = options || {}; - options.saltSize = options.saltSize || 8; - options.count = options.count || 2048; - options.algorithm = options.algorithm || options.encAlgorithm || 'aes128'; - if(!('useMac' in options)) { - options.useMac = true; - } - if(!('localKeyId' in options)) { - options.localKeyId = null; - } - if(!('generateLocalKeyId' in options)) { - options.generateLocalKeyId = true; - } + binaryauthorization_v1.Resource$Systempolicy = Resource$Systempolicy; +})(binaryauthorization_v1 = exports.binaryauthorization_v1 || (exports.binaryauthorization_v1 = {})); - var localKeyId = options.localKeyId; - var bagAttrs; - if(localKeyId !== null) { - localKeyId = forge.util.hexToBytes(localKeyId); - } else if(options.generateLocalKeyId) { - // use SHA-1 of paired cert, if available - if(cert) { - var pairedCert = forge.util.isArray(cert) ? cert[0] : cert; - if(typeof pairedCert === 'string') { - pairedCert = pki.certificateFromPem(pairedCert); - } - var sha1 = forge.md.sha1.create(); - sha1.update(asn1.toDer(pki.certificateToAsn1(pairedCert)).getBytes()); - localKeyId = sha1.digest().getBytes(); - } else { - // FIXME: consider using SHA-1 of public key (which can be generated - // from private key components), see: cert.generateSubjectKeyIdentifier - // generate random bytes - localKeyId = forge.random.getBytes(20); - } - } - var attrs = []; - if(localKeyId !== null) { - attrs.push( - // localKeyID - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // attrId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.localKeyId).getBytes()), - // attrValues - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - localKeyId) - ]) - ])); - } - if('friendlyName' in options) { - attrs.push( - // friendlyName - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // attrId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.friendlyName).getBytes()), - // attrValues - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BMPSTRING, false, - options.friendlyName) - ]) - ])); - } +/***/ }), - if(attrs.length > 0) { - bagAttrs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, attrs); - } +/***/ 9967: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // collect contents for AuthenticatedSafe - var contents = []; +"use strict"; - // create safe bag(s) for certificate chain - var chain = []; - if(cert !== null) { - if(forge.util.isArray(cert)) { - chain = cert; - } else { - chain = [cert]; - } - } +// 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.AuthPlus = exports.serviceconsumermanagement_v1beta1 = exports.serviceconsumermanagement_v1 = exports.auth = exports.serviceconsumermanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(5886); +Object.defineProperty(exports, "serviceconsumermanagement_v1", { enumerable: true, get: function () { return v1_1.serviceconsumermanagement_v1; } }); +const v1beta1_1 = __webpack_require__(3716); +Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_1.serviceconsumermanagement_v1beta1; } }); +exports.VERSIONS = { + v1: v1_1.serviceconsumermanagement_v1.Serviceconsumermanagement, + v1beta1: v1beta1_1.serviceconsumermanagement_v1beta1.Serviceconsumermanagement, +}; +function serviceconsumermanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('serviceconsumermanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.serviceconsumermanagement = serviceconsumermanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - var certSafeBags = []; - for(var i = 0; i < chain.length; ++i) { - // convert cert from PEM as necessary - cert = chain[i]; - if(typeof cert === 'string') { - cert = pki.certificateFromPem(cert); - } - // SafeBag - var certBagAttrs = (i === 0) ? bagAttrs : undefined; - var certAsn1 = pki.certificateToAsn1(cert); - var certSafeBag = - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // bagId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.certBag).getBytes()), - // bagValue - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // CertBag - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // certId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.x509Certificate).getBytes()), - // certValue (x509Certificate) - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(certAsn1).getBytes()) - ])])]), - // bagAttributes (OPTIONAL) - certBagAttrs - ]); - certSafeBags.push(certSafeBag); - } +/***/ }), - if(certSafeBags.length > 0) { - // SafeContents - var certSafeContents = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, certSafeBags); +/***/ 9989: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - // ContentInfo - var certCI = - // PKCS#7 ContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // contentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - // OID for the content type is 'data' - asn1.oidToDer(pki.oids.data).getBytes()), - // content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(certSafeContents).getBytes()) - ]) - ]); - contents.push(certCI); - } +"use strict"; - // create safe contents for private key - var keyBag = null; - if(key !== null) { - // SafeBag - var pkAsn1 = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(key)); - if(password === null) { - // no encryption - keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // bagId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.keyBag).getBytes()), - // bagValue - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // PrivateKeyInfo - pkAsn1 - ]), - // bagAttributes (OPTIONAL) - bagAttrs - ]); - } else { - // encrypted PrivateKeyInfo - keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // bagId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.pkcs8ShroudedKeyBag).getBytes()), - // bagValue - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // EncryptedPrivateKeyInfo - pki.encryptPrivateKeyInfo(pkAsn1, password, options) - ]), - // bagAttributes (OPTIONAL) - bagAttrs - ]); - } +// 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.AuthPlus = exports.manufacturers_v1 = exports.auth = exports.manufacturers = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(9021); +Object.defineProperty(exports, "manufacturers_v1", { enumerable: true, get: function () { return v1_1.manufacturers_v1; } }); +exports.VERSIONS = { + v1: v1_1.manufacturers_v1.Manufacturers, +}; +function manufacturers(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('manufacturers', versionOrOptions, exports.VERSIONS, this); +} +exports.manufacturers = manufacturers; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); - // SafeContents - var keySafeContents = - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [keyBag]); - // ContentInfo - var keyCI = - // PKCS#7 ContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // contentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - // OID for the content type is 'data' - asn1.oidToDer(pki.oids.data).getBytes()), - // content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(keySafeContents).getBytes()) - ]) - ]); - contents.push(keyCI); - } +/***/ }), - // create AuthenticatedSafe by stringing together the contents - var safe = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, contents); +/***/ 9991: +/***/ (function(__unusedmodule, exports, __webpack_require__) { - var macData; - if(options.useMac) { - // MacData - var sha1 = forge.md.sha1.create(); - var macSalt = new forge.util.ByteBuffer( - forge.random.getBytes(options.saltSize)); - var count = options.count; - // 160-bit key - var key = p12.generateKey(password, macSalt, 3, count, 20); - var mac = forge.hmac.create(); - mac.start(sha1, key); - mac.update(asn1.toDer(safe).getBytes()); - var macValue = mac.getMac(); - macData = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // mac DigestInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // digestAlgorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm = SHA-1 - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.sha1).getBytes()), - // parameters = Null - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // digest - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, - false, macValue.getBytes()) - ]), - // macSalt OCTET STRING - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, macSalt.getBytes()), - // iterations INTEGER (XXX: Only support count < 65536) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(count).getBytes() - ) - ]); - } +"use strict"; - // PFX - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version (3) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(3).getBytes()), - // PKCS#7 ContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // contentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - // OID for the content type is 'data' - asn1.oidToDer(pki.oids.data).getBytes()), - // content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(safe).getBytes()) - ]) - ]), - macData - ]); +// 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.AuthPlus = exports.contactcenterinsights_v1 = exports.auth = exports.contactcenterinsights = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(2044); +Object.defineProperty(exports, "contactcenterinsights_v1", { enumerable: true, get: function () { return v1_1.contactcenterinsights_v1; } }); +exports.VERSIONS = { + v1: v1_1.contactcenterinsights_v1.Contactcenterinsights, }; - -/** - * Derives a PKCS#12 key. - * - * @param password the password to derive the key material from, null or - * undefined for none. - * @param salt the salt, as a ByteBuffer, to use. - * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). - * @param iter the iteration count. - * @param n the number of bytes to derive from the password. - * @param md the message digest to use, defaults to SHA-1. - * - * @return a ByteBuffer with the bytes derived from the password. - */ -p12.generateKey = forge.pbe.generatePkcs12Key; +function contactcenterinsights(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('contactcenterinsights', versionOrOptions, exports.VERSIONS, this); +} +exports.contactcenterinsights = contactcenterinsights; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __webpack_require__(927); +Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } }); /***/ }), -/* 998 */, -/* 999 */ + +/***/ 9994: /***/ (function(module, __unusedexports, __webpack_require__) { /** - * RC2 implementation. + * A Javascript implementation of AES Cipher Suites for TLS. * - * @author Stefan Siegl + * @author Dave Longley * - * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2009-2015 Digital Bazaar, Inc. * - * Information on the RC2 cipher is available from RFC #2268, - * http://www.ietf.org/rfc/rfc2268.txt */ var forge = __webpack_require__(239); -__webpack_require__(54); - -var piTable = [ - 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, 0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d, - 0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e, 0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2, - 0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13, 0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32, - 0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b, 0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82, - 0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c, 0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc, - 0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1, 0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26, - 0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57, 0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03, - 0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7, 0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7, - 0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7, 0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a, - 0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74, 0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec, - 0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc, 0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39, - 0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a, 0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31, - 0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae, 0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9, - 0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c, 0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9, - 0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0, 0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e, - 0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77, 0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad -]; +__webpack_require__(828); +__webpack_require__(7171); -var s = [1, 2, 3, 5]; +var tls = module.exports = forge.tls; /** - * Rotate a word left by given number of bits. - * - * Bits that are shifted out on the left are put back in on the right - * hand side. - * - * @param word The word to shift left. - * @param bits The number of bits to shift by. - * @return The rotated word. + * Supported cipher suites. */ -var rol = function(word, bits) { - return ((word << bits) & 0xffff) | ((word & 0xffff) >> (16 - bits)); +tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = { + id: [0x00, 0x2f], + name: 'TLS_RSA_WITH_AES_128_CBC_SHA', + initSecurityParameters: function(sp) { + sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; + sp.cipher_type = tls.CipherType.block; + sp.enc_key_length = 16; + sp.block_length = 16; + sp.fixed_iv_length = 16; + sp.record_iv_length = 16; + sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; + sp.mac_length = 20; + sp.mac_key_length = 20; + }, + initConnectionState: initConnectionState +}; +tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = { + id: [0x00, 0x35], + name: 'TLS_RSA_WITH_AES_256_CBC_SHA', + initSecurityParameters: function(sp) { + sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; + sp.cipher_type = tls.CipherType.block; + sp.enc_key_length = 32; + sp.block_length = 16; + sp.fixed_iv_length = 16; + sp.record_iv_length = 16; + sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; + sp.mac_length = 20; + sp.mac_key_length = 20; + }, + initConnectionState: initConnectionState }; +function initConnectionState(state, c, sp) { + var client = (c.entity === forge.tls.ConnectionEnd.client); + + // cipher setup + state.read.cipherState = { + init: false, + cipher: forge.cipher.createDecipher('AES-CBC', client ? + sp.keys.server_write_key : sp.keys.client_write_key), + iv: client ? sp.keys.server_write_IV : sp.keys.client_write_IV + }; + state.write.cipherState = { + init: false, + cipher: forge.cipher.createCipher('AES-CBC', client ? + sp.keys.client_write_key : sp.keys.server_write_key), + iv: client ? sp.keys.client_write_IV : sp.keys.server_write_IV + }; + state.read.cipherFunction = decrypt_aes_cbc_sha1; + state.write.cipherFunction = encrypt_aes_cbc_sha1; + + // MAC setup + state.read.macLength = state.write.macLength = sp.mac_length; + state.read.macFunction = state.write.macFunction = tls.hmac_sha1; +} + /** - * Rotate a word right by given number of bits. + * Encrypts the TLSCompressed record into a TLSCipherText record using AES + * in CBC mode. * - * Bits that are shifted out on the right are put back in on the left - * hand side. + * @param record the TLSCompressed record to encrypt. + * @param s the ConnectionState to use. * - * @param word The word to shift right. - * @param bits The number of bits to shift by. - * @return The rotated word. + * @return true on success, false on failure. */ -var ror = function(word, bits) { - return ((word & 0xffff) >> bits) | ((word << (16 - bits)) & 0xffff); -}; +function encrypt_aes_cbc_sha1(record, s) { + var rval = false; -/* RC2 API */ -module.exports = forge.rc2 = forge.rc2 || {}; + // append MAC to fragment, update sequence number + var mac = s.macFunction(s.macKey, s.sequenceNumber, record); + record.fragment.putBytes(mac); + s.updateSequenceNumber(); -/** - * Perform RC2 key expansion as per RFC #2268, section 2. - * - * @param key variable-length user key (between 1 and 128 bytes) - * @param effKeyBits number of effective key bits (default: 128) - * @return the expanded RC2 key (ByteBuffer of 128 bytes) - */ -forge.rc2.expandKey = function(key, effKeyBits) { - if(typeof key === 'string') { - key = forge.util.createBuffer(key); + // TLS 1.1+ use an explicit IV every time to protect against CBC attacks + var iv; + if(record.version.minor === tls.Versions.TLS_1_0.minor) { + // use the pre-generated IV when initializing for TLS 1.0, otherwise use + // the residue from the previous encryption + iv = s.cipherState.init ? null : s.cipherState.iv; + } else { + iv = forge.random.getBytesSync(16); } - effKeyBits = effKeyBits || 128; - /* introduce variables that match the names used in RFC #2268 */ - var L = key; - var T = key.length(); - var T1 = effKeyBits; - var T8 = Math.ceil(T1 / 8); - var TM = 0xff >> (T1 & 0x07); - var i; + s.cipherState.init = true; - for(i = T; i < 128; i++) { - L.putByte(piTable[(L.at(i - 1) + L.at(i - T)) & 0xff]); - } + // start cipher + var cipher = s.cipherState.cipher; + cipher.start({iv: iv}); - L.setAt(128 - T8, piTable[L.at(128 - T8) & TM]); + // TLS 1.1+ write IV into output + if(record.version.minor >= tls.Versions.TLS_1_1.minor) { + cipher.output.putBytes(iv); + } - for(i = 127 - T8; i >= 0; i--) { - L.setAt(i, piTable[L.at(i + 1) ^ L.at(i + T8)]); + // do encryption (default padding is appropriate) + cipher.update(record.fragment); + if(cipher.finish(encrypt_aes_cbc_sha1_padding)) { + // set record fragment to encrypted output + record.fragment = cipher.output; + record.length = record.fragment.length(); + rval = true; } - return L; -}; + return rval; +} /** - * Creates a RC2 cipher object. + * Handles padding for aes_cbc_sha1 in encrypt mode. * - * @param key the symmetric key to use (as base for key generation). - * @param bits the number of effective key bits. - * @param encrypt false for decryption, true for encryption. + * @param blockSize the block size. + * @param input the input buffer. + * @param decrypt true in decrypt mode, false in encrypt mode. * - * @return the cipher. + * @return true on success, false on failure. */ -var createCipher = function(key, bits, encrypt) { - var _finish = false, _input = null, _output = null, _iv = null; - var mixRound, mashRound; - var i, j, K = []; - - /* Expand key and fill into K[] Array */ - key = forge.rc2.expandKey(key, bits); - for(i = 0; i < 64; i++) { - K.push(key.getInt16Le()); - } +function encrypt_aes_cbc_sha1_padding(blockSize, input, decrypt) { + /* The encrypted data length (TLSCiphertext.length) is one more than the sum + of SecurityParameters.block_length, TLSCompressed.length, + SecurityParameters.mac_length, and padding_length. - if(encrypt) { - /** - * Perform one mixing round "in place". - * - * @param R Array of four words to perform mixing on. - */ - mixRound = function(R) { - for(i = 0; i < 4; i++) { - R[i] += K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + - ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); - R[i] = rol(R[i], s[i]); - j++; - } - }; + The padding may be any length up to 255 bytes long, as long as it results in + the TLSCiphertext.length being an integral multiple of the block length. + Lengths longer than necessary might be desirable to frustrate attacks on a + protocol based on analysis of the lengths of exchanged messages. Each uint8 + in the padding data vector must be filled with the padding length value. - /** - * Perform one mashing round "in place". - * - * @param R Array of four words to perform mashing on. - */ - mashRound = function(R) { - for(i = 0; i < 4; i++) { - R[i] += K[R[(i + 3) % 4] & 63]; - } - }; - } else { - /** - * Perform one r-mixing round "in place". - * - * @param R Array of four words to perform mixing on. - */ - mixRound = function(R) { - for(i = 3; i >= 0; i--) { - R[i] = ror(R[i], s[i]); - R[i] -= K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + - ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); - j--; - } - }; + The padding length should be such that the total size of the + GenericBlockCipher structure is a multiple of the cipher's block length. + Legal values range from zero to 255, inclusive. This length specifies the + length of the padding field exclusive of the padding_length field itself. - /** - * Perform one r-mashing round "in place". - * - * @param R Array of four words to perform mashing on. - */ - mashRound = function(R) { - for(i = 3; i >= 0; i--) { - R[i] -= K[R[(i + 3) % 4] & 63]; - } - }; + This is slightly different from PKCS#7 because the padding value is 1 + less than the actual number of padding bytes if you include the + padding_length uint8 itself as a padding byte. */ + if(!decrypt) { + // get the number of padding bytes required to reach the blockSize and + // subtract 1 for the padding value (to make room for the padding_length + // uint8) + var padding = blockSize - (input.length() % blockSize); + input.fillWithByte(padding - 1, padding); } + return true; +} - /** - * Run the specified cipher execution plan. - * - * This function takes four words from the input buffer, applies the IV on - * it (if requested) and runs the provided execution plan. - * - * The plan must be put together in form of a array of arrays. Where the - * outer one is simply a list of steps to perform and the inner one needs - * to have two elements: the first one telling how many rounds to perform, - * the second one telling what to do (i.e. the function to call). - * - * @param {Array} plan The plan to execute. - */ - var runPlan = function(plan) { - var R = []; - - /* Get data from input buffer and fill the four words into R */ - for(i = 0; i < 4; i++) { - var val = _input.getInt16Le(); - - if(_iv !== null) { - if(encrypt) { - /* We're encrypting, apply the IV first. */ - val ^= _iv.getInt16Le(); - } else { - /* We're decryption, keep cipher text for next block. */ - _iv.putInt16Le(val); - } - } - - R.push(val & 0xffff); - } - - /* Reset global "j" variable as per spec. */ - j = encrypt ? 0 : 63; - - /* Run execution plan. */ - for(var ptr = 0; ptr < plan.length; ptr++) { - for(var ctr = 0; ctr < plan[ptr][0]; ctr++) { - plan[ptr][1](R); - } +/** + * Handles padding for aes_cbc_sha1 in decrypt mode. + * + * @param blockSize the block size. + * @param output the output buffer. + * @param decrypt true in decrypt mode, false in encrypt mode. + * + * @return true on success, false on failure. + */ +function decrypt_aes_cbc_sha1_padding(blockSize, output, decrypt) { + var rval = true; + if(decrypt) { + /* The last byte in the output specifies the number of padding bytes not + including itself. Each of the padding bytes has the same value as that + last byte (known as the padding_length). Here we check all padding + bytes to ensure they have the value of padding_length even if one of + them is bad in order to ward-off timing attacks. */ + var len = output.length(); + var paddingLength = output.last(); + for(var i = len - 1 - paddingLength; i < len - 1; ++i) { + rval = rval && (output.at(i) == paddingLength); } - - /* Write back result to output buffer. */ - for(i = 0; i < 4; i++) { - if(_iv !== null) { - if(encrypt) { - /* We're encrypting in CBC-mode, feed back encrypted bytes into - IV buffer to carry it forward to next block. */ - _iv.putInt16Le(R[i]); - } else { - R[i] ^= _iv.getInt16Le(); - } - } - - _output.putInt16Le(R[i]); + if(rval) { + // trim off padding bytes and last padding length byte + output.truncate(paddingLength + 1); } - }; - - /* Create cipher object */ - var cipher = null; - cipher = { - /** - * Starts or restarts the encryption or decryption process, whichever - * was previously configured. - * - * To use the cipher in CBC mode, iv may be given either as a string - * of bytes, or as a byte buffer. For ECB mode, give null as iv. - * - * @param iv the initialization vector to use, null for ECB mode. - * @param output the output the buffer to write to, null to create one. - */ - start: function(iv, output) { - if(iv) { - /* CBC mode */ - if(typeof iv === 'string') { - iv = forge.util.createBuffer(iv); - } - } - - _finish = false; - _input = forge.util.createBuffer(); - _output = output || new forge.util.createBuffer(); - _iv = iv; - - cipher.output = _output; - }, + } + return rval; +} - /** - * Updates the next block. - * - * @param input the buffer to read from. - */ - update: function(input) { - if(!_finish) { - // not finishing, so fill the input buffer with more input - _input.putBuffer(input); - } +/** + * Decrypts a TLSCipherText record into a TLSCompressed record using + * AES in CBC mode. + * + * @param record the TLSCipherText record to decrypt. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +function decrypt_aes_cbc_sha1(record, s) { + var rval = false; - while(_input.length() >= 8) { - runPlan([ - [ 5, mixRound ], - [ 1, mashRound ], - [ 6, mixRound ], - [ 1, mashRound ], - [ 5, mixRound ] - ]); - } - }, + var iv; + if(record.version.minor === tls.Versions.TLS_1_0.minor) { + // use pre-generated IV when initializing for TLS 1.0, otherwise use the + // residue from the previous decryption + iv = s.cipherState.init ? null : s.cipherState.iv; + } else { + // TLS 1.1+ use an explicit IV every time to protect against CBC attacks + // that is appended to the record fragment + iv = record.fragment.getBytes(16); + } - /** - * Finishes encrypting or decrypting. - * - * @param pad a padding function to use, null for PKCS#7 padding, - * signature(blockSize, buffer, decrypt). - * - * @return true if successful, false on error. - */ - finish: function(pad) { - var rval = true; + s.cipherState.init = true; - if(encrypt) { - if(pad) { - rval = pad(8, _input, !encrypt); - } else { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (_input.length() === 8) ? 8 : (8 - _input.length()); - _input.fillWithByte(padding, padding); - } - } + // start cipher + var cipher = s.cipherState.cipher; + cipher.start({iv: iv}); - if(rval) { - // do final update - _finish = true; - cipher.update(); - } + // do decryption + cipher.update(record.fragment); + rval = cipher.finish(decrypt_aes_cbc_sha1_padding); - if(!encrypt) { - // check for error: input data not a multiple of block size - rval = (_input.length() === 0); - if(rval) { - if(pad) { - rval = pad(8, _output, !encrypt); - } else { - // ensure padding byte count is valid - var len = _output.length(); - var count = _output.at(len - 1); + // even if decryption fails, keep going to minimize timing attacks - if(count > len) { - rval = false; - } else { - // trim off padding bytes - _output.truncate(count); - } - } - } - } + // decrypted data: + // first (len - 20) bytes = application data + // last 20 bytes = MAC + var macLen = s.macLength; - return rval; - } - }; + // create a random MAC to check against should the mac length check fail + // Note: do this regardless of the failure to keep timing consistent + var mac = forge.random.getBytesSync(macLen); - return cipher; -}; + // get fragment and mac + var len = cipher.output.length(); + if(len >= macLen) { + record.fragment = cipher.output.getBytes(len - macLen); + mac = cipher.output.getBytes(macLen); + } else { + // bad data, but get bytes anyway to try to keep timing consistent + record.fragment = cipher.output.getBytes(); + } + record.fragment = forge.util.createBuffer(record.fragment); + record.length = record.fragment.length(); -/** - * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the - * given symmetric key. The output will be stored in the 'output' member - * of the returned cipher. - * - * The key and iv may be given as a string of bytes or a byte buffer. - * The cipher is initialized to use 128 effective key bits. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * - * @return the cipher. - */ -forge.rc2.startEncrypting = function(key, iv, output) { - var cipher = forge.rc2.createEncryptionCipher(key, 128); - cipher.start(iv, output); - return cipher; -}; + // see if data integrity checks out, update sequence number + var mac2 = s.macFunction(s.macKey, s.sequenceNumber, record); + s.updateSequenceNumber(); + rval = compareMacs(s.macKey, mac, mac2) && rval; + return rval; +} /** - * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the - * given symmetric key. + * Safely compare two MACs. This function will compare two MACs in a way + * that protects against timing attacks. * - * The key may be given as a string of bytes or a byte buffer. + * TODO: Expose elsewhere as a utility API. * - * To start encrypting call start() on the cipher with an iv and optional - * output buffer. + * See: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ * - * @param key the symmetric key to use. + * @param key the MAC key to use. + * @param mac1 as a binary-encoded string of bytes. + * @param mac2 as a binary-encoded string of bytes. * - * @return the cipher. + * @return true if the MACs are the same, false if not. */ -forge.rc2.createEncryptionCipher = function(key, bits) { - return createCipher(key, bits, true); -}; +function compareMacs(key, mac1, mac2) { + var hmac = forge.hmac.create(); -/** - * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the - * given symmetric key. The output will be stored in the 'output' member - * of the returned cipher. - * - * The key and iv may be given as a string of bytes or a byte buffer. - * The cipher is initialized to use 128 effective key bits. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * - * @return the cipher. - */ -forge.rc2.startDecrypting = function(key, iv, output) { - var cipher = forge.rc2.createDecryptionCipher(key, 128); - cipher.start(iv, output); - return cipher; -}; + hmac.start('SHA1', key); + hmac.update(mac1); + mac1 = hmac.digest().getBytes(); -/** - * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the - * given symmetric key. - * - * The key may be given as a string of bytes or a byte buffer. - * - * To start decrypting call start() on the cipher with an iv and optional - * output buffer. - * - * @param key the symmetric key to use. - * - * @return the cipher. - */ -forge.rc2.createDecryptionCipher = function(key, bits) { - return createCipher(key, bits, false); -}; + hmac.start(null, null); + hmac.update(mac2); + mac2 = hmac.digest().getBytes(); + + return mac1 === mac2; +} /***/ }) -/******/ ]); \ No newline at end of file + +/******/ }); \ No newline at end of file diff --git a/lib/checkPullRequestJob.js b/lib/checkPullRequestJob.js index 02aa1fc6..905c369f 100644 --- a/lib/checkPullRequestJob.js +++ b/lib/checkPullRequestJob.js @@ -31,7 +31,7 @@ const PLATFORM_DIR_PREFIX = 'core/platform/'; const shouldFileChangesBeVerified = (filename) => { return ( ( - filename.startsWith(JOBS_DIR_PREFIX) || + filename.startsWith(JOBS_DIR_PREFIX) || filename.startsWith(PLATFORM_DIR_PREFIX) ) && !filename.endsWith('test.py') diff --git a/lib/checkPullRequestLabels.js b/lib/checkPullRequestLabels.js index 0efe047f..0ef1678c 100644 --- a/lib/checkPullRequestLabels.js +++ b/lib/checkPullRequestLabels.js @@ -158,12 +158,12 @@ module.exports.checkHotfixLabel = async function (context) { const label = context.payload.label; if (label.name === HOTFIX_LABEL) { var commentParams = context.issue({ - body: + body: 'Hi, @oppia/release-coordinators flagging this pull request for ' + 'for your attention since this is labelled as a hotfix PR. ' + 'Please ensure that you add the "PR: for current release" ' + 'label if the next release is in progress. Thanks!' - }); + }); await context.github.issues.createComment(commentParams); } }; diff --git a/spec/checkNewCronJobSpec.js b/spec/checkNewCronJobSpec.js index 19003431..95aa5cd6 100644 --- a/spec/checkNewCronJobSpec.js +++ b/spec/checkNewCronJobSpec.js @@ -247,7 +247,7 @@ describe('Cron Job Spec', () => { issue_number: payloadData.payload.pull_request.number, body: 'Hi @vojtechjelinek, @DubeySandeep, @kevintab95, PTAL at this PR, ' + - 'it adds a new cron job.' + newLineFeed + 'Also @' + author + + 'it adds a new cron job.' + newLineFeed + 'Also @' + author + ' please add the new test and URL redirects for the new CRON jobs ' + 'It seems you have added or edited a CRON job, if so please request ' + 'a testing of this CRON job with this ' + formText + ' Please refer ' + diff --git a/spec/checkPullRequestJobSpec.js b/spec/checkPullRequestJobSpec.js index 7d9d14e6..2b2f8df2 100644 --- a/spec/checkPullRequestJobSpec.js +++ b/spec/checkPullRequestJobSpec.js @@ -457,8 +457,8 @@ describe('Pull Request Job Spec', () => { it('should check for jobs', () => { expect( - checkPullRequestJobModule.checkForModificationsToFiles - ).toHaveBeenCalled(); + checkPullRequestJobModule.checkForModificationsToFiles + ).toHaveBeenCalled(); }); it('should get modified files', () => { @@ -563,8 +563,8 @@ describe('Pull Request Job Spec', () => { issue_number: payloadData.payload.pull_request.number, body: 'Hi @vojtechjelinek, @DubeySandeep, @kevintab95, PTAL at this PR, ' + - 'it modifies files in jobs or platform folders.' + newLineFeed + - 'Also @' + author + ', please make sure to fill in the ' + formText + + 'it modifies files in jobs or platform folders.' + newLineFeed + + 'Also @' + author + ', please make sure to fill in the ' + formText + ' for the new job or feature to be tested on the backup server. ' + 'This PR can be merged only after the test run is successful. ' + 'Please refer to ' + wikiLinkText + ' for details.' + @@ -637,10 +637,10 @@ describe('Pull Request Job Spec', () => { issue_number: payloadData.payload.pull_request.number, body: 'Hi @vojtechjelinek, @DubeySandeep, @kevintab95, PTAL at this ' + - 'PR, it modifies files in jobs or platform folders.' + newLineFeed + - 'Also @' + author + ', please make sure to fill in the ' + + 'PR, it modifies files in jobs or platform folders.' + newLineFeed + + 'Also @' + author + ', please make sure to fill in the ' + formText + ' for the new job or feature to be tested on the ' + - 'backup server. This PR can be merged only after the test run ' + + 'backup server. This PR can be merged only after the test run ' + 'is successful. Please refer to ' + wikiLinkText + ' for details.' + newLineFeed + 'Thanks!', repo: payloadData.payload.repository.name, @@ -715,9 +715,9 @@ describe('Pull Request Job Spec', () => { issue_number: payloadData.payload.pull_request.number, body: 'Hi @vojtechjelinek, @DubeySandeep, @kevintab95, PTAL at this PR, ' + - 'it modifies files in jobs or platform folders.' + newLineFeed + - 'Also @' + author + ', please make sure to ' + 'fill in the ' + - formText + ' for the new job or feature to be tested on the ' + + 'it modifies files in jobs or platform folders.' + newLineFeed + + 'Also @' + author + ', please make sure to ' + 'fill in the ' + + formText + ' for the new job or feature to be tested on the ' + 'backup server. This PR can be merged only after the test ' + 'run is successful. Please refer to ' + wikiLinkText + ' for details.' + newLineFeed + 'Thanks!', diff --git a/spec/checkPullRequestLabelsSpec.js b/spec/checkPullRequestLabelsSpec.js index 15df0f1f..a961fad9 100644 --- a/spec/checkPullRequestLabelsSpec.js +++ b/spec/checkPullRequestLabelsSpec.js @@ -225,7 +225,6 @@ describe('Pull Request Label Check', () => { expect(github.issues.addAssignees).not.toHaveBeenCalled(); expect(github.issues.createComment).not.toHaveBeenCalled(); }); - }); describe('when a issue label gets added', () => { @@ -239,7 +238,7 @@ describe('Pull Request Label Check', () => { beforeEach(async () => { payloadData.payload.action = 'labeled'; - payloadData.payload.sender = {'login': 'user'} + payloadData.payload.sender = {login: 'user'}; payloadData.payload.label = label; spyOn( checkPullRequestLabelModule, 'checkForIssueLabel' @@ -496,8 +495,8 @@ describe('Pull Request Label Check', () => { number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name - }) - }) + }); + }); }); describe('when another label gets removed', () => {